From ffde1b150faca940bc6c172068aa068cf468aa39 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 25 Apr 2025 15:15:36 +0200 Subject: [chore] Move deps to code.superseriousbusiness.org (#4054) --- README.md | 8 +- go.mod | 13 +- go.sum | 29 +- internal/ap/activitystreams.go | 2 +- internal/ap/activitystreams_test.go | 2 +- internal/ap/ap_test.go | 4 +- internal/ap/collections.go | 4 +- internal/ap/collections_test.go | 6 +- internal/ap/extract.go | 4 +- internal/ap/extractattachments_test.go | 2 +- internal/ap/extractmentions_test.go | 2 +- internal/ap/extractpubkey_test.go | 4 +- internal/ap/interfaces.go | 2 +- internal/ap/interfaces_test.go | 2 +- internal/ap/normalize.go | 4 +- internal/ap/normalize_test.go | 2 +- internal/ap/properties.go | 4 +- internal/ap/resolve.go | 6 +- internal/ap/serialize.go | 4 +- internal/ap/util.go | 2 +- internal/api/activitypub/users/inboxpost_test.go | 6 +- internal/api/activitypub/users/outboxget_test.go | 4 +- internal/api/activitypub/users/repliesget_test.go | 4 +- internal/api/activitypub/users/statusget_test.go | 4 +- internal/api/activitypub/users/userget_test.go | 4 +- internal/api/auth/revoke.go | 2 +- internal/api/util/auth.go | 2 +- internal/federation/authenticate.go | 6 +- internal/federation/clock.go | 2 +- internal/federation/commonbehavior.go | 4 +- internal/federation/dereferencing/account.go | 2 +- internal/federation/dereferencing/account_test.go | 4 +- internal/federation/dereferencing/collection.go | 2 +- .../federation/dereferencing/dereferencer_test.go | 2 +- internal/federation/dereferencing/status_test.go | 2 +- internal/federation/dereferencing/thread.go | 2 +- internal/federation/federatingactor.go | 4 +- internal/federation/federatingdb/accept.go | 2 +- internal/federation/federatingdb/announce.go | 2 +- internal/federation/federatingdb/announce_test.go | 2 +- internal/federation/federatingdb/block.go | 2 +- internal/federation/federatingdb/create.go | 2 +- internal/federation/federatingdb/create_test.go | 4 +- internal/federation/federatingdb/db.go | 4 +- internal/federation/federatingdb/flag.go | 2 +- internal/federation/federatingdb/follow.go | 2 +- internal/federation/federatingdb/followers.go | 2 +- internal/federation/federatingdb/following.go | 2 +- internal/federation/federatingdb/get.go | 2 +- internal/federation/federatingdb/inbox.go | 4 +- internal/federation/federatingdb/like.go | 2 +- internal/federation/federatingdb/liked.go | 4 +- internal/federation/federatingdb/move.go | 2 +- internal/federation/federatingdb/move_test.go | 4 +- internal/federation/federatingdb/outbox.go | 4 +- internal/federation/federatingdb/reject.go | 2 +- internal/federation/federatingdb/reject_test.go | 2 +- internal/federation/federatingdb/undo.go | 2 +- internal/federation/federatingdb/update.go | 2 +- internal/federation/federatingdb/util.go | 4 +- internal/federation/federatingprotocol.go | 6 +- internal/federation/federatingprotocol_test.go | 2 +- internal/federation/federator.go | 2 +- internal/federation/transport.go | 2 +- internal/gtscontext/context.go | 2 +- internal/media/metadata.go | 2 +- internal/messages/messages.go | 4 +- internal/middleware/signaturecheck.go | 2 +- internal/middleware/tokencheck.go | 2 +- internal/oauth/clientstore.go | 4 +- internal/oauth/errors.go | 2 +- internal/oauth/handlers/handlers.go | 8 +- internal/oauth/server.go | 8 +- internal/oauth/tokenstore.go | 4 +- internal/processing/fedi/collections.go | 2 +- internal/processing/fedi/status.go | 2 +- internal/processing/oauth.go | 2 +- internal/processing/user/create.go | 2 +- internal/processing/workers/federate.go | 4 +- internal/transport/controller.go | 2 +- internal/transport/signing.go | 2 +- internal/transport/transport.go | 2 +- internal/typeutils/astointernal_test.go | 4 +- internal/typeutils/converter_test.go | 2 +- internal/typeutils/internaltoas.go | 6 +- internal/typeutils/wrap.go | 4 +- testrig/testmodels.go | 6 +- testrig/transportcontroller.go | 6 +- .../code.superseriousbusiness.org/activity/LICENSE | 29 + .../activity/pub/README.md | 270 + .../activity/pub/activity.go | 49 + .../activity/pub/actor.go | 128 + .../activity/pub/base_actor.go | 475 ++ .../activity/pub/clock.go | 11 + .../activity/pub/common_behavior.go | 90 + .../activity/pub/database.go | 152 + .../activity/pub/delegate_actor.go | 249 + .../activity/pub/doc.go | 9 + .../activity/pub/federating_protocol.go | 125 + .../activity/pub/federating_wrapped_callbacks.go | 917 +++ .../activity/pub/handlers.go | 115 + .../activity/pub/property_interfaces.go | 118 + .../activity/pub/side_effect_actor.go | 1047 +++ .../activity/pub/social_protocol.go | 83 + .../activity/pub/social_wrapped_callbacks.go | 534 ++ .../activity/pub/transport.go | 219 + .../activity/pub/util.go | 1077 +++ .../activity/pub/version.go | 15 + .../activity/streams/README.md | 152 + .../activity/streams/gen_consts.go | 552 ++ .../activity/streams/gen_doc.go | 51 + .../activity/streams/gen_init.go | 457 ++ .../activity/streams/gen_json_resolver.go | 1187 +++ .../activity/streams/gen_manager.go | 2528 ++++++ .../streams/gen_pkg_activitystreams_disjoint.go | 392 + .../streams/gen_pkg_activitystreams_extendedby.go | 447 ++ .../streams/gen_pkg_activitystreams_extends.go | 392 + .../streams/gen_pkg_activitystreams_isorextends.go | 395 + ...en_pkg_activitystreams_property_constructors.go | 546 ++ .../gen_pkg_activitystreams_type_constructors.go | 340 + .../activity/streams/gen_pkg_funkwhale_disjoint.go | 35 + .../streams/gen_pkg_funkwhale_extendedby.go | 39 + .../activity/streams/gen_pkg_funkwhale_extends.go | 35 + .../streams/gen_pkg_funkwhale_isorextends.go | 35 + .../streams/gen_pkg_funkwhale_type_constructors.go | 31 + .../streams/gen_pkg_gotosocial_disjoint.go | 105 + .../streams/gen_pkg_gotosocial_extendedby.go | 119 + .../activity/streams/gen_pkg_gotosocial_extends.go | 105 + .../streams/gen_pkg_gotosocial_isorextends.go | 106 + .../gen_pkg_gotosocial_property_constructors.go | 87 + .../gen_pkg_gotosocial_type_constructors.go | 91 + .../gen_pkg_jsonld_property_constructors.go | 19 + .../activity/streams/gen_pkg_schema_disjoint.go | 14 + .../activity/streams/gen_pkg_schema_extendedby.go | 15 + .../activity/streams/gen_pkg_schema_extends.go | 14 + .../activity/streams/gen_pkg_schema_isorextends.go | 14 + .../gen_pkg_schema_property_constructors.go | 13 + .../streams/gen_pkg_schema_type_constructors.go | 13 + .../activity/streams/gen_pkg_toot_disjoint.go | 27 + .../activity/streams/gen_pkg_toot_extendedby.go | 31 + .../activity/streams/gen_pkg_toot_extends.go | 26 + .../activity/streams/gen_pkg_toot_isorextends.go | 28 + .../streams/gen_pkg_toot_property_constructors.go | 56 + .../streams/gen_pkg_toot_type_constructors.go | 25 + .../streams/gen_pkg_w3idsecurityv1_disjoint.go | 14 + .../streams/gen_pkg_w3idsecurityv1_extendedby.go | 15 + .../streams/gen_pkg_w3idsecurityv1_extends.go | 14 + .../streams/gen_pkg_w3idsecurityv1_isorextends.go | 14 + ...gen_pkg_w3idsecurityv1_property_constructors.go | 28 + .../gen_pkg_w3idsecurityv1_type_constructors.go | 13 + .../activity/streams/gen_resolver_utils.go | 289 + .../streams/gen_type_predicated_resolver.go | 1076 +++ .../activity/streams/gen_type_resolver.go | 909 +++ .../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 | 301 + .../gen_property_activitystreams_actor.go | 7985 +++++++++++++++++++ .../property_alsoknownas/gen_doc.go | 17 + .../property_alsoknownas/gen_pkg.go | 15 + .../gen_property_activitystreams_alsoKnownAs.go | 509 ++ .../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 | 301 + .../gen_property_activitystreams_anyOf.go | 7985 +++++++++++++++++++ .../activitystreams/property_attachment/gen_doc.go | 17 + .../activitystreams/property_attachment/gen_pkg.go | 301 + .../gen_property_activitystreams_attachment.go | 8001 +++++++++++++++++++ .../property_attributedto/gen_doc.go | 17 + .../property_attributedto/gen_pkg.go | 301 + .../gen_property_activitystreams_attributedTo.go | 8044 +++++++++++++++++++ .../activitystreams/property_audience/gen_doc.go | 17 + .../activitystreams/property_audience/gen_pkg.go | 301 + .../gen_property_activitystreams_audience.go | 7997 +++++++++++++++++++ .../impl/activitystreams/property_bcc/gen_doc.go | 17 + .../impl/activitystreams/property_bcc/gen_pkg.go | 301 + .../gen_property_activitystreams_bcc.go | 7979 +++++++++++++++++++ .../impl/activitystreams/property_bto/gen_doc.go | 17 + .../impl/activitystreams/property_bto/gen_pkg.go | 301 + .../gen_property_activitystreams_bto.go | 7979 +++++++++++++++++++ .../impl/activitystreams/property_cc/gen_doc.go | 17 + .../impl/activitystreams/property_cc/gen_pkg.go | 301 + .../property_cc/gen_property_activitystreams_cc.go | 7979 +++++++++++++++++++ .../activitystreams/property_closed/gen_doc.go | 17 + .../activitystreams/property_closed/gen_pkg.go | 301 + .../gen_property_activitystreams_closed.go | 8195 ++++++++++++++++++++ .../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 | 301 + .../gen_property_activitystreams_context.go | 7996 +++++++++++++++++++ .../activitystreams/property_current/gen_doc.go | 17 + .../activitystreams/property_current/gen_pkg.go | 38 + .../gen_property_activitystreams_current.go | 404 + .../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 | 290 + .../gen_property_activitystreams_describes.go | 3301 ++++++++ .../activitystreams/property_duration/gen_doc.go | 17 + .../activitystreams/property_duration/gen_pkg.go | 15 + .../gen_property_activitystreams_duration.go | 204 + .../activitystreams/property_endpoints/gen_doc.go | 17 + .../activitystreams/property_endpoints/gen_pkg.go | 22 + .../gen_property_activitystreams_endpoints.go | 621 ++ .../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 | 38 + .../gen_property_activitystreams_first.go | 404 + .../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 | 290 + .../gen_property_activitystreams_formerType.go | 7790 +++++++++++++++++++ .../activitystreams/property_generator/gen_doc.go | 17 + .../activitystreams/property_generator/gen_pkg.go | 301 + .../gen_property_activitystreams_generator.go | 7998 +++++++++++++++++++ .../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 | 33 + .../gen_property_activitystreams_icon.go | 928 +++ .../impl/activitystreams/property_image/gen_doc.go | 17 + .../impl/activitystreams/property_image/gen_pkg.go | 33 + .../gen_property_activitystreams_image.go | 928 +++ .../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 | 301 + .../gen_property_activitystreams_inReplyTo.go | 7998 +++++++++++++++++++ .../activitystreams/property_instrument/gen_doc.go | 17 + .../activitystreams/property_instrument/gen_pkg.go | 301 + .../gen_property_activitystreams_instrument.go | 8001 +++++++++++++++++++ .../impl/activitystreams/property_items/gen_doc.go | 17 + .../impl/activitystreams/property_items/gen_pkg.go | 301 + .../gen_property_activitystreams_items.go | 7985 +++++++++++++++++++ .../impl/activitystreams/property_last/gen_doc.go | 17 + .../impl/activitystreams/property_last/gen_pkg.go | 38 + .../gen_property_activitystreams_last.go | 404 + .../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 | 301 + .../gen_property_activitystreams_location.go | 7997 +++++++++++++++++++ .../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 + .../activitystreams/property_movedto/gen_doc.go | 17 + .../activitystreams/property_movedto/gen_pkg.go | 15 + .../gen_property_activitystreams_movedTo.go | 181 + .../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 | 38 + .../gen_property_activitystreams_next.go | 404 + .../activitystreams/property_object/gen_doc.go | 17 + .../activitystreams/property_object/gen_pkg.go | 301 + .../gen_property_activitystreams_object.go | 7986 +++++++++++++++++++ .../impl/activitystreams/property_oneof/gen_doc.go | 17 + .../impl/activitystreams/property_oneof/gen_pkg.go | 301 + .../gen_property_activitystreams_oneOf.go | 7985 +++++++++++++++++++ .../property_ordereditems/gen_doc.go | 17 + .../property_ordereditems/gen_pkg.go | 301 + .../gen_property_activitystreams_orderedItems.go | 8044 +++++++++++++++++++ .../activitystreams/property_origin/gen_doc.go | 17 + .../activitystreams/property_origin/gen_pkg.go | 301 + .../gen_property_activitystreams_origin.go | 7986 +++++++++++++++++++ .../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 | 46 + .../gen_property_activitystreams_partOf.go | 497 ++ .../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 | 38 + .../gen_property_activitystreams_prev.go | 404 + .../activitystreams/property_preview/gen_doc.go | 17 + .../activitystreams/property_preview/gen_pkg.go | 301 + .../gen_property_activitystreams_preview.go | 7996 +++++++++++++++++++ .../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 | 290 + .../gen_property_activitystreams_relationship.go | 7728 ++++++++++++++++++ .../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 | 301 + .../gen_property_activitystreams_result.go | 7986 +++++++++++++++++++ .../activitystreams/property_sensitive/gen_doc.go | 17 + .../activitystreams/property_sensitive/gen_pkg.go | 15 + .../gen_property_activitystreams_sensitive.go | 531 ++ .../property_sharedinbox/gen_doc.go | 17 + .../property_sharedinbox/gen_pkg.go | 15 + .../gen_property_activitystreams_sharedInbox.go | 182 + .../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 | 301 + .../gen_property_activitystreams_source.go | 3438 ++++++++ .../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 | 301 + .../gen_property_activitystreams_subject.go | 3438 ++++++++ .../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 | 301 + .../gen_property_activitystreams_tag.go | 7979 +++++++++++++++++++ .../activitystreams/property_target/gen_doc.go | 17 + .../activitystreams/property_target/gen_pkg.go | 301 + .../gen_property_activitystreams_target.go | 7986 +++++++++++++++++++ .../impl/activitystreams/property_to/gen_doc.go | 17 + .../impl/activitystreams/property_to/gen_pkg.go | 301 + .../property_to/gen_property_activitystreams_to.go | 7979 +++++++++++++++++++ .../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 | 29 + .../gen_property_activitystreams_url.go | 900 +++ .../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 | 199 + .../type_accept/gen_type_activitystreams_accept.go | 1895 +++++ .../impl/activitystreams/type_activity/gen_doc.go | 17 + .../impl/activitystreams/type_activity/gen_pkg.go | 199 + .../gen_type_activitystreams_activity.go | 1874 +++++ .../impl/activitystreams/type_add/gen_doc.go | 17 + .../impl/activitystreams/type_add/gen_pkg.go | 199 + .../type_add/gen_type_activitystreams_add.go | 1892 +++++ .../impl/activitystreams/type_announce/gen_doc.go | 17 + .../impl/activitystreams/type_announce/gen_pkg.go | 203 + .../gen_type_activitystreams_announce.go | 1913 +++++ .../activitystreams/type_application/gen_doc.go | 17 + .../activitystreams/type_application/gen_pkg.go | 241 + .../gen_type_activitystreams_application.go | 2279 ++++++ .../impl/activitystreams/type_arrive/gen_doc.go | 17 + .../impl/activitystreams/type_arrive/gen_pkg.go | 195 + .../type_arrive/gen_type_activitystreams_arrive.go | 1829 +++++ .../impl/activitystreams/type_article/gen_doc.go | 17 + .../impl/activitystreams/type_article/gen_pkg.go | 188 + .../gen_type_activitystreams_article.go | 1736 +++++ .../impl/activitystreams/type_audio/gen_doc.go | 17 + .../impl/activitystreams/type_audio/gen_pkg.go | 196 + .../type_audio/gen_type_activitystreams_audio.go | 1819 +++++ .../impl/activitystreams/type_block/gen_doc.go | 17 + .../impl/activitystreams/type_block/gen_pkg.go | 199 + .../type_block/gen_type_activitystreams_block.go | 1862 +++++ .../activitystreams/type_collection/gen_doc.go | 17 + .../activitystreams/type_collection/gen_pkg.go | 199 + .../gen_type_activitystreams_collection.go | 1875 +++++ .../activitystreams/type_collectionpage/gen_doc.go | 17 + .../activitystreams/type_collectionpage/gen_pkg.go | 211 + .../gen_type_activitystreams_collectionpage.go | 2002 +++++ .../impl/activitystreams/type_create/gen_doc.go | 17 + .../impl/activitystreams/type_create/gen_pkg.go | 199 + .../type_create/gen_type_activitystreams_create.go | 1866 +++++ .../impl/activitystreams/type_delete/gen_doc.go | 17 + .../impl/activitystreams/type_delete/gen_pkg.go | 199 + .../type_delete/gen_type_activitystreams_delete.go | 1867 +++++ .../impl/activitystreams/type_dislike/gen_doc.go | 17 + .../impl/activitystreams/type_dislike/gen_pkg.go | 199 + .../gen_type_activitystreams_dislike.go | 1859 +++++ .../impl/activitystreams/type_document/gen_doc.go | 17 + .../impl/activitystreams/type_document/gen_pkg.go | 196 + .../gen_type_activitystreams_document.go | 1820 +++++ .../impl/activitystreams/type_endpoints/gen_doc.go | 17 + .../impl/activitystreams/type_endpoints/gen_pkg.go | 50 + .../gen_type_activitystreams_endpoints.go | 250 + .../impl/activitystreams/type_event/gen_doc.go | 17 + .../impl/activitystreams/type_event/gen_pkg.go | 188 + .../type_event/gen_type_activitystreams_event.go | 1733 +++++ .../impl/activitystreams/type_flag/gen_doc.go | 17 + .../impl/activitystreams/type_flag/gen_pkg.go | 199 + .../type_flag/gen_type_activitystreams_flag.go | 1864 +++++ .../impl/activitystreams/type_follow/gen_doc.go | 17 + .../impl/activitystreams/type_follow/gen_pkg.go | 199 + .../type_follow/gen_type_activitystreams_follow.go | 1868 +++++ .../impl/activitystreams/type_group/gen_doc.go | 17 + .../impl/activitystreams/type_group/gen_pkg.go | 241 + .../type_group/gen_type_activitystreams_group.go | 2279 ++++++ .../impl/activitystreams/type_ignore/gen_doc.go | 17 + .../impl/activitystreams/type_ignore/gen_pkg.go | 199 + .../type_ignore/gen_type_activitystreams_ignore.go | 1868 +++++ .../impl/activitystreams/type_image/gen_doc.go | 17 + .../impl/activitystreams/type_image/gen_pkg.go | 204 + .../type_image/gen_type_activitystreams_image.go | 1910 +++++ .../type_intransitiveactivity/gen_doc.go | 17 + .../type_intransitiveactivity/gen_pkg.go | 195 + ...en_type_activitystreams_intransitiveactivity.go | 1833 +++++ .../impl/activitystreams/type_invite/gen_doc.go | 17 + .../impl/activitystreams/type_invite/gen_pkg.go | 199 + .../type_invite/gen_type_activitystreams_invite.go | 1876 +++++ .../impl/activitystreams/type_join/gen_doc.go | 17 + .../impl/activitystreams/type_join/gen_pkg.go | 199 + .../type_join/gen_type_activitystreams_join.go | 1866 +++++ .../impl/activitystreams/type_leave/gen_doc.go | 17 + .../impl/activitystreams/type_leave/gen_pkg.go | 199 + .../type_leave/gen_type_activitystreams_leave.go | 1881 +++++ .../impl/activitystreams/type_like/gen_doc.go | 17 + .../impl/activitystreams/type_like/gen_pkg.go | 203 + .../type_like/gen_type_activitystreams_like.go | 1905 +++++ .../impl/activitystreams/type_link/gen_doc.go | 17 + .../impl/activitystreams/type_link/gen_pkg.go | 91 + .../type_link/gen_type_activitystreams_link.go | 732 ++ .../impl/activitystreams/type_listen/gen_doc.go | 17 + .../impl/activitystreams/type_listen/gen_pkg.go | 199 + .../type_listen/gen_type_activitystreams_listen.go | 1862 +++++ .../impl/activitystreams/type_mention/gen_doc.go | 17 + .../impl/activitystreams/type_mention/gen_pkg.go | 91 + .../gen_type_activitystreams_mention.go | 725 ++ .../impl/activitystreams/type_move/gen_doc.go | 17 + .../impl/activitystreams/type_move/gen_pkg.go | 199 + .../type_move/gen_type_activitystreams_move.go | 1871 +++++ .../impl/activitystreams/type_note/gen_doc.go | 17 + .../impl/activitystreams/type_note/gen_pkg.go | 188 + .../type_note/gen_type_activitystreams_note.go | 1733 +++++ .../impl/activitystreams/type_object/gen_doc.go | 17 + .../impl/activitystreams/type_object/gen_pkg.go | 179 + .../type_object/gen_type_activitystreams_object.go | 1651 ++++ .../impl/activitystreams/type_offer/gen_doc.go | 17 + .../impl/activitystreams/type_offer/gen_pkg.go | 199 + .../type_offer/gen_type_activitystreams_offer.go | 1875 +++++ .../type_orderedcollection/gen_doc.go | 17 + .../type_orderedcollection/gen_pkg.go | 200 + .../gen_type_activitystreams_orderedcollection.go | 1875 +++++ .../type_orderedcollectionpage/gen_doc.go | 17 + .../type_orderedcollectionpage/gen_pkg.go | 216 + ...n_type_activitystreams_orderedcollectionpage.go | 2042 +++++ .../activitystreams/type_organization/gen_doc.go | 17 + .../activitystreams/type_organization/gen_pkg.go | 241 + .../gen_type_activitystreams_organization.go | 2279 ++++++ .../impl/activitystreams/type_page/gen_doc.go | 17 + .../impl/activitystreams/type_page/gen_pkg.go | 196 + .../type_page/gen_type_activitystreams_page.go | 1815 +++++ .../impl/activitystreams/type_person/gen_doc.go | 17 + .../impl/activitystreams/type_person/gen_pkg.go | 241 + .../type_person/gen_type_activitystreams_person.go | 2279 ++++++ .../impl/activitystreams/type_place/gen_doc.go | 17 + .../impl/activitystreams/type_place/gen_pkg.go | 208 + .../type_place/gen_type_activitystreams_place.go | 1953 +++++ .../impl/activitystreams/type_profile/gen_doc.go | 17 + .../impl/activitystreams/type_profile/gen_pkg.go | 192 + .../gen_type_activitystreams_profile.go | 1779 +++++ .../impl/activitystreams/type_question/gen_doc.go | 17 + .../impl/activitystreams/type_question/gen_pkg.go | 220 + .../gen_type_activitystreams_question.go | 2090 +++++ .../impl/activitystreams/type_read/gen_doc.go | 17 + .../impl/activitystreams/type_read/gen_pkg.go | 199 + .../type_read/gen_type_activitystreams_read.go | 1862 +++++ .../impl/activitystreams/type_reject/gen_doc.go | 17 + .../impl/activitystreams/type_reject/gen_pkg.go | 199 + .../type_reject/gen_type_activitystreams_reject.go | 1875 +++++ .../activitystreams/type_relationship/gen_doc.go | 17 + .../activitystreams/type_relationship/gen_pkg.go | 188 + .../gen_type_activitystreams_relationship.go | 1742 +++++ .../impl/activitystreams/type_remove/gen_doc.go | 17 + .../impl/activitystreams/type_remove/gen_pkg.go | 199 + .../type_remove/gen_type_activitystreams_remove.go | 1886 +++++ .../impl/activitystreams/type_service/gen_doc.go | 17 + .../impl/activitystreams/type_service/gen_pkg.go | 241 + .../gen_type_activitystreams_service.go | 2279 ++++++ .../type_tentativeaccept/gen_doc.go | 17 + .../type_tentativeaccept/gen_pkg.go | 199 + .../gen_type_activitystreams_tentativeaccept.go | 1870 +++++ .../type_tentativereject/gen_doc.go | 17 + .../type_tentativereject/gen_pkg.go | 199 + .../gen_type_activitystreams_tentativereject.go | 1870 +++++ .../impl/activitystreams/type_tombstone/gen_doc.go | 17 + .../impl/activitystreams/type_tombstone/gen_pkg.go | 187 + .../gen_type_activitystreams_tombstone.go | 1750 +++++ .../impl/activitystreams/type_travel/gen_doc.go | 17 + .../impl/activitystreams/type_travel/gen_pkg.go | 195 + .../type_travel/gen_type_activitystreams_travel.go | 1829 +++++ .../impl/activitystreams/type_undo/gen_doc.go | 17 + .../impl/activitystreams/type_undo/gen_pkg.go | 199 + .../type_undo/gen_type_activitystreams_undo.go | 1868 +++++ .../impl/activitystreams/type_update/gen_doc.go | 17 + .../impl/activitystreams/type_update/gen_pkg.go | 199 + .../type_update/gen_type_activitystreams_update.go | 1865 +++++ .../impl/activitystreams/type_video/gen_doc.go | 17 + .../impl/activitystreams/type_video/gen_pkg.go | 196 + .../type_video/gen_type_activitystreams_video.go | 1816 +++++ .../impl/activitystreams/type_view/gen_doc.go | 17 + .../impl/activitystreams/type_view/gen_pkg.go | 199 + .../type_view/gen_type_activitystreams_view.go | 1865 +++++ .../streams/impl/funkwhale/type_album/gen_doc.go | 17 + .../streams/impl/funkwhale/type_album/gen_pkg.go | 179 + .../type_album/gen_type_funkwhale_album.go | 1639 ++++ .../streams/impl/funkwhale/type_artist/gen_doc.go | 17 + .../streams/impl/funkwhale/type_artist/gen_pkg.go | 179 + .../type_artist/gen_type_funkwhale_artist.go | 1639 ++++ .../streams/impl/funkwhale/type_library/gen_doc.go | 17 + .../streams/impl/funkwhale/type_library/gen_pkg.go | 179 + .../type_library/gen_type_funkwhale_library.go | 1639 ++++ .../streams/impl/funkwhale/type_track/gen_doc.go | 17 + .../streams/impl/funkwhale/type_track/gen_pkg.go | 179 + .../type_track/gen_type_funkwhale_track.go | 1639 ++++ .../impl/gotosocial/property_always/gen_doc.go | 17 + .../impl/gotosocial/property_always/gen_pkg.go | 15 + .../gen_property_gotosocial_always.go | 503 ++ .../property_approvalrequired/gen_doc.go | 17 + .../property_approvalrequired/gen_pkg.go | 15 + .../gen_property_gotosocial_approvalRequired.go | 510 ++ .../impl/gotosocial/property_approvedby/gen_doc.go | 17 + .../impl/gotosocial/property_approvedby/gen_pkg.go | 15 + .../gen_property_gotosocial_approvedBy.go | 181 + .../property_automaticapproval/gen_doc.go | 17 + .../property_automaticapproval/gen_pkg.go | 15 + .../gen_property_gotosocial_automaticApproval.go | 511 ++ .../gotosocial/property_canannounce/gen_doc.go | 17 + .../gotosocial/property_canannounce/gen_pkg.go | 22 + .../gen_property_gotosocial_canAnnounce.go | 625 ++ .../impl/gotosocial/property_canlike/gen_doc.go | 17 + .../impl/gotosocial/property_canlike/gen_pkg.go | 22 + .../gen_property_gotosocial_canLike.go | 618 ++ .../impl/gotosocial/property_canquote/gen_doc.go | 17 + .../impl/gotosocial/property_canquote/gen_pkg.go | 22 + .../gen_property_gotosocial_canQuote.go | 618 ++ .../impl/gotosocial/property_canreply/gen_doc.go | 17 + .../impl/gotosocial/property_canreply/gen_pkg.go | 22 + .../gen_property_gotosocial_canReply.go | 618 ++ .../property_interactingobject/gen_doc.go | 17 + .../property_interactingobject/gen_pkg.go | 15 + .../gen_property_gotosocial_interactingObject.go | 511 ++ .../property_interactionpolicy/gen_doc.go | 17 + .../property_interactionpolicy/gen_pkg.go | 22 + .../gen_property_gotosocial_interactionPolicy.go | 630 ++ .../property_interactiontarget/gen_doc.go | 17 + .../property_interactiontarget/gen_pkg.go | 15 + .../gen_property_gotosocial_interactionTarget.go | 511 ++ .../gotosocial/property_manualapproval/gen_doc.go | 17 + .../gotosocial/property_manualapproval/gen_pkg.go | 15 + .../gen_property_gotosocial_manualApproval.go | 510 ++ .../gotosocial/type_announceapproval/gen_doc.go | 17 + .../gotosocial/type_announceapproval/gen_pkg.go | 179 + .../gen_type_gotosocial_announceapproval.go | 1641 ++++ .../type_announceauthorization/gen_doc.go | 17 + .../type_announceauthorization/gen_pkg.go | 189 + .../gen_type_gotosocial_announceauthorization.go | 1726 +++++ .../gotosocial/type_announcerequest/gen_doc.go | 17 + .../gotosocial/type_announcerequest/gen_pkg.go | 199 + .../gen_type_gotosocial_announcerequest.go | 1850 +++++ .../impl/gotosocial/type_canannounce/gen_doc.go | 17 + .../impl/gotosocial/type_canannounce/gen_pkg.go | 63 + .../gen_type_gotosocial_canannounce.go | 372 + .../impl/gotosocial/type_canlike/gen_doc.go | 17 + .../impl/gotosocial/type_canlike/gen_pkg.go | 63 + .../type_canlike/gen_type_gotosocial_canlike.go | 372 + .../impl/gotosocial/type_canquote/gen_doc.go | 17 + .../impl/gotosocial/type_canquote/gen_pkg.go | 63 + .../type_canquote/gen_type_gotosocial_canquote.go | 372 + .../impl/gotosocial/type_canreply/gen_doc.go | 17 + .../impl/gotosocial/type_canreply/gen_pkg.go | 63 + .../type_canreply/gen_type_gotosocial_canreply.go | 372 + .../gotosocial/type_interactionpolicy/gen_doc.go | 17 + .../gotosocial/type_interactionpolicy/gen_pkg.go | 62 + .../gen_type_gotosocial_interactionpolicy.go | 374 + .../impl/gotosocial/type_likeapproval/gen_doc.go | 17 + .../impl/gotosocial/type_likeapproval/gen_pkg.go | 179 + .../gen_type_gotosocial_likeapproval.go | 1640 ++++ .../gotosocial/type_likeauthorization/gen_doc.go | 17 + .../gotosocial/type_likeauthorization/gen_pkg.go | 189 + .../gen_type_gotosocial_likeauthorization.go | 1724 ++++ .../impl/gotosocial/type_likerequest/gen_doc.go | 17 + .../impl/gotosocial/type_likerequest/gen_pkg.go | 199 + .../gen_type_gotosocial_likerequest.go | 1849 +++++ .../impl/gotosocial/type_replyapproval/gen_doc.go | 17 + .../impl/gotosocial/type_replyapproval/gen_pkg.go | 179 + .../gen_type_gotosocial_replyapproval.go | 1640 ++++ .../gotosocial/type_replyauthorization/gen_doc.go | 17 + .../gotosocial/type_replyauthorization/gen_pkg.go | 189 + .../gen_type_gotosocial_replyauthorization.go | 1724 ++++ .../impl/gotosocial/type_replyrequest/gen_doc.go | 17 + .../impl/gotosocial/type_replyrequest/gen_pkg.go | 199 + .../gen_type_gotosocial_replyrequest.go | 1849 +++++ .../streams/impl/jsonld/property_id/gen_doc.go | 17 + .../streams/impl/jsonld/property_id/gen_pkg.go | 15 + .../jsonld/property_id/gen_property_jsonld_id.go | 179 + .../streams/impl/jsonld/property_type/gen_doc.go | 17 + .../streams/impl/jsonld/property_type/gen_pkg.go | 15 + .../property_type/gen_property_jsonld_type.go | 596 ++ .../streams/impl/schema/property_value/gen_doc.go | 17 + .../streams/impl/schema/property_value/gen_pkg.go | 15 + .../property_value/gen_property_schema_value.go | 203 + .../impl/schema/type_propertyvalue/gen_doc.go | 17 + .../impl/schema/type_propertyvalue/gen_pkg.go | 183 + .../gen_type_schema_propertyvalue.go | 1682 ++++ .../streams/impl/toot/property_blurhash/gen_doc.go | 17 + .../streams/impl/toot/property_blurhash/gen_pkg.go | 15 + .../gen_property_toot_blurhash.go | 203 + .../impl/toot/property_discoverable/gen_doc.go | 17 + .../impl/toot/property_discoverable/gen_pkg.go | 15 + .../gen_property_toot_discoverable.go | 204 + .../streams/impl/toot/property_featured/gen_doc.go | 17 + .../streams/impl/toot/property_featured/gen_pkg.go | 27 + .../gen_property_toot_featured.go | 268 + .../impl/toot/property_focalpoint/gen_doc.go | 17 + .../impl/toot/property_focalpoint/gen_pkg.go | 15 + .../gen_property_toot_focalPoint.go | 531 ++ .../impl/toot/property_indexable/gen_doc.go | 17 + .../impl/toot/property_indexable/gen_pkg.go | 15 + .../gen_property_toot_indexable.go | 203 + .../toot/property_signaturealgorithm/gen_doc.go | 17 + .../toot/property_signaturealgorithm/gen_pkg.go | 15 + .../gen_property_toot_signatureAlgorithm.go | 204 + .../impl/toot/property_signaturevalue/gen_doc.go | 17 + .../impl/toot/property_signaturevalue/gen_pkg.go | 15 + .../gen_property_toot_signatureValue.go | 204 + .../impl/toot/property_voterscount/gen_doc.go | 17 + .../impl/toot/property_voterscount/gen_pkg.go | 15 + .../gen_property_toot_votersCount.go | 205 + .../streams/impl/toot/type_emoji/gen_doc.go | 17 + .../streams/impl/toot/type_emoji/gen_pkg.go | 179 + .../impl/toot/type_emoji/gen_type_toot_emoji.go | 1655 ++++ .../streams/impl/toot/type_hashtag/gen_doc.go | 17 + .../streams/impl/toot/type_hashtag/gen_pkg.go | 91 + .../toot/type_hashtag/gen_type_toot_hashtag.go | 726 ++ .../impl/toot/type_identityproof/gen_doc.go | 17 + .../impl/toot/type_identityproof/gen_pkg.go | 187 + .../gen_type_toot_identityproof.go | 1724 ++++ .../impl/w3idsecurityv1/property_owner/gen_doc.go | 17 + .../impl/w3idsecurityv1/property_owner/gen_pkg.go | 15 + .../gen_property_w3idsecurityv1_owner.go | 181 + .../w3idsecurityv1/property_publickey/gen_doc.go | 17 + .../w3idsecurityv1/property_publickey/gen_pkg.go | 22 + .../gen_property_w3idsecurityv1_publicKey.go | 621 ++ .../property_publickeypem/gen_doc.go | 17 + .../property_publickeypem/gen_pkg.go | 15 + .../gen_property_w3idsecurityv1_publicKeyPem.go | 204 + .../impl/w3idsecurityv1/type_publickey/gen_doc.go | 17 + .../impl/w3idsecurityv1/type_publickey/gen_pkg.go | 54 + .../gen_type_w3idsecurityv1_publickey.go | 289 + .../activity/streams/util.go | 222 + .../activity/streams/values/anyURI/gen_anyURI.go | 37 + .../activity/streams/values/bcp47/gen_bcp47.go | 26 + .../activity/streams/values/boolean/gen_boolean.go | 35 + .../streams/values/dateTime/gen_dateTime.go | 39 + .../streams/values/duration/gen_duration.go | 146 + .../activity/streams/values/float/gen_float.go | 26 + .../streams/values/langString/gen_langString.go | 63 + .../nonNegativeInteger/gen_nonNegativeInteger.go | 33 + .../activity/streams/values/rfc2045/gen_rfc2045.go | 26 + .../activity/streams/values/rfc5988/gen_rfc5988.go | 26 + .../activity/streams/values/string/gen_string.go | 26 + .../activity/streams/vocab/gen_doc.go | 61 + .../activity/streams/vocab/gen_pkg.go | 23 + ..._property_activitystreams_accuracy_interface.go | 63 + ...gen_property_activitystreams_actor_interface.go | 2063 +++++ ...operty_activitystreams_alsoKnownAs_interface.go | 131 + ..._property_activitystreams_altitude_interface.go | 65 + ...gen_property_activitystreams_anyOf_interface.go | 2042 +++++ ...roperty_activitystreams_attachment_interface.go | 2056 +++++ ...perty_activitystreams_attributedTo_interface.go | 2073 +++++ ..._property_activitystreams_audience_interface.go | 2057 +++++ .../gen_property_activitystreams_bcc_interface.go | 2029 +++++ .../gen_property_activitystreams_bto_interface.go | 2029 +++++ .../gen_property_activitystreams_cc_interface.go | 2022 +++++ ...en_property_activitystreams_closed_interface.go | 2086 +++++ ...n_property_activitystreams_content_interface.go | 211 + ...n_property_activitystreams_context_interface.go | 2056 +++++ ...n_property_activitystreams_current_interface.go | 145 + ...n_property_activitystreams_deleted_interface.go | 64 + ...property_activitystreams_describes_interface.go | 838 ++ ..._property_activitystreams_duration_interface.go | 68 + ...n_property_activitystreams_endTime_interface.go | 66 + ...property_activitystreams_endpoints_interface.go | 159 + ...gen_property_activitystreams_first_interface.go | 135 + ...property_activitystreams_followers_interface.go | 129 + ...property_activitystreams_following_interface.go | 130 + ...roperty_activitystreams_formerType_interface.go | 2001 +++++ ...property_activitystreams_generator_interface.go | 2054 +++++ ...en_property_activitystreams_height_interface.go | 64 + .../gen_property_activitystreams_href_interface.go | 61 + ..._property_activitystreams_hreflang_interface.go | 63 + .../gen_property_activitystreams_icon_interface.go | 276 + ...gen_property_activitystreams_image_interface.go | 269 + ...property_activitystreams_inReplyTo_interface.go | 2064 +++++ ...gen_property_activitystreams_inbox_interface.go | 105 + ...roperty_activitystreams_instrument_interface.go | 2062 +++++ ...gen_property_activitystreams_items_interface.go | 2042 +++++ .../gen_property_activitystreams_last_interface.go | 134 + ..._property_activitystreams_latitude_interface.go | 63 + ...gen_property_activitystreams_liked_interface.go | 129 + ...gen_property_activitystreams_likes_interface.go | 105 + ..._property_activitystreams_location_interface.go | 2059 +++++ ...property_activitystreams_longitude_interface.go | 63 + ...ystreams_manuallyApprovesFollowers_interface.go | 53 + ...property_activitystreams_mediaType_interface.go | 65 + ...n_property_activitystreams_movedTo_interface.go | 54 + .../gen_property_activitystreams_name_interface.go | 199 + .../gen_property_activitystreams_next_interface.go | 142 + ...en_property_activitystreams_object_interface.go | 2062 +++++ ...gen_property_activitystreams_oneOf_interface.go | 2042 +++++ ...perty_activitystreams_orderedItems_interface.go | 2062 +++++ ...en_property_activitystreams_origin_interface.go | 2043 +++++ ...en_property_activitystreams_outbox_interface.go | 105 + ...en_property_activitystreams_partOf_interface.go | 156 + ..._activitystreams_preferredUsername_interface.go | 89 + .../gen_property_activitystreams_prev_interface.go | 142 + ...n_property_activitystreams_preview_interface.go | 2047 +++++ ...property_activitystreams_published_interface.go | 64 + ...en_property_activitystreams_radius_interface.go | 65 + .../gen_property_activitystreams_rel_interface.go | 146 + ...perty_activitystreams_relationship_interface.go | 1984 +++++ ...n_property_activitystreams_replies_interface.go | 125 + ...en_property_activitystreams_result_interface.go | 2041 +++++ ...property_activitystreams_sensitive_interface.go | 132 + ...operty_activitystreams_sharedInbox_interface.go | 56 + ...en_property_activitystreams_shares_interface.go | 106 + ...en_property_activitystreams_source_interface.go | 880 +++ ...roperty_activitystreams_startIndex_interface.go | 73 + ...property_activitystreams_startTime_interface.go | 66 + ...n_property_activitystreams_streams_interface.go | 252 + ...n_property_activitystreams_subject_interface.go | 875 +++ ...n_property_activitystreams_summary_interface.go | 200 + .../gen_property_activitystreams_tag_interface.go | 2033 +++++ ...en_property_activitystreams_target_interface.go | 2050 +++++ .../gen_property_activitystreams_to_interface.go | 2022 +++++ ...roperty_activitystreams_totalItems_interface.go | 74 + ...gen_property_activitystreams_units_interface.go | 80 + ...n_property_activitystreams_updated_interface.go | 64 + .../gen_property_activitystreams_url_interface.go | 272 + ...gen_property_activitystreams_width_interface.go | 64 + .../gen_property_gotosocial_always_interface.go | 131 + ...operty_gotosocial_approvalRequired_interface.go | 133 + ...gen_property_gotosocial_approvedBy_interface.go | 56 + ...perty_gotosocial_automaticApproval_interface.go | 132 + ...en_property_gotosocial_canAnnounce_interface.go | 158 + .../gen_property_gotosocial_canLike_interface.go | 155 + .../gen_property_gotosocial_canQuote_interface.go | 156 + .../gen_property_gotosocial_canReply_interface.go | 156 + ...perty_gotosocial_interactingObject_interface.go | 130 + ...perty_gotosocial_interactionPolicy_interface.go | 164 + ...perty_gotosocial_interactionTarget_interface.go | 130 + ...property_gotosocial_manualApproval_interface.go | 132 + .../vocab/gen_property_jsonld_id_interface.go | 52 + .../vocab/gen_property_jsonld_type_interface.go | 158 + .../vocab/gen_property_schema_value_interface.go | 52 + .../vocab/gen_property_toot_blurhash_interface.go | 52 + .../gen_property_toot_discoverable_interface.go | 52 + .../vocab/gen_property_toot_featured_interface.go | 80 + .../gen_property_toot_focalPoint_interface.go | 130 + .../vocab/gen_property_toot_indexable_interface.go | 52 + ...n_property_toot_signatureAlgorithm_interface.go | 52 + .../gen_property_toot_signatureValue_interface.go | 52 + .../gen_property_toot_votersCount_interface.go | 54 + .../gen_property_w3idsecurityv1_owner_interface.go | 52 + ...operty_w3idsecurityv1_publicKeyPem_interface.go | 52 + ..._property_w3idsecurityv1_publicKey_interface.go | 159 + .../gen_type_activitystreams_accept_interface.go | 265 + .../gen_type_activitystreams_activity_interface.go | 245 + .../gen_type_activitystreams_add_interface.go | 267 + .../gen_type_activitystreams_announce_interface.go | 252 + ...n_type_activitystreams_application_interface.go | 286 + .../gen_type_activitystreams_arrive_interface.go | 241 + .../gen_type_activitystreams_article_interface.go | 223 + .../gen_type_activitystreams_audio_interface.go | 232 + .../gen_type_activitystreams_block_interface.go | 237 + ...en_type_activitystreams_collection_interface.go | 246 + ...ype_activitystreams_collectionpage_interface.go | 262 + .../gen_type_activitystreams_create_interface.go | 241 + .../gen_type_activitystreams_delete_interface.go | 242 + .../gen_type_activitystreams_dislike_interface.go | 235 + .../gen_type_activitystreams_document_interface.go | 229 + ...gen_type_activitystreams_endpoints_interface.go | 44 + .../gen_type_activitystreams_event_interface.go | 219 + .../gen_type_activitystreams_flag_interface.go | 239 + .../gen_type_activitystreams_follow_interface.go | 243 + .../gen_type_activitystreams_group_interface.go | 285 + .../gen_type_activitystreams_ignore_interface.go | 238 + .../gen_type_activitystreams_image_interface.go | 249 + ...tivitystreams_intransitiveactivity_interface.go | 238 + .../gen_type_activitystreams_invite_interface.go | 251 + .../gen_type_activitystreams_join_interface.go | 241 + .../gen_type_activitystreams_leave_interface.go | 256 + .../gen_type_activitystreams_like_interface.go | 243 + .../gen_type_activitystreams_link_interface.go | 106 + .../gen_type_activitystreams_listen_interface.go | 237 + .../gen_type_activitystreams_mention_interface.go | 100 + .../gen_type_activitystreams_move_interface.go | 246 + .../gen_type_activitystreams_note_interface.go | 219 + .../gen_type_activitystreams_object_interface.go | 211 + .../gen_type_activitystreams_offer_interface.go | 245 + ..._activitystreams_orderedcollection_interface.go | 245 + ...ivitystreams_orderedcollectionpage_interface.go | 267 + ..._type_activitystreams_organization_interface.go | 286 + .../gen_type_activitystreams_page_interface.go | 228 + .../gen_type_activitystreams_person_interface.go | 285 + .../gen_type_activitystreams_place_interface.go | 254 + .../gen_type_activitystreams_profile_interface.go | 229 + .../gen_type_activitystreams_question_interface.go | 281 + .../gen_type_activitystreams_read_interface.go | 237 + .../gen_type_activitystreams_reject_interface.go | 245 + ..._type_activitystreams_relationship_interface.go | 229 + .../gen_type_activitystreams_remove_interface.go | 261 + .../gen_type_activitystreams_service_interface.go | 286 + ...pe_activitystreams_tentativeaccept_interface.go | 245 + ...pe_activitystreams_tentativereject_interface.go | 245 + ...gen_type_activitystreams_tombstone_interface.go | 237 + .../gen_type_activitystreams_travel_interface.go | 241 + .../gen_type_activitystreams_undo_interface.go | 243 + .../gen_type_activitystreams_update_interface.go | 240 + .../gen_type_activitystreams_video_interface.go | 229 + .../gen_type_activitystreams_view_interface.go | 240 + .../vocab/gen_type_funkwhale_album_interface.go | 199 + .../vocab/gen_type_funkwhale_artist_interface.go | 199 + .../vocab/gen_type_funkwhale_library_interface.go | 200 + .../vocab/gen_type_funkwhale_track_interface.go | 199 + ...n_type_gotosocial_announceapproval_interface.go | 201 + ...e_gotosocial_announceauthorization_interface.go | 210 + ...en_type_gotosocial_announcerequest_interface.go | 225 + .../gen_type_gotosocial_canannounce_interface.go | 55 + .../vocab/gen_type_gotosocial_canlike_interface.go | 55 + .../gen_type_gotosocial_canquote_interface.go | 55 + .../gen_type_gotosocial_canreply_interface.go | 55 + ..._type_gotosocial_interactionpolicy_interface.go | 56 + .../gen_type_gotosocial_likeapproval_interface.go | 201 + ..._type_gotosocial_likeauthorization_interface.go | 210 + .../gen_type_gotosocial_likerequest_interface.go | 225 + .../gen_type_gotosocial_replyapproval_interface.go | 201 + ...type_gotosocial_replyauthorization_interface.go | 210 + .../gen_type_gotosocial_replyrequest_interface.go | 225 + .../gen_type_schema_propertyvalue_interface.go | 207 + .../streams/vocab/gen_type_toot_emoji_interface.go | 216 + .../vocab/gen_type_toot_hashtag_interface.go | 102 + .../vocab/gen_type_toot_identityproof_interface.go | 211 + .../gen_type_w3idsecurityv1_publickey_interface.go | 46 + .../exif-terminator/LICENSE | 661 ++ .../exif-terminator/README.md | 116 + .../exif-terminator/exif.go | 53 + .../exif-terminator/jpeg.go | 132 + .../exif-terminator/png.go | 85 + .../exif-terminator/terminator.go | 146 + .../exif-terminator/webp.go | 109 + .../go-jpeg-image-structure/v2/.MODULE_ROOT | 0 .../go-jpeg-image-structure/v2/LICENSE | 9 + .../go-jpeg-image-structure/v2/README.md | 7 + .../go-jpeg-image-structure/v2/markers.go | 212 + .../go-jpeg-image-structure/v2/media_parser.go | 139 + .../go-jpeg-image-structure/v2/segment.go | 352 + .../go-jpeg-image-structure/v2/segment_list.go | 416 + .../go-jpeg-image-structure/v2/splitter.go | 437 ++ .../go-jpeg-image-structure/v2/testing_common.go | 73 + .../go-jpeg-image-structure/v2/utility.go | 110 + .../go-png-image-structure/v2/.MODULE_ROOT | 0 .../go-png-image-structure/v2/LICENSE | 9 + .../go-png-image-structure/v2/chunk_decoder.go | 81 + .../go-png-image-structure/v2/media_parser.go | 85 + .../go-png-image-structure/v2/png.go | 390 + .../go-png-image-structure/v2/testing_common.go | 77 + .../go-png-image-structure/v2/utility.go | 67 + .../code.superseriousbusiness.org/httpsig/LICENSE | 29 + .../httpsig/README.md | 101 + .../httpsig/algorithms.go | 532 ++ .../httpsig/digest.go | 120 + .../httpsig/httpsig.go | 413 + .../httpsig/signing.go | 350 + .../httpsig/verifying.go | 188 + .../oauth2/v4/.gitignore | 33 + .../oauth2/v4/LICENSE | 21 + .../oauth2/v4/README.md | 3 + .../oauth2/v4/const.go | 76 + .../code.superseriousbusiness.org/oauth2/v4/doc.go | 24 + .../oauth2/v4/errors/error.go | 19 + .../oauth2/v4/errors/response.go | 84 + .../oauth2/v4/generate.go | 28 + .../oauth2/v4/generates/access.go | 38 + .../oauth2/v4/generates/authorize.go | 30 + .../oauth2/v4/generates/jwt_access.go | 104 + .../oauth2/v4/go.test.sh | 12 + .../oauth2/v4/manage.go | 50 + .../oauth2/v4/manage/config.go | 39 + .../oauth2/v4/manage/manager.go | 504 ++ .../oauth2/v4/manage/util.go | 30 + .../oauth2/v4/model.go | 59 + .../oauth2/v4/models/client.go | 46 + .../oauth2/v4/models/token.go | 186 + .../oauth2/v4/server/config.go | 50 + .../oauth2/v4/server/handler.go | 66 + .../oauth2/v4/server/server.go | 589 ++ .../oauth2/v4/server/server_config.go | 85 + .../oauth2/v4/store.go | 36 + .../superseriousbusiness/activity/LICENSE | 29 - .../superseriousbusiness/activity/pub/README.md | 270 - .../superseriousbusiness/activity/pub/activity.go | 49 - .../superseriousbusiness/activity/pub/actor.go | 128 - .../activity/pub/base_actor.go | 475 -- .../superseriousbusiness/activity/pub/clock.go | 11 - .../activity/pub/common_behavior.go | 90 - .../superseriousbusiness/activity/pub/database.go | 152 - .../activity/pub/delegate_actor.go | 249 - .../superseriousbusiness/activity/pub/doc.go | 9 - .../activity/pub/federating_protocol.go | 125 - .../activity/pub/federating_wrapped_callbacks.go | 917 --- .../superseriousbusiness/activity/pub/handlers.go | 115 - .../activity/pub/property_interfaces.go | 118 - .../activity/pub/side_effect_actor.go | 1047 --- .../activity/pub/social_protocol.go | 83 - .../activity/pub/social_wrapped_callbacks.go | 534 -- .../superseriousbusiness/activity/pub/transport.go | 219 - .../superseriousbusiness/activity/pub/util.go | 1077 --- .../superseriousbusiness/activity/pub/version.go | 15 - .../activity/streams/README.md | 152 - .../activity/streams/gen_consts.go | 552 -- .../activity/streams/gen_doc.go | 51 - .../activity/streams/gen_init.go | 457 -- .../activity/streams/gen_json_resolver.go | 1187 --- .../activity/streams/gen_manager.go | 2528 ------ .../streams/gen_pkg_activitystreams_disjoint.go | 392 - .../streams/gen_pkg_activitystreams_extendedby.go | 447 -- .../streams/gen_pkg_activitystreams_extends.go | 392 - .../streams/gen_pkg_activitystreams_isorextends.go | 395 - ...en_pkg_activitystreams_property_constructors.go | 546 -- .../gen_pkg_activitystreams_type_constructors.go | 340 - .../activity/streams/gen_pkg_funkwhale_disjoint.go | 35 - .../streams/gen_pkg_funkwhale_extendedby.go | 39 - .../activity/streams/gen_pkg_funkwhale_extends.go | 35 - .../streams/gen_pkg_funkwhale_isorextends.go | 35 - .../streams/gen_pkg_funkwhale_type_constructors.go | 31 - .../streams/gen_pkg_gotosocial_disjoint.go | 105 - .../streams/gen_pkg_gotosocial_extendedby.go | 119 - .../activity/streams/gen_pkg_gotosocial_extends.go | 105 - .../streams/gen_pkg_gotosocial_isorextends.go | 106 - .../gen_pkg_gotosocial_property_constructors.go | 87 - .../gen_pkg_gotosocial_type_constructors.go | 91 - .../gen_pkg_jsonld_property_constructors.go | 19 - .../activity/streams/gen_pkg_schema_disjoint.go | 14 - .../activity/streams/gen_pkg_schema_extendedby.go | 15 - .../activity/streams/gen_pkg_schema_extends.go | 14 - .../activity/streams/gen_pkg_schema_isorextends.go | 14 - .../gen_pkg_schema_property_constructors.go | 13 - .../streams/gen_pkg_schema_type_constructors.go | 13 - .../activity/streams/gen_pkg_toot_disjoint.go | 27 - .../activity/streams/gen_pkg_toot_extendedby.go | 31 - .../activity/streams/gen_pkg_toot_extends.go | 26 - .../activity/streams/gen_pkg_toot_isorextends.go | 28 - .../streams/gen_pkg_toot_property_constructors.go | 56 - .../streams/gen_pkg_toot_type_constructors.go | 25 - .../streams/gen_pkg_w3idsecurityv1_disjoint.go | 14 - .../streams/gen_pkg_w3idsecurityv1_extendedby.go | 15 - .../streams/gen_pkg_w3idsecurityv1_extends.go | 14 - .../streams/gen_pkg_w3idsecurityv1_isorextends.go | 14 - ...gen_pkg_w3idsecurityv1_property_constructors.go | 28 - .../gen_pkg_w3idsecurityv1_type_constructors.go | 13 - .../activity/streams/gen_resolver_utils.go | 289 - .../streams/gen_type_predicated_resolver.go | 1076 --- .../activity/streams/gen_type_resolver.go | 909 --- .../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 | 301 - .../gen_property_activitystreams_actor.go | 7985 ------------------- .../property_alsoknownas/gen_doc.go | 17 - .../property_alsoknownas/gen_pkg.go | 15 - .../gen_property_activitystreams_alsoKnownAs.go | 509 -- .../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 | 301 - .../gen_property_activitystreams_anyOf.go | 7985 ------------------- .../activitystreams/property_attachment/gen_doc.go | 17 - .../activitystreams/property_attachment/gen_pkg.go | 301 - .../gen_property_activitystreams_attachment.go | 8001 ------------------- .../property_attributedto/gen_doc.go | 17 - .../property_attributedto/gen_pkg.go | 301 - .../gen_property_activitystreams_attributedTo.go | 8044 ------------------- .../activitystreams/property_audience/gen_doc.go | 17 - .../activitystreams/property_audience/gen_pkg.go | 301 - .../gen_property_activitystreams_audience.go | 7997 ------------------- .../impl/activitystreams/property_bcc/gen_doc.go | 17 - .../impl/activitystreams/property_bcc/gen_pkg.go | 301 - .../gen_property_activitystreams_bcc.go | 7979 ------------------- .../impl/activitystreams/property_bto/gen_doc.go | 17 - .../impl/activitystreams/property_bto/gen_pkg.go | 301 - .../gen_property_activitystreams_bto.go | 7979 ------------------- .../impl/activitystreams/property_cc/gen_doc.go | 17 - .../impl/activitystreams/property_cc/gen_pkg.go | 301 - .../property_cc/gen_property_activitystreams_cc.go | 7979 ------------------- .../activitystreams/property_closed/gen_doc.go | 17 - .../activitystreams/property_closed/gen_pkg.go | 301 - .../gen_property_activitystreams_closed.go | 8195 -------------------- .../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 | 301 - .../gen_property_activitystreams_context.go | 7996 ------------------- .../activitystreams/property_current/gen_doc.go | 17 - .../activitystreams/property_current/gen_pkg.go | 38 - .../gen_property_activitystreams_current.go | 404 - .../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 | 290 - .../gen_property_activitystreams_describes.go | 3301 -------- .../activitystreams/property_duration/gen_doc.go | 17 - .../activitystreams/property_duration/gen_pkg.go | 15 - .../gen_property_activitystreams_duration.go | 204 - .../activitystreams/property_endpoints/gen_doc.go | 17 - .../activitystreams/property_endpoints/gen_pkg.go | 22 - .../gen_property_activitystreams_endpoints.go | 621 -- .../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 | 38 - .../gen_property_activitystreams_first.go | 404 - .../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 | 290 - .../gen_property_activitystreams_formerType.go | 7790 ------------------- .../activitystreams/property_generator/gen_doc.go | 17 - .../activitystreams/property_generator/gen_pkg.go | 301 - .../gen_property_activitystreams_generator.go | 7998 ------------------- .../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 | 33 - .../gen_property_activitystreams_icon.go | 928 --- .../impl/activitystreams/property_image/gen_doc.go | 17 - .../impl/activitystreams/property_image/gen_pkg.go | 33 - .../gen_property_activitystreams_image.go | 928 --- .../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 | 301 - .../gen_property_activitystreams_inReplyTo.go | 7998 ------------------- .../activitystreams/property_instrument/gen_doc.go | 17 - .../activitystreams/property_instrument/gen_pkg.go | 301 - .../gen_property_activitystreams_instrument.go | 8001 ------------------- .../impl/activitystreams/property_items/gen_doc.go | 17 - .../impl/activitystreams/property_items/gen_pkg.go | 301 - .../gen_property_activitystreams_items.go | 7985 ------------------- .../impl/activitystreams/property_last/gen_doc.go | 17 - .../impl/activitystreams/property_last/gen_pkg.go | 38 - .../gen_property_activitystreams_last.go | 404 - .../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 | 301 - .../gen_property_activitystreams_location.go | 7997 ------------------- .../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 - .../activitystreams/property_movedto/gen_doc.go | 17 - .../activitystreams/property_movedto/gen_pkg.go | 15 - .../gen_property_activitystreams_movedTo.go | 181 - .../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 | 38 - .../gen_property_activitystreams_next.go | 404 - .../activitystreams/property_object/gen_doc.go | 17 - .../activitystreams/property_object/gen_pkg.go | 301 - .../gen_property_activitystreams_object.go | 7986 ------------------- .../impl/activitystreams/property_oneof/gen_doc.go | 17 - .../impl/activitystreams/property_oneof/gen_pkg.go | 301 - .../gen_property_activitystreams_oneOf.go | 7985 ------------------- .../property_ordereditems/gen_doc.go | 17 - .../property_ordereditems/gen_pkg.go | 301 - .../gen_property_activitystreams_orderedItems.go | 8044 ------------------- .../activitystreams/property_origin/gen_doc.go | 17 - .../activitystreams/property_origin/gen_pkg.go | 301 - .../gen_property_activitystreams_origin.go | 7986 ------------------- .../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 | 46 - .../gen_property_activitystreams_partOf.go | 497 -- .../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 | 38 - .../gen_property_activitystreams_prev.go | 404 - .../activitystreams/property_preview/gen_doc.go | 17 - .../activitystreams/property_preview/gen_pkg.go | 301 - .../gen_property_activitystreams_preview.go | 7996 ------------------- .../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 | 290 - .../gen_property_activitystreams_relationship.go | 7728 ------------------ .../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 | 301 - .../gen_property_activitystreams_result.go | 7986 ------------------- .../activitystreams/property_sensitive/gen_doc.go | 17 - .../activitystreams/property_sensitive/gen_pkg.go | 15 - .../gen_property_activitystreams_sensitive.go | 531 -- .../property_sharedinbox/gen_doc.go | 17 - .../property_sharedinbox/gen_pkg.go | 15 - .../gen_property_activitystreams_sharedInbox.go | 182 - .../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 | 301 - .../gen_property_activitystreams_source.go | 3438 -------- .../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 | 301 - .../gen_property_activitystreams_subject.go | 3438 -------- .../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 | 301 - .../gen_property_activitystreams_tag.go | 7979 ------------------- .../activitystreams/property_target/gen_doc.go | 17 - .../activitystreams/property_target/gen_pkg.go | 301 - .../gen_property_activitystreams_target.go | 7986 ------------------- .../impl/activitystreams/property_to/gen_doc.go | 17 - .../impl/activitystreams/property_to/gen_pkg.go | 301 - .../property_to/gen_property_activitystreams_to.go | 7979 ------------------- .../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 | 29 - .../gen_property_activitystreams_url.go | 900 --- .../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 | 199 - .../type_accept/gen_type_activitystreams_accept.go | 1895 ----- .../impl/activitystreams/type_activity/gen_doc.go | 17 - .../impl/activitystreams/type_activity/gen_pkg.go | 199 - .../gen_type_activitystreams_activity.go | 1874 ----- .../impl/activitystreams/type_add/gen_doc.go | 17 - .../impl/activitystreams/type_add/gen_pkg.go | 199 - .../type_add/gen_type_activitystreams_add.go | 1892 ----- .../impl/activitystreams/type_announce/gen_doc.go | 17 - .../impl/activitystreams/type_announce/gen_pkg.go | 203 - .../gen_type_activitystreams_announce.go | 1913 ----- .../activitystreams/type_application/gen_doc.go | 17 - .../activitystreams/type_application/gen_pkg.go | 241 - .../gen_type_activitystreams_application.go | 2279 ------ .../impl/activitystreams/type_arrive/gen_doc.go | 17 - .../impl/activitystreams/type_arrive/gen_pkg.go | 195 - .../type_arrive/gen_type_activitystreams_arrive.go | 1829 ----- .../impl/activitystreams/type_article/gen_doc.go | 17 - .../impl/activitystreams/type_article/gen_pkg.go | 188 - .../gen_type_activitystreams_article.go | 1736 ----- .../impl/activitystreams/type_audio/gen_doc.go | 17 - .../impl/activitystreams/type_audio/gen_pkg.go | 196 - .../type_audio/gen_type_activitystreams_audio.go | 1819 ----- .../impl/activitystreams/type_block/gen_doc.go | 17 - .../impl/activitystreams/type_block/gen_pkg.go | 199 - .../type_block/gen_type_activitystreams_block.go | 1862 ----- .../activitystreams/type_collection/gen_doc.go | 17 - .../activitystreams/type_collection/gen_pkg.go | 199 - .../gen_type_activitystreams_collection.go | 1875 ----- .../activitystreams/type_collectionpage/gen_doc.go | 17 - .../activitystreams/type_collectionpage/gen_pkg.go | 211 - .../gen_type_activitystreams_collectionpage.go | 2002 ----- .../impl/activitystreams/type_create/gen_doc.go | 17 - .../impl/activitystreams/type_create/gen_pkg.go | 199 - .../type_create/gen_type_activitystreams_create.go | 1866 ----- .../impl/activitystreams/type_delete/gen_doc.go | 17 - .../impl/activitystreams/type_delete/gen_pkg.go | 199 - .../type_delete/gen_type_activitystreams_delete.go | 1867 ----- .../impl/activitystreams/type_dislike/gen_doc.go | 17 - .../impl/activitystreams/type_dislike/gen_pkg.go | 199 - .../gen_type_activitystreams_dislike.go | 1859 ----- .../impl/activitystreams/type_document/gen_doc.go | 17 - .../impl/activitystreams/type_document/gen_pkg.go | 196 - .../gen_type_activitystreams_document.go | 1820 ----- .../impl/activitystreams/type_endpoints/gen_doc.go | 17 - .../impl/activitystreams/type_endpoints/gen_pkg.go | 50 - .../gen_type_activitystreams_endpoints.go | 250 - .../impl/activitystreams/type_event/gen_doc.go | 17 - .../impl/activitystreams/type_event/gen_pkg.go | 188 - .../type_event/gen_type_activitystreams_event.go | 1733 ----- .../impl/activitystreams/type_flag/gen_doc.go | 17 - .../impl/activitystreams/type_flag/gen_pkg.go | 199 - .../type_flag/gen_type_activitystreams_flag.go | 1864 ----- .../impl/activitystreams/type_follow/gen_doc.go | 17 - .../impl/activitystreams/type_follow/gen_pkg.go | 199 - .../type_follow/gen_type_activitystreams_follow.go | 1868 ----- .../impl/activitystreams/type_group/gen_doc.go | 17 - .../impl/activitystreams/type_group/gen_pkg.go | 241 - .../type_group/gen_type_activitystreams_group.go | 2279 ------ .../impl/activitystreams/type_ignore/gen_doc.go | 17 - .../impl/activitystreams/type_ignore/gen_pkg.go | 199 - .../type_ignore/gen_type_activitystreams_ignore.go | 1868 ----- .../impl/activitystreams/type_image/gen_doc.go | 17 - .../impl/activitystreams/type_image/gen_pkg.go | 204 - .../type_image/gen_type_activitystreams_image.go | 1910 ----- .../type_intransitiveactivity/gen_doc.go | 17 - .../type_intransitiveactivity/gen_pkg.go | 195 - ...en_type_activitystreams_intransitiveactivity.go | 1833 ----- .../impl/activitystreams/type_invite/gen_doc.go | 17 - .../impl/activitystreams/type_invite/gen_pkg.go | 199 - .../type_invite/gen_type_activitystreams_invite.go | 1876 ----- .../impl/activitystreams/type_join/gen_doc.go | 17 - .../impl/activitystreams/type_join/gen_pkg.go | 199 - .../type_join/gen_type_activitystreams_join.go | 1866 ----- .../impl/activitystreams/type_leave/gen_doc.go | 17 - .../impl/activitystreams/type_leave/gen_pkg.go | 199 - .../type_leave/gen_type_activitystreams_leave.go | 1881 ----- .../impl/activitystreams/type_like/gen_doc.go | 17 - .../impl/activitystreams/type_like/gen_pkg.go | 203 - .../type_like/gen_type_activitystreams_like.go | 1905 ----- .../impl/activitystreams/type_link/gen_doc.go | 17 - .../impl/activitystreams/type_link/gen_pkg.go | 91 - .../type_link/gen_type_activitystreams_link.go | 732 -- .../impl/activitystreams/type_listen/gen_doc.go | 17 - .../impl/activitystreams/type_listen/gen_pkg.go | 199 - .../type_listen/gen_type_activitystreams_listen.go | 1862 ----- .../impl/activitystreams/type_mention/gen_doc.go | 17 - .../impl/activitystreams/type_mention/gen_pkg.go | 91 - .../gen_type_activitystreams_mention.go | 725 -- .../impl/activitystreams/type_move/gen_doc.go | 17 - .../impl/activitystreams/type_move/gen_pkg.go | 199 - .../type_move/gen_type_activitystreams_move.go | 1871 ----- .../impl/activitystreams/type_note/gen_doc.go | 17 - .../impl/activitystreams/type_note/gen_pkg.go | 188 - .../type_note/gen_type_activitystreams_note.go | 1733 ----- .../impl/activitystreams/type_object/gen_doc.go | 17 - .../impl/activitystreams/type_object/gen_pkg.go | 179 - .../type_object/gen_type_activitystreams_object.go | 1651 ---- .../impl/activitystreams/type_offer/gen_doc.go | 17 - .../impl/activitystreams/type_offer/gen_pkg.go | 199 - .../type_offer/gen_type_activitystreams_offer.go | 1875 ----- .../type_orderedcollection/gen_doc.go | 17 - .../type_orderedcollection/gen_pkg.go | 200 - .../gen_type_activitystreams_orderedcollection.go | 1875 ----- .../type_orderedcollectionpage/gen_doc.go | 17 - .../type_orderedcollectionpage/gen_pkg.go | 216 - ...n_type_activitystreams_orderedcollectionpage.go | 2042 ----- .../activitystreams/type_organization/gen_doc.go | 17 - .../activitystreams/type_organization/gen_pkg.go | 241 - .../gen_type_activitystreams_organization.go | 2279 ------ .../impl/activitystreams/type_page/gen_doc.go | 17 - .../impl/activitystreams/type_page/gen_pkg.go | 196 - .../type_page/gen_type_activitystreams_page.go | 1815 ----- .../impl/activitystreams/type_person/gen_doc.go | 17 - .../impl/activitystreams/type_person/gen_pkg.go | 241 - .../type_person/gen_type_activitystreams_person.go | 2279 ------ .../impl/activitystreams/type_place/gen_doc.go | 17 - .../impl/activitystreams/type_place/gen_pkg.go | 208 - .../type_place/gen_type_activitystreams_place.go | 1953 ----- .../impl/activitystreams/type_profile/gen_doc.go | 17 - .../impl/activitystreams/type_profile/gen_pkg.go | 192 - .../gen_type_activitystreams_profile.go | 1779 ----- .../impl/activitystreams/type_question/gen_doc.go | 17 - .../impl/activitystreams/type_question/gen_pkg.go | 220 - .../gen_type_activitystreams_question.go | 2090 ----- .../impl/activitystreams/type_read/gen_doc.go | 17 - .../impl/activitystreams/type_read/gen_pkg.go | 199 - .../type_read/gen_type_activitystreams_read.go | 1862 ----- .../impl/activitystreams/type_reject/gen_doc.go | 17 - .../impl/activitystreams/type_reject/gen_pkg.go | 199 - .../type_reject/gen_type_activitystreams_reject.go | 1875 ----- .../activitystreams/type_relationship/gen_doc.go | 17 - .../activitystreams/type_relationship/gen_pkg.go | 188 - .../gen_type_activitystreams_relationship.go | 1742 ----- .../impl/activitystreams/type_remove/gen_doc.go | 17 - .../impl/activitystreams/type_remove/gen_pkg.go | 199 - .../type_remove/gen_type_activitystreams_remove.go | 1886 ----- .../impl/activitystreams/type_service/gen_doc.go | 17 - .../impl/activitystreams/type_service/gen_pkg.go | 241 - .../gen_type_activitystreams_service.go | 2279 ------ .../type_tentativeaccept/gen_doc.go | 17 - .../type_tentativeaccept/gen_pkg.go | 199 - .../gen_type_activitystreams_tentativeaccept.go | 1870 ----- .../type_tentativereject/gen_doc.go | 17 - .../type_tentativereject/gen_pkg.go | 199 - .../gen_type_activitystreams_tentativereject.go | 1870 ----- .../impl/activitystreams/type_tombstone/gen_doc.go | 17 - .../impl/activitystreams/type_tombstone/gen_pkg.go | 187 - .../gen_type_activitystreams_tombstone.go | 1750 ----- .../impl/activitystreams/type_travel/gen_doc.go | 17 - .../impl/activitystreams/type_travel/gen_pkg.go | 195 - .../type_travel/gen_type_activitystreams_travel.go | 1829 ----- .../impl/activitystreams/type_undo/gen_doc.go | 17 - .../impl/activitystreams/type_undo/gen_pkg.go | 199 - .../type_undo/gen_type_activitystreams_undo.go | 1868 ----- .../impl/activitystreams/type_update/gen_doc.go | 17 - .../impl/activitystreams/type_update/gen_pkg.go | 199 - .../type_update/gen_type_activitystreams_update.go | 1865 ----- .../impl/activitystreams/type_video/gen_doc.go | 17 - .../impl/activitystreams/type_video/gen_pkg.go | 196 - .../type_video/gen_type_activitystreams_video.go | 1816 ----- .../impl/activitystreams/type_view/gen_doc.go | 17 - .../impl/activitystreams/type_view/gen_pkg.go | 199 - .../type_view/gen_type_activitystreams_view.go | 1865 ----- .../streams/impl/funkwhale/type_album/gen_doc.go | 17 - .../streams/impl/funkwhale/type_album/gen_pkg.go | 179 - .../type_album/gen_type_funkwhale_album.go | 1639 ---- .../streams/impl/funkwhale/type_artist/gen_doc.go | 17 - .../streams/impl/funkwhale/type_artist/gen_pkg.go | 179 - .../type_artist/gen_type_funkwhale_artist.go | 1639 ---- .../streams/impl/funkwhale/type_library/gen_doc.go | 17 - .../streams/impl/funkwhale/type_library/gen_pkg.go | 179 - .../type_library/gen_type_funkwhale_library.go | 1639 ---- .../streams/impl/funkwhale/type_track/gen_doc.go | 17 - .../streams/impl/funkwhale/type_track/gen_pkg.go | 179 - .../type_track/gen_type_funkwhale_track.go | 1639 ---- .../impl/gotosocial/property_always/gen_doc.go | 17 - .../impl/gotosocial/property_always/gen_pkg.go | 15 - .../gen_property_gotosocial_always.go | 503 -- .../property_approvalrequired/gen_doc.go | 17 - .../property_approvalrequired/gen_pkg.go | 15 - .../gen_property_gotosocial_approvalRequired.go | 510 -- .../impl/gotosocial/property_approvedby/gen_doc.go | 17 - .../impl/gotosocial/property_approvedby/gen_pkg.go | 15 - .../gen_property_gotosocial_approvedBy.go | 181 - .../property_automaticapproval/gen_doc.go | 17 - .../property_automaticapproval/gen_pkg.go | 15 - .../gen_property_gotosocial_automaticApproval.go | 511 -- .../gotosocial/property_canannounce/gen_doc.go | 17 - .../gotosocial/property_canannounce/gen_pkg.go | 22 - .../gen_property_gotosocial_canAnnounce.go | 625 -- .../impl/gotosocial/property_canlike/gen_doc.go | 17 - .../impl/gotosocial/property_canlike/gen_pkg.go | 22 - .../gen_property_gotosocial_canLike.go | 618 -- .../impl/gotosocial/property_canquote/gen_doc.go | 17 - .../impl/gotosocial/property_canquote/gen_pkg.go | 22 - .../gen_property_gotosocial_canQuote.go | 618 -- .../impl/gotosocial/property_canreply/gen_doc.go | 17 - .../impl/gotosocial/property_canreply/gen_pkg.go | 22 - .../gen_property_gotosocial_canReply.go | 618 -- .../property_interactingobject/gen_doc.go | 17 - .../property_interactingobject/gen_pkg.go | 15 - .../gen_property_gotosocial_interactingObject.go | 511 -- .../property_interactionpolicy/gen_doc.go | 17 - .../property_interactionpolicy/gen_pkg.go | 22 - .../gen_property_gotosocial_interactionPolicy.go | 630 -- .../property_interactiontarget/gen_doc.go | 17 - .../property_interactiontarget/gen_pkg.go | 15 - .../gen_property_gotosocial_interactionTarget.go | 511 -- .../gotosocial/property_manualapproval/gen_doc.go | 17 - .../gotosocial/property_manualapproval/gen_pkg.go | 15 - .../gen_property_gotosocial_manualApproval.go | 510 -- .../gotosocial/type_announceapproval/gen_doc.go | 17 - .../gotosocial/type_announceapproval/gen_pkg.go | 179 - .../gen_type_gotosocial_announceapproval.go | 1641 ---- .../type_announceauthorization/gen_doc.go | 17 - .../type_announceauthorization/gen_pkg.go | 189 - .../gen_type_gotosocial_announceauthorization.go | 1726 ----- .../gotosocial/type_announcerequest/gen_doc.go | 17 - .../gotosocial/type_announcerequest/gen_pkg.go | 199 - .../gen_type_gotosocial_announcerequest.go | 1850 ----- .../impl/gotosocial/type_canannounce/gen_doc.go | 17 - .../impl/gotosocial/type_canannounce/gen_pkg.go | 63 - .../gen_type_gotosocial_canannounce.go | 372 - .../impl/gotosocial/type_canlike/gen_doc.go | 17 - .../impl/gotosocial/type_canlike/gen_pkg.go | 63 - .../type_canlike/gen_type_gotosocial_canlike.go | 372 - .../impl/gotosocial/type_canquote/gen_doc.go | 17 - .../impl/gotosocial/type_canquote/gen_pkg.go | 63 - .../type_canquote/gen_type_gotosocial_canquote.go | 372 - .../impl/gotosocial/type_canreply/gen_doc.go | 17 - .../impl/gotosocial/type_canreply/gen_pkg.go | 63 - .../type_canreply/gen_type_gotosocial_canreply.go | 372 - .../gotosocial/type_interactionpolicy/gen_doc.go | 17 - .../gotosocial/type_interactionpolicy/gen_pkg.go | 62 - .../gen_type_gotosocial_interactionpolicy.go | 374 - .../impl/gotosocial/type_likeapproval/gen_doc.go | 17 - .../impl/gotosocial/type_likeapproval/gen_pkg.go | 179 - .../gen_type_gotosocial_likeapproval.go | 1640 ---- .../gotosocial/type_likeauthorization/gen_doc.go | 17 - .../gotosocial/type_likeauthorization/gen_pkg.go | 189 - .../gen_type_gotosocial_likeauthorization.go | 1724 ---- .../impl/gotosocial/type_likerequest/gen_doc.go | 17 - .../impl/gotosocial/type_likerequest/gen_pkg.go | 199 - .../gen_type_gotosocial_likerequest.go | 1849 ----- .../impl/gotosocial/type_replyapproval/gen_doc.go | 17 - .../impl/gotosocial/type_replyapproval/gen_pkg.go | 179 - .../gen_type_gotosocial_replyapproval.go | 1640 ---- .../gotosocial/type_replyauthorization/gen_doc.go | 17 - .../gotosocial/type_replyauthorization/gen_pkg.go | 189 - .../gen_type_gotosocial_replyauthorization.go | 1724 ---- .../impl/gotosocial/type_replyrequest/gen_doc.go | 17 - .../impl/gotosocial/type_replyrequest/gen_pkg.go | 199 - .../gen_type_gotosocial_replyrequest.go | 1849 ----- .../streams/impl/jsonld/property_id/gen_doc.go | 17 - .../streams/impl/jsonld/property_id/gen_pkg.go | 15 - .../jsonld/property_id/gen_property_jsonld_id.go | 179 - .../streams/impl/jsonld/property_type/gen_doc.go | 17 - .../streams/impl/jsonld/property_type/gen_pkg.go | 15 - .../property_type/gen_property_jsonld_type.go | 596 -- .../streams/impl/schema/property_value/gen_doc.go | 17 - .../streams/impl/schema/property_value/gen_pkg.go | 15 - .../property_value/gen_property_schema_value.go | 203 - .../impl/schema/type_propertyvalue/gen_doc.go | 17 - .../impl/schema/type_propertyvalue/gen_pkg.go | 183 - .../gen_type_schema_propertyvalue.go | 1682 ---- .../streams/impl/toot/property_blurhash/gen_doc.go | 17 - .../streams/impl/toot/property_blurhash/gen_pkg.go | 15 - .../gen_property_toot_blurhash.go | 203 - .../impl/toot/property_discoverable/gen_doc.go | 17 - .../impl/toot/property_discoverable/gen_pkg.go | 15 - .../gen_property_toot_discoverable.go | 204 - .../streams/impl/toot/property_featured/gen_doc.go | 17 - .../streams/impl/toot/property_featured/gen_pkg.go | 27 - .../gen_property_toot_featured.go | 268 - .../impl/toot/property_focalpoint/gen_doc.go | 17 - .../impl/toot/property_focalpoint/gen_pkg.go | 15 - .../gen_property_toot_focalPoint.go | 531 -- .../impl/toot/property_indexable/gen_doc.go | 17 - .../impl/toot/property_indexable/gen_pkg.go | 15 - .../gen_property_toot_indexable.go | 203 - .../toot/property_signaturealgorithm/gen_doc.go | 17 - .../toot/property_signaturealgorithm/gen_pkg.go | 15 - .../gen_property_toot_signatureAlgorithm.go | 204 - .../impl/toot/property_signaturevalue/gen_doc.go | 17 - .../impl/toot/property_signaturevalue/gen_pkg.go | 15 - .../gen_property_toot_signatureValue.go | 204 - .../impl/toot/property_voterscount/gen_doc.go | 17 - .../impl/toot/property_voterscount/gen_pkg.go | 15 - .../gen_property_toot_votersCount.go | 205 - .../streams/impl/toot/type_emoji/gen_doc.go | 17 - .../streams/impl/toot/type_emoji/gen_pkg.go | 179 - .../impl/toot/type_emoji/gen_type_toot_emoji.go | 1655 ---- .../streams/impl/toot/type_hashtag/gen_doc.go | 17 - .../streams/impl/toot/type_hashtag/gen_pkg.go | 91 - .../toot/type_hashtag/gen_type_toot_hashtag.go | 726 -- .../impl/toot/type_identityproof/gen_doc.go | 17 - .../impl/toot/type_identityproof/gen_pkg.go | 187 - .../gen_type_toot_identityproof.go | 1724 ---- .../impl/w3idsecurityv1/property_owner/gen_doc.go | 17 - .../impl/w3idsecurityv1/property_owner/gen_pkg.go | 15 - .../gen_property_w3idsecurityv1_owner.go | 181 - .../w3idsecurityv1/property_publickey/gen_doc.go | 17 - .../w3idsecurityv1/property_publickey/gen_pkg.go | 22 - .../gen_property_w3idsecurityv1_publicKey.go | 621 -- .../property_publickeypem/gen_doc.go | 17 - .../property_publickeypem/gen_pkg.go | 15 - .../gen_property_w3idsecurityv1_publicKeyPem.go | 204 - .../impl/w3idsecurityv1/type_publickey/gen_doc.go | 17 - .../impl/w3idsecurityv1/type_publickey/gen_pkg.go | 54 - .../gen_type_w3idsecurityv1_publickey.go | 289 - .../superseriousbusiness/activity/streams/util.go | 222 - .../activity/streams/values/anyURI/gen_anyURI.go | 37 - .../activity/streams/values/bcp47/gen_bcp47.go | 26 - .../activity/streams/values/boolean/gen_boolean.go | 35 - .../streams/values/dateTime/gen_dateTime.go | 39 - .../streams/values/duration/gen_duration.go | 146 - .../activity/streams/values/float/gen_float.go | 26 - .../streams/values/langString/gen_langString.go | 63 - .../nonNegativeInteger/gen_nonNegativeInteger.go | 33 - .../activity/streams/values/rfc2045/gen_rfc2045.go | 26 - .../activity/streams/values/rfc5988/gen_rfc5988.go | 26 - .../activity/streams/values/string/gen_string.go | 26 - .../activity/streams/vocab/gen_doc.go | 61 - .../activity/streams/vocab/gen_pkg.go | 23 - ..._property_activitystreams_accuracy_interface.go | 63 - ...gen_property_activitystreams_actor_interface.go | 2063 ----- ...operty_activitystreams_alsoKnownAs_interface.go | 131 - ..._property_activitystreams_altitude_interface.go | 65 - ...gen_property_activitystreams_anyOf_interface.go | 2042 ----- ...roperty_activitystreams_attachment_interface.go | 2056 ----- ...perty_activitystreams_attributedTo_interface.go | 2073 ----- ..._property_activitystreams_audience_interface.go | 2057 ----- .../gen_property_activitystreams_bcc_interface.go | 2029 ----- .../gen_property_activitystreams_bto_interface.go | 2029 ----- .../gen_property_activitystreams_cc_interface.go | 2022 ----- ...en_property_activitystreams_closed_interface.go | 2086 ----- ...n_property_activitystreams_content_interface.go | 211 - ...n_property_activitystreams_context_interface.go | 2056 ----- ...n_property_activitystreams_current_interface.go | 145 - ...n_property_activitystreams_deleted_interface.go | 64 - ...property_activitystreams_describes_interface.go | 838 -- ..._property_activitystreams_duration_interface.go | 68 - ...n_property_activitystreams_endTime_interface.go | 66 - ...property_activitystreams_endpoints_interface.go | 159 - ...gen_property_activitystreams_first_interface.go | 135 - ...property_activitystreams_followers_interface.go | 129 - ...property_activitystreams_following_interface.go | 130 - ...roperty_activitystreams_formerType_interface.go | 2001 ----- ...property_activitystreams_generator_interface.go | 2054 ----- ...en_property_activitystreams_height_interface.go | 64 - .../gen_property_activitystreams_href_interface.go | 61 - ..._property_activitystreams_hreflang_interface.go | 63 - .../gen_property_activitystreams_icon_interface.go | 276 - ...gen_property_activitystreams_image_interface.go | 269 - ...property_activitystreams_inReplyTo_interface.go | 2064 ----- ...gen_property_activitystreams_inbox_interface.go | 105 - ...roperty_activitystreams_instrument_interface.go | 2062 ----- ...gen_property_activitystreams_items_interface.go | 2042 ----- .../gen_property_activitystreams_last_interface.go | 134 - ..._property_activitystreams_latitude_interface.go | 63 - ...gen_property_activitystreams_liked_interface.go | 129 - ...gen_property_activitystreams_likes_interface.go | 105 - ..._property_activitystreams_location_interface.go | 2059 ----- ...property_activitystreams_longitude_interface.go | 63 - ...ystreams_manuallyApprovesFollowers_interface.go | 53 - ...property_activitystreams_mediaType_interface.go | 65 - ...n_property_activitystreams_movedTo_interface.go | 54 - .../gen_property_activitystreams_name_interface.go | 199 - .../gen_property_activitystreams_next_interface.go | 142 - ...en_property_activitystreams_object_interface.go | 2062 ----- ...gen_property_activitystreams_oneOf_interface.go | 2042 ----- ...perty_activitystreams_orderedItems_interface.go | 2062 ----- ...en_property_activitystreams_origin_interface.go | 2043 ----- ...en_property_activitystreams_outbox_interface.go | 105 - ...en_property_activitystreams_partOf_interface.go | 156 - ..._activitystreams_preferredUsername_interface.go | 89 - .../gen_property_activitystreams_prev_interface.go | 142 - ...n_property_activitystreams_preview_interface.go | 2047 ----- ...property_activitystreams_published_interface.go | 64 - ...en_property_activitystreams_radius_interface.go | 65 - .../gen_property_activitystreams_rel_interface.go | 146 - ...perty_activitystreams_relationship_interface.go | 1984 ----- ...n_property_activitystreams_replies_interface.go | 125 - ...en_property_activitystreams_result_interface.go | 2041 ----- ...property_activitystreams_sensitive_interface.go | 132 - ...operty_activitystreams_sharedInbox_interface.go | 56 - ...en_property_activitystreams_shares_interface.go | 106 - ...en_property_activitystreams_source_interface.go | 880 --- ...roperty_activitystreams_startIndex_interface.go | 73 - ...property_activitystreams_startTime_interface.go | 66 - ...n_property_activitystreams_streams_interface.go | 252 - ...n_property_activitystreams_subject_interface.go | 875 --- ...n_property_activitystreams_summary_interface.go | 200 - .../gen_property_activitystreams_tag_interface.go | 2033 ----- ...en_property_activitystreams_target_interface.go | 2050 ----- .../gen_property_activitystreams_to_interface.go | 2022 ----- ...roperty_activitystreams_totalItems_interface.go | 74 - ...gen_property_activitystreams_units_interface.go | 80 - ...n_property_activitystreams_updated_interface.go | 64 - .../gen_property_activitystreams_url_interface.go | 272 - ...gen_property_activitystreams_width_interface.go | 64 - .../gen_property_gotosocial_always_interface.go | 131 - ...operty_gotosocial_approvalRequired_interface.go | 133 - ...gen_property_gotosocial_approvedBy_interface.go | 56 - ...perty_gotosocial_automaticApproval_interface.go | 132 - ...en_property_gotosocial_canAnnounce_interface.go | 158 - .../gen_property_gotosocial_canLike_interface.go | 155 - .../gen_property_gotosocial_canQuote_interface.go | 156 - .../gen_property_gotosocial_canReply_interface.go | 156 - ...perty_gotosocial_interactingObject_interface.go | 130 - ...perty_gotosocial_interactionPolicy_interface.go | 164 - ...perty_gotosocial_interactionTarget_interface.go | 130 - ...property_gotosocial_manualApproval_interface.go | 132 - .../vocab/gen_property_jsonld_id_interface.go | 52 - .../vocab/gen_property_jsonld_type_interface.go | 158 - .../vocab/gen_property_schema_value_interface.go | 52 - .../vocab/gen_property_toot_blurhash_interface.go | 52 - .../gen_property_toot_discoverable_interface.go | 52 - .../vocab/gen_property_toot_featured_interface.go | 80 - .../gen_property_toot_focalPoint_interface.go | 130 - .../vocab/gen_property_toot_indexable_interface.go | 52 - ...n_property_toot_signatureAlgorithm_interface.go | 52 - .../gen_property_toot_signatureValue_interface.go | 52 - .../gen_property_toot_votersCount_interface.go | 54 - .../gen_property_w3idsecurityv1_owner_interface.go | 52 - ...operty_w3idsecurityv1_publicKeyPem_interface.go | 52 - ..._property_w3idsecurityv1_publicKey_interface.go | 159 - .../gen_type_activitystreams_accept_interface.go | 265 - .../gen_type_activitystreams_activity_interface.go | 245 - .../gen_type_activitystreams_add_interface.go | 267 - .../gen_type_activitystreams_announce_interface.go | 252 - ...n_type_activitystreams_application_interface.go | 286 - .../gen_type_activitystreams_arrive_interface.go | 241 - .../gen_type_activitystreams_article_interface.go | 223 - .../gen_type_activitystreams_audio_interface.go | 232 - .../gen_type_activitystreams_block_interface.go | 237 - ...en_type_activitystreams_collection_interface.go | 246 - ...ype_activitystreams_collectionpage_interface.go | 262 - .../gen_type_activitystreams_create_interface.go | 241 - .../gen_type_activitystreams_delete_interface.go | 242 - .../gen_type_activitystreams_dislike_interface.go | 235 - .../gen_type_activitystreams_document_interface.go | 229 - ...gen_type_activitystreams_endpoints_interface.go | 44 - .../gen_type_activitystreams_event_interface.go | 219 - .../gen_type_activitystreams_flag_interface.go | 239 - .../gen_type_activitystreams_follow_interface.go | 243 - .../gen_type_activitystreams_group_interface.go | 285 - .../gen_type_activitystreams_ignore_interface.go | 238 - .../gen_type_activitystreams_image_interface.go | 249 - ...tivitystreams_intransitiveactivity_interface.go | 238 - .../gen_type_activitystreams_invite_interface.go | 251 - .../gen_type_activitystreams_join_interface.go | 241 - .../gen_type_activitystreams_leave_interface.go | 256 - .../gen_type_activitystreams_like_interface.go | 243 - .../gen_type_activitystreams_link_interface.go | 106 - .../gen_type_activitystreams_listen_interface.go | 237 - .../gen_type_activitystreams_mention_interface.go | 100 - .../gen_type_activitystreams_move_interface.go | 246 - .../gen_type_activitystreams_note_interface.go | 219 - .../gen_type_activitystreams_object_interface.go | 211 - .../gen_type_activitystreams_offer_interface.go | 245 - ..._activitystreams_orderedcollection_interface.go | 245 - ...ivitystreams_orderedcollectionpage_interface.go | 267 - ..._type_activitystreams_organization_interface.go | 286 - .../gen_type_activitystreams_page_interface.go | 228 - .../gen_type_activitystreams_person_interface.go | 285 - .../gen_type_activitystreams_place_interface.go | 254 - .../gen_type_activitystreams_profile_interface.go | 229 - .../gen_type_activitystreams_question_interface.go | 281 - .../gen_type_activitystreams_read_interface.go | 237 - .../gen_type_activitystreams_reject_interface.go | 245 - ..._type_activitystreams_relationship_interface.go | 229 - .../gen_type_activitystreams_remove_interface.go | 261 - .../gen_type_activitystreams_service_interface.go | 286 - ...pe_activitystreams_tentativeaccept_interface.go | 245 - ...pe_activitystreams_tentativereject_interface.go | 245 - ...gen_type_activitystreams_tombstone_interface.go | 237 - .../gen_type_activitystreams_travel_interface.go | 241 - .../gen_type_activitystreams_undo_interface.go | 243 - .../gen_type_activitystreams_update_interface.go | 240 - .../gen_type_activitystreams_video_interface.go | 229 - .../gen_type_activitystreams_view_interface.go | 240 - .../vocab/gen_type_funkwhale_album_interface.go | 199 - .../vocab/gen_type_funkwhale_artist_interface.go | 199 - .../vocab/gen_type_funkwhale_library_interface.go | 200 - .../vocab/gen_type_funkwhale_track_interface.go | 199 - ...n_type_gotosocial_announceapproval_interface.go | 201 - ...e_gotosocial_announceauthorization_interface.go | 210 - ...en_type_gotosocial_announcerequest_interface.go | 225 - .../gen_type_gotosocial_canannounce_interface.go | 55 - .../vocab/gen_type_gotosocial_canlike_interface.go | 55 - .../gen_type_gotosocial_canquote_interface.go | 55 - .../gen_type_gotosocial_canreply_interface.go | 55 - ..._type_gotosocial_interactionpolicy_interface.go | 56 - .../gen_type_gotosocial_likeapproval_interface.go | 201 - ..._type_gotosocial_likeauthorization_interface.go | 210 - .../gen_type_gotosocial_likerequest_interface.go | 225 - .../gen_type_gotosocial_replyapproval_interface.go | 201 - ...type_gotosocial_replyauthorization_interface.go | 210 - .../gen_type_gotosocial_replyrequest_interface.go | 225 - .../gen_type_schema_propertyvalue_interface.go | 207 - .../streams/vocab/gen_type_toot_emoji_interface.go | 216 - .../vocab/gen_type_toot_hashtag_interface.go | 102 - .../vocab/gen_type_toot_identityproof_interface.go | 211 - .../gen_type_w3idsecurityv1_publickey_interface.go | 46 - .../superseriousbusiness/exif-terminator/LICENSE | 661 -- .../superseriousbusiness/exif-terminator/README.md | 122 - .../superseriousbusiness/exif-terminator/exif.go | 53 - .../superseriousbusiness/exif-terminator/jpeg.go | 132 - .../superseriousbusiness/exif-terminator/png.go | 85 - .../exif-terminator/terminator.go | 146 - .../superseriousbusiness/exif-terminator/webp.go | 109 - .../go-jpeg-image-structure/v2/.MODULE_ROOT | 0 .../go-jpeg-image-structure/v2/LICENSE | 9 - .../go-jpeg-image-structure/v2/README.md | 7 - .../go-jpeg-image-structure/v2/markers.go | 212 - .../go-jpeg-image-structure/v2/media_parser.go | 139 - .../go-jpeg-image-structure/v2/segment.go | 352 - .../go-jpeg-image-structure/v2/segment_list.go | 416 - .../go-jpeg-image-structure/v2/splitter.go | 437 -- .../go-jpeg-image-structure/v2/testing_common.go | 73 - .../go-jpeg-image-structure/v2/utility.go | 110 - .../go-png-image-structure/v2/.MODULE_ROOT | 0 .../go-png-image-structure/v2/LICENSE | 9 - .../go-png-image-structure/v2/chunk_decoder.go | 81 - .../go-png-image-structure/v2/media_parser.go | 85 - .../go-png-image-structure/v2/png.go | 390 - .../go-png-image-structure/v2/testing_common.go | 77 - .../go-png-image-structure/v2/utility.go | 67 - .../superseriousbusiness/httpsig/LICENSE | 29 - .../superseriousbusiness/httpsig/README.md | 101 - .../superseriousbusiness/httpsig/algorithms.go | 532 -- .../superseriousbusiness/httpsig/digest.go | 120 - .../superseriousbusiness/httpsig/httpsig.go | 413 - .../superseriousbusiness/httpsig/signing.go | 350 - .../superseriousbusiness/httpsig/verifying.go | 188 - .../superseriousbusiness/oauth2/v4/.gitignore | 33 - .../superseriousbusiness/oauth2/v4/LICENSE | 21 - .../superseriousbusiness/oauth2/v4/README.md | 3 - .../superseriousbusiness/oauth2/v4/const.go | 76 - .../superseriousbusiness/oauth2/v4/doc.go | 24 - .../superseriousbusiness/oauth2/v4/errors/error.go | 19 - .../oauth2/v4/errors/response.go | 84 - .../superseriousbusiness/oauth2/v4/generate.go | 28 - .../oauth2/v4/generates/access.go | 38 - .../oauth2/v4/generates/authorize.go | 30 - .../oauth2/v4/generates/jwt_access.go | 104 - .../superseriousbusiness/oauth2/v4/go.test.sh | 12 - .../superseriousbusiness/oauth2/v4/manage.go | 50 - .../oauth2/v4/manage/config.go | 39 - .../oauth2/v4/manage/manager.go | 504 -- .../superseriousbusiness/oauth2/v4/manage/util.go | 30 - .../superseriousbusiness/oauth2/v4/model.go | 59 - .../oauth2/v4/models/client.go | 46 - .../superseriousbusiness/oauth2/v4/models/token.go | 186 - .../oauth2/v4/server/config.go | 50 - .../oauth2/v4/server/handler.go | 66 - .../oauth2/v4/server/server.go | 589 -- .../oauth2/v4/server/server_config.go | 85 - .../superseriousbusiness/oauth2/v4/store.go | 36 - vendor/github.com/go-fed/httpsig/LICENSE | 29 - vendor/github.com/go-fed/httpsig/README.md | 94 - vendor/github.com/go-fed/httpsig/algorithms.go | 532 -- vendor/github.com/go-fed/httpsig/digest.go | 120 - vendor/github.com/go-fed/httpsig/httpsig.go | 361 - vendor/github.com/go-fed/httpsig/signing.go | 334 - vendor/github.com/go-fed/httpsig/verifying.go | 184 - vendor/modules.txt | 437 +- 1812 files changed, 510289 insertions(+), 511958 deletions(-) create mode 100644 vendor/code.superseriousbusiness.org/activity/LICENSE create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/README.md create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/activity.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/actor.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/base_actor.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/clock.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/common_behavior.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/database.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/delegate_actor.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/federating_protocol.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/federating_wrapped_callbacks.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/handlers.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/property_interfaces.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/side_effect_actor.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/social_protocol.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/social_wrapped_callbacks.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/transport.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/util.go create mode 100644 vendor/code.superseriousbusiness.org/activity/pub/version.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/README.md create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_consts.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_init.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_json_resolver.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_manager.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_disjoint.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extendedby.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_isorextends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_property_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_type_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_disjoint.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extendedby.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_isorextends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_type_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_disjoint.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extendedby.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_isorextends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_property_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_type_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_jsonld_property_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_disjoint.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extendedby.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_isorextends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_property_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_type_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_disjoint.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extendedby.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_isorextends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_property_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_type_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_resolver_utils.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_type_predicated_resolver.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/gen_type_resolver.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_property_schema_value.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/util.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/anyURI/gen_anyURI.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/bcp47/gen_bcp47.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/boolean/gen_boolean.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/dateTime/gen_dateTime.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/duration/gen_duration.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/float/gen_float.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/langString/gen_langString.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/rfc2045/gen_rfc2045.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/rfc5988/gen_rfc5988.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/values/string/gen_string.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_doc.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_pkg.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_actor_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_audience_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bto_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_cc_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_closed_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_content_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_context_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_current_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_describes_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_duration_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_first_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_followers_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_following_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_generator_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_height_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_href_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_icon_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_image_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_items_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_last_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_liked_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_likes_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_location_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_name_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_next_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_object_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_origin_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_prev_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preview_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_published_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_radius_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_rel_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_replies_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_result_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_shares_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_source_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_streams_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_subject_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_summary_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_tag_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_target_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_to_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_units_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_updated_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_url_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_width_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_always_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_id_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_type_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_schema_value_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_blurhash_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_discoverable_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_featured_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_focalPoint_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_indexable_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureValue_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_votersCount_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_accept_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_activity_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_add_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_announce_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_application_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_article_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_audio_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_block_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collection_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_create_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_delete_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_document_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_event_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_flag_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_follow_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_group_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_image_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_invite_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_join_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_leave_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_like_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_link_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_listen_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_mention_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_move_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_note_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_object_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_offer_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_organization_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_page_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_person_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_place_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_profile_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_question_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_read_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_reject_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_remove_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_service_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_travel_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_undo_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_update_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_video_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_view_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_album_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_artist_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_library_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_track_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_emoji_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_hashtag_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_identityproof_interface.go create mode 100644 vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go create mode 100644 vendor/code.superseriousbusiness.org/exif-terminator/LICENSE create mode 100644 vendor/code.superseriousbusiness.org/exif-terminator/README.md create mode 100644 vendor/code.superseriousbusiness.org/exif-terminator/exif.go create mode 100644 vendor/code.superseriousbusiness.org/exif-terminator/jpeg.go create mode 100644 vendor/code.superseriousbusiness.org/exif-terminator/png.go create mode 100644 vendor/code.superseriousbusiness.org/exif-terminator/terminator.go create mode 100644 vendor/code.superseriousbusiness.org/exif-terminator/webp.go create mode 100644 vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/.MODULE_ROOT create mode 100644 vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/LICENSE create mode 100644 vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/README.md create mode 100644 vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/markers.go create mode 100644 vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/media_parser.go create mode 100644 vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment.go create mode 100644 vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment_list.go create mode 100644 vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/splitter.go create mode 100644 vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/testing_common.go create mode 100644 vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/utility.go create mode 100644 vendor/code.superseriousbusiness.org/go-png-image-structure/v2/.MODULE_ROOT create mode 100644 vendor/code.superseriousbusiness.org/go-png-image-structure/v2/LICENSE create mode 100644 vendor/code.superseriousbusiness.org/go-png-image-structure/v2/chunk_decoder.go create mode 100644 vendor/code.superseriousbusiness.org/go-png-image-structure/v2/media_parser.go create mode 100644 vendor/code.superseriousbusiness.org/go-png-image-structure/v2/png.go create mode 100644 vendor/code.superseriousbusiness.org/go-png-image-structure/v2/testing_common.go create mode 100644 vendor/code.superseriousbusiness.org/go-png-image-structure/v2/utility.go create mode 100644 vendor/code.superseriousbusiness.org/httpsig/LICENSE create mode 100644 vendor/code.superseriousbusiness.org/httpsig/README.md create mode 100644 vendor/code.superseriousbusiness.org/httpsig/algorithms.go create mode 100644 vendor/code.superseriousbusiness.org/httpsig/digest.go create mode 100644 vendor/code.superseriousbusiness.org/httpsig/httpsig.go create mode 100644 vendor/code.superseriousbusiness.org/httpsig/signing.go create mode 100644 vendor/code.superseriousbusiness.org/httpsig/verifying.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/.gitignore create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/LICENSE create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/README.md create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/const.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/doc.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/errors/error.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/errors/response.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/generate.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/generates/access.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/generates/authorize.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/generates/jwt_access.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/go.test.sh create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/manage.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/manage/config.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/manage/manager.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/manage/util.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/model.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/models/client.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/models/token.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/server/config.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/server/handler.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/server/server.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/server/server_config.go create mode 100644 vendor/code.superseriousbusiness.org/oauth2/v4/store.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/LICENSE delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/README.md delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/activity.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/actor.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/base_actor.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/clock.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/common_behavior.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/database.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/delegate_actor.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/federating_protocol.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/federating_wrapped_callbacks.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/handlers.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/property_interfaces.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/side_effect_actor.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/social_protocol.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/social_wrapped_callbacks.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/transport.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/util.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/pub/version.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/README.md delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_disjoint.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extendedby.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_isorextends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_property_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_type_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_disjoint.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extendedby.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_isorextends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_type_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_isorextends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_property_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_type_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_jsonld_property_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_disjoint.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extendedby.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_isorextends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_property_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_type_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_disjoint.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extendedby.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_isorextends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_property_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_type_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_property_schema_value.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/util.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/anyURI/gen_anyURI.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/bcp47/gen_bcp47.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/boolean/gen_boolean.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/dateTime/gen_dateTime.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/duration/gen_duration.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/float/gen_float.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/langString/gen_langString.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc2045/gen_rfc2045.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc5988/gen_rfc5988.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/values/string/gen_string.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_pkg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_content_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_current_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_duration_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_first_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_followers_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_following_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_height_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_href_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_icon_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_image_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_last_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_liked_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_likes_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_name_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_next_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_prev_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_published_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_radius_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_rel_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_replies_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_shares_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_streams_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_summary_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_units_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_updated_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_url_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_width_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_always_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_id_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_type_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_schema_value_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_blurhash_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_discoverable_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_featured_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_focalPoint_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_indexable_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureValue_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_votersCount_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_accept_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_activity_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_add_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_announce_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_application_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_article_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_audio_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_block_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collection_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_create_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_delete_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_document_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_event_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_flag_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_follow_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_group_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_image_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_invite_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_join_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_leave_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_like_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_link_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_listen_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_mention_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_move_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_note_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_object_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_offer_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_organization_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_page_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_person_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_place_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_profile_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_question_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_read_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_reject_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_remove_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_service_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_travel_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_undo_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_update_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_video_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_view_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_album_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_artist_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_library_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_track_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_emoji_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_hashtag_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_identityproof_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/exif-terminator/LICENSE delete mode 100644 vendor/codeberg.org/superseriousbusiness/exif-terminator/README.md delete mode 100644 vendor/codeberg.org/superseriousbusiness/exif-terminator/exif.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/exif-terminator/jpeg.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/exif-terminator/png.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/exif-terminator/terminator.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/exif-terminator/webp.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/.MODULE_ROOT delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/LICENSE delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/README.md delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/markers.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/media_parser.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment_list.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/splitter.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/testing_common.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/utility.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/.MODULE_ROOT delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/LICENSE delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/chunk_decoder.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/media_parser.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/png.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/testing_common.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/utility.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/httpsig/LICENSE delete mode 100644 vendor/codeberg.org/superseriousbusiness/httpsig/README.md delete mode 100644 vendor/codeberg.org/superseriousbusiness/httpsig/algorithms.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/httpsig/digest.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/httpsig/httpsig.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/httpsig/signing.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/httpsig/verifying.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/.gitignore delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/LICENSE delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/README.md delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/const.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/doc.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/error.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/response.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/generate.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/access.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/authorize.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/jwt_access.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/go.test.sh delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/config.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/manager.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/util.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/model.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/client.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/token.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/config.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/handler.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server_config.go delete mode 100644 vendor/codeberg.org/superseriousbusiness/oauth2/v4/store.go delete mode 100644 vendor/github.com/go-fed/httpsig/LICENSE delete mode 100644 vendor/github.com/go-fed/httpsig/README.md delete mode 100644 vendor/github.com/go-fed/httpsig/algorithms.go delete mode 100644 vendor/github.com/go-fed/httpsig/digest.go delete mode 100644 vendor/github.com/go-fed/httpsig/httpsig.go delete mode 100644 vendor/github.com/go-fed/httpsig/signing.go delete mode 100644 vendor/github.com/go-fed/httpsig/verifying.go diff --git a/README.md b/README.md index 23209336d..7c7f736e2 100644 --- a/README.md +++ b/README.md @@ -433,10 +433,10 @@ The following open source libraries, frameworks, and tools are used by GoToSocia - [spf13/viper](https://github.com/spf13/viper); configuration management. [Apache-2.0 License](https://spdx.org/licenses/Apache-2.0.html). - [stretchr/testify](https://github.com/stretchr/testify); test framework. [MIT License](https://spdx.org/licenses/MIT.html). - superseriousbusiness: - - [superseriousbusiness/activity](https://codeberg.org/superseriousbusiness/activity) forked from [go-fed/activity](https://github.com/go-fed/activity); Golang ActivityPub/ActivityStreams library. [BSD-3-Clause License](https://spdx.org/licenses/BSD-3-Clause.html). - - [superseriousbusiness/exif-terminator](https://codeberg.org/superseriousbusiness/exif-terminator); EXIF data removal. [GNU AGPL v3 LICENSE](https://spdx.org/licenses/AGPL-3.0-or-later.html). - - [superseriousbusiness/httpsig](https://codeberg.org/superseriousbusiness/httpsig) forked from [go-fed/httpsig](https://github.com/go-fed/httpsig); secure HTTP signature library. [BSD-3-Clause License](https://spdx.org/licenses/BSD-3-Clause.html). - - [superseriousbusiness/oauth2](https://codeberg.org/superseriousbusiness/oauth2) forked from [go-oauth2/oauth2](https://github.com/go-oauth2/oauth2); OAuth server framework and token handling. [MIT License](https://spdx.org/licenses/MIT.html). + - [superseriousbusiness/activity](https://code.superseriousbusiness.org/activity) forked from [go-fed/activity](https://github.com/go-fed/activity); Golang ActivityPub/ActivityStreams library. [BSD-3-Clause License](https://spdx.org/licenses/BSD-3-Clause.html). + - [superseriousbusiness/exif-terminator](https://code.superseriousbusiness.org/exif-terminator); EXIF data removal. [GNU AGPL v3 LICENSE](https://spdx.org/licenses/AGPL-3.0-or-later.html). + - [superseriousbusiness/httpsig](https://code.superseriousbusiness.org/httpsig) forked from [go-fed/httpsig](https://github.com/go-fed/httpsig); secure HTTP signature library. [BSD-3-Clause License](https://spdx.org/licenses/BSD-3-Clause.html). + - [superseriousbusiness/oauth2](https://code.superseriousbusiness.org/oauth2) forked from [go-oauth2/oauth2](https://github.com/go-oauth2/oauth2); OAuth server framework and token handling. [MIT License](https://spdx.org/licenses/MIT.html). - [temoto/robotstxt](https://github.com/temoto/robotstxt); robots.txt parsing. [MIT License](https://spdx.org/licenses/MIT.html). - [tdewolff/minify](https://github.com/tdewolff/minify); HTML minification for Markdown-submitted posts. [MIT License](https://spdx.org/licenses/MIT.html). - [uber-go/automaxprocs](https://github.com/uber-go/automaxprocs); GOMAXPROCS automation. [MIT License](https://spdx.org/licenses/MIT.html). diff --git a/go.mod b/go.mod index 6313491d1..143da6208 100644 --- a/go.mod +++ b/go.mod @@ -11,6 +11,10 @@ replace github.com/go-swagger/go-swagger => codeberg.org/superseriousbusiness/go replace modernc.org/sqlite => gitlab.com/NyaaaWhatsUpDoc/sqlite v1.37.0-concurrency-workaround require ( + code.superseriousbusiness.org/activity v1.15.0 + code.superseriousbusiness.org/exif-terminator v0.11.0 + code.superseriousbusiness.org/httpsig v1.4.0 + code.superseriousbusiness.org/oauth2/v4 v4.8.0 codeberg.org/gruf/go-bytes v1.0.2 codeberg.org/gruf/go-bytesize v1.0.3 codeberg.org/gruf/go-byteutil v1.3.0 @@ -28,10 +32,6 @@ require ( codeberg.org/gruf/go-sched v1.2.4 codeberg.org/gruf/go-storage v0.2.0 codeberg.org/gruf/go-structr v0.9.6 - codeberg.org/superseriousbusiness/activity v1.14.0 - codeberg.org/superseriousbusiness/exif-terminator v0.10.0 - codeberg.org/superseriousbusiness/httpsig v1.3.0-SSB - codeberg.org/superseriousbusiness/oauth2/v4 v4.7.0-SSB github.com/DmitriyVTitov/size v1.5.0 github.com/KimMachineGun/automemlimit v0.7.1 github.com/SherClockHolmes/webpush-go v1.4.0 @@ -96,11 +96,11 @@ require ( ) require ( + code.superseriousbusiness.org/go-jpeg-image-structure/v2 v2.3.0 // indirect + code.superseriousbusiness.org/go-png-image-structure/v2 v2.3.0 // indirect codeberg.org/gruf/go-fastpath/v2 v2.0.0 // indirect codeberg.org/gruf/go-mangler v1.4.4 // indirect codeberg.org/gruf/go-maps v1.0.4 // indirect - codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 v2.1.0-SSB // indirect - codeberg.org/superseriousbusiness/go-png-image-structure/v2 v2.1.0-SSB // indirect github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver/v3 v3.2.1 // indirect github.com/Masterminds/sprig/v3 v3.2.3 // indirect @@ -125,7 +125,6 @@ require ( github.com/gabriel-vasile/mimetype v1.4.8 // indirect github.com/gin-contrib/sse v1.0.0 // indirect github.com/go-errors/errors v1.1.1 // indirect - github.com/go-fed/httpsig v1.1.0 // indirect github.com/go-ini/ini v1.67.0 // indirect github.com/go-jose/go-jose/v4 v4.0.5 // indirect github.com/go-logr/logr v1.4.2 // indirect diff --git a/go.sum b/go.sum index fb37eb1d3..79c9df464 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,15 @@ +code.superseriousbusiness.org/activity v1.15.0 h1:XwdO/1ssry8GCLWDFlUxSb+lNpUvdjkKG3HVHTEkvi4= +code.superseriousbusiness.org/activity v1.15.0/go.mod h1:BTMWJIAuwDH1w+ieRP5N+T5LipbXjw35U6KZy0V/xdg= +code.superseriousbusiness.org/exif-terminator v0.11.0 h1:Hof0MCcsa+1fS17gf86fTTZ8AQnMY9h9kzcc+2C6mVg= +code.superseriousbusiness.org/exif-terminator v0.11.0/go.mod h1:9sutT1axa/kSdlPLlRFjCNKmyo/KNx8eX3XZvWBlAEY= +code.superseriousbusiness.org/go-jpeg-image-structure/v2 v2.3.0 h1:r9uq8StaSHYKJ8DklR9Xy+E9c40G1Z8yj5TRGi8L6+4= +code.superseriousbusiness.org/go-jpeg-image-structure/v2 v2.3.0/go.mod h1:IK1OlR6APjVB3E9tuYGvf0qXMrwP+TrzcHS5rf4wffQ= +code.superseriousbusiness.org/go-png-image-structure/v2 v2.3.0 h1:I512jiIeXDC4//2BeSPrRM2ZS4wpBKUaPeTPxakMNGA= +code.superseriousbusiness.org/go-png-image-structure/v2 v2.3.0/go.mod h1:SNHomXNW88o1pFfLHpD4KsCZLfcr4z5dm+xcX5SV10A= +code.superseriousbusiness.org/httpsig v1.4.0 h1:g9+KQMoTG0oR0II5gYb5pVVdNjbc7CiiuqK8vcZjeQg= +code.superseriousbusiness.org/httpsig v1.4.0/go.mod h1:i2AKpj/WbA/o/UTvia9TAREzt0jP1AH3T1Uxjyhdzlw= +code.superseriousbusiness.org/oauth2/v4 v4.8.0 h1:4LVXoPJXKgmDfwDegzBQPNpsdleMaL6YmDgFi6UDgEE= +code.superseriousbusiness.org/oauth2/v4 v4.8.0/go.mod h1:+RLRBXPkjP/VhIC/46dcZkx3t5IvBSJYOjVCPgeWors= codeberg.org/gruf/go-bytes v1.0.2 h1:malqE42Ni+h1nnYWBUAJaDDtEzF4aeN4uPN8DfMNNvo= codeberg.org/gruf/go-bytes v1.0.2/go.mod h1:1v/ibfaosfXSZtRdW2rWaVrDXMc9E3bsi/M9Ekx39cg= codeberg.org/gruf/go-bytesize v1.0.3 h1:Tz8tCxhPLeyM5VryuBNjUHgKmLj4Bx9RbPaUSA3qg6g= @@ -40,20 +52,8 @@ codeberg.org/gruf/go-storage v0.2.0 h1:mKj3Lx6AavEkuXXtxqPhdq+akW9YwrnP16yQBF7K5 codeberg.org/gruf/go-storage v0.2.0/go.mod h1:o3GzMDE5QNUaRnm/daUzFqvuAaC4utlgXDXYO79sWKU= codeberg.org/gruf/go-structr v0.9.6 h1:FSbJ1A0ubTQB82rC0K4o6qyiqrDGH1t9ivttm8Zy64o= codeberg.org/gruf/go-structr v0.9.6/go.mod h1:9k5hYztZ4PsBS+m1v5hUTeFiVUBTLF5VA7d9cd1OEMs= -codeberg.org/superseriousbusiness/activity v1.14.0 h1:z+jBjAIane9+Oqu6vO+tNvvNoji+OLU8KYDJ+R+ih+I= -codeberg.org/superseriousbusiness/activity v1.14.0/go.mod h1:enxU1Lva4OcK6b/NBXscoHSEgEMsKJvdHrQFifQxp4o= -codeberg.org/superseriousbusiness/exif-terminator v0.10.0 h1:FiLX/AK07tzceS36I+kOP2aEH+aytjPSIlFoYePMEyg= -codeberg.org/superseriousbusiness/exif-terminator v0.10.0/go.mod h1:c/mCytx/+fisOZeVXtjCpXld/SeZb3VsD1vj3oPAihA= -codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 v2.1.0-SSB h1:v2shEkOPgydTL0n44EFPsDT9dsEP7KRG85aPnojCYkI= -codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 v2.1.0-SSB/go.mod h1:Ba/VzIqzDHqqKk5jg+7uFpUsHmdDOsuWLodbamD80jU= -codeberg.org/superseriousbusiness/go-png-image-structure/v2 v2.1.0-SSB h1:Lqi70gvqNuHyik0gUNrBwElvFUP7A3W1FYLVV5lUmbQ= -codeberg.org/superseriousbusiness/go-png-image-structure/v2 v2.1.0-SSB/go.mod h1:99rP8gsZoCSUj+/lLdpV9+i86ujLdKSoUjvuxbgvN4M= codeberg.org/superseriousbusiness/go-swagger v0.31.0-gts-go1.23-fix h1:+JvBZqsQfdT+ROnk2DkvXsKQ9QBorKKKBk5fBqw62I8= codeberg.org/superseriousbusiness/go-swagger v0.31.0-gts-go1.23-fix/go.mod h1:WSigRRWEig8zV6t6Sm8Y+EmUjlzA/HoaZJ5edupq7po= -codeberg.org/superseriousbusiness/httpsig v1.3.0-SSB h1:0a2fQSgMZA3/k+zjb2Ot+kwzpWFHOVEGQR2t49NhglA= -codeberg.org/superseriousbusiness/httpsig v1.3.0-SSB/go.mod h1:mkfkHGdE2SCbNBHySjJZSDr3LHtwZb1Yjgc6GYPwAQM= -codeberg.org/superseriousbusiness/oauth2/v4 v4.7.0-SSB h1:UAFZKgUaeQEoHDmawh9DWXFopJnADfkiDo/CLAtWISc= -codeberg.org/superseriousbusiness/oauth2/v4 v4.7.0-SSB/go.mod h1:fAEs7S0vD9yB+h7zBUWfAqwdbVqF4n8FcTnXpJC//AM= github.com/DmitriyVTitov/size v1.5.0 h1:/PzqxYrOyOUX1BXj6J9OuVRVGe+66VL4D9FlUaW515g= github.com/DmitriyVTitov/size v1.5.0/go.mod h1:le6rNI4CoLQV1b9gzp1+3d7hMAD/uu2QcJ+aYbNgiU0= github.com/KimMachineGun/automemlimit v0.7.1 h1:QcG/0iCOLChjfUweIMC3YL5Xy9C3VBeNmCZHrZfJMBw= @@ -149,8 +149,6 @@ github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs= github.com/go-errors/errors v1.1.1 h1:ljK/pL5ltg3qoN+OtN6yCv9HWSfMwxSx90GJCZQxYNg= github.com/go-errors/errors v1.1.1/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs= -github.com/go-fed/httpsig v1.1.0 h1:9M+hb0jkEICD8/cAiNqEB66R87tTINszBRTjwjQzWcI= -github.com/go-fed/httpsig v1.1.0/go.mod h1:RCMrTZvN1bJYtofsG4rd5NaO5obxQ5xBkdiS7xsT7bM= github.com/go-ini/ini v1.67.0 h1:z6ZrTEZqSWOTyH2FlglNbNgARyHG8oLW9gMELqKr06A= github.com/go-ini/ini v1.67.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= github.com/go-jose/go-jose/v4 v4.0.5 h1:M6T8+mKZl/+fNNuFHvGIzDz7BTLQPIounk/b9dw3AaE= @@ -524,7 +522,6 @@ go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN8 golang.org/x/arch v0.16.0 h1:foMtLTdyOmIniqWCHjY6+JxuC54XP1fDwx4N0ASyW+U= golang.org/x/arch v0.16.0/go.mod h1:JmwW7aLIoRUKgaTzhkiEFxvcEiQGyOg9BMonBJUS7EE= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= @@ -545,7 +542,6 @@ golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU= golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200320220750-118fecf932d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -574,7 +570,6 @@ golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610= golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/internal/ap/activitystreams.go b/internal/ap/activitystreams.go index 0d1bc62c9..56ebc4909 100644 --- a/internal/ap/activitystreams.go +++ b/internal/ap/activitystreams.go @@ -20,7 +20,7 @@ package ap import ( "net/url" - "codeberg.org/superseriousbusiness/activity/pub" + "code.superseriousbusiness.org/activity/pub" ) // PublicURI returns a fresh copy of the *url.URL version of the diff --git a/internal/ap/activitystreams_test.go b/internal/ap/activitystreams_test.go index 09fc13c65..fbeef262c 100644 --- a/internal/ap/activitystreams_test.go +++ b/internal/ap/activitystreams_test.go @@ -21,7 +21,7 @@ import ( "net/url" "testing" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/stretchr/testify/assert" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/paging" diff --git a/internal/ap/ap_test.go b/internal/ap/ap_test.go index 5a6518ef0..8455426e4 100644 --- a/internal/ap/ap_test.go +++ b/internal/ap/ap_test.go @@ -23,8 +23,8 @@ import ( "encoding/json" "io" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" diff --git a/internal/ap/collections.go b/internal/ap/collections.go index d86abe623..08a91e5cd 100644 --- a/internal/ap/collections.go +++ b/internal/ap/collections.go @@ -21,8 +21,8 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/paging" ) diff --git a/internal/ap/collections_test.go b/internal/ap/collections_test.go index 4aefe78e4..f5fec6b31 100644 --- a/internal/ap/collections_test.go +++ b/internal/ap/collections_test.go @@ -22,9 +22,9 @@ import ( "slices" "testing" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" ) diff --git a/internal/ap/extract.go b/internal/ap/extract.go index d454d69f6..cc8129f04 100644 --- a/internal/ap/extract.go +++ b/internal/ap/extract.go @@ -28,8 +28,8 @@ import ( "strings" "time" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/text" diff --git a/internal/ap/extractattachments_test.go b/internal/ap/extractattachments_test.go index 609d811f8..b9192bfb0 100644 --- a/internal/ap/extractattachments_test.go +++ b/internal/ap/extractattachments_test.go @@ -22,7 +22,7 @@ import ( "encoding/json" "testing" - "codeberg.org/superseriousbusiness/activity/streams" + "code.superseriousbusiness.org/activity/streams" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" ) diff --git a/internal/ap/extractmentions_test.go b/internal/ap/extractmentions_test.go index 8a19783bc..96d7ca656 100644 --- a/internal/ap/extractmentions_test.go +++ b/internal/ap/extractmentions_test.go @@ -20,7 +20,7 @@ package ap_test import ( "testing" - "codeberg.org/superseriousbusiness/activity/streams" + "code.superseriousbusiness.org/activity/streams" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/testrig" diff --git a/internal/ap/extractpubkey_test.go b/internal/ap/extractpubkey_test.go index cf468a1e7..eeffaa1b2 100644 --- a/internal/ap/extractpubkey_test.go +++ b/internal/ap/extractpubkey_test.go @@ -22,8 +22,8 @@ import ( "encoding/json" "testing" - "codeberg.org/superseriousbusiness/activity/streams" - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" + "code.superseriousbusiness.org/activity/streams" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" ) diff --git a/internal/ap/interfaces.go b/internal/ap/interfaces.go index 4c91c57f6..1dcc6afef 100644 --- a/internal/ap/interfaces.go +++ b/internal/ap/interfaces.go @@ -20,7 +20,7 @@ package ap import ( "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) // IsActivityable returns whether AS vocab type name is acceptable as Activityable. diff --git a/internal/ap/interfaces_test.go b/internal/ap/interfaces_test.go index e59c32347..507a0c59c 100644 --- a/internal/ap/interfaces_test.go +++ b/internal/ap/interfaces_test.go @@ -18,7 +18,7 @@ package ap_test import ( - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" ) diff --git a/internal/ap/normalize.go b/internal/ap/normalize.go index ffe90733c..b2c4b727e 100644 --- a/internal/ap/normalize.go +++ b/internal/ap/normalize.go @@ -18,8 +18,8 @@ package ap import ( - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/text" ) diff --git a/internal/ap/normalize_test.go b/internal/ap/normalize_test.go index 9db8b43fe..14de3c93c 100644 --- a/internal/ap/normalize_test.go +++ b/internal/ap/normalize_test.go @@ -20,7 +20,7 @@ package ap_test import ( "testing" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/testrig" diff --git a/internal/ap/properties.go b/internal/ap/properties.go index e1dea22f0..ea925457a 100644 --- a/internal/ap/properties.go +++ b/internal/ap/properties.go @@ -22,8 +22,8 @@ import ( "net/url" "time" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) diff --git a/internal/ap/resolve.go b/internal/ap/resolve.go index 9d6bc73ab..596de1a99 100644 --- a/internal/ap/resolve.go +++ b/internal/ap/resolve.go @@ -25,9 +25,9 @@ import ( "io" "net/http" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) diff --git a/internal/ap/serialize.go b/internal/ap/serialize.go index 65ba69ba1..b18fcc959 100644 --- a/internal/ap/serialize.go +++ b/internal/ap/serialize.go @@ -18,8 +18,8 @@ package ap import ( - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) diff --git a/internal/ap/util.go b/internal/ap/util.go index 50e5a4c3b..4f7d696e9 100644 --- a/internal/ap/util.go +++ b/internal/ap/util.go @@ -21,7 +21,7 @@ import ( "net/url" "sync" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" ) const mapmax = 256 diff --git a/internal/api/activitypub/users/inboxpost_test.go b/internal/api/activitypub/users/inboxpost_test.go index 4c23ba27b..a2faa078f 100644 --- a/internal/api/activitypub/users/inboxpost_test.go +++ b/internal/api/activitypub/users/inboxpost_test.go @@ -28,9 +28,9 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" diff --git a/internal/api/activitypub/users/outboxget_test.go b/internal/api/activitypub/users/outboxget_test.go index 5734abdd2..2f56b2153 100644 --- a/internal/api/activitypub/users/outboxget_test.go +++ b/internal/api/activitypub/users/outboxget_test.go @@ -27,8 +27,8 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" diff --git a/internal/api/activitypub/users/repliesget_test.go b/internal/api/activitypub/users/repliesget_test.go index 418b5c035..ce3b20985 100644 --- a/internal/api/activitypub/users/repliesget_test.go +++ b/internal/api/activitypub/users/repliesget_test.go @@ -26,8 +26,8 @@ import ( "net/http/httptest" "testing" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" diff --git a/internal/api/activitypub/users/statusget_test.go b/internal/api/activitypub/users/statusget_test.go index 3a2d5e6f7..ec7a032ae 100644 --- a/internal/api/activitypub/users/statusget_test.go +++ b/internal/api/activitypub/users/statusget_test.go @@ -26,8 +26,8 @@ import ( "strings" "testing" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" diff --git a/internal/api/activitypub/users/userget_test.go b/internal/api/activitypub/users/userget_test.go index 11434a5dd..d70d1504b 100644 --- a/internal/api/activitypub/users/userget_test.go +++ b/internal/api/activitypub/users/userget_test.go @@ -25,8 +25,8 @@ import ( "net/http/httptest" "testing" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/gin-gonic/gin" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/api/activitypub/users" diff --git a/internal/api/auth/revoke.go b/internal/api/auth/revoke.go index 7bd565308..932e83dbc 100644 --- a/internal/api/auth/revoke.go +++ b/internal/api/auth/revoke.go @@ -20,7 +20,7 @@ package auth import ( "net/http" - oautherr "codeberg.org/superseriousbusiness/oauth2/v4/errors" + oautherr "code.superseriousbusiness.org/oauth2/v4/errors" "github.com/gin-gonic/gin" apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" "github.com/superseriousbusiness/gotosocial/internal/gtserror" diff --git a/internal/api/util/auth.go b/internal/api/util/auth.go index fccdf38e1..481ca8776 100644 --- a/internal/api/util/auth.go +++ b/internal/api/util/auth.go @@ -22,7 +22,7 @@ import ( "slices" "strings" - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4" "github.com/gin-gonic/gin" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" diff --git a/internal/federation/authenticate.go b/internal/federation/authenticate.go index 363568f8b..907dccd81 100644 --- a/internal/federation/authenticate.go +++ b/internal/federation/authenticate.go @@ -28,10 +28,10 @@ import ( "net/url" "time" + "code.superseriousbusiness.org/activity/streams" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + "code.superseriousbusiness.org/httpsig" "codeberg.org/gruf/go-kv" - "codeberg.org/superseriousbusiness/activity/streams" - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - "codeberg.org/superseriousbusiness/httpsig" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/federation/clock.go b/internal/federation/clock.go index b0b1c24bd..d580c21bf 100644 --- a/internal/federation/clock.go +++ b/internal/federation/clock.go @@ -20,7 +20,7 @@ package federation import ( "time" - "codeberg.org/superseriousbusiness/activity/pub" + "code.superseriousbusiness.org/activity/pub" ) /* diff --git a/internal/federation/commonbehavior.go b/internal/federation/commonbehavior.go index b9e0efbb4..4c94f084f 100644 --- a/internal/federation/commonbehavior.go +++ b/internal/federation/commonbehavior.go @@ -21,8 +21,8 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) /* diff --git a/internal/federation/dereferencing/account.go b/internal/federation/dereferencing/account.go index f882eb7c3..1a5bf2d0e 100644 --- a/internal/federation/dereferencing/account.go +++ b/internal/federation/dereferencing/account.go @@ -24,8 +24,8 @@ import ( "net/url" "time" + "code.superseriousbusiness.org/activity/pub" errorsv2 "codeberg.org/gruf/go-errors/v2" - "codeberg.org/superseriousbusiness/activity/pub" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/federation/dereferencing/account_test.go b/internal/federation/dereferencing/account_test.go index 4af885468..859461779 100644 --- a/internal/federation/dereferencing/account_test.go +++ b/internal/federation/dereferencing/account_test.go @@ -31,8 +31,8 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/config" diff --git a/internal/federation/dereferencing/collection.go b/internal/federation/dereferencing/collection.go index 38f6aae9a..714af9832 100644 --- a/internal/federation/dereferencing/collection.go +++ b/internal/federation/dereferencing/collection.go @@ -21,7 +21,7 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/log" diff --git a/internal/federation/dereferencing/dereferencer_test.go b/internal/federation/dereferencing/dereferencer_test.go index 668f9aeaa..95c879920 100644 --- a/internal/federation/dereferencing/dereferencer_test.go +++ b/internal/federation/dereferencing/dereferencer_test.go @@ -18,7 +18,7 @@ package dereferencing_test import ( - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/admin" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/federation/dereferencing/status_test.go b/internal/federation/dereferencing/status_test.go index 6bda5a9bc..817afbe3b 100644 --- a/internal/federation/dereferencing/status_test.go +++ b/internal/federation/dereferencing/status_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" + "code.superseriousbusiness.org/activity/streams" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/federation/dereferencing/thread.go b/internal/federation/dereferencing/thread.go index e774d24d4..76c6dfcc3 100644 --- a/internal/federation/dereferencing/thread.go +++ b/internal/federation/dereferencing/thread.go @@ -22,8 +22,8 @@ import ( "net/http" "net/url" + "code.superseriousbusiness.org/activity/pub" "codeberg.org/gruf/go-kv" - "codeberg.org/superseriousbusiness/activity/pub" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/gtserror" diff --git a/internal/federation/federatingactor.go b/internal/federation/federatingactor.go index 0bd6cdf28..e05f7e9ac 100644 --- a/internal/federation/federatingactor.go +++ b/internal/federation/federatingactor.go @@ -25,10 +25,10 @@ import ( "net/url" "slices" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams/vocab" errorsv2 "codeberg.org/gruf/go-errors/v2" "codeberg.org/gruf/go-kv" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" "github.com/superseriousbusiness/gotosocial/internal/config" diff --git a/internal/federation/federatingdb/accept.go b/internal/federation/federatingdb/accept.go index 39c099b79..45c0a1920 100644 --- a/internal/federation/federatingdb/accept.go +++ b/internal/federation/federatingdb/accept.go @@ -23,7 +23,7 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/federation/federatingdb/announce.go b/internal/federation/federatingdb/announce.go index 84aa3dad0..654b036e4 100644 --- a/internal/federation/federatingdb/announce.go +++ b/internal/federation/federatingdb/announce.go @@ -22,7 +22,7 @@ import ( "net/url" "slices" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/log" diff --git a/internal/federation/federatingdb/announce_test.go b/internal/federation/federatingdb/announce_test.go index 5dd4c441e..cda53bd9c 100644 --- a/internal/federation/federatingdb/announce_test.go +++ b/internal/federation/federatingdb/announce_test.go @@ -21,7 +21,7 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" diff --git a/internal/federation/federatingdb/block.go b/internal/federation/federatingdb/block.go index 4f9132391..501ee1cfb 100644 --- a/internal/federation/federatingdb/block.go +++ b/internal/federation/federatingdb/block.go @@ -21,7 +21,7 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/id" diff --git a/internal/federation/federatingdb/create.go b/internal/federation/federatingdb/create.go index d43909e12..368c7b1e4 100644 --- a/internal/federation/federatingdb/create.go +++ b/internal/federation/federatingdb/create.go @@ -22,7 +22,7 @@ import ( "errors" "slices" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtscontext" diff --git a/internal/federation/federatingdb/create_test.go b/internal/federation/federatingdb/create_test.go index 0ca1c55bc..9e6410095 100644 --- a/internal/federation/federatingdb/create_test.go +++ b/internal/federation/federatingdb/create_test.go @@ -23,8 +23,8 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" diff --git a/internal/federation/federatingdb/db.go b/internal/federation/federatingdb/db.go index e246e2da5..30aa38f6a 100644 --- a/internal/federation/federatingdb/db.go +++ b/internal/federation/federatingdb/db.go @@ -21,9 +21,9 @@ import ( "context" "net/url" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams/vocab" "codeberg.org/gruf/go-cache/v3/simple" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/filter/interaction" "github.com/superseriousbusiness/gotosocial/internal/filter/spam" diff --git a/internal/federation/federatingdb/flag.go b/internal/federation/federatingdb/flag.go index 48e3eef07..cbb046d50 100644 --- a/internal/federation/federatingdb/flag.go +++ b/internal/federation/federatingdb/flag.go @@ -21,7 +21,7 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/miekg/dns" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtserror" diff --git a/internal/federation/federatingdb/follow.go b/internal/federation/federatingdb/follow.go index 8db850e42..9494503c4 100644 --- a/internal/federation/federatingdb/follow.go +++ b/internal/federation/federatingdb/follow.go @@ -21,7 +21,7 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/id" diff --git a/internal/federation/federatingdb/followers.go b/internal/federation/federatingdb/followers.go index eb224960e..f3f3320c1 100644 --- a/internal/federation/federatingdb/followers.go +++ b/internal/federation/federatingdb/followers.go @@ -22,7 +22,7 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) diff --git a/internal/federation/federatingdb/following.go b/internal/federation/federatingdb/following.go index 793bdc9d5..bcbcf9533 100644 --- a/internal/federation/federatingdb/following.go +++ b/internal/federation/federatingdb/following.go @@ -21,7 +21,7 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) diff --git a/internal/federation/federatingdb/get.go b/internal/federation/federatingdb/get.go index e6d016688..e1e61e916 100644 --- a/internal/federation/federatingdb/get.go +++ b/internal/federation/federatingdb/get.go @@ -22,7 +22,7 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/log" "github.com/superseriousbusiness/gotosocial/internal/uris" ) diff --git a/internal/federation/federatingdb/inbox.go b/internal/federation/federatingdb/inbox.go index 8c5977074..e5b10f596 100644 --- a/internal/federation/federatingdb/inbox.go +++ b/internal/federation/federatingdb/inbox.go @@ -22,8 +22,8 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/uris" diff --git a/internal/federation/federatingdb/like.go b/internal/federation/federatingdb/like.go index 90fce4c61..119958750 100644 --- a/internal/federation/federatingdb/like.go +++ b/internal/federation/federatingdb/like.go @@ -22,7 +22,7 @@ import ( "errors" "net/http" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtserror" diff --git a/internal/federation/federatingdb/liked.go b/internal/federation/federatingdb/liked.go index 4fa17e5b8..9db3341f1 100644 --- a/internal/federation/federatingdb/liked.go +++ b/internal/federation/federatingdb/liked.go @@ -21,8 +21,8 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) // Liked obtains the Liked Collection for an actor with the diff --git a/internal/federation/federatingdb/move.go b/internal/federation/federatingdb/move.go index 5e296a25d..0c88cd3f4 100644 --- a/internal/federation/federatingdb/move.go +++ b/internal/federation/federatingdb/move.go @@ -27,7 +27,7 @@ import ( "errors" "fmt" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" diff --git a/internal/federation/federatingdb/move_test.go b/internal/federation/federatingdb/move_test.go index 5baaa2bdc..65e97be70 100644 --- a/internal/federation/federatingdb/move_test.go +++ b/internal/federation/federatingdb/move_test.go @@ -22,8 +22,8 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" diff --git a/internal/federation/federatingdb/outbox.go b/internal/federation/federatingdb/outbox.go index 116dde56f..8098dfa34 100644 --- a/internal/federation/federatingdb/outbox.go +++ b/internal/federation/federatingdb/outbox.go @@ -21,8 +21,8 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" ) // GetOutbox returns the first ordered collection page of the outbox diff --git a/internal/federation/federatingdb/reject.go b/internal/federation/federatingdb/reject.go index 186bb009a..138aa6b22 100644 --- a/internal/federation/federatingdb/reject.go +++ b/internal/federation/federatingdb/reject.go @@ -22,7 +22,7 @@ import ( "errors" "time" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtserror" diff --git a/internal/federation/federatingdb/reject_test.go b/internal/federation/federatingdb/reject_test.go index b209232a0..cca7c6498 100644 --- a/internal/federation/federatingdb/reject_test.go +++ b/internal/federation/federatingdb/reject_test.go @@ -21,7 +21,7 @@ import ( "testing" "time" - "codeberg.org/superseriousbusiness/activity/streams" + "code.superseriousbusiness.org/activity/streams" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/federation/federatingdb/undo.go b/internal/federation/federatingdb/undo.go index 9c7635846..a40b6c31a 100644 --- a/internal/federation/federatingdb/undo.go +++ b/internal/federation/federatingdb/undo.go @@ -22,7 +22,7 @@ import ( "errors" "fmt" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtscontext" diff --git a/internal/federation/federatingdb/update.go b/internal/federation/federatingdb/update.go index 2eac9ed04..f6f126efa 100644 --- a/internal/federation/federatingdb/update.go +++ b/internal/federation/federatingdb/update.go @@ -21,7 +21,7 @@ import ( "context" "errors" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/federation/federatingdb/util.go b/internal/federation/federatingdb/util.go index 6d5334076..b9f9a7529 100644 --- a/internal/federation/federatingdb/util.go +++ b/internal/federation/federatingdb/util.go @@ -23,9 +23,9 @@ import ( "fmt" "net/url" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "codeberg.org/gruf/go-byteutil" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/gtscontext" diff --git a/internal/federation/federatingprotocol.go b/internal/federation/federatingprotocol.go index d31d01d42..82b39606e 100644 --- a/internal/federation/federatingprotocol.go +++ b/internal/federation/federatingprotocol.go @@ -24,10 +24,10 @@ import ( "net/url" "strings" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "codeberg.org/gruf/go-kv" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/federation/federatingprotocol_test.go b/internal/federation/federatingprotocol_test.go index 7307ec6cc..08c7fcd8f 100644 --- a/internal/federation/federatingprotocol_test.go +++ b/internal/federation/federatingprotocol_test.go @@ -27,8 +27,8 @@ import ( "net/url" "testing" + "code.superseriousbusiness.org/httpsig" errorsv2 "codeberg.org/gruf/go-errors/v2" - "codeberg.org/superseriousbusiness/httpsig" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtscontext" diff --git a/internal/federation/federator.go b/internal/federation/federator.go index 3fd64b2ad..08d346137 100644 --- a/internal/federation/federator.go +++ b/internal/federation/federator.go @@ -18,7 +18,7 @@ package federation import ( - "codeberg.org/superseriousbusiness/activity/pub" + "code.superseriousbusiness.org/activity/pub" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing" "github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb" diff --git a/internal/federation/transport.go b/internal/federation/transport.go index 90cd4bbff..471a454ca 100644 --- a/internal/federation/transport.go +++ b/internal/federation/transport.go @@ -22,7 +22,7 @@ import ( "fmt" "net/url" - "codeberg.org/superseriousbusiness/activity/pub" + "code.superseriousbusiness.org/activity/pub" "github.com/superseriousbusiness/gotosocial/internal/uris" ) diff --git a/internal/gtscontext/context.go b/internal/gtscontext/context.go index b0dd4788c..985361a98 100644 --- a/internal/gtscontext/context.go +++ b/internal/gtscontext/context.go @@ -22,7 +22,7 @@ import ( "net/http" "net/url" - "codeberg.org/superseriousbusiness/httpsig" + "code.superseriousbusiness.org/httpsig" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) diff --git a/internal/media/metadata.go b/internal/media/metadata.go index e8eb32c0d..458ad00e2 100644 --- a/internal/media/metadata.go +++ b/internal/media/metadata.go @@ -22,7 +22,7 @@ import ( "os" "strings" - terminator "codeberg.org/superseriousbusiness/exif-terminator" + terminator "code.superseriousbusiness.org/exif-terminator" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/log" ) diff --git a/internal/messages/messages.go b/internal/messages/messages.go index 8b1c72d04..8abc714aa 100644 --- a/internal/messages/messages.go +++ b/internal/messages/messages.go @@ -23,9 +23,9 @@ import ( "net/url" "reflect" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "codeberg.org/gruf/go-structr" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) diff --git a/internal/middleware/signaturecheck.go b/internal/middleware/signaturecheck.go index 3e1bfef33..fd89cd886 100644 --- a/internal/middleware/signaturecheck.go +++ b/internal/middleware/signaturecheck.go @@ -25,7 +25,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/gtscontext" "github.com/superseriousbusiness/gotosocial/internal/log" - "codeberg.org/superseriousbusiness/httpsig" + "code.superseriousbusiness.org/httpsig" "github.com/gin-gonic/gin" ) diff --git a/internal/middleware/tokencheck.go b/internal/middleware/tokencheck.go index 10c77541f..e06aa08c7 100644 --- a/internal/middleware/tokencheck.go +++ b/internal/middleware/tokencheck.go @@ -20,7 +20,7 @@ package middleware import ( "net/http" - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4" "github.com/gin-gonic/gin" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/log" diff --git a/internal/oauth/clientstore.go b/internal/oauth/clientstore.go index 17de0e342..77e18bd07 100644 --- a/internal/oauth/clientstore.go +++ b/internal/oauth/clientstore.go @@ -20,8 +20,8 @@ package oauth import ( "context" - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/errors" "github.com/superseriousbusiness/gotosocial/internal/state" ) diff --git a/internal/oauth/errors.go b/internal/oauth/errors.go index 1ed9e838c..6f97d93cd 100644 --- a/internal/oauth/errors.go +++ b/internal/oauth/errors.go @@ -17,7 +17,7 @@ package oauth -import "codeberg.org/superseriousbusiness/oauth2/v4/errors" +import "code.superseriousbusiness.org/oauth2/v4/errors" // ErrInvalidRequest is an oauth spec compliant 'invalid_request' error. var ErrInvalidRequest = errors.New("invalid_request") diff --git a/internal/oauth/handlers/handlers.go b/internal/oauth/handlers/handlers.go index f0af007f0..df83cd548 100644 --- a/internal/oauth/handlers/handlers.go +++ b/internal/oauth/handlers/handlers.go @@ -25,10 +25,10 @@ import ( "slices" "strings" - "codeberg.org/superseriousbusiness/oauth2/v4" - oautherr "codeberg.org/superseriousbusiness/oauth2/v4/errors" - "codeberg.org/superseriousbusiness/oauth2/v4/manage" - "codeberg.org/superseriousbusiness/oauth2/v4/server" + "code.superseriousbusiness.org/oauth2/v4" + oautherr "code.superseriousbusiness.org/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4/manage" + "code.superseriousbusiness.org/oauth2/v4/server" apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtscontext" diff --git a/internal/oauth/server.go b/internal/oauth/server.go index 0bc7a3b01..4f08818b5 100644 --- a/internal/oauth/server.go +++ b/internal/oauth/server.go @@ -24,11 +24,11 @@ import ( "net/http" "strings" + "code.superseriousbusiness.org/oauth2/v4" + oautherr "code.superseriousbusiness.org/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4/manage" + "code.superseriousbusiness.org/oauth2/v4/server" errorsv2 "codeberg.org/gruf/go-errors/v2" - "codeberg.org/superseriousbusiness/oauth2/v4" - oautherr "codeberg.org/superseriousbusiness/oauth2/v4/errors" - "codeberg.org/superseriousbusiness/oauth2/v4/manage" - "codeberg.org/superseriousbusiness/oauth2/v4/server" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" diff --git a/internal/oauth/tokenstore.go b/internal/oauth/tokenstore.go index 8c6506fa3..87bde5504 100644 --- a/internal/oauth/tokenstore.go +++ b/internal/oauth/tokenstore.go @@ -22,9 +22,9 @@ import ( "errors" "time" + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/models" "codeberg.org/gruf/go-mutexes" - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/models" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/id" diff --git a/internal/processing/fedi/collections.go b/internal/processing/fedi/collections.go index 9da3a79a0..c802fb295 100644 --- a/internal/processing/fedi/collections.go +++ b/internal/processing/fedi/collections.go @@ -23,7 +23,7 @@ import ( "net/http" "net/url" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtserror" diff --git a/internal/processing/fedi/status.go b/internal/processing/fedi/status.go index a677da322..86925c2b1 100644 --- a/internal/processing/fedi/status.go +++ b/internal/processing/fedi/status.go @@ -24,7 +24,7 @@ import ( "slices" "strconv" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" diff --git a/internal/processing/oauth.go b/internal/processing/oauth.go index d597a6dc6..749716398 100644 --- a/internal/processing/oauth.go +++ b/internal/processing/oauth.go @@ -21,7 +21,7 @@ import ( "context" "net/http" - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4" "github.com/superseriousbusiness/gotosocial/internal/gtserror" ) diff --git a/internal/processing/user/create.go b/internal/processing/user/create.go index dde69a6ef..23fef0004 100644 --- a/internal/processing/user/create.go +++ b/internal/processing/user/create.go @@ -22,7 +22,7 @@ import ( "fmt" "time" - "codeberg.org/superseriousbusiness/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4" "github.com/superseriousbusiness/gotosocial/internal/ap" apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" "github.com/superseriousbusiness/gotosocial/internal/config" diff --git a/internal/processing/workers/federate.go b/internal/processing/workers/federate.go index 783bf8e39..909cb4d22 100644 --- a/internal/processing/workers/federate.go +++ b/internal/processing/workers/federate.go @@ -21,8 +21,8 @@ import ( "context" "net/url" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/federation" "github.com/superseriousbusiness/gotosocial/internal/gtserror" diff --git a/internal/transport/controller.go b/internal/transport/controller.go index 10bce7c59..1010802c1 100644 --- a/internal/transport/controller.go +++ b/internal/transport/controller.go @@ -29,9 +29,9 @@ import ( "net/http" "net/url" + "code.superseriousbusiness.org/activity/pub" "codeberg.org/gruf/go-byteutil" "codeberg.org/gruf/go-cache/v3" - "codeberg.org/superseriousbusiness/activity/pub" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/transport/signing.go b/internal/transport/signing.go index 6fe29a853..050ed609d 100644 --- a/internal/transport/signing.go +++ b/internal/transport/signing.go @@ -18,7 +18,7 @@ package transport import ( - "codeberg.org/superseriousbusiness/httpsig" + "code.superseriousbusiness.org/httpsig" ) var ( diff --git a/internal/transport/transport.go b/internal/transport/transport.go index 7d605f035..2ef070541 100644 --- a/internal/transport/transport.go +++ b/internal/transport/transport.go @@ -27,7 +27,7 @@ import ( "sync" "time" - "codeberg.org/superseriousbusiness/httpsig" + "code.superseriousbusiness.org/httpsig" "github.com/superseriousbusiness/gotosocial/internal/gtscontext" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/httpclient" diff --git a/internal/typeutils/astointernal_test.go b/internal/typeutils/astointernal_test.go index b49c14299..e2fd36159 100644 --- a/internal/typeutils/astointernal_test.go +++ b/internal/typeutils/astointernal_test.go @@ -24,8 +24,8 @@ import ( "io" "testing" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/cache" diff --git a/internal/typeutils/converter_test.go b/internal/typeutils/converter_test.go index 0d5ce03ad..eb7673743 100644 --- a/internal/typeutils/converter_test.go +++ b/internal/typeutils/converter_test.go @@ -18,7 +18,7 @@ package typeutils_test import ( - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/admin" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go index 9d9a7e289..a00501be5 100644 --- a/internal/typeutils/internaltoas.go +++ b/internal/typeutils/internaltoas.go @@ -26,9 +26,9 @@ import ( "net/url" "strings" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" diff --git a/internal/typeutils/wrap.go b/internal/typeutils/wrap.go index 894fd9a5e..0f63d1c6c 100644 --- a/internal/typeutils/wrap.go +++ b/internal/typeutils/wrap.go @@ -18,8 +18,8 @@ package typeutils import ( - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/id" "github.com/superseriousbusiness/gotosocial/internal/log" diff --git a/testrig/testmodels.go b/testrig/testmodels.go index e12ac3405..dd74031c1 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -34,9 +34,9 @@ import ( "strings" "time" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/transport" diff --git a/testrig/transportcontroller.go b/testrig/transportcontroller.go index d66c71179..ae7a846d3 100644 --- a/testrig/transportcontroller.go +++ b/testrig/transportcontroller.go @@ -26,9 +26,9 @@ import ( "strings" "sync" - "codeberg.org/superseriousbusiness/activity/pub" - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" + "code.superseriousbusiness.org/activity/pub" + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" "github.com/superseriousbusiness/gotosocial/internal/ap" apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" "github.com/superseriousbusiness/gotosocial/internal/federation" diff --git a/vendor/code.superseriousbusiness.org/activity/LICENSE b/vendor/code.superseriousbusiness.org/activity/LICENSE new file mode 100644 index 000000000..a9e8aefad --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2018, go-fed +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/code.superseriousbusiness.org/activity/pub/README.md b/vendor/code.superseriousbusiness.org/activity/pub/README.md new file mode 100644 index 000000000..37261e712 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/README.md @@ -0,0 +1,270 @@ +# pub + +Implements the Social and Federating Protocols in the ActivityPub specification. + +## Reference & Tutorial + +The [go-fed website](https://go-fed.org/) contains tutorials and reference +materials, in addition to the rest of this README. + +## How To Use + +``` +go get github.com/go-fed/activity +``` + +The root of all ActivityPub behavior is the `Actor`, which requires you to +implement a few interfaces: + +```golang +import ( + "code.superseriousbusiness.org/activity/pub" +) + +type myActivityPubApp struct { /* ... */ } +type myAppsDatabase struct { /* ... */ } +type myAppsClock struct { /* ... */ } + +var ( + // Your app will implement pub.CommonBehavior, and either + // pub.SocialProtocol, pub.FederatingProtocol, or both. + myApp = &myActivityPubApp{} + myCommonBehavior pub.CommonBehavior = myApp + mySocialProtocol pub.SocialProtocol = myApp + myFederatingProtocol pub.FederatingProtocol = myApp + // Your app's database implementation. + myDatabase pub.Database = &myAppsDatabase{} + // Your app's clock. + myClock pub.Clock = &myAppsClock{} +) + +// Only support the C2S Social protocol +actor := pub.NewSocialActor( + myCommonBehavior, + mySocialProtocol, + myDatabase, + myClock) +// OR +// +// Only support S2S Federating protocol +actor = pub.NewFederatingActor( + myCommonBehavior, + myFederatingProtocol, + myDatabase, + myClock) +// OR +// +// Support both C2S Social and S2S Federating protocol. +actor = pub.NewActor( + myCommonBehavior, + mySocialProtocol, + myFederatingProtocol, + myDatabase, + myClock) +``` + +Next, hook the `Actor` into your web server: + +```golang +// The application's actor +var actor pub.Actor +var outboxHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) { + c := context.Background() + // Populate c with request-specific information + if handled, err := actor.PostOutbox(c, w, r); err != nil { + // Write to w + return + } else if handled { + return + } else if handled, err = actor.GetOutbox(c, w, r); err != nil { + // Write to w + return + } else if handled { + return + } + // else: + // + // Handle non-ActivityPub request, such as serving a webpage. +} +var inboxHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) { + c := context.Background() + // Populate c with request-specific information + if handled, err := actor.PostInbox(c, w, r); err != nil { + // Write to w + return + } else if handled { + return + } else if handled, err = actor.GetInbox(c, w, r); err != nil { + // Write to w + return + } else if handled { + return + } + // else: + // + // Handle non-ActivityPub request, such as serving a webpage. +} +// Add the handlers to a HTTP server +serveMux := http.NewServeMux() +serveMux.HandleFunc("/actor/outbox", outboxHandler) +serveMux.HandleFunc("/actor/inbox", inboxHandler) +var server http.Server +server.Handler = serveMux +``` + +To serve ActivityStreams data: + +```golang +myHander := pub.NewActivityStreamsHandler(myDatabase, myClock) +var activityStreamsHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) { + c := context.Background() + // Populate c with request-specific information + if handled, err := myHandler(c, w, r); err != nil { + // Write to w + return + } else if handled { + return + } + // else: + // + // Handle non-ActivityPub request, such as serving a webpage. +} +serveMux.HandleFunc("/some/data/like/a/note", activityStreamsHandler) +``` + +### Dependency Injection + +Package `pub` relies on dependency injection to provide out-of-the-box support +for ActivityPub. The interfaces to be satisfied are: + +* `CommonBehavior` - Behavior needed regardless of which Protocol is used. +* `SocialProtocol` - Behavior needed for the Social Protocol. +* `FederatingProtocol` - Behavior needed for the Federating Protocol. +* `Database` - The data store abstraction, not tied to the `database/sql` +package. +* `Clock` - The server's internal clock. +* `Transport` - Responsible for the network that serves requests and deliveries +of ActivityStreams data. A `HttpSigTransport` type is provided. + +These implementations form the core of an application's behavior without +worrying about the particulars and pitfalls of the ActivityPub protocol. +Implementing these interfaces gives you greater assurance about being +ActivityPub compliant. + +### Application Logic + +The `SocialProtocol` and `FederatingProtocol` are responsible for returning +callback functions compatible with `streams.TypeResolver`. They also return +`SocialWrappedCallbacks` and `FederatingWrappedCallbacks`, which are nothing +more than a bundle of default behaviors for types like `Create`, `Update`, and +so on. + +Applications will want to focus on implementing their specific behaviors in the +callbacks, and have fine-grained control over customization: + +```golang +// Implements the FederatingProtocol interface. +// +// This illustration can also be applied for the Social Protocol. +func (m *myAppsFederatingProtocol) Callbacks(c context.Context) (wrapped pub.FederatingWrappedCallbacks, other []interface{}) { + // The context 'c' has request-specific logic and can be used to apply complex + // logic building the right behaviors, if desired. + // + // 'c' will later be passed through to the callbacks created below. + wrapped = pub.FederatingWrappedCallbacks{ + Create: func(ctx context.Context, create vocab.ActivityStreamsCreate) error { + // This function is wrapped by default behavior. + // + // More application specific logic can be written here. + // + // 'ctx' will have request-specific information from the HTTP handler. It + // is the same as the 'c' passed to the Callbacks method. + // 'create' has, at this point, already triggered the recommended + // ActivityPub side effect behavior. The application can process it + // further as needed. + return nil + }, + } + // The 'other' must contain functions that satisfy the signature pattern + // required by streams.JSONResolver. + // + // If they are not, at runtime errors will be returned to indicate this. + other = []interface{}{ + // The FederatingWrappedCallbacks has default behavior for an "Update" type, + // but since we are providing this behavior in "other" and not in the + // FederatingWrappedCallbacks.Update member, we will entirely replace the + // default behavior provided by go-fed. Be careful that this still + // implements ActivityPub properly. + func(ctx context.Context, update vocab.ActivityStreamsUpdate) error { + // This function is NOT wrapped by default behavior. + // + // Application specific logic can be written here. + // + // 'ctx' will have request-specific information from the HTTP handler. It + // is the same as the 'c' passed to the Callbacks method. + // 'update' will NOT trigger the recommended ActivityPub side effect + // behavior. The application should do so in addition to any other custom + // side effects required. + return nil + }, + // The "Listen" type has no default suggested behavior in ActivityPub, so + // this just makes this application able to handle "Listen" activities. + func(ctx context.Context, listen vocab.ActivityStreamsListen) error { + // This function is NOT wrapped by default behavior. There's not a + // FederatingWrappedCallbacks.Listen member to wrap. + // + // Application specific logic can be written here. + // + // 'ctx' will have request-specific information from the HTTP handler. It + // is the same as the 'c' passed to the Callbacks method. + // 'listen' can be processed with side effects as the application needs. + return nil + }, + } + return +} +``` + +The `pub` package supports applications that grow into more custom solutions by +overriding the default behaviors as needed. + +### ActivityStreams Extensions: Future-Proofing An Application + +Package `pub` relies on the `streams.TypeResolver` and `streams.JSONResolver` +code generated types. As new ActivityStreams extensions are developed and their +code is generated, `pub` will automatically pick up support for these +extensions. + +The steps to rapidly implement a new extension in a `pub` application are: + +1. Generate an OWL definition of the ActivityStreams extension. This definition +could be the same one defining the vocabulary at the `@context` IRI. +2. Run `astool` to autogenerate the golang types in the `streams` package. +3. Implement the application's callbacks in the `FederatingProtocol.Callbacks` +or `SocialProtocol.Callbacks` for the new behaviors needed. +4. Build the application, which builds `pub`, with the newly generated `streams` +code. No code changes in `pub` are required. + +Whether an author of an ActivityStreams extension or an application developer, +these quick steps should reduce the barrier to adopion in a statically-typed +environment. + +### DelegateActor + +For those that need a near-complete custom ActivityPub solution, or want to have +that possibility in the future after adopting go-fed, the `DelegateActor` +interface can be used to obtain an `Actor`: + +```golang +// Use custom ActivityPub implementation +actor = pub.NewCustomActor( + myDelegateActor, + isSocialProtocolEnabled, + isFederatedProtocolEnabled, + myAppsClock) +``` + +It does not guarantee that an implementation adheres to the ActivityPub +specification. It acts as a stepping stone for applications that want to build +up to a fully custom solution and not be locked into the `pub` package +implementation. diff --git a/vendor/code.superseriousbusiness.org/activity/pub/activity.go b/vendor/code.superseriousbusiness.org/activity/pub/activity.go new file mode 100644 index 000000000..35d667749 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/activity.go @@ -0,0 +1,49 @@ +package pub + +import ( + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// Activity represents any ActivityStreams Activity type. +// +// The Activity types provided in the streams package implement this. +type Activity interface { + // Activity is also a vocab.Type + vocab.Type + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() vocab.ActivityStreamsActorProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() vocab.ActivityStreamsCcProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() vocab.ActivityStreamsToProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/actor.go b/vendor/code.superseriousbusiness.org/activity/pub/actor.go new file mode 100644 index 000000000..860325f5d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/actor.go @@ -0,0 +1,128 @@ +package pub + +import ( + "context" + "net/http" + "net/url" + + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// Actor represents ActivityPub's actor concept. It conceptually has an inbox +// and outbox that receives either a POST or GET request, which triggers side +// effects in the federating application. +// +// An Actor within an application may federate server-to-server (Federation +// Protocol), client-to-server (Social API), or both. The Actor represents the +// server in either use case. +// +// An actor can be created by calling NewSocialActor (only the Social Protocol +// is supported), NewFederatingActor (only the Federating Protocol is +// supported), NewActor (both are supported), or NewCustomActor (neither are). +// +// Not all Actors have the same behaviors depending on the constructor used to +// create them. Refer to the constructor's documentation to determine the exact +// behavior of the Actor on an application. +// +// The behaviors documented here are common to all Actors returned by any +// constructor. +type Actor interface { + // PostInbox returns true if the request was handled as an ActivityPub + // POST to an actor's inbox. If false, the request was not an + // ActivityPub request and may still be handled by the caller in + // another way, such as serving a web page. + // + // If the error is nil, then the ResponseWriter's headers and response + // has already been written. If a non-nil error is returned, then no + // response has been written. + // + // If the Actor was constructed with the Federated Protocol enabled, + // side effects will occur. + // + // If the Federated Protocol is not enabled, writes the + // http.StatusMethodNotAllowed status code in the response. No side + // effects occur. + // + // The request and data of your application will be interpreted as + // having an HTTPS protocol scheme. + PostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) + // PostInboxScheme is similar to PostInbox, except clients are able to + // specify which protocol scheme to handle the incoming request and the + // data stored within the application (HTTP, HTTPS, etc). + PostInboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) + // GetInbox returns true if the request was handled as an ActivityPub + // GET to an actor's inbox. If false, the request was not an ActivityPub + // request and may still be handled by the caller in another way, such + // as serving a web page. + // + // If the error is nil, then the ResponseWriter's headers and response + // has already been written. If a non-nil error is returned, then no + // response has been written. + // + // If the request is an ActivityPub request, the Actor will defer to the + // application to determine the correct authorization of the request and + // the resulting OrderedCollection to respond with. The Actor handles + // serializing this OrderedCollection and responding with the correct + // headers and http.StatusOK. + GetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) + // PostOutbox returns true if the request was handled as an ActivityPub + // POST to an actor's outbox. If false, the request was not an + // ActivityPub request and may still be handled by the caller in another + // way, such as serving a web page. + // + // If the error is nil, then the ResponseWriter's headers and response + // has already been written. If a non-nil error is returned, then no + // response has been written. + // + // If the Actor was constructed with the Social Protocol enabled, side + // effects will occur. + // + // If the Social Protocol is not enabled, writes the + // http.StatusMethodNotAllowed status code in the response. No side + // effects occur. + // + // If the Social and Federated Protocol are both enabled, it will handle + // the side effects of receiving an ActivityStream Activity, and then + // federate the Activity to peers. + // + // The request will be interpreted as having an HTTPS scheme. + PostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) + // PostOutboxScheme is similar to PostOutbox, except clients are able to + // specify which protocol scheme to handle the incoming request and the + // data stored within the application (HTTP, HTTPS, etc). + PostOutboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) + // GetOutbox returns true if the request was handled as an ActivityPub + // GET to an actor's outbox. If false, the request was not an + // ActivityPub request. + // + // If the error is nil, then the ResponseWriter's headers and response + // has already been written. If a non-nil error is returned, then no + // response has been written. + // + // If the request is an ActivityPub request, the Actor will defer to the + // application to determine the correct authorization of the request and + // the resulting OrderedCollection to respond with. The Actor handles + // serializing this OrderedCollection and responding with the correct + // headers and http.StatusOK. + GetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) +} + +// FederatingActor is an Actor that allows programmatically delivering an +// Activity to a federating peer. +type FederatingActor interface { + Actor + // Send a federated activity. + // + // The provided url must be the outbox of the sender. All processing of + // the activity occurs similarly to the C2S flow: + // - If t is not an Activity, it is wrapped in a Create activity. + // - A new ID is generated for the activity. + // - The activity is added to the specified outbox. + // - The activity is prepared and delivered to recipients. + // + // Note that this function will only behave as expected if the + // implementation has been constructed to support federation. This + // method will guaranteed work for non-custom Actors. For custom actors, + // care should be used to not call this method if only C2S is supported. + Send(c context.Context, outbox *url.URL, t vocab.Type) (Activity, error) +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/base_actor.go b/vendor/code.superseriousbusiness.org/activity/pub/base_actor.go new file mode 100644 index 000000000..248fbd361 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/base_actor.go @@ -0,0 +1,475 @@ +package pub + +import ( + "context" + "encoding/json" + "fmt" + "net/http" + "net/url" + + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// baseActor must satisfy the Actor interface. +var _ Actor = &baseActor{} + +// baseActor is an application-independent ActivityPub implementation. It does +// not implement the entire protocol, and relies on a delegate to do so. It +// only implements the part of the protocol that is side-effect-free, allowing +// an existing application to write a DelegateActor that glues their application +// into the ActivityPub world. +// +// It is preferred to use a DelegateActor provided by this library, so that the +// application does not need to worry about the ActivityPub implementation. +type baseActor struct { + // delegate contains application-specific delegation logic. + delegate DelegateActor + // enableSocialProtocol enables or disables the Social API, the client to + // server part of ActivityPub. Useful if permitting remote clients to + // act on behalf of the users of the client application. + enableSocialProtocol bool + // enableFederatedProtocol enables or disables the Federated Protocol, or the + // server to server part of ActivityPub. Useful to permit integrating + // with the rest of the federative web. + enableFederatedProtocol bool + // clock simply tracks the current time. + clock Clock +} + +// baseActorFederating must satisfy the FederatingActor interface. +var _ FederatingActor = &baseActorFederating{} + +// baseActorFederating is a baseActor that also satisfies the FederatingActor +// interface. +// +// The baseActor is preserved as an Actor which will not successfully cast to a +// FederatingActor. +type baseActorFederating struct { + baseActor +} + +// NewSocialActor builds a new Actor concept that handles only the Social +// Protocol part of ActivityPub. +// +// This Actor can be created once in an application and reused to handle +// multiple requests concurrently and for different endpoints. +// +// It leverages as much of go-fed as possible to ensure the implementation is +// compliant with the ActivityPub specification, while providing enough freedom +// to be productive without shooting one's self in the foot. +// +// Do not try to use NewSocialActor and NewFederatingActor together to cover +// both the Social and Federating parts of the protocol. Instead, use NewActor. +func NewSocialActor(c CommonBehavior, + c2s SocialProtocol, + db Database, + clock Clock) Actor { + return &baseActor{ + // Use SideEffectActor without s2s. + delegate: NewSideEffectActor(c, nil, c2s, db, clock), + enableSocialProtocol: true, + clock: clock, + } +} + +// NewFederatingActor builds a new Actor concept that handles only the Federating +// Protocol part of ActivityPub. +// +// This Actor can be created once in an application and reused to handle +// multiple requests concurrently and for different endpoints. +// +// It leverages as much of go-fed as possible to ensure the implementation is +// compliant with the ActivityPub specification, while providing enough freedom +// to be productive without shooting one's self in the foot. +// +// Do not try to use NewSocialActor and NewFederatingActor together to cover +// both the Social and Federating parts of the protocol. Instead, use NewActor. +func NewFederatingActor(c CommonBehavior, + s2s FederatingProtocol, + db Database, + clock Clock) FederatingActor { + return &baseActorFederating{ + baseActor{ + // Use SideEffectActor without c2s. + delegate: NewSideEffectActor(c, s2s, nil, db, clock), + enableFederatedProtocol: true, + clock: clock, + }, + } +} + +// NewActor builds a new Actor concept that handles both the Social and +// Federating Protocol parts of ActivityPub. +// +// This Actor can be created once in an application and reused to handle +// multiple requests concurrently and for different endpoints. +// +// It leverages as much of go-fed as possible to ensure the implementation is +// compliant with the ActivityPub specification, while providing enough freedom +// to be productive without shooting one's self in the foot. +func NewActor(c CommonBehavior, + c2s SocialProtocol, + s2s FederatingProtocol, + db Database, + clock Clock) FederatingActor { + return &baseActorFederating{ + baseActor{ + delegate: NewSideEffectActor(c, s2s, c2s, db, clock), + enableSocialProtocol: true, + enableFederatedProtocol: true, + clock: clock, + }, + } +} + +// NewCustomActor allows clients to create a custom ActivityPub implementation +// for the Social Protocol, Federating Protocol, or both. +// +// It still uses the library as a high-level scaffold, which has the benefit of +// allowing applications to grow into a custom ActivityPub solution without +// having to refactor the code that passes HTTP requests into the Actor. +// +// It is possible to create a DelegateActor that is not ActivityPub compliant. +// Use with due care. +// +// If you find yourself passing a SideEffectActor in as the DelegateActor, +// consider using NewActor, NewFederatingActor, or NewSocialActor instead. +func NewCustomActor(delegate DelegateActor, + enableSocialProtocol, enableFederatedProtocol bool, + clock Clock) FederatingActor { + return &baseActorFederating{ + baseActor{ + delegate: delegate, + enableSocialProtocol: enableSocialProtocol, + enableFederatedProtocol: enableFederatedProtocol, + clock: clock, + }, + } +} + +// PostInbox implements the generic algorithm for handling a POST request to an +// actor's inbox independent on an application. It relies on a delegate to +// implement application specific functionality. +// +// Only supports serving data with identifiers having the HTTPS scheme. +func (b *baseActor) PostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { + return b.PostInboxScheme(c, w, r, "https") +} + +// PostInbox implements the generic algorithm for handling a POST request to an +// actor's inbox independent on an application. It relies on a delegate to +// implement application specific functionality. +// +// Specifying the "scheme" allows for retrieving ActivityStreams content with +// identifiers such as HTTP, HTTPS, or other protocol schemes. +func (b *baseActor) PostInboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) { + // Do nothing if it is not an ActivityPub POST request. + if !isActivityPubPost(r) { + return false, nil + } + // If the Federated Protocol is not enabled, then this endpoint is not + // enabled. + if !b.enableFederatedProtocol { + w.WriteHeader(http.StatusMethodNotAllowed) + return true, nil + } + // Check the peer request is authentic. + c, authenticated, err := b.delegate.AuthenticatePostInbox(c, w, r) + if err != nil { + return true, err + } else if !authenticated { + return true, nil + } + // Begin processing the request, but have not yet applied + // authorization (ex: blocks). Obtain the activity reject unknown + // activities. + m, err := readActivityPubReq(r) + if err != nil { + return true, err + } + asValue, err := streams.ToType(c, m) + if err != nil && !streams.IsUnmatchedErr(err) { + return true, err + } else if streams.IsUnmatchedErr(err) { + // Respond with bad request -- we do not understand the type. + w.WriteHeader(http.StatusBadRequest) + return true, nil + } + activity, ok := asValue.(Activity) + if !ok { + return true, fmt.Errorf("activity streams value is not an Activity: %T", asValue) + } + if activity.GetJSONLDId() == nil { + w.WriteHeader(http.StatusBadRequest) + return true, nil + } + // Allow server implementations to set context data with a hook. + c, err = b.delegate.PostInboxRequestBodyHook(c, r, activity) + if err != nil { + return true, err + } + // Check authorization of the activity. + authorized, err := b.delegate.AuthorizePostInbox(c, w, activity) + if err != nil { + return true, err + } else if !authorized { + return true, nil + } + // Post the activity to the actor's inbox and trigger side effects for + // that particular Activity type. It is up to the delegate to resolve + // the given map. + inboxId := requestId(r, scheme) + err = b.delegate.PostInbox(c, inboxId, activity) + if err != nil { + // Special case: We know it is a bad request if the object or + // target properties needed to be populated, but weren't. + // + // Send the rejection to the peer. + if err == ErrObjectRequired || err == ErrTargetRequired { + w.WriteHeader(http.StatusBadRequest) + return true, nil + } + return true, err + } + // Our side effects are complete, now delegate determining whether to + // do inbox forwarding, as well as the action to do it. + if err := b.delegate.InboxForwarding(c, inboxId, activity); err != nil { + return true, err + } + // Request has been processed. Begin responding to the request. + // + // Simply respond with an OK status to the peer. + w.WriteHeader(http.StatusOK) + return true, nil +} + +// GetInbox implements the generic algorithm for handling a GET request to an +// actor's inbox independent on an application. It relies on a delegate to +// implement application specific functionality. +func (b *baseActor) GetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { + // Do nothing if it is not an ActivityPub GET request. + if !isActivityPubGet(r) { + return false, nil + } + // Delegate authenticating and authorizing the request. + c, authenticated, err := b.delegate.AuthenticateGetInbox(c, w, r) + if err != nil { + return true, err + } else if !authenticated { + return true, nil + } + // Everything is good to begin processing the request. + oc, err := b.delegate.GetInbox(c, r) + if err != nil { + return true, err + } + // Deduplicate the 'orderedItems' property by ID. + err = dedupeOrderedItems(oc) + if err != nil { + return true, err + } + // Request has been processed. Begin responding to the request. + // + // Serialize the OrderedCollection. + m, err := streams.Serialize(oc) + if err != nil { + return true, err + } + raw, err := json.Marshal(m) + if err != nil { + return true, err + } + // Write the response. + addResponseHeaders(w.Header(), b.clock, raw) + w.WriteHeader(http.StatusOK) + n, err := w.Write(raw) + if err != nil { + return true, err + } else if n != len(raw) { + return true, fmt.Errorf("ResponseWriter.Write wrote %d of %d bytes", n, len(raw)) + } + return true, nil +} + +// PostOutbox implements the generic algorithm for handling a POST request to an +// actor's outbox independent on an application. It relies on a delegate to +// implement application specific functionality. +// +// Only supports serving data with identifiers having the HTTPS scheme. +func (b *baseActor) PostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { + return b.PostOutboxScheme(c, w, r, "https") +} + +// PostOutbox implements the generic algorithm for handling a POST request to an +// actor's outbox independent on an application. It relies on a delegate to +// implement application specific functionality. +// +// Specifying the "scheme" allows for retrieving ActivityStreams content with +// identifiers such as HTTP, HTTPS, or other protocol schemes. +func (b *baseActor) PostOutboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) { + // Do nothing if it is not an ActivityPub POST request. + if !isActivityPubPost(r) { + return false, nil + } + // If the Social API is not enabled, then this endpoint is not enabled. + if !b.enableSocialProtocol { + w.WriteHeader(http.StatusMethodNotAllowed) + return true, nil + } + // Delegate authenticating and authorizing the request. + c, authenticated, err := b.delegate.AuthenticatePostOutbox(c, w, r) + if err != nil { + return true, err + } else if !authenticated { + return true, nil + } + // Everything is good to begin processing the request. + m, err := readActivityPubReq(r) + if err != nil { + return true, err + } + // Note that converting to a Type will NOT successfully convert types + // not known to go-fed. This prevents accidentally wrapping an Activity + // type unknown to go-fed in a Create below. Instead, + // streams.ErrUnhandledType will be returned here. + asValue, err := streams.ToType(c, m) + if err != nil && !streams.IsUnmatchedErr(err) { + return true, err + } else if streams.IsUnmatchedErr(err) { + // Respond with bad request -- we do not understand the type. + w.WriteHeader(http.StatusBadRequest) + return true, nil + } + // Allow server implementations to set context data with a hook. + c, err = b.delegate.PostOutboxRequestBodyHook(c, r, asValue) + if err != nil { + return true, err + } + // The HTTP request steps are complete, complete the rest of the outbox + // and delivery process. + outboxId := requestId(r, scheme) + activity, err := b.deliver(c, outboxId, asValue, m) + // Special case: We know it is a bad request if the object or + // target properties needed to be populated, but weren't. + // + // Send the rejection to the client. + if err == ErrObjectRequired || err == ErrTargetRequired { + w.WriteHeader(http.StatusBadRequest) + return true, nil + } else if err != nil { + return true, err + } + // Respond to the request with the new Activity's IRI location. + w.Header().Set(locationHeader, activity.GetJSONLDId().Get().String()) + w.WriteHeader(http.StatusCreated) + return true, nil +} + +// GetOutbox implements the generic algorithm for handling a Get request to an +// actor's outbox independent on an application. It relies on a delegate to +// implement application specific functionality. +func (b *baseActor) GetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { + // Do nothing if it is not an ActivityPub GET request. + if !isActivityPubGet(r) { + return false, nil + } + // Delegate authenticating and authorizing the request. + c, authenticated, err := b.delegate.AuthenticateGetOutbox(c, w, r) + if err != nil { + return true, err + } else if !authenticated { + return true, nil + } + // Everything is good to begin processing the request. + oc, err := b.delegate.GetOutbox(c, r) + if err != nil { + return true, err + } + // Request has been processed. Begin responding to the request. + // + // Serialize the OrderedCollection. + m, err := streams.Serialize(oc) + if err != nil { + return true, err + } + raw, err := json.Marshal(m) + if err != nil { + return true, err + } + // Write the response. + addResponseHeaders(w.Header(), b.clock, raw) + w.WriteHeader(http.StatusOK) + n, err := w.Write(raw) + if err != nil { + return true, err + } else if n != len(raw) { + return true, fmt.Errorf("ResponseWriter.Write wrote %d of %d bytes", n, len(raw)) + } + return true, nil +} + +// deliver delegates all outbox handling steps and optionally will federate the +// activity if the federated protocol is enabled. +// +// This function is not exported so an Actor that only supports C2S cannot be +// type casted to a FederatingActor. It doesn't exactly fit the Send method +// signature anyways. +// +// Note: 'm' is nilable. +func (b *baseActor) deliver(c context.Context, outbox *url.URL, asValue vocab.Type, m map[string]interface{}) (activity Activity, err error) { + // If the value is not an Activity or type extending from Activity, then + // we need to wrap it in a Create Activity. + if !streams.IsOrExtendsActivityStreamsActivity(asValue) { + asValue, err = b.delegate.WrapInCreate(c, asValue, outbox) + if err != nil { + return + } + } + // At this point, this should be a safe conversion. If this error is + // triggered, then there is either a bug in the delegation of + // WrapInCreate, behavior is not lining up in the generated ExtendedBy + // code, or something else is incorrect with the type system. + var ok bool + activity, ok = asValue.(Activity) + if !ok { + err = fmt.Errorf("activity streams value is not an Activity: %T", asValue) + return + } + // Delegate generating new IDs for the activity and all new objects. + if err = b.delegate.AddNewIDs(c, activity); err != nil { + return + } + // Post the activity to the actor's outbox and trigger side effects for + // that particular Activity type. + // + // Since 'm' is nil-able and side effects may need access to literal nil + // values, such as for Update activities, ensure 'm' is non-nil. + if m == nil { + m, err = asValue.Serialize() + if err != nil { + return + } + } + deliverable, err := b.delegate.PostOutbox(c, activity, outbox, m) + if err != nil { + return + } + // Request has been processed and all side effects internal to this + // application server have finished. Begin side effects affecting other + // servers and/or the client who sent this request. + // + // If we are federating and the type is a deliverable one, then deliver + // the activity to federating peers. + if b.enableFederatedProtocol && deliverable { + if err = b.delegate.Deliver(c, outbox, activity); err != nil { + return + } + } + return +} + +// Send is programmatically accessible if the federated protocol is enabled. +func (b *baseActorFederating) Send(c context.Context, outbox *url.URL, t vocab.Type) (Activity, error) { + return b.deliver(c, outbox, t, nil) +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/clock.go b/vendor/code.superseriousbusiness.org/activity/pub/clock.go new file mode 100644 index 000000000..bf19e49f7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/clock.go @@ -0,0 +1,11 @@ +package pub + +import ( + "time" +) + +// Clock determines the time. +type Clock interface { + // Now returns the current time. + Now() time.Time +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/common_behavior.go b/vendor/code.superseriousbusiness.org/activity/pub/common_behavior.go new file mode 100644 index 000000000..aaa6cf8b2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/common_behavior.go @@ -0,0 +1,90 @@ +package pub + +import ( + "context" + "net/http" + "net/url" + + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// Common contains functions required for both the Social API and Federating +// Protocol. +// +// It is passed to the library as a dependency injection from the client +// application. +type CommonBehavior interface { + // AuthenticateGetInbox delegates the authentication of a GET to an + // inbox. + // + // Always called, regardless whether the Federated Protocol or Social + // API is enabled. + // + // If an error is returned, it is passed back to the caller of + // GetInbox. In this case, the implementation must not write a + // response to the ResponseWriter as is expected that the client will + // do so when handling the error. The 'authenticated' is ignored. + // + // If no error is returned, but authentication or authorization fails, + // then authenticated must be false and error nil. It is expected that + // the implementation handles writing to the ResponseWriter in this + // case. + // + // Finally, if the authentication and authorization succeeds, then + // authenticated must be true and error nil. The request will continue + // to be processed. + AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) + // AuthenticateGetOutbox delegates the authentication of a GET to an + // outbox. + // + // Always called, regardless whether the Federated Protocol or Social + // API is enabled. + // + // If an error is returned, it is passed back to the caller of + // GetOutbox. In this case, the implementation must not write a + // response to the ResponseWriter as is expected that the client will + // do so when handling the error. The 'authenticated' is ignored. + // + // If no error is returned, but authentication or authorization fails, + // then authenticated must be false and error nil. It is expected that + // the implementation handles writing to the ResponseWriter in this + // case. + // + // Finally, if the authentication and authorization succeeds, then + // authenticated must be true and error nil. The request will continue + // to be processed. + AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) + // GetOutbox returns the OrderedCollection inbox of the actor for this + // context. It is up to the implementation to provide the correct + // collection for the kind of authorization given in the request. + // + // AuthenticateGetOutbox will be called prior to this. + // + // Always called, regardless whether the Federated Protocol or Social + // API is enabled. + GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) + // NewTransport returns a new Transport on behalf of a specific actor. + // + // The actorBoxIRI will be either the inbox or outbox of an actor who is + // attempting to do the dereferencing or delivery. Any authentication + // scheme applied on the request must be based on this actor. The + // request must contain some sort of credential of the user, such as a + // HTTP Signature. + // + // The gofedAgent passed in should be used by the Transport + // implementation in the User-Agent, as well as the application-specific + // user agent string. The gofedAgent will indicate this library's use as + // well as the library's version number. + // + // Any server-wide rate-limiting that needs to occur should happen in a + // Transport implementation. This factory function allows this to be + // created, so peer servers are not DOS'd. + // + // Any retry logic should also be handled by the Transport + // implementation. + // + // Note that the library will not maintain a long-lived pointer to the + // returned Transport so that any private credentials are able to be + // garbage collected. + NewTransport(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error) +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/database.go b/vendor/code.superseriousbusiness.org/activity/pub/database.go new file mode 100644 index 000000000..af7756c34 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/database.go @@ -0,0 +1,152 @@ +package pub + +import ( + "context" + "net/url" + + "code.superseriousbusiness.org/activity/streams/vocab" +) + +type Database interface { + // Lock takes a lock for the object at the specified id. If an error + // is returned, the lock must not have been taken. + // + // The lock must be able to succeed for an id that does not exist in + // the database. This means acquiring the lock does not guarantee the + // entry exists in the database. + // + // Locks are encouraged to be lightweight and in the Go layer, as some + // processes require tight loops acquiring and releasing locks. + // + // Used to ensure race conditions in multiple requests do not occur. + Lock(c context.Context, id *url.URL) (unlock func(), err error) + // InboxContains returns true if the OrderedCollection at 'inbox' + // contains the specified 'id'. + // + // The library makes this call only after acquiring a lock first. + InboxContains(c context.Context, inbox, id *url.URL) (contains bool, err error) + // GetInbox returns the first ordered collection page of the outbox at + // the specified IRI, for prepending new items. + // + // The library makes this call only after acquiring a lock first. + GetInbox(c context.Context, inboxIRI *url.URL) (inbox vocab.ActivityStreamsOrderedCollectionPage, err error) + // SetInbox saves the inbox value given from GetInbox, with new items + // prepended. Note that the new items must not be added as independent + // database entries. Separate calls to Create will do that. + // + // The library makes this call only after acquiring a lock first. + SetInbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error + // Owns returns true if the database has an entry for the IRI and it + // exists in the database. + // + // The library makes this call only after acquiring a lock first. + Owns(c context.Context, id *url.URL) (owns bool, err error) + // ActorForOutbox fetches the actor's IRI for the given outbox IRI. + // + // The library makes this call only after acquiring a lock first. + ActorForOutbox(c context.Context, outboxIRI *url.URL) (actorIRI *url.URL, err error) + // ActorForInbox fetches the actor's IRI for the given outbox IRI. + // + // The library makes this call only after acquiring a lock first. + ActorForInbox(c context.Context, inboxIRI *url.URL) (actorIRI *url.URL, err error) + // OutboxForInbox fetches the corresponding actor's outbox IRI for the + // actor's inbox IRI. + // + // The library makes this call only after acquiring a lock first. + OutboxForInbox(c context.Context, inboxIRI *url.URL) (outboxIRI *url.URL, err error) + // InboxesForIRI fetches inboxes corresponding to the given iri. + // This allows your server to skip remote dereferencing of iris + // in order to speed up message delivery, if desired. + // + // It is acceptable to just return nil or an empty slice for the inboxIRIs, + // if you don't know the inbox iri, or you don't wish to use this feature. + // In this case, the library will attempt to resolve inboxes of the iri + // by remote dereferencing instead. + // + // If the input iri is the iri of an Actor, then the inbox for the actor + // should be returned as a single-entry slice. + // + // If the input iri is a Collection (such as a Collection of followers), + // then each follower inbox IRI should be returned in the inboxIRIs slice. + // + // The library makes this call only after acquiring a lock first. + InboxesForIRI(c context.Context, iri *url.URL) (inboxIRIs []*url.URL, err error) + // Exists returns true if the database has an entry for the specified + // id. It may not be owned by this application instance. + // + // The library makes this call only after acquiring a lock first. + Exists(c context.Context, id *url.URL) (exists bool, err error) + // Get returns the database entry for the specified id. + // + // The library makes this call only after acquiring a lock first. + Get(c context.Context, id *url.URL) (value vocab.Type, err error) + // Create adds a new entry to the database which must be able to be + // keyed by its id. + // + // Note that Activity values received from federated peers may also be + // created in the database this way if the Federating Protocol is + // enabled. The client may freely decide to store only the id instead of + // the entire value. + // + // The library makes this call only after acquiring a lock first. + // + // Under certain conditions and network activities, Create may be called + // multiple times for the same ActivityStreams object. + Create(c context.Context, asType vocab.Type) error + // Update sets an existing entry to the database based on the value's + // id. + // + // Note that Activity values received from federated peers may also be + // updated in the database this way if the Federating Protocol is + // enabled. The client may freely decide to store only the id instead of + // the entire value. + // + // The library makes this call only after acquiring a lock first. + Update(c context.Context, asType vocab.Type) error + // Delete removes the entry with the given id. + // + // Delete is only called for federated objects. Deletes from the Social + // Protocol instead call Update to create a Tombstone. + // + // The library makes this call only after acquiring a lock first. + Delete(c context.Context, id *url.URL) error + // GetOutbox returns the first ordered collection page of the outbox + // at the specified IRI, for prepending new items. + // + // The library makes this call only after acquiring a lock first. + GetOutbox(c context.Context, outboxIRI *url.URL) (outbox vocab.ActivityStreamsOrderedCollectionPage, err error) + // SetOutbox saves the outbox value given from GetOutbox, with new items + // prepended. Note that the new items must not be added as independent + // database entries. Separate calls to Create will do that. + // + // The library makes this call only after acquiring a lock first. + SetOutbox(c context.Context, outbox vocab.ActivityStreamsOrderedCollectionPage) error + // NewID creates a new IRI id for the provided activity or object. The + // implementation does not need to set the 'id' property and simply + // needs to determine the value. + // + // The go-fed library will handle setting the 'id' property on the + // activity or object provided with the value returned. + NewID(c context.Context, t vocab.Type) (id *url.URL, err error) + // Followers obtains the Followers Collection for an actor with the + // given id. + // + // If modified, the library will then call Update. + // + // The library makes this call only after acquiring a lock first. + Followers(c context.Context, actorIRI *url.URL) (followers vocab.ActivityStreamsCollection, err error) + // Following obtains the Following Collection for an actor with the + // given id. + // + // If modified, the library will then call Update. + // + // The library makes this call only after acquiring a lock first. + Following(c context.Context, actorIRI *url.URL) (following vocab.ActivityStreamsCollection, err error) + // Liked obtains the Liked Collection for an actor with the + // given id. + // + // If modified, the library will then call Update. + // + // The library makes this call only after acquiring a lock first. + Liked(c context.Context, actorIRI *url.URL) (liked vocab.ActivityStreamsCollection, err error) +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/delegate_actor.go b/vendor/code.superseriousbusiness.org/activity/pub/delegate_actor.go new file mode 100644 index 000000000..28a225b24 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/delegate_actor.go @@ -0,0 +1,249 @@ +package pub + +import ( + "context" + "net/http" + "net/url" + + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// DelegateActor contains the detailed interface an application must satisfy in +// order to implement the ActivityPub specification. +// +// Note that an implementation of this interface is implicitly provided in the +// calls to NewActor, NewSocialActor, and NewFederatingActor. +// +// Implementing the DelegateActor requires familiarity with the ActivityPub +// specification because it does not a strong enough abstraction for the client +// application to ignore the ActivityPub spec. It is very possible to implement +// this interface and build a foot-gun that trashes the fediverse without being +// ActivityPub compliant. Please use with due consideration. +// +// Alternatively, build an application that uses the parts of the pub library +// that do not require implementing a DelegateActor so that the ActivityPub +// implementation is completely provided out of the box. +type DelegateActor interface { + // Hook callback after parsing the request body for a federated request + // to the Actor's inbox. + // + // Can be used to set contextual information based on the Activity + // received. + // + // Only called if the Federated Protocol is enabled. + // + // Warning: Neither authentication nor authorization has taken place at + // this time. Doing anything beyond setting contextual information is + // strongly discouraged. + // + // If an error is returned, it is passed back to the caller of + // PostInbox. In this case, the DelegateActor implementation must not + // write a response to the ResponseWriter as is expected that the caller + // to PostInbox will do so when handling the error. + PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error) + // Hook callback after parsing the request body for a client request + // to the Actor's outbox. + // + // Can be used to set contextual information based on the + // ActivityStreams object received. + // + // Only called if the Social API is enabled. + // + // Warning: Neither authentication nor authorization has taken place at + // this time. Doing anything beyond setting contextual information is + // strongly discouraged. + // + // If an error is returned, it is passed back to the caller of + // PostOutbox. In this case, the DelegateActor implementation must not + // write a response to the ResponseWriter as is expected that the caller + // to PostOutbox will do so when handling the error. + PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error) + // AuthenticatePostInbox delegates the authentication of a POST to an + // inbox. + // + // Only called if the Federated Protocol is enabled. + // + // If an error is returned, it is passed back to the caller of + // PostInbox. In this case, the implementation must not write a + // response to the ResponseWriter as is expected that the client will + // do so when handling the error. The 'authenticated' is ignored. + // + // If no error is returned, but authentication or authorization fails, + // then authenticated must be false and error nil. It is expected that + // the implementation handles writing to the ResponseWriter in this + // case. + // + // Finally, if the authentication and authorization succeeds, then + // authenticated must be true and error nil. The request will continue + // to be processed. + AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) + // AuthenticateGetInbox delegates the authentication of a GET to an + // inbox. + // + // Always called, regardless whether the Federated Protocol or Social + // API is enabled. + // + // If an error is returned, it is passed back to the caller of + // GetInbox. In this case, the implementation must not write a + // response to the ResponseWriter as is expected that the client will + // do so when handling the error. The 'authenticated' is ignored. + // + // If no error is returned, but authentication or authorization fails, + // then authenticated must be false and error nil. It is expected that + // the implementation handles writing to the ResponseWriter in this + // case. + // + // Finally, if the authentication and authorization succeeds, then + // authenticated must be true and error nil. The request will continue + // to be processed. + AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) + // AuthorizePostInbox delegates the authorization of an activity that + // has been sent by POST to an inbox. + // + // Only called if the Federated Protocol is enabled. + // + // If an error is returned, it is passed back to the caller of + // PostInbox. In this case, the implementation must not write a + // response to the ResponseWriter as is expected that the client will + // do so when handling the error. The 'authorized' is ignored. + // + // If no error is returned, but authorization fails, then authorized + // must be false and error nil. It is expected that the implementation + // handles writing to the ResponseWriter in this case. + // + // Finally, if the authentication and authorization succeeds, then + // authorized must be true and error nil. The request will continue + // to be processed. + AuthorizePostInbox(c context.Context, w http.ResponseWriter, activity Activity) (authorized bool, err error) + // PostInbox delegates the side effects of adding to the inbox and + // determining if it is a request that should be blocked. + // + // Only called if the Federated Protocol is enabled. + // + // As a side effect, PostInbox sets the federated data in the inbox, but + // not on its own in the database, as InboxForwarding (which is called + // later) must decide whether it has seen this activity before in order + // to determine whether to do the forwarding algorithm. + // + // If the error is ErrObjectRequired or ErrTargetRequired, then a Bad + // Request status is sent in the response. + PostInbox(c context.Context, inboxIRI *url.URL, activity Activity) error + // InboxForwarding delegates inbox forwarding logic when a POST request + // is received in the Actor's inbox. + // + // Only called if the Federated Protocol is enabled. + // + // The delegate is responsible for determining whether to do the inbox + // forwarding, as well as actually conducting it if it determines it + // needs to. + // + // As a side effect, InboxForwarding must set the federated data in the + // database, independently of the inbox, however it sees fit in order to + // determine whether it has seen the activity before. + // + // The provided url is the inbox of the recipient of the Activity. The + // Activity is examined for the information about who to inbox forward + // to. + // + // If an error is returned, it is returned to the caller of PostInbox. + InboxForwarding(c context.Context, inboxIRI *url.URL, activity Activity) error + // PostOutbox delegates the logic for side effects and adding to the + // outbox. + // + // Always called, regardless whether the Federated Protocol or Social + // API is enabled. In the case of the Social API being enabled, side + // effects of the Activity must occur. + // + // The delegate is responsible for adding the activity to the database's + // general storage for independent retrieval, and not just within the + // actor's outbox. + // + // If the error is ErrObjectRequired or ErrTargetRequired, then a Bad + // Request status is sent in the response. + // + // Note that 'rawJSON' is an unfortunate consequence where an 'Update' + // Activity is the only one that explicitly cares about 'null' values in + // JSON. Since go-fed does not differentiate between 'null' values and + // values that are simply not present, the 'rawJSON' map is ONLY needed + // for this narrow and specific use case. + PostOutbox(c context.Context, a Activity, outboxIRI *url.URL, rawJSON map[string]interface{}) (deliverable bool, e error) + // AddNewIDs sets new URL ids on the activity. It also does so for all + // 'object' properties if the Activity is a Create type. + // + // Only called if the Social API is enabled. + // + // If an error is returned, it is returned to the caller of PostOutbox. + AddNewIDs(c context.Context, a Activity) error + // Deliver sends a federated message. Called only if federation is + // enabled. + // + // Called if the Federated Protocol is enabled. + // + // The provided url is the outbox of the sender. The Activity contains + // the information about the intended recipients. + // + // If an error is returned, it is returned to the caller of PostOutbox. + Deliver(c context.Context, outbox *url.URL, activity Activity) error + // AuthenticatePostOutbox delegates the authentication and authorization + // of a POST to an outbox. + // + // Only called if the Social API is enabled. + // + // If an error is returned, it is passed back to the caller of + // PostOutbox. In this case, the implementation must not write a + // response to the ResponseWriter as is expected that the client will + // do so when handling the error. The 'authenticated' is ignored. + // + // If no error is returned, but authentication or authorization fails, + // then authenticated must be false and error nil. It is expected that + // the implementation handles writing to the ResponseWriter in this + // case. + // + // Finally, if the authentication and authorization succeeds, then + // authenticated must be true and error nil. The request will continue + // to be processed. + AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) + // AuthenticateGetOutbox delegates the authentication of a GET to an + // outbox. + // + // Always called, regardless whether the Federated Protocol or Social + // API is enabled. + // + // If an error is returned, it is passed back to the caller of + // GetOutbox. In this case, the implementation must not write a + // response to the ResponseWriter as is expected that the client will + // do so when handling the error. The 'authenticated' is ignored. + // + // If no error is returned, but authentication or authorization fails, + // then authenticated must be false and error nil. It is expected that + // the implementation handles writing to the ResponseWriter in this + // case. + // + // Finally, if the authentication and authorization succeeds, then + // authenticated must be true and error nil. The request will continue + // to be processed. + AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) + // WrapInCreate wraps the provided object in a Create ActivityStreams + // activity. The provided URL is the actor's outbox endpoint. + // + // Only called if the Social API is enabled. + WrapInCreate(c context.Context, value vocab.Type, outboxIRI *url.URL) (vocab.ActivityStreamsCreate, error) + // GetOutbox returns the OrderedCollection inbox of the actor for this + // context. It is up to the implementation to provide the correct + // collection for the kind of authorization given in the request. + // + // AuthenticateGetOutbox will be called prior to this. + // + // Always called, regardless whether the Federated Protocol or Social + // API is enabled. + GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) + // GetInbox returns the OrderedCollection inbox of the actor for this + // context. It is up to the implementation to provide the correct + // collection for the kind of authorization given in the request. + // + // AuthenticateGetInbox will be called prior to this. + // + // Always called, regardless whether the Federated Protocol or Social + // API is enabled. + GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/doc.go b/vendor/code.superseriousbusiness.org/activity/pub/doc.go new file mode 100644 index 000000000..93c778179 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/doc.go @@ -0,0 +1,9 @@ +// Package pub implements the ActivityPub protocol. +// +// Note that every time the ActivityStreams types are changed (added, removed) +// due to code generation, the internal function toASType needs to be modified +// to know about these types. +// +// Note that every version change should also include a change in the version.go +// file. +package pub diff --git a/vendor/code.superseriousbusiness.org/activity/pub/federating_protocol.go b/vendor/code.superseriousbusiness.org/activity/pub/federating_protocol.go new file mode 100644 index 000000000..302e4f5ca --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/federating_protocol.go @@ -0,0 +1,125 @@ +package pub + +import ( + "context" + "net/http" + "net/url" + + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// FederatingProtocol contains behaviors an application needs to satisfy for the +// full ActivityPub S2S implementation to be supported by this library. +// +// It is only required if the client application wants to support the server-to- +// server, or federating, protocol. +// +// It is passed to the library as a dependency injection from the client +// application. +type FederatingProtocol interface { + // Hook callback after parsing the request body for a federated request + // to the Actor's inbox. + // + // Can be used to set contextual information based on the Activity + // received. + // + // Only called if the Federated Protocol is enabled. + // + // Warning: Neither authentication nor authorization has taken place at + // this time. Doing anything beyond setting contextual information is + // strongly discouraged. + // + // If an error is returned, it is passed back to the caller of + // PostInbox. In this case, the DelegateActor implementation must not + // write a response to the ResponseWriter as is expected that the caller + // to PostInbox will do so when handling the error. + PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error) + // AuthenticatePostInbox delegates the authentication of a POST to an + // inbox. + // + // If an error is returned, it is passed back to the caller of + // PostInbox. In this case, the implementation must not write a + // response to the ResponseWriter as is expected that the client will + // do so when handling the error. The 'authenticated' is ignored. + // + // If no error is returned, but authentication or authorization fails, + // then authenticated must be false and error nil. It is expected that + // the implementation handles writing to the ResponseWriter in this + // case. + // + // Finally, if the authentication and authorization succeeds, then + // authenticated must be true and error nil. The request will continue + // to be processed. + AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) + // Blocked should determine whether to permit a set of actors given by + // their ids are able to interact with this particular end user due to + // being blocked or other application-specific logic. + // + // If an error is returned, it is passed back to the caller of + // PostInbox. + // + // If no error is returned, but authentication or authorization fails, + // then blocked must be true and error nil. An http.StatusForbidden + // will be written in the wresponse. + // + // Finally, if the authentication and authorization succeeds, then + // blocked must be false and error nil. The request will continue + // to be processed. + Blocked(c context.Context, actorIRIs []*url.URL) (blocked bool, err error) + // FederatingCallbacks returns the application logic that handles + // ActivityStreams received from federating peers. + // + // Note that certain types of callbacks will be 'wrapped' with default + // behaviors supported natively by the library. Other callbacks + // compatible with streams.TypeResolver can be specified by 'other'. + // + // For example, setting the 'Create' field in the + // FederatingWrappedCallbacks lets an application dependency inject + // additional behaviors they want to take place, including the default + // behavior supplied by this library. This is guaranteed to be compliant + // with the ActivityPub Social protocol. + // + // To override the default behavior, instead supply the function in + // 'other', which does not guarantee the application will be compliant + // with the ActivityPub Social Protocol. + // + // Applications are not expected to handle every single ActivityStreams + // type and extension. The unhandled ones are passed to DefaultCallback. + FederatingCallbacks(c context.Context) (wrapped FederatingWrappedCallbacks, other []interface{}, err error) + // DefaultCallback is called for types that go-fed can deserialize but + // are not handled by the application's callbacks returned in the + // Callbacks method. + // + // Applications are not expected to handle every single ActivityStreams + // type and extension, so the unhandled ones are passed to + // DefaultCallback. + DefaultCallback(c context.Context, activity Activity) error + // MaxInboxForwardingRecursionDepth determines how deep to search within + // an activity to determine if inbox forwarding needs to occur. + // + // Zero or negative numbers indicate infinite recursion. + MaxInboxForwardingRecursionDepth(c context.Context) int + // MaxDeliveryRecursionDepth determines how deep to search within + // collections owned by peers when they are targeted to receive a + // delivery. + // + // Zero or negative numbers indicate infinite recursion. + MaxDeliveryRecursionDepth(c context.Context) int + // FilterForwarding allows the implementation to apply business logic + // such as blocks, spam filtering, and so on to a list of potential + // Collections and OrderedCollections of recipients when inbox + // forwarding has been triggered. + // + // The activity is provided as a reference for more intelligent + // logic to be used, but the implementation must not modify it. + FilterForwarding(c context.Context, potentialRecipients []*url.URL, a Activity) (filteredRecipients []*url.URL, err error) + // GetInbox returns the OrderedCollection inbox of the actor for this + // context. It is up to the implementation to provide the correct + // collection for the kind of authorization given in the request. + // + // AuthenticateGetInbox will be called prior to this. + // + // Always called, regardless whether the Federated Protocol or Social + // API is enabled. + GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/federating_wrapped_callbacks.go b/vendor/code.superseriousbusiness.org/activity/pub/federating_wrapped_callbacks.go new file mode 100644 index 000000000..8a8f32aaa --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/federating_wrapped_callbacks.go @@ -0,0 +1,917 @@ +package pub + +import ( + "context" + "fmt" + "net/url" + + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// OnFollowBehavior enumerates the different default actions that the go-fed +// library can provide when receiving a Follow Activity from a peer. +type OnFollowBehavior int + +const ( + // OnFollowDoNothing does not take any action when a Follow Activity + // is received. + OnFollowDoNothing OnFollowBehavior = iota + // OnFollowAutomaticallyAccept triggers the side effect of sending an + // Accept of this Follow request in response. + OnFollowAutomaticallyAccept + // OnFollowAutomaticallyAccept triggers the side effect of sending a + // Reject of this Follow request in response. + OnFollowAutomaticallyReject +) + +// FederatingWrappedCallbacks lists the callback functions that already have +// some side effect behavior provided by the pub library. +// +// These functions are wrapped for the Federating Protocol. +type FederatingWrappedCallbacks struct { + // Create handles additional side effects for the Create ActivityStreams + // type, specific to the application using go-fed. + // + // The wrapping callback for the Federating Protocol ensures the + // 'object' property is created in the database. + // + // Create calls Create for each object in the federated Activity. + Create func(context.Context, vocab.ActivityStreamsCreate) error + // Update handles additional side effects for the Update ActivityStreams + // type, specific to the application using go-fed. + // + // The wrapping callback for the Federating Protocol ensures the + // 'object' property is updated in the database. + // + // Update calls Update on the federated entry from the database, with a + // new value. + Update func(context.Context, vocab.ActivityStreamsUpdate) error + // Delete handles additional side effects for the Delete ActivityStreams + // type, specific to the application using go-fed. + // + // Delete removes the federated entry from the database. + Delete func(context.Context, vocab.ActivityStreamsDelete) error + // Follow handles additional side effects for the Follow ActivityStreams + // type, specific to the application using go-fed. + // + // The wrapping function can have one of several default behaviors, + // depending on the value of the OnFollow setting. + Follow func(context.Context, vocab.ActivityStreamsFollow) error + // OnFollow determines what action to take for this particular callback + // if a Follow Activity is handled. + OnFollow OnFollowBehavior + // Accept handles additional side effects for the Accept ActivityStreams + // type, specific to the application using go-fed. + // + // The wrapping function determines if this 'Accept' is in response to a + // 'Follow'. If so, then the 'actor' is added to the original 'actor's + // 'following' collection. + // + // Otherwise, no side effects are done by go-fed. + Accept func(context.Context, vocab.ActivityStreamsAccept) error + // Reject handles additional side effects for the Reject ActivityStreams + // type, specific to the application using go-fed. + // + // The wrapping function has no default side effects. However, if this + // 'Reject' is in response to a 'Follow' then the client MUST NOT go + // forward with adding the 'actor' to the original 'actor's 'following' + // collection by the client application. + Reject func(context.Context, vocab.ActivityStreamsReject) error + // Add handles additional side effects for the Add ActivityStreams + // type, specific to the application using go-fed. + // + // The wrapping function will add the 'object' IRIs to a specific + // 'target' collection if the 'target' collection(s) live on this + // server. + Add func(context.Context, vocab.ActivityStreamsAdd) error + // Remove handles additional side effects for the Remove ActivityStreams + // type, specific to the application using go-fed. + // + // The wrapping function will remove all 'object' IRIs from a specific + // 'target' collection if the 'target' collection(s) live on this + // server. + Remove func(context.Context, vocab.ActivityStreamsRemove) error + // Like handles additional side effects for the Like ActivityStreams + // type, specific to the application using go-fed. + // + // The wrapping function will add the activity to the "likes" collection + // on all 'object' targets owned by this server. + Like func(context.Context, vocab.ActivityStreamsLike) error + // Announce handles additional side effects for the Announce + // ActivityStreams type, specific to the application using go-fed. + // + // The wrapping function will add the activity to the "shares" + // collection on all 'object' targets owned by this server. + Announce func(context.Context, vocab.ActivityStreamsAnnounce) error + // Undo handles additional side effects for the Undo ActivityStreams + // type, specific to the application using go-fed. + // + // The wrapping function ensures the 'actor' on the 'Undo' + // is be the same as the 'actor' on all Activities being undone. + // It enforces that the actors on the Undo must correspond to all of the + // 'object' actors in some manner. + // + // It is expected that the application will implement the proper + // reversal of activities that are being undone. + Undo func(context.Context, vocab.ActivityStreamsUndo) error + // Block handles additional side effects for the Block ActivityStreams + // type, specific to the application using go-fed. + // + // The wrapping function provides no default side effects. It simply + // calls the wrapped function. However, note that Blocks should not be + // received from a federated peer, as delivering Blocks explicitly + // deviates from the original ActivityPub specification. + Block func(context.Context, vocab.ActivityStreamsBlock) error + + // Sidechannel data -- this is set at request handling time. These must + // be set before the callbacks are used. + + // db is the Database the FederatingWrappedCallbacks should use. + db Database + // inboxIRI is the inboxIRI that is handling this callback. + inboxIRI *url.URL + // addNewIds creates new 'id' entries on an activity and its objects if + // it is a Create activity. + addNewIds func(c context.Context, activity Activity) error + // deliver delivers an outgoing message. + deliver func(c context.Context, outboxIRI *url.URL, activity Activity) error + // newTransport creates a new Transport. + newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error) +} + +// callbacks returns the WrappedCallbacks members into a single interface slice +// for use in streams.Resolver callbacks. +// +// If the given functions have a type that collides with the default behavior, +// then disable our default behavior +func (w FederatingWrappedCallbacks) callbacks(fns []interface{}) []interface{} { + enableCreate := true + enableUpdate := true + enableDelete := true + enableFollow := true + enableAccept := true + enableReject := true + enableAdd := true + enableRemove := true + enableLike := true + enableAnnounce := true + enableUndo := true + enableBlock := true + for _, fn := range fns { + switch fn.(type) { + default: + continue + case func(context.Context, vocab.ActivityStreamsCreate) error: + enableCreate = false + case func(context.Context, vocab.ActivityStreamsUpdate) error: + enableUpdate = false + case func(context.Context, vocab.ActivityStreamsDelete) error: + enableDelete = false + case func(context.Context, vocab.ActivityStreamsFollow) error: + enableFollow = false + case func(context.Context, vocab.ActivityStreamsAccept) error: + enableAccept = false + case func(context.Context, vocab.ActivityStreamsReject) error: + enableReject = false + case func(context.Context, vocab.ActivityStreamsAdd) error: + enableAdd = false + case func(context.Context, vocab.ActivityStreamsRemove) error: + enableRemove = false + case func(context.Context, vocab.ActivityStreamsLike) error: + enableLike = false + case func(context.Context, vocab.ActivityStreamsAnnounce) error: + enableAnnounce = false + case func(context.Context, vocab.ActivityStreamsUndo) error: + enableUndo = false + case func(context.Context, vocab.ActivityStreamsBlock) error: + enableBlock = false + } + } + if enableCreate { + fns = append(fns, w.create) + } + if enableUpdate { + fns = append(fns, w.update) + } + if enableDelete { + fns = append(fns, w.deleteFn) + } + if enableFollow { + fns = append(fns, w.follow) + } + if enableAccept { + fns = append(fns, w.accept) + } + if enableReject { + fns = append(fns, w.reject) + } + if enableAdd { + fns = append(fns, w.add) + } + if enableRemove { + fns = append(fns, w.remove) + } + if enableLike { + fns = append(fns, w.like) + } + if enableAnnounce { + fns = append(fns, w.announce) + } + if enableUndo { + fns = append(fns, w.undo) + } + if enableBlock { + fns = append(fns, w.block) + } + return fns +} + +// create implements the federating Create activity side effects. +func (w FederatingWrappedCallbacks) create(c context.Context, a vocab.ActivityStreamsCreate) error { + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + // Create anonymous loop function to be able to properly scope the defer + // for the database lock at each iteration. + loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { + t := iter.GetType() + if t == nil && iter.IsIRI() { + // Attempt to dereference the IRI instead + tport, err := w.newTransport(c, w.inboxIRI, goFedUserAgent()) + if err != nil { + return err + } + resp, err := tport.Dereference(c, iter.GetIRI()) + if err != nil { + return err + } + m, err := readActivityPubResp(resp) + if err != nil { + return err + } + t, err = streams.ToType(c, m) + if err != nil { + return err + } + } else if t == nil { + return fmt.Errorf("cannot handle federated create: object is neither a value nor IRI") + } + id, err := GetId(t) + if err != nil { + return err + } + var unlock func() + unlock, err = w.db.Lock(c, id) + if err != nil { + return err + } + defer unlock() + if err := w.db.Create(c, t); err != nil { + return err + } + return nil + } + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + if err := loopFn(iter); err != nil { + return err + } + } + if w.Create != nil { + return w.Create(c, a) + } + return nil +} + +// update implements the federating Update activity side effects. +func (w FederatingWrappedCallbacks) update(c context.Context, a vocab.ActivityStreamsUpdate) error { + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + if err := mustHaveActivityOriginMatchObjects(a); err != nil { + return err + } + // Create anonymous loop function to be able to properly scope the defer + // for the database lock at each iteration. + loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { + t := iter.GetType() + if t == nil { + return fmt.Errorf("update requires an object to be wholly provided") + } + id, err := GetId(t) + if err != nil { + return err + } + var unlock func() + unlock, err = w.db.Lock(c, id) + if err != nil { + return err + } + defer unlock() + if err := w.db.Update(c, t); err != nil { + return err + } + return nil + } + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + if err := loopFn(iter); err != nil { + return err + } + } + if w.Update != nil { + return w.Update(c, a) + } + return nil +} + +// deleteFn implements the federating Delete activity side effects. +func (w FederatingWrappedCallbacks) deleteFn(c context.Context, a vocab.ActivityStreamsDelete) error { + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + if err := mustHaveActivityOriginMatchObjects(a); err != nil { + return err + } + // Create anonymous loop function to be able to properly scope the defer + // for the database lock at each iteration. + loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { + id, err := ToId(iter) + if err != nil { + return err + } + var unlock func() + unlock, err = w.db.Lock(c, id) + if err != nil { + return err + } + defer unlock() + if err := w.db.Delete(c, id); err != nil { + return err + } + return nil + } + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + if err := loopFn(iter); err != nil { + return err + } + } + if w.Delete != nil { + return w.Delete(c, a) + } + return nil +} + +// follow implements the federating Follow activity side effects. +func (w FederatingWrappedCallbacks) follow(c context.Context, a vocab.ActivityStreamsFollow) error { + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + // Check that we own at least one of the 'object' properties, and ensure + // it is to the actor that owns this inbox. + // + // If not then don't send a response. It was federated to us as an FYI, + // by mistake, or some other reason. + unlock, err := w.db.Lock(c, w.inboxIRI) + if err != nil { + return err + } + // WARNING: Unlock not deferred. + actorIRI, err := w.db.ActorForInbox(c, w.inboxIRI) + unlock() // unlock even on error + if err != nil { + return err + } + // Unlock must be called by now and every branch above. + isMe := false + if w.OnFollow != OnFollowDoNothing { + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + if id.String() == actorIRI.String() { + isMe = true + break + } + } + } + if isMe { + // Prepare the response. + var response Activity + if w.OnFollow == OnFollowAutomaticallyAccept { + response = streams.NewActivityStreamsAccept() + } else if w.OnFollow == OnFollowAutomaticallyReject { + response = streams.NewActivityStreamsReject() + } else { + return fmt.Errorf("unknown OnFollowBehavior: %d", w.OnFollow) + } + // Set us as the 'actor'. + me := streams.NewActivityStreamsActorProperty() + response.SetActivityStreamsActor(me) + me.AppendIRI(actorIRI) + // Set the Follow as the 'object' property. + op := streams.NewActivityStreamsObjectProperty() + response.SetActivityStreamsObject(op) + op.AppendActivityStreamsFollow(a) + // Add all actors on the original Follow to the 'to' property. + recipients := make([]*url.URL, 0) + to := streams.NewActivityStreamsToProperty() + response.SetActivityStreamsTo(to) + followActors := a.GetActivityStreamsActor() + for iter := followActors.Begin(); iter != followActors.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + to.AppendIRI(id) + recipients = append(recipients, id) + } + if w.OnFollow == OnFollowAutomaticallyAccept { + // If automatically accepting, then also update our + // followers collection with the new actors. + // + // If automatically rejecting, do not update the + // followers collection. + unlock, err := w.db.Lock(c, actorIRI) + if err != nil { + return err + } + // WARNING: Unlock not deferred. + followers, err := w.db.Followers(c, actorIRI) + if err != nil { + unlock() + return err + } + items := followers.GetActivityStreamsItems() + if items == nil { + items = streams.NewActivityStreamsItemsProperty() + followers.SetActivityStreamsItems(items) + } + for _, elem := range recipients { + items.PrependIRI(elem) + } + err = w.db.Update(c, followers) + unlock() // unlock even on error + if err != nil { + return err + } + // Unlock must be called by now and every branch above. + } + // Lock without defer! + unlock, err := w.db.Lock(c, w.inboxIRI) + if err != nil { + return err + } + outboxIRI, err := w.db.OutboxForInbox(c, w.inboxIRI) + unlock() // unlock after, regardless + if err != nil { + return err + } + // Everything must be unlocked by now. + if err := w.addNewIds(c, response); err != nil { + return err + } else if err := w.deliver(c, outboxIRI, response); err != nil { + return err + } + } + if w.Follow != nil { + return w.Follow(c, a) + } + return nil +} + +// accept implements the federating Accept activity side effects. +func (w FederatingWrappedCallbacks) accept(c context.Context, a vocab.ActivityStreamsAccept) error { + op := a.GetActivityStreamsObject() + if op != nil && op.Len() > 0 { + // Get this actor's id. + unlock, err := w.db.Lock(c, w.inboxIRI) + if err != nil { + return err + } + // WARNING: Unlock not deferred. + actorIRI, err := w.db.ActorForInbox(c, w.inboxIRI) + unlock() // unlock after regardless + if err != nil { + return err + } + // Unlock must be called by now and every branch above. + // + // Determine if we are in a follow on the 'object' property. + // + // TODO: Handle Accept multiple Follow. + var maybeMyFollowIRI *url.URL + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + t := iter.GetType() + if t == nil && iter.IsIRI() { + // Attempt to dereference the IRI instead + tport, err := w.newTransport(c, w.inboxIRI, goFedUserAgent()) + if err != nil { + return err + } + resp, err := tport.Dereference(c, iter.GetIRI()) + if err != nil { + return err + } + m, err := readActivityPubResp(resp) + if err != nil { + return err + } + t, err = streams.ToType(c, m) + if err != nil { + return err + } + } else if t == nil { + return fmt.Errorf("cannot handle federated create: object is neither a value nor IRI") + } + // Ensure it is a Follow. + if !streams.IsOrExtendsActivityStreamsFollow(t) { + continue + } + follow, ok := t.(Activity) + if !ok { + return fmt.Errorf("a Follow in an Accept does not satisfy the Activity interface") + } + followId, err := GetId(follow) + if err != nil { + return err + } + // Ensure that we are one of the actors on the Follow. + actors := follow.GetActivityStreamsActor() + for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + if id.String() == actorIRI.String() { + maybeMyFollowIRI = followId + break + } + } + // Continue breaking if we found ourselves + if maybeMyFollowIRI != nil { + break + } + } + // If we received an Accept whose 'object' is a Follow with an + // Accept that we sent, add to the following collection. + if maybeMyFollowIRI != nil { + // Verify our Follow request exists and the peer didn't + // fabricate it. + activityActors := a.GetActivityStreamsActor() + if activityActors == nil || activityActors.Len() == 0 { + return fmt.Errorf("an Accept with a Follow has no actors") + } + // This may be a duplicate check if we dereferenced the + // Follow above. TODO: Separate this logic to avoid + // redundancy. + // + // Use an anonymous function to properly scope the + // database lock, immediately call it. + err = func() error { + unlock, err := w.db.Lock(c, maybeMyFollowIRI) + if err != nil { + return err + } + defer unlock() + t, err := w.db.Get(c, maybeMyFollowIRI) + if err != nil { + return err + } + if !streams.IsOrExtendsActivityStreamsFollow(t) { + return fmt.Errorf("peer gave an Accept wrapping a Follow but provided a non-Follow id") + } + follow, ok := t.(Activity) + if !ok { + return fmt.Errorf("a Follow in an Accept does not satisfy the Activity interface") + } + // Ensure that we are one of the actors on the Follow. + ok = false + actors := follow.GetActivityStreamsActor() + for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + if id.String() == actorIRI.String() { + ok = true + break + } + } + if !ok { + return fmt.Errorf("peer gave an Accept wrapping a Follow but we are not the actor on that Follow") + } + // Build map of original Accept actors + acceptActors := make(map[string]bool) + for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + acceptActors[id.String()] = false + } + // Verify all actor(s) were on the original Follow. + followObj := follow.GetActivityStreamsObject() + for iter := followObj.Begin(); iter != followObj.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + if _, ok := acceptActors[id.String()]; ok { + acceptActors[id.String()] = true + } + } + for _, found := range acceptActors { + if !found { + return fmt.Errorf("peer gave an Accept wrapping a Follow but was not an object in the original Follow") + } + } + return nil + }() + if err != nil { + return err + } + // Add the peer to our following collection. + unlock, err := w.db.Lock(c, actorIRI) + if err != nil { + return err + } + // WARNING: Unlock not deferred. + following, err := w.db.Following(c, actorIRI) + if err != nil { + unlock() + return err + } + items := following.GetActivityStreamsItems() + if items == nil { + items = streams.NewActivityStreamsItemsProperty() + following.SetActivityStreamsItems(items) + } + for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + unlock() + return err + } + items.PrependIRI(id) + } + err = w.db.Update(c, following) + unlock() // unlock after regardless + if err != nil { + return err + } + // Unlock must be called by now and every branch above. + } + } + if w.Accept != nil { + return w.Accept(c, a) + } + return nil +} + +// reject implements the federating Reject activity side effects. +func (w FederatingWrappedCallbacks) reject(c context.Context, a vocab.ActivityStreamsReject) error { + if w.Reject != nil { + return w.Reject(c, a) + } + return nil +} + +// add implements the federating Add activity side effects. +func (w FederatingWrappedCallbacks) add(c context.Context, a vocab.ActivityStreamsAdd) error { + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + target := a.GetActivityStreamsTarget() + if target == nil || target.Len() == 0 { + return ErrTargetRequired + } + if err := add(c, op, target, w.db); err != nil { + return err + } + if w.Add != nil { + return w.Add(c, a) + } + return nil +} + +// remove implements the federating Remove activity side effects. +func (w FederatingWrappedCallbacks) remove(c context.Context, a vocab.ActivityStreamsRemove) error { + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + target := a.GetActivityStreamsTarget() + if target == nil || target.Len() == 0 { + return ErrTargetRequired + } + if err := remove(c, op, target, w.db); err != nil { + return err + } + if w.Remove != nil { + return w.Remove(c, a) + } + return nil +} + +// like implements the federating Like activity side effects. +func (w FederatingWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsLike) error { + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + id, err := GetId(a) + if err != nil { + return err + } + // Create anonymous loop function to be able to properly scope the defer + // for the database lock at each iteration. + loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { + objId, err := ToId(iter) + if err != nil { + return err + } + unlock, err := w.db.Lock(c, objId) + if err != nil { + return err + } + defer unlock() + if owns, err := w.db.Owns(c, objId); err != nil { + return err + } else if !owns { + return nil + } + t, err := w.db.Get(c, objId) + if err != nil { + return err + } + l, ok := t.(likeser) + if !ok { + return fmt.Errorf("cannot add Like to likes collection for type %T", t) + } + // Get 'likes' property on the object, creating default if + // necessary. + likes := l.GetActivityStreamsLikes() + if likes == nil { + likes = streams.NewActivityStreamsLikesProperty() + l.SetActivityStreamsLikes(likes) + } + // Get 'likes' value, defaulting to a collection. + likesT := likes.GetType() + if likesT == nil { + col := streams.NewActivityStreamsCollection() + likesT = col + likes.SetActivityStreamsCollection(col) + } + // Prepend the activity's 'id' on the 'likes' Collection or + // OrderedCollection. + if col, ok := likesT.(itemser); ok { + items := col.GetActivityStreamsItems() + if items == nil { + items = streams.NewActivityStreamsItemsProperty() + col.SetActivityStreamsItems(items) + } + items.PrependIRI(id) + } else if oCol, ok := likesT.(orderedItemser); ok { + oItems := oCol.GetActivityStreamsOrderedItems() + if oItems == nil { + oItems = streams.NewActivityStreamsOrderedItemsProperty() + oCol.SetActivityStreamsOrderedItems(oItems) + } + oItems.PrependIRI(id) + } else { + return fmt.Errorf("likes type is neither a Collection nor an OrderedCollection: %T", likesT) + } + err = w.db.Update(c, t) + if err != nil { + return err + } + return nil + } + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + if err := loopFn(iter); err != nil { + return err + } + } + if w.Like != nil { + return w.Like(c, a) + } + return nil +} + +// announce implements the federating Announce activity side effects. +func (w FederatingWrappedCallbacks) announce(c context.Context, a vocab.ActivityStreamsAnnounce) error { + id, err := GetId(a) + if err != nil { + return err + } + op := a.GetActivityStreamsObject() + // Create anonymous loop function to be able to properly scope the defer + // for the database lock at each iteration. + loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { + objId, err := ToId(iter) + if err != nil { + return err + } + unlock, err := w.db.Lock(c, objId) + if err != nil { + return err + } + defer unlock() + if owns, err := w.db.Owns(c, objId); err != nil { + return err + } else if !owns { + return nil + } + t, err := w.db.Get(c, objId) + if err != nil { + return err + } + s, ok := t.(shareser) + if !ok { + return fmt.Errorf("cannot add Announce to Shares collection for type %T", t) + } + // Get 'shares' property on the object, creating default if + // necessary. + shares := s.GetActivityStreamsShares() + if shares == nil { + shares = streams.NewActivityStreamsSharesProperty() + s.SetActivityStreamsShares(shares) + } + // Get 'shares' value, defaulting to a collection. + sharesT := shares.GetType() + if sharesT == nil { + col := streams.NewActivityStreamsCollection() + sharesT = col + shares.SetActivityStreamsCollection(col) + } + // Prepend the activity's 'id' on the 'shares' Collection or + // OrderedCollection. + if col, ok := sharesT.(itemser); ok { + items := col.GetActivityStreamsItems() + if items == nil { + items = streams.NewActivityStreamsItemsProperty() + col.SetActivityStreamsItems(items) + } + items.PrependIRI(id) + } else if oCol, ok := sharesT.(orderedItemser); ok { + oItems := oCol.GetActivityStreamsOrderedItems() + if oItems == nil { + oItems = streams.NewActivityStreamsOrderedItemsProperty() + oCol.SetActivityStreamsOrderedItems(oItems) + } + oItems.PrependIRI(id) + } else { + return fmt.Errorf("shares type is neither a Collection nor an OrderedCollection: %T", sharesT) + } + err = w.db.Update(c, t) + if err != nil { + return err + } + return nil + } + if op != nil { + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + if err := loopFn(iter); err != nil { + return err + } + } + } + if w.Announce != nil { + return w.Announce(c, a) + } + return nil +} + +// undo implements the federating Undo activity side effects. +func (w FederatingWrappedCallbacks) undo(c context.Context, a vocab.ActivityStreamsUndo) error { + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + actors := a.GetActivityStreamsActor() + if err := mustHaveActivityActorsMatchObjectActors(c, actors, op, w.newTransport, w.inboxIRI); err != nil { + return err + } + if w.Undo != nil { + return w.Undo(c, a) + } + return nil +} + +// block implements the federating Block activity side effects. +func (w FederatingWrappedCallbacks) block(c context.Context, a vocab.ActivityStreamsBlock) error { + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + if w.Block != nil { + return w.Block(c, a) + } + return nil +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/handlers.go b/vendor/code.superseriousbusiness.org/activity/pub/handlers.go new file mode 100644 index 000000000..53c44c6fc --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/handlers.go @@ -0,0 +1,115 @@ +package pub + +import ( + "context" + "encoding/json" + "errors" + "fmt" + "net/http" + + "code.superseriousbusiness.org/activity/streams" +) + +var ErrNotFound = errors.New("go-fed/activity: ActivityStreams data not found") + +// HandlerFunc determines whether an incoming HTTP request is an ActivityStreams +// GET request, and if so attempts to serve ActivityStreams data. +// +// If an error is returned, then the calling function is responsible for writing +// to the ResponseWriter as part of error handling. +// +// If 'isASRequest' is false and there is no error, then the calling function +// may continue processing the request, and the HandlerFunc will not have +// written anything to the ResponseWriter. For example, a webpage may be served +// instead. +// +// If 'isASRequest' is true and there is no error, then the HandlerFunc +// successfully served the request and wrote to the ResponseWriter. +// +// Callers are responsible for authorized access to this resource. +type HandlerFunc func(c context.Context, w http.ResponseWriter, r *http.Request) (isASRequest bool, err error) + +// NewActivityStreamsHandler creates a HandlerFunc to serve ActivityStreams +// requests which are coming from other clients or servers that wish to obtain +// an ActivityStreams representation of data. +// +// Strips retrieved ActivityStreams values of sensitive fields ('bto' and 'bcc') +// before responding with them. Sets the appropriate HTTP status code for +// Tombstone Activities as well. +// +// Defaults to supporting content to be retrieved by HTTPS only. +func NewActivityStreamsHandler(db Database, clock Clock) HandlerFunc { + return NewActivityStreamsHandlerScheme(db, clock, "https") +} + +// NewActivityStreamsHandlerScheme creates a HandlerFunc to serve +// ActivityStreams requests which are coming from other clients or servers that +// wish to obtain an ActivityStreams representation of data provided by the +// specified protocol scheme. +// +// Strips retrieved ActivityStreams values of sensitive fields ('bto' and 'bcc') +// before responding with them. Sets the appropriate HTTP status code for +// Tombstone Activities as well. +// +// Specifying the "scheme" allows for retrieving ActivityStreams content with +// identifiers such as HTTP, HTTPS, or other protocol schemes. +// +// Returns ErrNotFound when the database does not retrieve any data and no +// errors occurred during retrieval. +func NewActivityStreamsHandlerScheme(db Database, clock Clock, scheme string) HandlerFunc { + return func(c context.Context, w http.ResponseWriter, r *http.Request) (isASRequest bool, err error) { + // Do nothing if it is not an ActivityPub GET request + if !isActivityPubGet(r) { + return + } + isASRequest = true + id := requestId(r, scheme) + + var unlock func() + + // Lock and obtain a copy of the requested ActivityStreams value + unlock, err = db.Lock(c, id) + if err != nil { + return + } + // WARNING: Unlock not deferred + t, err := db.Get(c, id) + unlock() // unlock even on error + if err != nil { + return + } + // Unlock must have been called by this point and in every + // branch above + if t == nil { + err = ErrNotFound + return + } + // Remove sensitive fields. + clearSensitiveFields(t) + // Serialize the fetched value. + m, err := streams.Serialize(t) + if err != nil { + return + } + raw, err := json.Marshal(m) + if err != nil { + return + } + // Construct the response. + addResponseHeaders(w.Header(), clock, raw) + // Write the response. + if streams.IsOrExtendsActivityStreamsTombstone(t) { + w.WriteHeader(http.StatusGone) + } else { + w.WriteHeader(http.StatusOK) + } + n, err := w.Write(raw) + if err != nil { + return + } else if n != len(raw) { + err = fmt.Errorf("only wrote %d of %d bytes", n, len(raw)) + return + } + return + } +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/property_interfaces.go b/vendor/code.superseriousbusiness.org/activity/pub/property_interfaces.go new file mode 100644 index 000000000..3da014c70 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/property_interfaces.go @@ -0,0 +1,118 @@ +package pub + +import ( + "net/url" + + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// inReplyToer is an ActivityStreams type with an 'inReplyTo' property +type inReplyToer interface { + GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty +} + +// objecter is an ActivityStreams type with an 'object' property +type objecter interface { + GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty +} + +// targeter is an ActivityStreams type with a 'target' property +type targeter interface { + GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty +} + +// tagger is an ActivityStreams type with a 'tag' property +type tagger interface { + GetActivityStreamsTag() vocab.ActivityStreamsTagProperty +} + +// hrefer is an ActivityStreams type with a 'href' property +type hrefer interface { + GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty +} + +// itemser is an ActivityStreams type with an 'items' property +type itemser interface { + GetActivityStreamsItems() vocab.ActivityStreamsItemsProperty + SetActivityStreamsItems(vocab.ActivityStreamsItemsProperty) +} + +// orderedItemser is an ActivityStreams type with an 'orderedItems' property +type orderedItemser interface { + GetActivityStreamsOrderedItems() vocab.ActivityStreamsOrderedItemsProperty + SetActivityStreamsOrderedItems(vocab.ActivityStreamsOrderedItemsProperty) +} + +// publisheder is an ActivityStreams type with a 'published' property +type publisheder interface { + GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty +} + +// updateder is an ActivityStreams type with an 'updateder' property +type updateder interface { + GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty +} + +// toer is an ActivityStreams type with a 'to' property +type toer interface { + GetActivityStreamsTo() vocab.ActivityStreamsToProperty + SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) +} + +// btoer is an ActivityStreams type with a 'bto' property +type btoer interface { + GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty + SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) +} + +// ccer is an ActivityStreams type with a 'cc' property +type ccer interface { + GetActivityStreamsCc() vocab.ActivityStreamsCcProperty + SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) +} + +// bccer is an ActivityStreams type with a 'bcc' property +type bccer interface { + GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty + SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) +} + +// audiencer is an ActivityStreams type with an 'audience' property +type audiencer interface { + GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty + SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) +} + +// inboxer is an ActivityStreams type with an 'inbox' property +type inboxer interface { + GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty +} + +// attributedToer is an ActivityStreams type with an 'attributedTo' property +type attributedToer interface { + GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty + SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) +} + +// likeser is an ActivityStreams type with a 'likes' property +type likeser interface { + GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty + SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) +} + +// shareser is an ActivityStreams type with a 'shares' property +type shareser interface { + GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty + SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) +} + +// actorer is an ActivityStreams type with an 'actor' property +type actorer interface { + GetActivityStreamsActor() vocab.ActivityStreamsActorProperty + SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) +} + +// appendIRIer is an ActivityStreams type that can Append IRIs. +type appendIRIer interface { + AppendIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/side_effect_actor.go b/vendor/code.superseriousbusiness.org/activity/pub/side_effect_actor.go new file mode 100644 index 000000000..820dca403 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/side_effect_actor.go @@ -0,0 +1,1047 @@ +package pub + +import ( + "context" + "fmt" + "net/http" + "net/url" + + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// sideEffectActor must satisfy the DelegateActor interface. +var _ DelegateActor = &SideEffectActor{} + +// SideEffectActor is a DelegateActor that handles the ActivityPub +// implementation side effects, but requires a more opinionated application to +// be written. +// +// Note that when using the SideEffectActor with an application that good-faith +// implements its required interfaces, the ActivityPub specification is +// guaranteed to be correctly followed. +type SideEffectActor struct { + // When doing deliveries to remote servers via the s2s protocol, the side effect + // actor will by default use the Serialize function from the streams package. + // However, this can be overridden after the side effect actor is intantiated, + // by setting the exposed Serialize function on the struct. For example: + // + // a := NewSideEffectActor(...) + // a.Serialize = func(a vocab.Type) (m map[string]interface{}, e error) { + // // Put your custom serializer logic here. + // } + // + // Note that you should only do this *immediately* after instantiating the side + // effect actor -- never while your application is already running, as this will + // likely cause race conditions or other problems! In most cases, you will never + // need to change this; it's provided solely to allow easier customization by + // applications. + Serialize func(a vocab.Type) (m map[string]interface{}, e error) + + // When doing deliveries to remote servers via the s2s protocol, it may be desirable + // for implementations to be able to pre-sort recipients so that higher-priority + // recipients are higher up in the delivery queue, and lower-priority recipients + // are further down. This can be achieved by setting the DeliveryRecipientPreSort + // function on the side effect actor after it's instantiated. For example: + // + // a := NewSideEffectActor(...) + // a.DeliveryRecipientPreSort = func(actorAndCollectionIRIs []*url.URL) []*url.URL { + // // Put your sorting logic here. + // } + // + // The actorAndCollectionIRIs parameter will be the initial list of IRIs derived by + // looking at the "to", "cc", "bto", "bcc", and "audience" properties of the activity + // being delivered, excluding the AP public IRI, and before dereferencing of inboxes. + // It may look something like this: + // + // [ + // "https://example.org/users/someone/followers", // <-- collection IRI + // "https://another.example.org/users/someone_else", // <-- actor IRI + // "[...]" // <-- etc + // ] + // + // In this case, implementers may wish to sort the slice so that the directly-addressed + // actor "https://another.example.org/users/someone_else" occurs at an earlier index in + // the slice than the followers collection "https://example.org/users/someone/followers", + // so that "@someone_else" receives the delivery first. + // + // Note that you should only do this *immediately* after instantiating the side + // effect actor -- never while your application is already running, as this will + // likely cause race conditions or other problems! It's also completely fine to not + // set this function at all -- in this case, no pre-sorting of recipients will be + // performed, and delivery will occur in a non-determinate order. + DeliveryRecipientPreSort func(actorAndCollectionIRIs []*url.URL) []*url.URL + + common CommonBehavior + s2s FederatingProtocol + c2s SocialProtocol + db Database + clock Clock +} + +// NewSideEffectActor returns a new SideEffectActor, which satisfies the +// DelegateActor interface. Most of the time you will not need to call this +// function, and should instead rely on the NewSocialActor, NewFederatingActor, +// and NewActor functions, all of which use a SideEffectActor under the hood. +// Nevertheless, this function is exposed in case application developers need +// a SideEffectActor for some other reason (tests, monkey patches, etc). +// +// If you are using the returned SideEffectActor for federation, ensure that s2s +// is not nil. Likewise, if you are using it for the social protocol, ensure +// that c2s is not nil. +func NewSideEffectActor(c CommonBehavior, + s2s FederatingProtocol, + c2s SocialProtocol, + db Database, + clock Clock) *SideEffectActor { + return &SideEffectActor{ + Serialize: streams.Serialize, + common: c, + s2s: s2s, + c2s: c2s, + db: db, + clock: clock, + } +} + +// PostInboxRequestBodyHook defers to the delegate. +func (a *SideEffectActor) PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error) { + return a.s2s.PostInboxRequestBodyHook(c, r, activity) +} + +// PostOutboxRequestBodyHook defers to the delegate. +func (a *SideEffectActor) PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error) { + return a.c2s.PostOutboxRequestBodyHook(c, r, data) +} + +// AuthenticatePostInbox defers to the delegate to authenticate the request. +func (a *SideEffectActor) AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { + return a.s2s.AuthenticatePostInbox(c, w, r) +} + +// AuthenticateGetInbox defers to the delegate to authenticate the request. +func (a *SideEffectActor) AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { + return a.common.AuthenticateGetInbox(c, w, r) +} + +// AuthenticatePostOutbox defers to the delegate to authenticate the request. +func (a *SideEffectActor) AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { + return a.c2s.AuthenticatePostOutbox(c, w, r) +} + +// AuthenticateGetOutbox defers to the delegate to authenticate the request. +func (a *SideEffectActor) AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { + return a.common.AuthenticateGetOutbox(c, w, r) +} + +// GetOutbox delegates to the SocialProtocol. +func (a *SideEffectActor) GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) { + return a.common.GetOutbox(c, r) +} + +// GetInbox delegates to the FederatingProtocol. +func (a *SideEffectActor) GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) { + return a.s2s.GetInbox(c, r) +} + +// AuthorizePostInbox defers to the federating protocol whether the peer request +// is authorized based on the actors' ids. +func (a *SideEffectActor) AuthorizePostInbox(c context.Context, w http.ResponseWriter, activity Activity) (authorized bool, err error) { + authorized = false + actor := activity.GetActivityStreamsActor() + if actor == nil { + err = fmt.Errorf("no actors in post to inbox") + return + } + var iris []*url.URL + for i := 0; i < actor.Len(); i++ { + iter := actor.At(i) + if iter.IsIRI() { + iris = append(iris, iter.GetIRI()) + } else if t := iter.GetType(); t != nil { + iris = append(iris, activity.GetJSONLDId().Get()) + } else { + err = fmt.Errorf("actor at index %d is missing an id", i) + return + } + } + // Determine if the actor(s) sending this request are blocked. + var blocked bool + if blocked, err = a.s2s.Blocked(c, iris); err != nil { + return + } else if blocked { + w.WriteHeader(http.StatusForbidden) + return + } + authorized = true + return +} + +// PostInbox handles the side effects of determining whether to block the peer's +// request, adding the activity to the actor's inbox, and triggering side +// effects based on the activity's type. +func (a *SideEffectActor) PostInbox(c context.Context, inboxIRI *url.URL, activity Activity) error { + isNew, err := a.addToInboxIfNew(c, inboxIRI, activity) + if err != nil { + return err + } + if isNew { + wrapped, other, err := a.s2s.FederatingCallbacks(c) + if err != nil { + return err + } + // Populate side channels. + wrapped.db = a.db + wrapped.inboxIRI = inboxIRI + wrapped.newTransport = a.common.NewTransport + wrapped.deliver = a.Deliver + wrapped.addNewIds = a.AddNewIDs + res, err := streams.NewTypeResolver(wrapped.callbacks(other)...) + if err != nil { + return err + } + if err = res.Resolve(c, activity); err != nil && !streams.IsUnmatchedErr(err) { + return err + } else if streams.IsUnmatchedErr(err) { + err = a.s2s.DefaultCallback(c, activity) + if err != nil { + return err + } + } + } + return nil +} + +// InboxForwarding implements the 3-part inbox forwarding algorithm specified in +// the ActivityPub specification. Does not modify the Activity, but may send +// outbound requests as a side effect. +// +// InboxForwarding sets the federated data in the database. +func (a *SideEffectActor) InboxForwarding(c context.Context, inboxIRI *url.URL, activity Activity) error { + // 1. Must be first time we have seen this Activity. + // + // Obtain the id of the activity + id := activity.GetJSONLDId() + // Acquire a lock for the id. To be held for the rest of execution. + unlock, err := a.db.Lock(c, id.Get()) + if err != nil { + return err + } + // WARNING: Unlock is not deferred + // + // If the database already contains the activity, exit early. + exists, err := a.db.Exists(c, id.Get()) + if err != nil { + unlock() + return err + } else if exists { + unlock() + return nil + } + // Attempt to create the activity entry. + err = a.db.Create(c, activity) + unlock() // unlock even on error return + if err != nil { + return err + } + // Unlock by this point and in every branch above. + // + // 2. The values of 'to', 'cc', or 'audience' are Collections owned by + // this server. + var r []*url.URL + to := activity.GetActivityStreamsTo() + if to != nil { + for iter := to.Begin(); iter != to.End(); iter = iter.Next() { + val, err := ToId(iter) + if err != nil { + return err + } + r = append(r, val) + } + } + cc := activity.GetActivityStreamsCc() + if cc != nil { + for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() { + val, err := ToId(iter) + if err != nil { + return err + } + r = append(r, val) + } + } + audience := activity.GetActivityStreamsAudience() + if audience != nil { + for iter := audience.Begin(); iter != audience.End(); iter = iter.Next() { + val, err := ToId(iter) + if err != nil { + return err + } + r = append(r, val) + } + } + // Find all IRIs owned by this server. We need to find all of them so + // that forwarding can properly occur. + var myIRIs []*url.URL + for _, iri := range r { + if err != nil { + return err + } + var unlock func() + unlock, err = a.db.Lock(c, iri) + if err != nil { + return err + } + // WARNING: Unlock is not deferred + owns, err := a.db.Owns(c, iri) + unlock() // unlock even on error + if err != nil { + return err + } else if !owns { + continue + } + // Unlock by this point and in every branch above. + myIRIs = append(myIRIs, iri) + } + // Finally, load our IRIs to determine if they are a Collection or + // OrderedCollection. + // + // Load the unfiltered IRIs. + var colIRIs []*url.URL + col := make(map[string]itemser) + oCol := make(map[string]orderedItemser) + for _, iri := range myIRIs { + var unlock func() + unlock, err = a.db.Lock(c, iri) + if err != nil { + return err + } + // WARNING: Not Unlocked + t, err := a.db.Get(c, iri) + if err != nil { + return err + } + if streams.IsOrExtendsActivityStreamsOrderedCollection(t) { + if im, ok := t.(orderedItemser); ok { + oCol[iri.String()] = im + colIRIs = append(colIRIs, iri) + defer unlock() + } else { + unlock() // unlock instantly + } + } else if streams.IsOrExtendsActivityStreamsCollection(t) { + if im, ok := t.(itemser); ok { + col[iri.String()] = im + colIRIs = append(colIRIs, iri) + defer unlock() + } else { + unlock() // unlock instantly + } + } else { + unlock() // unlock instantly + } + } + // If we own none of the Collection IRIs in 'to', 'cc', or 'audience' + // then no need to do inbox forwarding. We have nothing to forward to. + if len(colIRIs) == 0 { + return nil + } + // 3. The values of 'inReplyTo', 'object', 'target', or 'tag' are owned + // by this server. This is only a boolean trigger: As soon as we get + // a hit that we own something, then we should do inbox forwarding. + maxDepth := a.s2s.MaxInboxForwardingRecursionDepth(c) + ownsValue, err := a.hasInboxForwardingValues(c, inboxIRI, activity, maxDepth, 0) + if err != nil { + return err + } + // If we don't own any of the 'inReplyTo', 'object', 'target', or 'tag' + // values, then no need to do inbox forwarding. + if !ownsValue { + return nil + } + // Do the inbox forwarding since the above conditions hold true. Support + // the behavior of letting the application filter out the resulting + // collections to be targeted. + toSend, err := a.s2s.FilterForwarding(c, colIRIs, activity) + if err != nil { + return err + } + recipients := make([]*url.URL, 0, len(toSend)) + for _, iri := range toSend { + if c, ok := col[iri.String()]; ok { + if it := c.GetActivityStreamsItems(); it != nil { + for iter := it.Begin(); iter != it.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + recipients = append(recipients, id) + } + } + } else if oc, ok := oCol[iri.String()]; ok { + if oit := oc.GetActivityStreamsOrderedItems(); oit != nil { + for iter := oit.Begin(); iter != oit.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + recipients = append(recipients, id) + } + } + } + } + return a.deliverToRecipients(c, inboxIRI, activity, recipients) +} + +// PostOutbox handles the side effects of adding the activity to the actor's +// outbox, and triggering side effects based on the activity's type. +// +// This implementation assumes all types are meant to be delivered except for +// the ActivityStreams Block type. +func (a *SideEffectActor) PostOutbox(c context.Context, activity Activity, outboxIRI *url.URL, rawJSON map[string]interface{}) (deliverable bool, err error) { + // TODO: Determine this if c2s is nil + deliverable = true + if a.c2s != nil { + var wrapped SocialWrappedCallbacks + var other []interface{} + wrapped, other, err = a.c2s.SocialCallbacks(c) + if err != nil { + return + } + // Populate side channels. + wrapped.db = a.db + wrapped.outboxIRI = outboxIRI + wrapped.rawActivity = rawJSON + wrapped.clock = a.clock + wrapped.newTransport = a.common.NewTransport + undeliverable := false + wrapped.undeliverable = &undeliverable + var res *streams.TypeResolver + res, err = streams.NewTypeResolver(wrapped.callbacks(other)...) + if err != nil { + return + } + if err = res.Resolve(c, activity); err != nil && !streams.IsUnmatchedErr(err) { + return + } else if streams.IsUnmatchedErr(err) { + deliverable = true + err = a.c2s.DefaultCallback(c, activity) + if err != nil { + return + } + } else { + deliverable = !undeliverable + } + } + err = a.addToOutbox(c, outboxIRI, activity) + return +} + +// AddNewIDs creates new 'id' entries on an activity and its objects if it is a +// Create activity. +func (a *SideEffectActor) AddNewIDs(c context.Context, activity Activity) error { + id, err := a.db.NewID(c, activity) + if err != nil { + return err + } + activityId := streams.NewJSONLDIdProperty() + activityId.Set(id) + activity.SetJSONLDId(activityId) + if streams.IsOrExtendsActivityStreamsCreate(activity) { + o, ok := activity.(objecter) + if !ok { + return fmt.Errorf("cannot add new id for Create: %T has no object property", activity) + } + if oProp := o.GetActivityStreamsObject(); oProp != nil { + for iter := oProp.Begin(); iter != oProp.End(); iter = iter.Next() { + t := iter.GetType() + if t == nil { + return fmt.Errorf("cannot add new id for object in Create: object is not embedded as a value literal") + } + id, err = a.db.NewID(c, t) + if err != nil { + return err + } + objId := streams.NewJSONLDIdProperty() + objId.Set(id) + t.SetJSONLDId(objId) + } + } + } + return nil +} + +// deliver will complete the peer-to-peer sending of a federated message to +// another server. +// +// Must be called if at least the federated protocol is supported. +func (a *SideEffectActor) Deliver(c context.Context, outboxIRI *url.URL, activity Activity) error { + recipients, err := a.prepare(c, outboxIRI, activity) + if err != nil { + return err + } + return a.deliverToRecipients(c, outboxIRI, activity, recipients) +} + +// WrapInCreate wraps an object with a Create activity. +func (a *SideEffectActor) WrapInCreate(c context.Context, obj vocab.Type, outboxIRI *url.URL) (create vocab.ActivityStreamsCreate, err error) { + var unlock func() + unlock, err = a.db.Lock(c, outboxIRI) + if err != nil { + return + } + // WARNING: No deferring the Unlock + actorIRI, err := a.db.ActorForOutbox(c, outboxIRI) + unlock() // unlock after regardless + if err != nil { + return + } + // Unlock the lock at this point and every branch above + return wrapInCreate(c, obj, actorIRI) +} + +// deliverToRecipients will take a prepared Activity and send it to specific +// recipients on behalf of an actor. +func (a *SideEffectActor) deliverToRecipients(c context.Context, boxIRI *url.URL, activity Activity, recipients []*url.URL) error { + // Call whichever serializer is + // set on the side effect actor. + m, err := a.Serialize(activity) + if err != nil { + return err + } + + tp, err := a.common.NewTransport(c, boxIRI, goFedUserAgent()) + if err != nil { + return err + } + + return tp.BatchDeliver(c, m, recipients) +} + +// addToOutbox adds the activity to the outbox and creates the activity in the +// internal database as its own entry. +func (a *SideEffectActor) addToOutbox(c context.Context, outboxIRI *url.URL, activity Activity) error { + // Set the activity in the database first. + id := activity.GetJSONLDId() + unlock, err := a.db.Lock(c, id.Get()) + if err != nil { + return err + } + // WARNING: Unlock not deferred + err = a.db.Create(c, activity) + unlock() // unlock after regardless + if err != nil { + return err + } + // WARNING: Unlock(c, id) should be called by this point and in every + // return before here. + // + // Acquire a lock to read the outbox. Defer release. + unlock, err = a.db.Lock(c, outboxIRI) + if err != nil { + return err + } + defer unlock() + outbox, err := a.db.GetOutbox(c, outboxIRI) + if err != nil { + return err + } + // Prepend the activity to the list of 'orderedItems'. + oi := outbox.GetActivityStreamsOrderedItems() + if oi == nil { + oi = streams.NewActivityStreamsOrderedItemsProperty() + } + oi.PrependIRI(id.Get()) + outbox.SetActivityStreamsOrderedItems(oi) + // Save in the database. + err = a.db.SetOutbox(c, outbox) + return err +} + +// addToInboxIfNew will add the activity to the inbox at the specified IRI if +// the activity's ID has not yet been added to the inbox. +// +// It does not add the activity to this database's know federated data. +// +// Returns true when the activity is novel. +func (a *SideEffectActor) addToInboxIfNew(c context.Context, inboxIRI *url.URL, activity Activity) (isNew bool, err error) { + // Acquire a lock to read the inbox. Defer release. + var unlock func() + unlock, err = a.db.Lock(c, inboxIRI) + if err != nil { + return + } + defer unlock() + // Obtain the id of the activity + id := activity.GetJSONLDId() + // If the inbox already contains the URL, early exit. + contains, err := a.db.InboxContains(c, inboxIRI, id.Get()) + if err != nil { + return + } else if contains { + return + } + // It is a new id, acquire the inbox. + isNew = true + inbox, err := a.db.GetInbox(c, inboxIRI) + if err != nil { + return + } + // Prepend the activity to the list of 'orderedItems'. + oi := inbox.GetActivityStreamsOrderedItems() + if oi == nil { + oi = streams.NewActivityStreamsOrderedItemsProperty() + } + oi.PrependIRI(id.Get()) + inbox.SetActivityStreamsOrderedItems(oi) + // Save in the database. + err = a.db.SetInbox(c, inbox) + return +} + +// Given an ActivityStreams value, recursively examines ownership of the id or +// href and the ones on properties applicable to inbox forwarding. +// +// Recursion may be limited by providing a 'maxDepth' greater than zero. A +// value of zero or a negative number will result in infinite recursion. +func (a *SideEffectActor) hasInboxForwardingValues(c context.Context, inboxIRI *url.URL, val vocab.Type, maxDepth, currDepth int) (bool, error) { + // Stop recurring if we are exceeding the maximum depth and the maximum + // is a positive number. + if maxDepth > 0 && currDepth >= maxDepth { + return false, nil + } + // Determine if we own the 'id' of any values on the properties we care + // about. + types, iris := getInboxForwardingValues(val) + // For IRIs, simply check if we own them. + for _, iri := range iris { + unlock, err := a.db.Lock(c, iri) + if err != nil { + return false, err + } + // WARNING: Unlock is not deferred + owns, err := a.db.Owns(c, iri) + unlock() // unlock after regardless + if err != nil { + return false, err + } else if owns { + return true, nil + } + // Unlock by this point and in every branch above + } + // For embedded literals, check the id. + for _, val := range types { + id, err := GetId(val) + if err != nil { + return false, err + } + var unlock func() + unlock, err = a.db.Lock(c, id) + if err != nil { + return false, err + } + // WARNING: Unlock is not deferred + owns, err := a.db.Owns(c, id) + unlock() // unlock after regardless + if err != nil { + return false, err + } else if owns { + return true, nil + } + // Unlock by this point and in every branch above + } + // Recur Preparation: Try fetching the IRIs so we can recur into them. + for _, iri := range iris { + // Dereferencing the IRI. + tport, err := a.common.NewTransport(c, inboxIRI, goFedUserAgent()) + if err != nil { + return false, err + } + resp, err := tport.Dereference(c, iri) + if err != nil { + // Do not fail the entire process if the data is + // missing. + continue + } + m, err := readActivityPubResp(resp) + if err != nil { + return false, err + } + t, err := streams.ToType(c, m) + if err != nil { + // Do not fail the entire process if we cannot handle + // the type. + continue + } + types = append(types, t) + } + // Recur. + for _, nextVal := range types { + if has, err := a.hasInboxForwardingValues(c, inboxIRI, nextVal, maxDepth, currDepth+1); err != nil { + return false, err + } else if has { + return true, nil + } + } + return false, nil +} + +// prepare takes a deliverableObject and returns a list of the final +// recipient inbox IRIs. Additionally, the deliverableObject will have +// any hidden hidden recipients ("bto" and "bcc") stripped from it. +// +// Only call if both the social and federated protocol are supported. +func (a *SideEffectActor) prepare( + ctx context.Context, + outboxIRI *url.URL, + activity Activity, +) ([]*url.URL, error) { + // Iterate through to, bto, cc, bcc, and audience + // to extract a slice of addressee IRIs / IDs. + // + // The resulting slice might look something like: + // + // [ + // "https://example.org/users/someone/followers", // <-- collection IRI + // "https://another.example.org/users/someone_else", // <-- actor IRI + // "[...]" // <-- etc + // ] + var actorsAndCollections []*url.URL + if to := activity.GetActivityStreamsTo(); to != nil { + for iter := to.Begin(); iter != to.End(); iter = iter.Next() { + var err error + actorsAndCollections, err = appendToActorsAndCollectionsIRIs( + iter, actorsAndCollections, + ) + if err != nil { + return nil, err + } + } + } + + if bto := activity.GetActivityStreamsBto(); bto != nil { + for iter := bto.Begin(); iter != bto.End(); iter = iter.Next() { + var err error + actorsAndCollections, err = appendToActorsAndCollectionsIRIs( + iter, actorsAndCollections, + ) + if err != nil { + return nil, err + } + } + } + + if cc := activity.GetActivityStreamsCc(); cc != nil { + for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() { + var err error + actorsAndCollections, err = appendToActorsAndCollectionsIRIs( + iter, actorsAndCollections, + ) + if err != nil { + return nil, err + } + } + } + + if bcc := activity.GetActivityStreamsBcc(); bcc != nil { + for iter := bcc.Begin(); iter != bcc.End(); iter = iter.Next() { + var err error + actorsAndCollections, err = appendToActorsAndCollectionsIRIs( + iter, actorsAndCollections, + ) + if err != nil { + return nil, err + } + } + } + + if audience := activity.GetActivityStreamsAudience(); audience != nil { + for iter := audience.Begin(); iter != audience.End(); iter = iter.Next() { + var err error + actorsAndCollections, err = appendToActorsAndCollectionsIRIs( + iter, actorsAndCollections, + ) + if err != nil { + return nil, err + } + } + } + + // PRE-SORTING + + // If the pre-delivery sort function is defined, + // call it now so that implementations can sort + // delivery order to their preferences. + if a.DeliveryRecipientPreSort != nil { + actorsAndCollections = a.DeliveryRecipientPreSort(actorsAndCollections) + } + + // We now need to dereference the actor or collection + // IRIs to derive inboxes that we can POST requests to. + var ( + inboxes = make([]*url.URL, 0, len(actorsAndCollections)) + derefdEntries = make(map[string]struct{}, len(actorsAndCollections)) + ) + + // First check if the implemented database logic + // can return any of these inboxes without having + // to make remote dereference calls (much cheaper). + for _, actorOrCollection := range actorsAndCollections { + actorOrCollectionStr := actorOrCollection.String() + if _, derefd := derefdEntries[actorOrCollectionStr]; derefd { + // Ignore potential duplicates + // we've already derefd to inbox(es). + continue + } + + // BEGIN LOCK + unlock, err := a.db.Lock(ctx, actorOrCollection) + if err != nil { + return nil, err + } + + // Try to get inbox(es) for this actor or collection. + gotInboxes, err := a.db.InboxesForIRI(ctx, actorOrCollection) + + // END LOCK + unlock() + + if err != nil { + return nil, err + } + + if len(gotInboxes) == 0 { + // No hit(s). + continue + } + + // We have one or more hits. + inboxes = append(inboxes, gotInboxes...) + + // Mark this actor or collection as deref'd. + derefdEntries[actorOrCollectionStr] = struct{}{} + } + + // Now look for any remaining actors/collections + // that weren't already dereferenced into inboxes + // with db calls; find these by making deref calls + // to remote instances. + // + // First get a transport to do the http calls. + t, err := a.common.NewTransport(ctx, outboxIRI, goFedUserAgent()) + if err != nil { + return nil, err + } + + // Make HTTP calls to unpack collection IRIs into + // Actor IRIs and then into Actor types, ignoring + // actors or collections we've already deref'd. + actorsFromRemote, err := a.resolveActors( + ctx, + t, + actorsAndCollections, + derefdEntries, + 0, a.s2s.MaxDeliveryRecursionDepth(ctx), + ) + if err != nil { + return nil, err + } + + // Release no-longer-needed collections. + clear(derefdEntries) + clear(actorsAndCollections) + + // Extract inbox IRI from each deref'd Actor (if any). + inboxesFromRemote, err := actorsToInboxIRIs(actorsFromRemote) + if err != nil { + return nil, err + } + + // Combine db-discovered inboxes and remote-discovered + // inboxes into a final list of destination inboxes. + inboxes = append(inboxes, inboxesFromRemote...) + + // POST FILTERING + + // Do a final pass of the inboxes to: + // + // 1. Deduplicate entries. + // 2. Ensure that the list of inboxes doesn't + // contain the inbox of whoever the outbox + // belongs to, no point delivering to oneself. + // + // To do this we first need to get the + // inbox IRI of this outbox's Actor. + + // BEGIN LOCK + unlock, err := a.db.Lock(ctx, outboxIRI) + if err != nil { + return nil, err + } + + // Get the IRI of the Actor who owns this outbox. + outboxActorIRI, err := a.db.ActorForOutbox(ctx, outboxIRI) + + // END LOCK + unlock() + + if err != nil { + return nil, err + } + + // BEGIN LOCK + unlock, err = a.db.Lock(ctx, outboxActorIRI) + if err != nil { + return nil, err + } + + // Now get the Actor who owns this outbox. + outboxActor, err := a.db.Get(ctx, outboxActorIRI) + + // END LOCK + unlock() + + if err != nil { + return nil, err + } + + // Extract the inbox IRI for the outbox Actor. + inboxOfOutboxActor, err := getInbox(outboxActor) + if err != nil { + return nil, err + } + + // Deduplicate the final inboxes slice, and filter + // out of the inbox of this outbox actor (if present). + inboxes = filterInboxIRIs(inboxes, inboxOfOutboxActor) + + // Now that we've derived inboxes to deliver + // the activity to, strip off any bto or bcc + // recipients, as per the AP spec requirements. + stripHiddenRecipients(activity) + + // All done! + return inboxes, nil +} + +// resolveActors takes a list of Actor id URIs and returns them as concrete +// instances of actorObject. It attempts to apply recursively when it encounters +// a target that is a Collection or OrderedCollection. +// +// Any IRI strings in the ignores map will be skipped (use this when +// you've already dereferenced some of the actorAndCollectionIRIs). +// +// If maxDepth is zero or negative, then recursion is infinitely applied. +// +// If a recipient is a Collection or OrderedCollection, then the server MUST +// dereference the collection, WITH the user's credentials. +// +// Note that this also applies to CollectionPage and OrderedCollectionPage. +func (a *SideEffectActor) resolveActors( + ctx context.Context, + t Transport, + actorAndCollectionIRIs []*url.URL, + ignores map[string]struct{}, + depth, maxDepth int, +) ([]vocab.Type, error) { + if maxDepth > 0 && depth >= maxDepth { + // Hit our max depth. + return nil, nil + } + + if len(actorAndCollectionIRIs) == 0 { + // Nothing to do. + return nil, nil + } + + // Optimistically assume 1:1 mapping of IRIs to actors. + actors := make([]vocab.Type, 0, len(actorAndCollectionIRIs)) + + // Deref each actorOrCollectionIRI if not ignored. + for _, actorOrCollectionIRI := range actorAndCollectionIRIs { + _, ignore := ignores[actorOrCollectionIRI.String()] + if ignore { + // Don't try to + // deref this one. + continue + } + + // TODO: Determine if more logic is needed here for + // inaccessible collections owned by peer servers. + actor, more, err := a.dereferenceForResolvingInboxes(ctx, t, actorOrCollectionIRI) + if err != nil { + // Missing recipient -- skip. + continue + } + + if actor != nil { + // Got a hit. + actors = append(actors, actor) + } + + // If this was a collection, get more. + recurActors, err := a.resolveActors( + ctx, + t, + more, + ignores, + depth+1, maxDepth, + ) + if err != nil { + return nil, err + } + + actors = append(actors, recurActors...) + } + + return actors, nil +} + +// dereferenceForResolvingInboxes dereferences an IRI solely for finding an +// actor's inbox IRI to deliver to. +// +// The returned actor could be nil, if it wasn't an actor (ex: a Collection or +// OrderedCollection). +func (a *SideEffectActor) dereferenceForResolvingInboxes(c context.Context, t Transport, actorIRI *url.URL) (actor vocab.Type, moreActorIRIs []*url.URL, err error) { + var resp *http.Response + resp, err = t.Dereference(c, actorIRI) + if err != nil { + return + } + var m map[string]interface{} + m, err = readActivityPubResp(resp) + if err != nil { + return + } + actor, err = streams.ToType(c, m) + if err != nil { + return + } + // Attempt to see if the 'actor' is really some sort of type that has + // an 'items' or 'orderedItems' property. + if v, ok := actor.(itemser); ok { + if i := v.GetActivityStreamsItems(); i != nil { + for iter := i.Begin(); iter != i.End(); iter = iter.Next() { + var id *url.URL + id, err = ToId(iter) + if err != nil { + return + } + moreActorIRIs = append(moreActorIRIs, id) + } + } + actor = nil + } else if v, ok := actor.(orderedItemser); ok { + if i := v.GetActivityStreamsOrderedItems(); i != nil { + for iter := i.Begin(); iter != i.End(); iter = iter.Next() { + var id *url.URL + id, err = ToId(iter) + if err != nil { + return + } + moreActorIRIs = append(moreActorIRIs, id) + } + } + actor = nil + } + return +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/social_protocol.go b/vendor/code.superseriousbusiness.org/activity/pub/social_protocol.go new file mode 100644 index 000000000..515947d15 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/social_protocol.go @@ -0,0 +1,83 @@ +package pub + +import ( + "context" + "net/http" + + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// SocialProtocol contains behaviors an application needs to satisfy for the +// full ActivityPub C2S implementation to be supported by this library. +// +// It is only required if the client application wants to support the client-to- +// server, or social, protocol. +// +// It is passed to the library as a dependency injection from the client +// application. +type SocialProtocol interface { + // Hook callback after parsing the request body for a client request + // to the Actor's outbox. + // + // Can be used to set contextual information based on the + // ActivityStreams object received. + // + // Only called if the Social API is enabled. + // + // Warning: Neither authentication nor authorization has taken place at + // this time. Doing anything beyond setting contextual information is + // strongly discouraged. + // + // If an error is returned, it is passed back to the caller of + // PostOutbox. In this case, the DelegateActor implementation must not + // write a response to the ResponseWriter as is expected that the caller + // to PostOutbox will do so when handling the error. + PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error) + // AuthenticatePostOutbox delegates the authentication of a POST to an + // outbox. + // + // Only called if the Social API is enabled. + // + // If an error is returned, it is passed back to the caller of + // PostOutbox. In this case, the implementation must not write a + // response to the ResponseWriter as is expected that the client will + // do so when handling the error. The 'authenticated' is ignored. + // + // If no error is returned, but authentication or authorization fails, + // then authenticated must be false and error nil. It is expected that + // the implementation handles writing to the ResponseWriter in this + // case. + // + // Finally, if the authentication and authorization succeeds, then + // authenticated must be true and error nil. The request will continue + // to be processed. + AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) + // SocialCallbacks returns the application logic that handles + // ActivityStreams received from C2S clients. + // + // Note that certain types of callbacks will be 'wrapped' with default + // behaviors supported natively by the library. Other callbacks + // compatible with streams.TypeResolver can be specified by 'other'. + // + // For example, setting the 'Create' field in the SocialWrappedCallbacks + // lets an application dependency inject additional behaviors they want + // to take place, including the default behavior supplied by this + // library. This is guaranteed to be compliant with the ActivityPub + // Social protocol. + // + // To override the default behavior, instead supply the function in + // 'other', which does not guarantee the application will be compliant + // with the ActivityPub Social Protocol. + // + // Applications are not expected to handle every single ActivityStreams + // type and extension. The unhandled ones are passed to DefaultCallback. + SocialCallbacks(c context.Context) (wrapped SocialWrappedCallbacks, other []interface{}, err error) + // DefaultCallback is called for types that go-fed can deserialize but + // are not handled by the application's callbacks returned in the + // Callbacks method. + // + // Applications are not expected to handle every single ActivityStreams + // type and extension, so the unhandled ones are passed to + // DefaultCallback. + DefaultCallback(c context.Context, activity Activity) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/social_wrapped_callbacks.go b/vendor/code.superseriousbusiness.org/activity/pub/social_wrapped_callbacks.go new file mode 100644 index 000000000..d1c53fcaf --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/social_wrapped_callbacks.go @@ -0,0 +1,534 @@ +package pub + +import ( + "context" + "fmt" + "net/url" + + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" +) + +// SocialWrappedCallbacks lists the callback functions that already have some +// side effect behavior provided by the pub library. +// +// These functions are wrapped for the Social Protocol. +type SocialWrappedCallbacks struct { + // Create handles additional side effects for the Create ActivityStreams + // type. + // + // The wrapping callback copies the actor(s) to the 'attributedTo' + // property and copies recipients between the Create activity and all + // objects. It then saves the entry in the database. + Create func(context.Context, vocab.ActivityStreamsCreate) error + // Update handles additional side effects for the Update ActivityStreams + // type. + // + // The wrapping callback applies new top-level values on an object to + // the stored objects. Any top-level null literals will be deleted on + // the stored objects as well. + Update func(context.Context, vocab.ActivityStreamsUpdate) error + // Delete handles additional side effects for the Delete ActivityStreams + // type. + // + // The wrapping callback replaces the object(s) with tombstones in the + // database. + Delete func(context.Context, vocab.ActivityStreamsDelete) error + // Follow handles additional side effects for the Follow ActivityStreams + // type. + // + // The wrapping callback only ensures the 'Follow' has at least one + // 'object' entry, but otherwise has no default side effect. + Follow func(context.Context, vocab.ActivityStreamsFollow) error + // Add handles additional side effects for the Add ActivityStreams + // type. + // + // + // The wrapping function will add the 'object' IRIs to a specific + // 'target' collection if the 'target' collection(s) live on this + // server. + Add func(context.Context, vocab.ActivityStreamsAdd) error + // Remove handles additional side effects for the Remove ActivityStreams + // type. + // + // The wrapping function will remove all 'object' IRIs from a specific + // 'target' collection if the 'target' collection(s) live on this + // server. + Remove func(context.Context, vocab.ActivityStreamsRemove) error + // Like handles additional side effects for the Like ActivityStreams + // type. + // + // The wrapping function will add the objects on the activity to the + // "liked" collection of this actor. + Like func(context.Context, vocab.ActivityStreamsLike) error + // Undo handles additional side effects for the Undo ActivityStreams + // type. + // + // + // The wrapping function ensures the 'actor' on the 'Undo' + // is be the same as the 'actor' on all Activities being undone. + // It enforces that the actors on the Undo must correspond to all of the + // 'object' actors in some manner. + // + // It is expected that the application will implement the proper + // reversal of activities that are being undone. + Undo func(context.Context, vocab.ActivityStreamsUndo) error + // Block handles additional side effects for the Block ActivityStreams + // type. + // + // The wrapping callback only ensures the 'Block' has at least one + // 'object' entry, but otherwise has no default side effect. It is up + // to the wrapped application function to properly enforce the new + // blocking behavior. + // + // Note that go-fed does not federate 'Block' activities received in the + // Social Protocol. + Block func(context.Context, vocab.ActivityStreamsBlock) error + + // Sidechannel data -- this is set at request handling time. These must + // be set before the callbacks are used. + + // db is the Database the SocialWrappedCallbacks should use. It must be + // set before calling the callbacks. + db Database + // outboxIRI is the outboxIRI that is handling this callback. + outboxIRI *url.URL + // rawActivity is the JSON map literal received when deserializing the + // request body. + rawActivity map[string]interface{} + // clock is the server's clock. + clock Clock + // newTransport creates a new Transport. + newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error) + // undeliverable is a sidechannel out, indicating if the handled activity + // should not be delivered to a peer. + // + // Its provided default value will always be used when a custom function + // is called. + undeliverable *bool +} + +// callbacks returns the WrappedCallbacks members into a single interface slice +// for use in streams.Resolver callbacks. +// +// If the given functions have a type that collides with the default behavior, +// then disable our default behavior +func (w SocialWrappedCallbacks) callbacks(fns []interface{}) []interface{} { + enableCreate := true + enableUpdate := true + enableDelete := true + enableFollow := true + enableAdd := true + enableRemove := true + enableLike := true + enableUndo := true + enableBlock := true + for _, fn := range fns { + switch fn.(type) { + default: + continue + case func(context.Context, vocab.ActivityStreamsCreate) error: + enableCreate = false + case func(context.Context, vocab.ActivityStreamsUpdate) error: + enableUpdate = false + case func(context.Context, vocab.ActivityStreamsDelete) error: + enableDelete = false + case func(context.Context, vocab.ActivityStreamsFollow) error: + enableFollow = false + case func(context.Context, vocab.ActivityStreamsAdd) error: + enableAdd = false + case func(context.Context, vocab.ActivityStreamsRemove) error: + enableRemove = false + case func(context.Context, vocab.ActivityStreamsLike) error: + enableLike = false + case func(context.Context, vocab.ActivityStreamsUndo) error: + enableUndo = false + case func(context.Context, vocab.ActivityStreamsBlock) error: + enableBlock = false + } + } + if enableCreate { + fns = append(fns, w.create) + } + if enableUpdate { + fns = append(fns, w.update) + } + if enableDelete { + fns = append(fns, w.deleteFn) + } + if enableFollow { + fns = append(fns, w.follow) + } + if enableAdd { + fns = append(fns, w.add) + } + if enableRemove { + fns = append(fns, w.remove) + } + if enableLike { + fns = append(fns, w.like) + } + if enableUndo { + fns = append(fns, w.undo) + } + if enableBlock { + fns = append(fns, w.block) + } + return fns +} + +// create implements the social Create activity side effects. +func (w SocialWrappedCallbacks) create(c context.Context, a vocab.ActivityStreamsCreate) error { + *w.undeliverable = false + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + // Obtain all actor IRIs. + actors := a.GetActivityStreamsActor() + createActorIds := make(map[string]*url.URL) + if actors != nil { + createActorIds = make(map[string]*url.URL, actors.Len()) + for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + createActorIds[id.String()] = id + } + } + // Obtain each object's 'attributedTo' IRIs. + objectAttributedToIds := make([]map[string]*url.URL, op.Len()) + for i := range objectAttributedToIds { + objectAttributedToIds[i] = make(map[string]*url.URL) + } + for i := 0; i < op.Len(); i++ { + t := op.At(i).GetType() + attrToer, ok := t.(attributedToer) + if !ok { + continue + } + attr := attrToer.GetActivityStreamsAttributedTo() + if attr == nil { + attr = streams.NewActivityStreamsAttributedToProperty() + attrToer.SetActivityStreamsAttributedTo(attr) + } + for iter := attr.Begin(); iter != attr.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + objectAttributedToIds[i][id.String()] = id + } + } + // Put all missing actor IRIs onto all object attributedTo properties. + for k, v := range createActorIds { + for i, attributedToMap := range objectAttributedToIds { + if _, ok := attributedToMap[k]; !ok { + t := op.At(i).GetType() + attrToer, ok := t.(attributedToer) + if !ok { + continue + } + attr := attrToer.GetActivityStreamsAttributedTo() + attr.AppendIRI(v) + } + } + } + // Put all missing object attributedTo IRIs onto the actor property + // if there is one. + if actors != nil { + for _, attributedToMap := range objectAttributedToIds { + for k, v := range attributedToMap { + if _, ok := createActorIds[k]; !ok { + actors.AppendIRI(v) + } + } + } + } + // Copy over the 'to', 'bto', 'cc', 'bcc', and 'audience' recipients + // between the activity and all child objects and vice versa. + if err := normalizeRecipients(a); err != nil { + return err + } + // Create anonymous loop function to be able to properly scope the defer + // for the database lock at each iteration. + loopFn := func(i int) error { + obj := op.At(i).GetType() + id, err := GetId(obj) + if err != nil { + return err + } + var unlock func() + unlock, err = w.db.Lock(c, id) + if err != nil { + return err + } + defer unlock() + if err := w.db.Create(c, obj); err != nil { + return err + } + return nil + } + // Persist all objects we've created, which will include sensitive + // recipients such as 'bcc' and 'bto'. + for i := 0; i < op.Len(); i++ { + if err := loopFn(i); err != nil { + return err + } + } + if w.Create != nil { + return w.Create(c, a) + } + return nil +} + +// update implements the social Update activity side effects. +func (w SocialWrappedCallbacks) update(c context.Context, a vocab.ActivityStreamsUpdate) error { + *w.undeliverable = false + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + // Obtain all object ids, which should be owned by this server. + objIds := make([]*url.URL, 0, op.Len()) + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + objIds = append(objIds, id) + } + // Create anonymous loop function to be able to properly scope the defer + // for the database lock at each iteration. + loopFn := func(idx int, loopId *url.URL) error { + unlock, err := w.db.Lock(c, loopId) + if err != nil { + return err + } + defer unlock() + t, err := w.db.Get(c, loopId) + if err != nil { + return err + } + m, err := t.Serialize() + if err != nil { + return err + } + // Copy over new top-level values. + objType := op.At(idx).GetType() + if objType == nil { + return fmt.Errorf("object at index %d is not a literal type value", idx) + } + newM, err := objType.Serialize() + if err != nil { + return err + } + for k, v := range newM { + m[k] = v + } + // Delete top-level values where the raw Activity had nils. + for k, v := range w.rawActivity { + if _, ok := m[k]; v == nil && ok { + delete(m, k) + } + } + newT, err := streams.ToType(c, m) + if err != nil { + return err + } + if err = w.db.Update(c, newT); err != nil { + return err + } + return nil + } + for i, id := range objIds { + if err := loopFn(i, id); err != nil { + return err + } + } + if w.Update != nil { + return w.Update(c, a) + } + return nil +} + +// deleteFn implements the social Delete activity side effects. +func (w SocialWrappedCallbacks) deleteFn(c context.Context, a vocab.ActivityStreamsDelete) error { + *w.undeliverable = false + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + // Obtain all object ids, which should be owned by this server. + objIds := make([]*url.URL, 0, op.Len()) + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + objIds = append(objIds, id) + } + // Create anonymous loop function to be able to properly scope the defer + // for the database lock at each iteration. + loopFn := func(idx int, loopId *url.URL) error { + unlock, err := w.db.Lock(c, loopId) + if err != nil { + return err + } + defer unlock() + t, err := w.db.Get(c, loopId) + if err != nil { + return err + } + tomb := toTombstone(t, loopId, w.clock.Now()) + if err := w.db.Update(c, tomb); err != nil { + return err + } + return nil + } + for i, id := range objIds { + if err := loopFn(i, id); err != nil { + return err + } + } + if w.Delete != nil { + return w.Delete(c, a) + } + return nil +} + +// follow implements the social Follow activity side effects. +func (w SocialWrappedCallbacks) follow(c context.Context, a vocab.ActivityStreamsFollow) error { + *w.undeliverable = false + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + if w.Follow != nil { + return w.Follow(c, a) + } + return nil +} + +// add implements the social Add activity side effects. +func (w SocialWrappedCallbacks) add(c context.Context, a vocab.ActivityStreamsAdd) error { + *w.undeliverable = false + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + target := a.GetActivityStreamsTarget() + if target == nil || target.Len() == 0 { + return ErrTargetRequired + } + if err := add(c, op, target, w.db); err != nil { + return err + } + if w.Add != nil { + return w.Add(c, a) + } + return nil +} + +// remove implements the social Remove activity side effects. +func (w SocialWrappedCallbacks) remove(c context.Context, a vocab.ActivityStreamsRemove) error { + *w.undeliverable = false + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + target := a.GetActivityStreamsTarget() + if target == nil || target.Len() == 0 { + return ErrTargetRequired + } + if err := remove(c, op, target, w.db); err != nil { + return err + } + if w.Remove != nil { + return w.Remove(c, a) + } + return nil +} + +// like implements the social Like activity side effects. +func (w SocialWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsLike) error { + *w.undeliverable = false + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + // Get this actor's IRI. + unlock, err := w.db.Lock(c, w.outboxIRI) + if err != nil { + return err + } + // WARNING: Unlock not deferred. + actorIRI, err := w.db.ActorForOutbox(c, w.outboxIRI) + unlock() // unlock even on error + if err != nil { + return err + } + // Unlock must be called by now and every branch above. + // + // Now obtain this actor's 'liked' collection. + unlock, err = w.db.Lock(c, actorIRI) + if err != nil { + return err + } + defer unlock() + liked, err := w.db.Liked(c, actorIRI) + if err != nil { + return err + } + likedItems := liked.GetActivityStreamsItems() + if likedItems == nil { + likedItems = streams.NewActivityStreamsItemsProperty() + liked.SetActivityStreamsItems(likedItems) + } + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + objId, err := ToId(iter) + if err != nil { + return err + } + likedItems.PrependIRI(objId) + } + err = w.db.Update(c, liked) + if err != nil { + return err + } + if w.Like != nil { + return w.Like(c, a) + } + return nil +} + +// undo implements the social Undo activity side effects. +func (w SocialWrappedCallbacks) undo(c context.Context, a vocab.ActivityStreamsUndo) error { + *w.undeliverable = false + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + actors := a.GetActivityStreamsActor() + if err := mustHaveActivityActorsMatchObjectActors(c, actors, op, w.newTransport, w.outboxIRI); err != nil { + return err + } + if w.Undo != nil { + return w.Undo(c, a) + } + return nil +} + +// block implements the social Block activity side effects. +func (w SocialWrappedCallbacks) block(c context.Context, a vocab.ActivityStreamsBlock) error { + *w.undeliverable = true + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return ErrObjectRequired + } + if w.Block != nil { + return w.Block(c, a) + } + return nil +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/transport.go b/vendor/code.superseriousbusiness.org/activity/pub/transport.go new file mode 100644 index 000000000..b74bfedbf --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/transport.go @@ -0,0 +1,219 @@ +package pub + +import ( + "bytes" + "context" + "crypto" + "encoding/json" + "fmt" + "net/http" + "net/url" + "strings" + "sync" + + "code.superseriousbusiness.org/httpsig" +) + +const ( + // acceptHeaderValue is the Accept header value indicating that the + // response should contain an ActivityStreams object. + acceptHeaderValue = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" +) + +// isSuccess returns true if the HTTP status code is either OK, Created, or +// Accepted. +func isSuccess(code int) bool { + return code == http.StatusOK || + code == http.StatusCreated || + code == http.StatusAccepted +} + +// Transport makes ActivityStreams calls to other servers in order to send or +// receive ActivityStreams data. +// +// It is responsible for setting the appropriate request headers, signing the +// requests if needed, and facilitating the traffic between this server and +// another. +// +// The transport is exclusively used to issue requests on behalf of an actor, +// and is never sending requests on behalf of the server in general. +// +// It may be reused multiple times, but never concurrently. +type Transport interface { + // Dereference fetches the ActivityStreams object located at this IRI with + // a GET request. Note that Response will only be returned on status = OK. + Dereference(c context.Context, iri *url.URL) (*http.Response, error) + + // Deliver sends an ActivityStreams object. + Deliver(c context.Context, obj map[string]interface{}, to *url.URL) error + + // BatchDeliver sends an ActivityStreams object to multiple recipients. + BatchDeliver(c context.Context, obj map[string]interface{}, recipients []*url.URL) error +} + +// Transport must be implemented by HttpSigTransport. +var _ Transport = &HttpSigTransport{} + +// HttpSigTransport makes a dereference call using HTTP signatures to +// authenticate the request on behalf of a particular actor. +// +// No rate limiting is applied. +// +// Only one request is tried per call. +type HttpSigTransport struct { + client HttpClient + appAgent string + gofedAgent string + clock Clock + getSigner httpsig.Signer + getSignerMu *sync.Mutex + postSigner httpsig.Signer + postSignerMu *sync.Mutex + pubKeyId string + privKey crypto.PrivateKey +} + +// NewHttpSigTransport returns a new Transport. +// +// It sends requests specifically on behalf of a specific actor on this server. +// The actor's credentials are used to add an HTTP Signature to requests, which +// requires an actor's private key, a unique identifier for their public key, +// and an HTTP Signature signing algorithm. +// +// The client lets users issue requests through any HTTP client, including the +// standard library's HTTP client. +// +// The appAgent uniquely identifies the calling application's requests, so peers +// may aid debugging the requests incoming from this server. Note that the +// agent string will also include one for go-fed, so at minimum peer servers can +// reach out to the go-fed library to aid in notifying implementors of malformed +// or unsupported requests. +func NewHttpSigTransport( + client HttpClient, + appAgent string, + clock Clock, + getSigner, postSigner httpsig.Signer, + pubKeyId string, + privKey crypto.PrivateKey) *HttpSigTransport { + return &HttpSigTransport{ + client: client, + appAgent: appAgent, + gofedAgent: goFedUserAgent(), + clock: clock, + getSigner: getSigner, + getSignerMu: &sync.Mutex{}, + postSigner: postSigner, + postSignerMu: &sync.Mutex{}, + pubKeyId: pubKeyId, + privKey: privKey, + } +} + +// Dereference sends a GET request signed with an HTTP Signature to obtain an ActivityStreams value. +func (h HttpSigTransport) Dereference(c context.Context, iri *url.URL) (*http.Response, error) { + req, err := http.NewRequest("GET", iri.String(), nil) + if err != nil { + return nil, err + } + req = req.WithContext(c) + req.Header.Add(acceptHeader, acceptHeaderValue) + req.Header.Add("Accept-Charset", "utf-8") + req.Header.Add("Date", h.clock.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT") + req.Header.Add("User-Agent", fmt.Sprintf("%s %s", h.appAgent, h.gofedAgent)) + req.Header.Set("Host", iri.Host) + h.getSignerMu.Lock() + err = h.getSigner.SignRequest(h.privKey, h.pubKeyId, req, nil) + h.getSignerMu.Unlock() + if err != nil { + return nil, err + } + resp, err := h.client.Do(req) + if err != nil { + return nil, err + } + if resp.StatusCode != http.StatusOK { + _ = resp.Body.Close() + return nil, fmt.Errorf("GET request to %s failed (%d): %s", iri.String(), resp.StatusCode, resp.Status) + } + return resp, nil +} + +// Deliver sends a POST request with an HTTP Signature. +func (h HttpSigTransport) Deliver(c context.Context, data map[string]interface{}, to *url.URL) error { + b, err := json.Marshal(data) + if err != nil { + return err + } + return h.deliver(c, b, to) +} + +// BatchDeliver sends concurrent POST requests. Returns an error if any of the requests had an error. +func (h HttpSigTransport) BatchDeliver(c context.Context, data map[string]interface{}, recipients []*url.URL) error { + b, err := json.Marshal(data) + if err != nil { + return err + } + var wg sync.WaitGroup + errCh := make(chan error, len(recipients)) + for _, recipient := range recipients { + wg.Add(1) + go func(r *url.URL) { + defer wg.Done() + if err := h.deliver(c, b, r); err != nil { + errCh <- err + } + }(recipient) + } + wg.Wait() + errs := make([]string, 0, len(recipients)) +outer: + for { + select { + case e := <-errCh: + errs = append(errs, e.Error()) + default: + break outer + } + } + if len(errs) > 0 { + return fmt.Errorf("batch deliver had at least one failure: %s", strings.Join(errs, "; ")) + } + return nil +} + +func (h HttpSigTransport) deliver(c context.Context, b []byte, to *url.URL) error { + req, err := http.NewRequest("POST", to.String(), bytes.NewReader(b)) + if err != nil { + return err + } + req = req.WithContext(c) + req.Header.Add(contentTypeHeader, contentTypeHeaderValue) + req.Header.Add("Accept-Charset", "utf-8") + req.Header.Add("Date", h.clock.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT") + req.Header.Add("User-Agent", fmt.Sprintf("%s %s", h.appAgent, h.gofedAgent)) + req.Header.Set("Host", to.Host) + h.postSignerMu.Lock() + err = h.postSigner.SignRequest(h.privKey, h.pubKeyId, req, b) + h.postSignerMu.Unlock() + if err != nil { + return err + } + resp, err := h.client.Do(req) + if err != nil { + return err + } + defer resp.Body.Close() + if !isSuccess(resp.StatusCode) { + return fmt.Errorf("POST request to %s failed (%d): %s", to.String(), resp.StatusCode, resp.Status) + } + return nil +} + +// HttpClient sends http requests, and is an abstraction only needed by the +// HttpSigTransport. The standard library's Client satisfies this interface. +type HttpClient interface { + Do(req *http.Request) (*http.Response, error) +} + +// HttpClient must be implemented by http.Client. +var _ HttpClient = &http.Client{} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/util.go b/vendor/code.superseriousbusiness.org/activity/pub/util.go new file mode 100644 index 000000000..dc78bb964 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/util.go @@ -0,0 +1,1077 @@ +package pub + +import ( + "bytes" + "context" + "crypto/sha256" + "encoding/base64" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + "time" + + "code.superseriousbusiness.org/activity/streams" + "code.superseriousbusiness.org/activity/streams/vocab" +) + +var ( + // ErrObjectRequired indicates the activity needs its object property + // set. Can be returned by DelegateActor's PostInbox or PostOutbox so a + // Bad Request response is set. + ErrObjectRequired = errors.New("object property required on the provided activity") + // ErrTargetRequired indicates the activity needs its target property + // set. Can be returned by DelegateActor's PostInbox or PostOutbox so a + // Bad Request response is set. + ErrTargetRequired = errors.New("target property required on the provided activity") +) + +// activityStreamsMediaTypes contains all of the accepted ActivityStreams media +// types. Generated at init time. +var activityStreamsMediaTypes []string + +func init() { + activityStreamsMediaTypes = []string{ + "application/activity+json", + } + jsonLdType := "application/ld+json" + for _, semi := range []string{";", " ;", " ; ", "; "} { + for _, profile := range []string{ + "profile=https://www.w3.org/ns/activitystreams", + "profile=\"https://www.w3.org/ns/activitystreams\"", + } { + activityStreamsMediaTypes = append( + activityStreamsMediaTypes, + fmt.Sprintf("%s%s%s", jsonLdType, semi, profile)) + } + } +} + +// headerIsActivityPubMediaType returns true if the header string contains one +// of the accepted ActivityStreams media types. +// +// Note we don't try to build a comprehensive parser and instead accept a +// tolerable amount of whitespace since the HTTP specification is ambiguous +// about the format and significance of whitespace. +func headerIsActivityPubMediaType(header string) bool { + for _, mediaType := range activityStreamsMediaTypes { + if strings.Contains(header, mediaType) { + return true + } + } + return false +} + +const ( + // The Content-Type header. + contentTypeHeader = "Content-Type" + // The Accept header. + acceptHeader = "Accept" +) + +// readActivityPubReq reads ActivityPub data from an incoming request, handling body close. +func readActivityPubReq(req *http.Request) (map[string]interface{}, error) { + // Ensure closed when done. + defer req.Body.Close() + + var m map[string]interface{} + + // Wrap body in a JSON decoder. + dec := json.NewDecoder(req.Body) + + // Decode JSON body as "raw" AP data map. + if err := dec.Decode(&m); err != nil { + return nil, err + } + + // Perform a final second decode to ensure no trailing + // garbage data or second JSON value (indicates malformed). + if err := dec.Decode(&struct{}{}); err != io.EOF { + return nil, errors.New("trailing data after json") + } + + return m, nil +} + +// readActivityPubResp reads ActivityPub data from a dereference response, handling media type check and body close. +func readActivityPubResp(resp *http.Response) (map[string]interface{}, error) { + // Ensure closed when done. + defer resp.Body.Close() + + // Check the incoming response media type is the expected ActivityPub content-type. + if mediaType := resp.Header.Get("Content-Type"); !headerIsActivityPubMediaType(mediaType) { + return nil, fmt.Errorf("%s %s resp was not ActivityPub media type: %s", resp.Request.Method, resp.Request.URL, mediaType) + } + + var m map[string]interface{} + + // Wrap body in a JSON decoder. + dec := json.NewDecoder(resp.Body) + + // Decode JSON body as "raw" AP data map. + if err := dec.Decode(&m); err != nil { + return nil, err + } + + // Perform a final second decode to ensure no trailing + // garbage data or second JSON value (indicates malformed). + if err := dec.Decode(&struct{}{}); err != io.EOF { + return nil, errors.New("trailing data after json") + } + + return m, nil +} + +// isActivityPubPost returns true if the request is a POST request that has the +// ActivityStreams content type header +func isActivityPubPost(r *http.Request) bool { + return r.Method == "POST" && headerIsActivityPubMediaType(r.Header.Get(contentTypeHeader)) +} + +// isActivityPubGet returns true if the request is a GET request that has the +// ActivityStreams content type header +func isActivityPubGet(r *http.Request) bool { + return r.Method == "GET" && headerIsActivityPubMediaType(r.Header.Get(acceptHeader)) +} + +// dedupeOrderedItems deduplicates the 'orderedItems' within an ordered +// collection type. Deduplication happens by the 'id' property. +func dedupeOrderedItems(oc orderedItemser) error { + oi := oc.GetActivityStreamsOrderedItems() + if oi == nil { + return nil + } + seen := make(map[string]bool, oi.Len()) + for i := 0; i < oi.Len(); { + var id *url.URL + + iter := oi.At(i) + asType := iter.GetType() + if asType != nil { + var err error + id, err = GetId(asType) + if err != nil { + return err + } + } else if iter.IsIRI() { + id = iter.GetIRI() + } else { + return fmt.Errorf("element %d in OrderedCollection does not have an ID nor is an IRI", i) + } + if seen[id.String()] { + oi.Remove(i) + } else { + seen[id.String()] = true + i++ + } + } + return nil +} + +const ( + // The Location header + locationHeader = "Location" + // Contains the ActivityStreams Content-Type value. + contentTypeHeaderValue = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" + // The Date header. + dateHeader = "Date" + // The Digest header. + digestHeader = "Digest" + // The delimiter used in the Digest header. + digestDelimiter = "=" + // SHA-256 string for the Digest header. + sha256Digest = "SHA-256" +) + +// addResponseHeaders sets headers needed in the HTTP response, such but not +// limited to the Content-Type, Date, and Digest headers. +func addResponseHeaders(h http.Header, c Clock, responseContent []byte) { + h.Set(contentTypeHeader, contentTypeHeaderValue) + // RFC 7231 §7.1.1.2 + h.Set(dateHeader, c.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT") + // RFC 3230 and RFC 5843 + var b bytes.Buffer + b.WriteString(sha256Digest) + b.WriteString(digestDelimiter) + hashed := sha256.Sum256(responseContent) + b.WriteString(base64.StdEncoding.EncodeToString(hashed[:])) + h.Set(digestHeader, b.String()) +} + +// IdProperty is a property that can readily have its id obtained +type IdProperty interface { + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() vocab.Type + // IsIRI returns true if this property is an IRI. + IsIRI() bool +} + +// ToId returns an IdProperty's id. +func ToId(i IdProperty) (*url.URL, error) { + if i.GetType() != nil { + return GetId(i.GetType()) + } else if i.IsIRI() { + return i.GetIRI(), nil + } + return nil, fmt.Errorf("cannot determine id of activitystreams property") +} + +// GetId will attempt to find the 'id' property or, if it happens to be a +// Link or derived from Link type, the 'href' property instead. +// +// Returns an error if the id is not set and either the 'href' property is not +// valid on this type, or it is also not set. +func GetId(t vocab.Type) (*url.URL, error) { + if id := t.GetJSONLDId(); id != nil { + return id.Get(), nil + } else if h, ok := t.(hrefer); ok { + if href := h.GetActivityStreamsHref(); href != nil { + return href.Get(), nil + } + } + return nil, fmt.Errorf("cannot determine id of activitystreams value") +} + +// getInboxForwardingValues obtains the 'inReplyTo', 'object', 'target', and +// 'tag' values on an ActivityStreams value. +func getInboxForwardingValues(o vocab.Type) (t []vocab.Type, iri []*url.URL) { + // 'inReplyTo' + if i, ok := o.(inReplyToer); ok { + if irt := i.GetActivityStreamsInReplyTo(); irt != nil { + for iter := irt.Begin(); iter != irt.End(); iter = iter.Next() { + if tv := iter.GetType(); tv != nil { + t = append(t, tv) + } else { + iri = append(iri, iter.GetIRI()) + } + } + } + } + // 'tag' + if i, ok := o.(tagger); ok { + if tag := i.GetActivityStreamsTag(); tag != nil { + for iter := tag.Begin(); iter != tag.End(); iter = iter.Next() { + if tv := iter.GetType(); tv != nil { + t = append(t, tv) + } else { + iri = append(iri, iter.GetIRI()) + } + } + } + } + // 'object' + if i, ok := o.(objecter); ok { + if obj := i.GetActivityStreamsObject(); obj != nil { + for iter := obj.Begin(); iter != obj.End(); iter = iter.Next() { + if tv := iter.GetType(); tv != nil { + t = append(t, tv) + } else { + iri = append(iri, iter.GetIRI()) + } + } + } + } + // 'target' + if i, ok := o.(targeter); ok { + if tar := i.GetActivityStreamsTarget(); tar != nil { + for iter := tar.Begin(); iter != tar.End(); iter = iter.Next() { + if tv := iter.GetType(); tv != nil { + t = append(t, tv) + } else { + iri = append(iri, iter.GetIRI()) + } + } + } + } + return +} + +// wrapInCreate will automatically wrap the provided object in a Create +// activity. This will copy over the 'to', 'bto', 'cc', 'bcc', and 'audience' +// properties. It will also copy over the published time if present. +func wrapInCreate(ctx context.Context, o vocab.Type, actor *url.URL) (c vocab.ActivityStreamsCreate, err error) { + c = streams.NewActivityStreamsCreate() + // Object property + oProp := streams.NewActivityStreamsObjectProperty() + oProp.AppendType(o) + c.SetActivityStreamsObject(oProp) + // Actor Property + actorProp := streams.NewActivityStreamsActorProperty() + actorProp.AppendIRI(actor) + c.SetActivityStreamsActor(actorProp) + // Published Property + if v, ok := o.(publisheder); ok { + c.SetActivityStreamsPublished(v.GetActivityStreamsPublished()) + } + // Copying over properties. + if v, ok := o.(toer); ok { + if to := v.GetActivityStreamsTo(); to != nil { + activityTo := streams.NewActivityStreamsToProperty() + for iter := to.Begin(); iter != to.End(); iter = iter.Next() { + var id *url.URL + id, err = ToId(iter) + if err != nil { + return + } + activityTo.AppendIRI(id) + } + c.SetActivityStreamsTo(activityTo) + } + } + if v, ok := o.(btoer); ok { + if bto := v.GetActivityStreamsBto(); bto != nil { + activityBto := streams.NewActivityStreamsBtoProperty() + for iter := bto.Begin(); iter != bto.End(); iter = iter.Next() { + var id *url.URL + id, err = ToId(iter) + if err != nil { + return + } + activityBto.AppendIRI(id) + } + c.SetActivityStreamsBto(activityBto) + } + } + if v, ok := o.(ccer); ok { + if cc := v.GetActivityStreamsCc(); cc != nil { + activityCc := streams.NewActivityStreamsCcProperty() + for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() { + var id *url.URL + id, err = ToId(iter) + if err != nil { + return + } + activityCc.AppendIRI(id) + } + c.SetActivityStreamsCc(activityCc) + } + } + if v, ok := o.(bccer); ok { + if bcc := v.GetActivityStreamsBcc(); bcc != nil { + activityBcc := streams.NewActivityStreamsBccProperty() + for iter := bcc.Begin(); iter != bcc.End(); iter = iter.Next() { + var id *url.URL + id, err = ToId(iter) + if err != nil { + return + } + activityBcc.AppendIRI(id) + } + c.SetActivityStreamsBcc(activityBcc) + } + } + if v, ok := o.(audiencer); ok { + if aud := v.GetActivityStreamsAudience(); aud != nil { + activityAudience := streams.NewActivityStreamsAudienceProperty() + for iter := aud.Begin(); iter != aud.End(); iter = iter.Next() { + var id *url.URL + id, err = ToId(iter) + if err != nil { + return + } + activityAudience.AppendIRI(id) + } + c.SetActivityStreamsAudience(activityAudience) + } + } + return +} + +const ( + // PublicActivityPubIRI is the IRI that indicates an Activity is meant + // to be visible for general public consumption. + PublicActivityPubIRI = "https://www.w3.org/ns/activitystreams#Public" + publicJsonLD = "Public" + publicJsonLDAS = "as:Public" +) + +// IsPublic determines if an IRI string is the Public collection as defined in +// the spec, including JSON-LD compliant collections. +func IsPublic(s string) bool { + return s == PublicActivityPubIRI || s == publicJsonLD || s == publicJsonLDAS +} + +// Derives an ID URI from the given IdProperty and, if it's not the +// magic AP Public IRI, appends it to the actorsAndCollections slice. +func appendToActorsAndCollectionsIRIs( + iter IdProperty, + actorsAndCollections []*url.URL, +) ([]*url.URL, error) { + id, err := ToId(iter) + if err != nil { + return nil, err + } + + // Ignore Public IRI as we + // can't deliver to it directly. + if !IsPublic(id.String()) { + actorsAndCollections = append(actorsAndCollections, id) + } + + return actorsAndCollections, nil +} + +// actorsToInboxIRIs extracts the 'inbox' IRIs from actor types. +func actorsToInboxIRIs(t []vocab.Type) (u []*url.URL, err error) { + for _, elem := range t { + var iri *url.URL + iri, err = getInbox(elem) + if err != nil { + return + } + u = append(u, iri) + } + return +} + +// getInbox extracts the 'inbox' IRI from an actor type. +func getInbox(t vocab.Type) (u *url.URL, err error) { + ib, ok := t.(inboxer) + if !ok { + err = fmt.Errorf("actor type %T has no inbox", t) + return + } + inbox := ib.GetActivityStreamsInbox() + return ToId(inbox) +} + +// filterInboxIRIs will deduplicate the given inboxes +// slice, while also leaving out any filtered IRIs. +func filterInboxIRIs( + inboxes []*url.URL, + filtered ...*url.URL, +) []*url.URL { + // Prepopulate the ignored map with each filtered IRI. + ignored := make(map[string]struct{}, len(filtered)+len(inboxes)) + for _, filteredIRI := range filtered { + ignored[filteredIRI.String()] = struct{}{} + } + + deduped := make([]*url.URL, 0, len(inboxes)) + for _, inbox := range inboxes { + inboxStr := inbox.String() + _, ignore := ignored[inboxStr] + if ignore { + // We already included + // this URI in out, or + // we should ignore it. + continue + } + + // Include this IRI in output, and + // add entry to the ignored map to + // ensure we don't include it again. + deduped = append(deduped, inbox) + ignored[inboxStr] = struct{}{} + } + + return deduped +} + +// stripHiddenRecipients removes "bto" and "bcc" from the activity. +// +// Note that this requirement of the specification is under "Section 6: Client +// to Server Interactions", the Social API, and not the Federative API. +func stripHiddenRecipients(activity Activity) { + activity.SetActivityStreamsBto(nil) + activity.SetActivityStreamsBcc(nil) + op := activity.GetActivityStreamsObject() + if op != nil { + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + if v, ok := iter.GetType().(btoer); ok { + v.SetActivityStreamsBto(nil) + } + if v, ok := iter.GetType().(bccer); ok { + v.SetActivityStreamsBcc(nil) + } + } + } +} + +// mustHaveActivityOriginMatchObjects ensures that the Host in the activity id +// IRI matches all of the Hosts in the object id IRIs. +func mustHaveActivityOriginMatchObjects(a Activity) error { + originIRI, err := GetId(a) + if err != nil { + return err + } + originHost := originIRI.Host + op := a.GetActivityStreamsObject() + if op == nil || op.Len() == 0 { + return nil + } + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + iri, err := ToId(iter) + if err != nil { + return err + } + if originHost != iri.Host { + return fmt.Errorf("object %q: not in activity origin", iri) + } + } + return nil +} + +// normalizeRecipients ensures the activity and object have the same 'to', +// 'bto', 'cc', 'bcc', and 'audience' properties. Copy the Activity's recipients +// to objects, and the objects to the activity, but does NOT copy objects' +// recipients to each other. +func normalizeRecipients(a vocab.ActivityStreamsCreate) error { + // Phase 0: Acquire all recipients on the activity. + // + // Obtain the actorTo map + actorToMap := make(map[string]*url.URL) + actorTo := a.GetActivityStreamsTo() + if actorTo == nil { + actorTo = streams.NewActivityStreamsToProperty() + a.SetActivityStreamsTo(actorTo) + } + for iter := actorTo.Begin(); iter != actorTo.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + actorToMap[id.String()] = id + } + // Obtain the actorBto map + actorBtoMap := make(map[string]*url.URL) + actorBto := a.GetActivityStreamsBto() + if actorBto == nil { + actorBto = streams.NewActivityStreamsBtoProperty() + a.SetActivityStreamsBto(actorBto) + } + for iter := actorBto.Begin(); iter != actorBto.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + actorBtoMap[id.String()] = id + } + // Obtain the actorCc map + actorCcMap := make(map[string]*url.URL) + actorCc := a.GetActivityStreamsCc() + if actorCc == nil { + actorCc = streams.NewActivityStreamsCcProperty() + a.SetActivityStreamsCc(actorCc) + } + for iter := actorCc.Begin(); iter != actorCc.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + actorCcMap[id.String()] = id + } + // Obtain the actorBcc map + actorBccMap := make(map[string]*url.URL) + actorBcc := a.GetActivityStreamsBcc() + if actorBcc == nil { + actorBcc = streams.NewActivityStreamsBccProperty() + a.SetActivityStreamsBcc(actorBcc) + } + for iter := actorBcc.Begin(); iter != actorBcc.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + actorBccMap[id.String()] = id + } + // Obtain the actorAudience map + actorAudienceMap := make(map[string]*url.URL) + actorAudience := a.GetActivityStreamsAudience() + if actorAudience == nil { + actorAudience = streams.NewActivityStreamsAudienceProperty() + a.SetActivityStreamsAudience(actorAudience) + } + for iter := actorAudience.Begin(); iter != actorAudience.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + actorAudienceMap[id.String()] = id + } + // Obtain the objects maps for each recipient type. + o := a.GetActivityStreamsObject() + objsTo := make([]map[string]*url.URL, o.Len()) + objsBto := make([]map[string]*url.URL, o.Len()) + objsCc := make([]map[string]*url.URL, o.Len()) + objsBcc := make([]map[string]*url.URL, o.Len()) + objsAudience := make([]map[string]*url.URL, o.Len()) + for i := 0; i < o.Len(); i++ { + iter := o.At(i) + // Phase 1: Acquire all existing recipients on the object. + // + // Object to + objsTo[i] = make(map[string]*url.URL) + var oTo vocab.ActivityStreamsToProperty + if tr, ok := iter.GetType().(toer); !ok { + return fmt.Errorf("the Create object at %d has no 'to' property", i) + } else { + oTo = tr.GetActivityStreamsTo() + if oTo == nil { + oTo = streams.NewActivityStreamsToProperty() + tr.SetActivityStreamsTo(oTo) + } + } + for iter := oTo.Begin(); iter != oTo.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + objsTo[i][id.String()] = id + } + // Object bto + objsBto[i] = make(map[string]*url.URL) + var oBto vocab.ActivityStreamsBtoProperty + if tr, ok := iter.GetType().(btoer); !ok { + return fmt.Errorf("the Create object at %d has no 'bto' property", i) + } else { + oBto = tr.GetActivityStreamsBto() + if oBto == nil { + oBto = streams.NewActivityStreamsBtoProperty() + tr.SetActivityStreamsBto(oBto) + } + } + for iter := oBto.Begin(); iter != oBto.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + objsBto[i][id.String()] = id + } + // Object cc + objsCc[i] = make(map[string]*url.URL) + var oCc vocab.ActivityStreamsCcProperty + if tr, ok := iter.GetType().(ccer); !ok { + return fmt.Errorf("the Create object at %d has no 'cc' property", i) + } else { + oCc = tr.GetActivityStreamsCc() + if oCc == nil { + oCc = streams.NewActivityStreamsCcProperty() + tr.SetActivityStreamsCc(oCc) + } + } + for iter := oCc.Begin(); iter != oCc.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + objsCc[i][id.String()] = id + } + // Object bcc + objsBcc[i] = make(map[string]*url.URL) + var oBcc vocab.ActivityStreamsBccProperty + if tr, ok := iter.GetType().(bccer); !ok { + return fmt.Errorf("the Create object at %d has no 'bcc' property", i) + } else { + oBcc = tr.GetActivityStreamsBcc() + if oBcc == nil { + oBcc = streams.NewActivityStreamsBccProperty() + tr.SetActivityStreamsBcc(oBcc) + } + } + for iter := oBcc.Begin(); iter != oBcc.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + objsBcc[i][id.String()] = id + } + // Object audience + objsAudience[i] = make(map[string]*url.URL) + var oAudience vocab.ActivityStreamsAudienceProperty + if tr, ok := iter.GetType().(audiencer); !ok { + return fmt.Errorf("the Create object at %d has no 'audience' property", i) + } else { + oAudience = tr.GetActivityStreamsAudience() + if oAudience == nil { + oAudience = streams.NewActivityStreamsAudienceProperty() + tr.SetActivityStreamsAudience(oAudience) + } + } + for iter := oAudience.Begin(); iter != oAudience.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + objsAudience[i][id.String()] = id + } + // Phase 2: Apply missing recipients to the object from the + // activity. + // + // Activity to -> Object to + for k, v := range actorToMap { + if _, ok := objsTo[i][k]; !ok { + oTo.AppendIRI(v) + } + } + // Activity bto -> Object bto + for k, v := range actorBtoMap { + if _, ok := objsBto[i][k]; !ok { + oBto.AppendIRI(v) + } + } + // Activity cc -> Object cc + for k, v := range actorCcMap { + if _, ok := objsCc[i][k]; !ok { + oCc.AppendIRI(v) + } + } + // Activity bcc -> Object bcc + for k, v := range actorBccMap { + if _, ok := objsBcc[i][k]; !ok { + oBcc.AppendIRI(v) + } + } + // Activity audience -> Object audience + for k, v := range actorAudienceMap { + if _, ok := objsAudience[i][k]; !ok { + oAudience.AppendIRI(v) + } + } + } + // Phase 3: Apply missing recipients to the activity from the objects. + // + // Object to -> Activity to + for i := 0; i < len(objsTo); i++ { + for k, v := range objsTo[i] { + if _, ok := actorToMap[k]; !ok { + actorTo.AppendIRI(v) + } + } + } + // Object bto -> Activity bto + for i := 0; i < len(objsBto); i++ { + for k, v := range objsBto[i] { + if _, ok := actorBtoMap[k]; !ok { + actorBto.AppendIRI(v) + } + } + } + // Object cc -> Activity cc + for i := 0; i < len(objsCc); i++ { + for k, v := range objsCc[i] { + if _, ok := actorCcMap[k]; !ok { + actorCc.AppendIRI(v) + } + } + } + // Object bcc -> Activity bcc + for i := 0; i < len(objsBcc); i++ { + for k, v := range objsBcc[i] { + if _, ok := actorBccMap[k]; !ok { + actorBcc.AppendIRI(v) + } + } + } + // Object audience -> Activity audience + for i := 0; i < len(objsAudience); i++ { + for k, v := range objsAudience[i] { + if _, ok := actorAudienceMap[k]; !ok { + actorAudience.AppendIRI(v) + } + } + } + return nil +} + +// toTombstone creates a Tombstone object for the given ActivityStreams value. +func toTombstone(obj vocab.Type, id *url.URL, now time.Time) vocab.ActivityStreamsTombstone { + tomb := streams.NewActivityStreamsTombstone() + // id property + idProp := streams.NewJSONLDIdProperty() + idProp.Set(id) + tomb.SetJSONLDId(idProp) + // formerType property + former := streams.NewActivityStreamsFormerTypeProperty() + tomb.SetActivityStreamsFormerType(former) + // Populate Former Type + former.AppendXMLSchemaString(obj.GetTypeName()) + // Copy over the published property if it existed + if pubber, ok := obj.(publisheder); ok { + if pub := pubber.GetActivityStreamsPublished(); pub != nil { + tomb.SetActivityStreamsPublished(pub) + } + } + // Copy over the updated property if it existed + if upder, ok := obj.(updateder); ok { + if upd := upder.GetActivityStreamsUpdated(); upd != nil { + tomb.SetActivityStreamsUpdated(upd) + } + } + // Set deleted time to now. + deleted := streams.NewActivityStreamsDeletedProperty() + deleted.Set(now) + tomb.SetActivityStreamsDeleted(deleted) + return tomb +} + +// mustHaveActivityActorsMatchObjectActors ensures that the actors on types in +// the 'object' property are all listed in the 'actor' property. +func mustHaveActivityActorsMatchObjectActors(c context.Context, + actors vocab.ActivityStreamsActorProperty, + op vocab.ActivityStreamsObjectProperty, + newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error), + boxIRI *url.URL, +) error { + activityActorMap := make(map[string]bool, actors.Len()) + for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + activityActorMap[id.String()] = true + } + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + iri, err := ToId(iter) + if err != nil { + return err + } + // Attempt to dereference the IRI, regardless whether it is a + // type or IRI + tport, err := newTransport(c, boxIRI, goFedUserAgent()) + if err != nil { + return err + } + resp, err := tport.Dereference(c, iri) + if err != nil { + return err + } + m, err := readActivityPubResp(resp) + if err != nil { + return err + } + t, err := streams.ToType(c, m) + if err != nil { + return err + } + ac, ok := t.(actorer) + if !ok { + return fmt.Errorf("cannot verify actors: object value has no 'actor' property") + } + objActors := ac.GetActivityStreamsActor() + for iter := objActors.Begin(); iter != objActors.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + if !activityActorMap[id.String()] { + return fmt.Errorf("activity does not have all actors from its object's actors") + } + } + } + return nil +} + +// add implements the logic of adding object ids to a target Collection or +// OrderedCollection. This logic is shared by both the C2S and S2S protocols. +func add(c context.Context, + op vocab.ActivityStreamsObjectProperty, + target vocab.ActivityStreamsTargetProperty, + db Database, +) error { + opIds := make([]*url.URL, 0, op.Len()) + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + opIds = append(opIds, id) + } + targetIds := make([]*url.URL, 0, op.Len()) + for iter := target.Begin(); iter != target.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + targetIds = append(targetIds, id) + } + // Create anonymous loop function to be able to properly scope the defer + // for the database lock at each iteration. + loopFn := func(t *url.URL) error { + unlock, err := db.Lock(c, t) + if err != nil { + return err + } + defer unlock() + if owns, err := db.Owns(c, t); err != nil { + return err + } else if !owns { + return nil + } + tp, err := db.Get(c, t) + if err != nil { + return err + } + if streams.IsOrExtendsActivityStreamsOrderedCollection(tp) { + oi, ok := tp.(orderedItemser) + if !ok { + return fmt.Errorf("type extending from OrderedCollection cannot convert to orderedItemser interface") + } + oiProp := oi.GetActivityStreamsOrderedItems() + if oiProp == nil { + oiProp = streams.NewActivityStreamsOrderedItemsProperty() + oi.SetActivityStreamsOrderedItems(oiProp) + } + for _, objId := range opIds { + oiProp.AppendIRI(objId) + } + } else if streams.IsOrExtendsActivityStreamsCollection(tp) { + i, ok := tp.(itemser) + if !ok { + return fmt.Errorf("type extending from Collection cannot convert to itemser interface") + } + iProp := i.GetActivityStreamsItems() + if iProp == nil { + iProp = streams.NewActivityStreamsItemsProperty() + i.SetActivityStreamsItems(iProp) + } + for _, objId := range opIds { + iProp.AppendIRI(objId) + } + } else { + return fmt.Errorf("target in Add is neither a Collection nor an OrderedCollection") + } + err = db.Update(c, tp) + if err != nil { + return err + } + return nil + } + for _, t := range targetIds { + if err := loopFn(t); err != nil { + return err + } + } + return nil +} + +// remove implements the logic of removing object ids to a target Collection or +// OrderedCollection. This logic is shared by both the C2S and S2S protocols. +func remove(c context.Context, + op vocab.ActivityStreamsObjectProperty, + target vocab.ActivityStreamsTargetProperty, + db Database, +) error { + opIds := make(map[string]bool, op.Len()) + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + opIds[id.String()] = true + } + targetIds := make([]*url.URL, 0, op.Len()) + for iter := target.Begin(); iter != target.End(); iter = iter.Next() { + id, err := ToId(iter) + if err != nil { + return err + } + targetIds = append(targetIds, id) + } + // Create anonymous loop function to be able to properly scope the defer + // for the database lock at each iteration. + loopFn := func(t *url.URL) error { + unlock, err := db.Lock(c, t) + if err != nil { + return err + } + defer unlock() + if owns, err := db.Owns(c, t); err != nil { + return err + } else if !owns { + return nil + } + tp, err := db.Get(c, t) + if err != nil { + return err + } + if streams.IsOrExtendsActivityStreamsOrderedCollection(tp) { + oi, ok := tp.(orderedItemser) + if !ok { + return fmt.Errorf("type extending from OrderedCollection cannot convert to orderedItemser interface") + } + oiProp := oi.GetActivityStreamsOrderedItems() + if oiProp != nil { + for i := 0; i < oiProp.Len(); /*Conditional*/ { + id, err := ToId(oiProp.At(i)) + if err != nil { + return err + } + if opIds[id.String()] { + oiProp.Remove(i) + } else { + i++ + } + } + } + } else if streams.IsOrExtendsActivityStreamsCollection(tp) { + i, ok := tp.(itemser) + if !ok { + return fmt.Errorf("type extending from Collection cannot convert to itemser interface") + } + iProp := i.GetActivityStreamsItems() + if iProp != nil { + for i := 0; i < iProp.Len(); /*Conditional*/ { + id, err := ToId(iProp.At(i)) + if err != nil { + return err + } + if opIds[id.String()] { + iProp.Remove(i) + } else { + i++ + } + } + } + } else { + return fmt.Errorf("target in Remove is neither a Collection nor an OrderedCollection") + } + err = db.Update(c, tp) + if err != nil { + return err + } + return nil + } + for _, t := range targetIds { + if err := loopFn(t); err != nil { + return err + } + } + return nil +} + +// clearSensitiveFields removes the 'bto' and 'bcc' entries on the given value +// and recursively on every 'object' property value. +func clearSensitiveFields(obj vocab.Type) { + if t, ok := obj.(btoer); ok { + t.SetActivityStreamsBto(nil) + } + if t, ok := obj.(bccer); ok { + t.SetActivityStreamsBcc(nil) + } + if t, ok := obj.(objecter); ok { + op := t.GetActivityStreamsObject() + if op != nil { + for iter := op.Begin(); iter != op.End(); iter = iter.Next() { + clearSensitiveFields(iter.GetType()) + } + } + } +} + +// requestId forms an ActivityPub id based on the HTTP request. Always assumes +// that the id is HTTPS. +func requestId(r *http.Request, scheme string) *url.URL { + id := r.URL + id.Host = r.Host + id.Scheme = scheme + return id +} diff --git a/vendor/code.superseriousbusiness.org/activity/pub/version.go b/vendor/code.superseriousbusiness.org/activity/pub/version.go new file mode 100644 index 000000000..23b958ce5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/pub/version.go @@ -0,0 +1,15 @@ +package pub + +import ( + "fmt" +) + +const ( + // Version string, used in the User-Agent + version = "v1.0.0" +) + +// goFedUserAgent returns the user agent string for the go-fed library. +func goFedUserAgent() string { + return fmt.Sprintf("(go-fed/activity %s)", version) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/README.md b/vendor/code.superseriousbusiness.org/activity/streams/README.md new file mode 100644 index 000000000..00ae95d85 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/README.md @@ -0,0 +1,152 @@ +# streams + +ActivityStreams vocabularies automatically code-generated with `astool`. + +## Reference & Tutorial + +The [go-fed website](https://go-fed.org/) contains tutorials and reference +materials, in addition to the rest of this README. + +## How To Use + +``` +go get github.com/go-fed/activity +``` + +All generated types and properties are interfaces in +`github.com/go-fed/streams/vocab`, but note that the constructors and supporting +functions live in `github.com/go-fed/streams`. + +To create a type and set properties: + +```golang +var actorURL *url.URL = // ... + +// A new "Create" Activity. +create := streams.NewActivityStreamsCreate() +// A new "actor" property. +actor := streams.NewActivityStreamsActorProperty() +actor.AppendIRI(actorURL) +// Set the "actor" property on the "Create" Activity. +create.SetActivityStreamsActor(actor) +``` + +To process properties on a type: + +```golang +// Returns true if the "Update" has at least one "object" with an IRI value. +func hasObjectWithIRIValue(update vocab.ActivityStreamsUpdate) bool { + objectProperty := update.GetActivityStreamsObject() + // Any property may be nil if it was either empty in the original JSON or + // never set on the golang type. + if objectProperty == nil { + return false + } + // The "object" property is non-functional: it could have multiple values. The + // generated code has slightly different methods for a functional property + // versus a non-functional one. + // + // While it may be easy to ignore multiple values in other languages + // (accidentally or purposefully), go-fed is designed to make it hard to do + // so. + for iter := objectProperty.Begin(); iter != objectProperty.End(); iter = iter.Next() { + // If this particular value is an IRI, return true. + if iter.IsIRI() { + return true + } + } + // All values are literal embedded values and not IRIs. + return false +} +``` + +The ActivityStreams type hierarchy of "extends" and "disjoint" is not the same +as the Object Oriented definition of inheritance. It is also not the same as +golang's interface duck-typing. Helper functions are provided to guarantee that +an application's logic can correctly apply the type hierarchy. + +```golang +thing := // Pick a type from streams.NewActivityStreams() +if streams.ActivityStreamsObjectIsDisjointWith(thing) { + fmt.Printf("The \"Object\" type is Disjoint with the %T type.\n", thing) +} +if streams.ActivityStreamsLinkIsExtendedBy(thing) { + fmt.Printf("The %T type Extends from the \"Link\" type.\n", thing) +} +if streams.ActivityStreamsActivityExtends(thing) { + fmt.Printf("The \"Activity\" type extends from the %T type.\n", thing) +} +``` + +When given a generic JSON payload, it can be resolved to a concrete type by +creating a `streams.JSONResolver` and giving it a callback function that accepts +the interesting concrete type: + +```golang +// Callbacks must be in the form: +// func(context.Context, ) error +createCallback := func(c context.Context, create vocab.ActivityStreamsCreate) error { + // Do something with 'create' + fmt.Printf("createCallback called: %T\n", create) + return nil +} +updateCallback := func(c context.Context, update vocab.ActivityStreamsUpdate) error { + // Do something with 'update' + fmt.Printf("updateCallback called: %T\n", update) + return nil +} +jsonResolver, err := streams.NewJSONResolver(createCallback, updateCallback) +if err != nil { + // Something in the setup was wrong. For example, a callback has an + // unsupported signature and would never be called + panic(err) +} +// Create a context, which allows you to pass data opaquely through the +// JSONResolver. +c := context.Background() +// Example 15 of the ActivityStreams specification. +b := []byte(`{ + "@context": "https://www.w3.org/ns/activitystreams", + "summary": "Sally created a note", + "type": "Create", + "actor": { + "type": "Person", + "name": "Sally" + }, + "object": { + "type": "Note", + "name": "A Simple Note", + "content": "This is a simple note" + } +}`) +var jsonMap map[string]interface{} +if err = json.Unmarshal(b, &jsonMap); err != nil { + panic(err) +} +// The createCallback function will be called. +err = jsonResolver.Resolve(c, jsonMap) +if err != nil && !streams.IsUnmatchedErr(err) { + // Something went wrong + panic(err) +} else if streams.IsUnmatchedErr(err) { + // Everything went right but the callback didn't match or the ActivityStreams + // type is one that wasn't code generated. + fmt.Println("No match: ", err) +} +``` + +A `streams.TypeResolver` is similar but uses the golang types instead. It +accepts the generic `vocab.Type`. This is the abstraction when needing to handle +any ActivityStreams type. The function `ToType` can convert a JSON-decoded-map +into this kind of value if needed. + +A `streams.PredicatedTypeResolver` lets you apply a boolean predicate function +that acts as a check whether a callback is allowed to be invoked. + +## FAQ + +### Why Are Empty Properties Nil And Not Zero-Valued? + +Due to implementation design decisions, it would require a lot of plumbing to +ensure this would work properly. It would also require allocation of a +non-trivial amount of memory. diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_consts.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_consts.go new file mode 100644 index 000000000..4c40dabb3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_consts.go @@ -0,0 +1,552 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +// ActivityStreamsAcceptName is the string literal of the name for the Accept type in the ActivityStreams vocabulary. +var ActivityStreamsAcceptName string = "Accept" + +// ActivityStreamsActivityName is the string literal of the name for the Activity type in the ActivityStreams vocabulary. +var ActivityStreamsActivityName string = "Activity" + +// ActivityStreamsAddName is the string literal of the name for the Add type in the ActivityStreams vocabulary. +var ActivityStreamsAddName string = "Add" + +// FunkwhaleAlbumName is the string literal of the name for the Album type in the Funkwhale vocabulary. +var FunkwhaleAlbumName string = "Album" + +// ActivityStreamsAnnounceName is the string literal of the name for the Announce type in the ActivityStreams vocabulary. +var ActivityStreamsAnnounceName string = "Announce" + +// GoToSocialAnnounceApprovalName is the string literal of the name for the AnnounceApproval type in the GoToSocial vocabulary. +var GoToSocialAnnounceApprovalName string = "AnnounceApproval" + +// GoToSocialAnnounceAuthorizationName is the string literal of the name for the AnnounceAuthorization type in the GoToSocial vocabulary. +var GoToSocialAnnounceAuthorizationName string = "AnnounceAuthorization" + +// GoToSocialAnnounceRequestName is the string literal of the name for the AnnounceRequest type in the GoToSocial vocabulary. +var GoToSocialAnnounceRequestName string = "AnnounceRequest" + +// ActivityStreamsApplicationName is the string literal of the name for the Application type in the ActivityStreams vocabulary. +var ActivityStreamsApplicationName string = "Application" + +// ActivityStreamsArriveName is the string literal of the name for the Arrive type in the ActivityStreams vocabulary. +var ActivityStreamsArriveName string = "Arrive" + +// ActivityStreamsArticleName is the string literal of the name for the Article type in the ActivityStreams vocabulary. +var ActivityStreamsArticleName string = "Article" + +// FunkwhaleArtistName is the string literal of the name for the Artist type in the Funkwhale vocabulary. +var FunkwhaleArtistName string = "Artist" + +// ActivityStreamsAudioName is the string literal of the name for the Audio type in the ActivityStreams vocabulary. +var ActivityStreamsAudioName string = "Audio" + +// ActivityStreamsBlockName is the string literal of the name for the Block type in the ActivityStreams vocabulary. +var ActivityStreamsBlockName string = "Block" + +// GoToSocialCanAnnounceName is the string literal of the name for the CanAnnounce type in the GoToSocial vocabulary. +var GoToSocialCanAnnounceName string = "CanAnnounce" + +// GoToSocialCanLikeName is the string literal of the name for the CanLike type in the GoToSocial vocabulary. +var GoToSocialCanLikeName string = "CanLike" + +// GoToSocialCanQuoteName is the string literal of the name for the CanQuote type in the GoToSocial vocabulary. +var GoToSocialCanQuoteName string = "CanQuote" + +// GoToSocialCanReplyName is the string literal of the name for the CanReply type in the GoToSocial vocabulary. +var GoToSocialCanReplyName string = "CanReply" + +// ActivityStreamsCollectionName is the string literal of the name for the Collection type in the ActivityStreams vocabulary. +var ActivityStreamsCollectionName string = "Collection" + +// ActivityStreamsCollectionPageName is the string literal of the name for the CollectionPage type in the ActivityStreams vocabulary. +var ActivityStreamsCollectionPageName string = "CollectionPage" + +// ActivityStreamsCreateName is the string literal of the name for the Create type in the ActivityStreams vocabulary. +var ActivityStreamsCreateName string = "Create" + +// ActivityStreamsDeleteName is the string literal of the name for the Delete type in the ActivityStreams vocabulary. +var ActivityStreamsDeleteName string = "Delete" + +// ActivityStreamsDislikeName is the string literal of the name for the Dislike type in the ActivityStreams vocabulary. +var ActivityStreamsDislikeName string = "Dislike" + +// ActivityStreamsDocumentName is the string literal of the name for the Document type in the ActivityStreams vocabulary. +var ActivityStreamsDocumentName string = "Document" + +// TootEmojiName is the string literal of the name for the Emoji type in the Toot vocabulary. +var TootEmojiName string = "Emoji" + +// ActivityStreamsEndpointsName is the string literal of the name for the Endpoints type in the ActivityStreams vocabulary. +var ActivityStreamsEndpointsName string = "Endpoints" + +// ActivityStreamsEventName is the string literal of the name for the Event type in the ActivityStreams vocabulary. +var ActivityStreamsEventName string = "Event" + +// ActivityStreamsFlagName is the string literal of the name for the Flag type in the ActivityStreams vocabulary. +var ActivityStreamsFlagName string = "Flag" + +// ActivityStreamsFollowName is the string literal of the name for the Follow type in the ActivityStreams vocabulary. +var ActivityStreamsFollowName string = "Follow" + +// ActivityStreamsGroupName is the string literal of the name for the Group type in the ActivityStreams vocabulary. +var ActivityStreamsGroupName string = "Group" + +// TootHashtagName is the string literal of the name for the Hashtag type in the Toot vocabulary. +var TootHashtagName string = "Hashtag" + +// TootIdentityProofName is the string literal of the name for the IdentityProof type in the Toot vocabulary. +var TootIdentityProofName string = "IdentityProof" + +// ActivityStreamsIgnoreName is the string literal of the name for the Ignore type in the ActivityStreams vocabulary. +var ActivityStreamsIgnoreName string = "Ignore" + +// ActivityStreamsImageName is the string literal of the name for the Image type in the ActivityStreams vocabulary. +var ActivityStreamsImageName string = "Image" + +// GoToSocialInteractionPolicyName is the string literal of the name for the InteractionPolicy type in the GoToSocial vocabulary. +var GoToSocialInteractionPolicyName string = "InteractionPolicy" + +// ActivityStreamsIntransitiveActivityName is the string literal of the name for the IntransitiveActivity type in the ActivityStreams vocabulary. +var ActivityStreamsIntransitiveActivityName string = "IntransitiveActivity" + +// ActivityStreamsInviteName is the string literal of the name for the Invite type in the ActivityStreams vocabulary. +var ActivityStreamsInviteName string = "Invite" + +// ActivityStreamsJoinName is the string literal of the name for the Join type in the ActivityStreams vocabulary. +var ActivityStreamsJoinName string = "Join" + +// ActivityStreamsLeaveName is the string literal of the name for the Leave type in the ActivityStreams vocabulary. +var ActivityStreamsLeaveName string = "Leave" + +// FunkwhaleLibraryName is the string literal of the name for the Library type in the Funkwhale vocabulary. +var FunkwhaleLibraryName string = "Library" + +// ActivityStreamsLikeName is the string literal of the name for the Like type in the ActivityStreams vocabulary. +var ActivityStreamsLikeName string = "Like" + +// GoToSocialLikeApprovalName is the string literal of the name for the LikeApproval type in the GoToSocial vocabulary. +var GoToSocialLikeApprovalName string = "LikeApproval" + +// GoToSocialLikeAuthorizationName is the string literal of the name for the LikeAuthorization type in the GoToSocial vocabulary. +var GoToSocialLikeAuthorizationName string = "LikeAuthorization" + +// GoToSocialLikeRequestName is the string literal of the name for the LikeRequest type in the GoToSocial vocabulary. +var GoToSocialLikeRequestName string = "LikeRequest" + +// ActivityStreamsLinkName is the string literal of the name for the Link type in the ActivityStreams vocabulary. +var ActivityStreamsLinkName string = "Link" + +// ActivityStreamsListenName is the string literal of the name for the Listen type in the ActivityStreams vocabulary. +var ActivityStreamsListenName string = "Listen" + +// ActivityStreamsMentionName is the string literal of the name for the Mention type in the ActivityStreams vocabulary. +var ActivityStreamsMentionName string = "Mention" + +// ActivityStreamsMoveName is the string literal of the name for the Move type in the ActivityStreams vocabulary. +var ActivityStreamsMoveName string = "Move" + +// ActivityStreamsNoteName is the string literal of the name for the Note type in the ActivityStreams vocabulary. +var ActivityStreamsNoteName string = "Note" + +// ActivityStreamsObjectName is the string literal of the name for the Object type in the ActivityStreams vocabulary. +var ActivityStreamsObjectName string = "Object" + +// ActivityStreamsOfferName is the string literal of the name for the Offer type in the ActivityStreams vocabulary. +var ActivityStreamsOfferName string = "Offer" + +// ActivityStreamsOrderedCollectionName is the string literal of the name for the OrderedCollection type in the ActivityStreams vocabulary. +var ActivityStreamsOrderedCollectionName string = "OrderedCollection" + +// ActivityStreamsOrderedCollectionPageName is the string literal of the name for the OrderedCollectionPage type in the ActivityStreams vocabulary. +var ActivityStreamsOrderedCollectionPageName string = "OrderedCollectionPage" + +// ActivityStreamsOrganizationName is the string literal of the name for the Organization type in the ActivityStreams vocabulary. +var ActivityStreamsOrganizationName string = "Organization" + +// ActivityStreamsPageName is the string literal of the name for the Page type in the ActivityStreams vocabulary. +var ActivityStreamsPageName string = "Page" + +// ActivityStreamsPersonName is the string literal of the name for the Person type in the ActivityStreams vocabulary. +var ActivityStreamsPersonName string = "Person" + +// ActivityStreamsPlaceName is the string literal of the name for the Place type in the ActivityStreams vocabulary. +var ActivityStreamsPlaceName string = "Place" + +// ActivityStreamsProfileName is the string literal of the name for the Profile type in the ActivityStreams vocabulary. +var ActivityStreamsProfileName string = "Profile" + +// SchemaPropertyValueName is the string literal of the name for the PropertyValue type in the Schema vocabulary. +var SchemaPropertyValueName string = "PropertyValue" + +// W3IDSecurityV1PublicKeyName is the string literal of the name for the PublicKey type in the W3IDSecurityV1 vocabulary. +var W3IDSecurityV1PublicKeyName string = "PublicKey" + +// ActivityStreamsQuestionName is the string literal of the name for the Question type in the ActivityStreams vocabulary. +var ActivityStreamsQuestionName string = "Question" + +// ActivityStreamsReadName is the string literal of the name for the Read type in the ActivityStreams vocabulary. +var ActivityStreamsReadName string = "Read" + +// ActivityStreamsRejectName is the string literal of the name for the Reject type in the ActivityStreams vocabulary. +var ActivityStreamsRejectName string = "Reject" + +// ActivityStreamsRelationshipName is the string literal of the name for the Relationship type in the ActivityStreams vocabulary. +var ActivityStreamsRelationshipName string = "Relationship" + +// ActivityStreamsRemoveName is the string literal of the name for the Remove type in the ActivityStreams vocabulary. +var ActivityStreamsRemoveName string = "Remove" + +// GoToSocialReplyApprovalName is the string literal of the name for the ReplyApproval type in the GoToSocial vocabulary. +var GoToSocialReplyApprovalName string = "ReplyApproval" + +// GoToSocialReplyAuthorizationName is the string literal of the name for the ReplyAuthorization type in the GoToSocial vocabulary. +var GoToSocialReplyAuthorizationName string = "ReplyAuthorization" + +// GoToSocialReplyRequestName is the string literal of the name for the ReplyRequest type in the GoToSocial vocabulary. +var GoToSocialReplyRequestName string = "ReplyRequest" + +// ActivityStreamsServiceName is the string literal of the name for the Service type in the ActivityStreams vocabulary. +var ActivityStreamsServiceName string = "Service" + +// ActivityStreamsTentativeAcceptName is the string literal of the name for the TentativeAccept type in the ActivityStreams vocabulary. +var ActivityStreamsTentativeAcceptName string = "TentativeAccept" + +// ActivityStreamsTentativeRejectName is the string literal of the name for the TentativeReject type in the ActivityStreams vocabulary. +var ActivityStreamsTentativeRejectName string = "TentativeReject" + +// ActivityStreamsTombstoneName is the string literal of the name for the Tombstone type in the ActivityStreams vocabulary. +var ActivityStreamsTombstoneName string = "Tombstone" + +// FunkwhaleTrackName is the string literal of the name for the Track type in the Funkwhale vocabulary. +var FunkwhaleTrackName string = "Track" + +// ActivityStreamsTravelName is the string literal of the name for the Travel type in the ActivityStreams vocabulary. +var ActivityStreamsTravelName string = "Travel" + +// ActivityStreamsUndoName is the string literal of the name for the Undo type in the ActivityStreams vocabulary. +var ActivityStreamsUndoName string = "Undo" + +// ActivityStreamsUpdateName is the string literal of the name for the Update type in the ActivityStreams vocabulary. +var ActivityStreamsUpdateName string = "Update" + +// ActivityStreamsVideoName is the string literal of the name for the Video type in the ActivityStreams vocabulary. +var ActivityStreamsVideoName string = "Video" + +// ActivityStreamsViewName is the string literal of the name for the View type in the ActivityStreams vocabulary. +var ActivityStreamsViewName string = "View" + +// ActivityStreamsAccuracyPropertyName is the string literal of the name for the accuracy property in the ActivityStreams vocabulary. +var ActivityStreamsAccuracyPropertyName string = "accuracy" + +// ActivityStreamsActorPropertyName is the string literal of the name for the actor property in the ActivityStreams vocabulary. +var ActivityStreamsActorPropertyName string = "actor" + +// ActivityStreamsAlsoKnownAsPropertyName is the string literal of the name for the alsoKnownAs property in the ActivityStreams vocabulary. +var ActivityStreamsAlsoKnownAsPropertyName string = "alsoKnownAs" + +// ActivityStreamsAltitudePropertyName is the string literal of the name for the altitude property in the ActivityStreams vocabulary. +var ActivityStreamsAltitudePropertyName string = "altitude" + +// GoToSocialAlwaysPropertyName is the string literal of the name for the always property in the GoToSocial vocabulary. +var GoToSocialAlwaysPropertyName string = "always" + +// ActivityStreamsAnyOfPropertyName is the string literal of the name for the anyOf property in the ActivityStreams vocabulary. +var ActivityStreamsAnyOfPropertyName string = "anyOf" + +// GoToSocialApprovalRequiredPropertyName is the string literal of the name for the approvalRequired property in the GoToSocial vocabulary. +var GoToSocialApprovalRequiredPropertyName string = "approvalRequired" + +// GoToSocialApprovedByPropertyName is the string literal of the name for the approvedBy property in the GoToSocial vocabulary. +var GoToSocialApprovedByPropertyName string = "approvedBy" + +// ActivityStreamsAttachmentPropertyName is the string literal of the name for the attachment property in the ActivityStreams vocabulary. +var ActivityStreamsAttachmentPropertyName string = "attachment" + +// ActivityStreamsAttributedToPropertyName is the string literal of the name for the attributedTo property in the ActivityStreams vocabulary. +var ActivityStreamsAttributedToPropertyName string = "attributedTo" + +// ActivityStreamsAudiencePropertyName is the string literal of the name for the audience property in the ActivityStreams vocabulary. +var ActivityStreamsAudiencePropertyName string = "audience" + +// GoToSocialAutomaticApprovalPropertyName is the string literal of the name for the automaticApproval property in the GoToSocial vocabulary. +var GoToSocialAutomaticApprovalPropertyName string = "automaticApproval" + +// ActivityStreamsBccPropertyName is the string literal of the name for the bcc property in the ActivityStreams vocabulary. +var ActivityStreamsBccPropertyName string = "bcc" + +// TootBlurhashPropertyName is the string literal of the name for the blurhash property in the Toot vocabulary. +var TootBlurhashPropertyName string = "blurhash" + +// ActivityStreamsBtoPropertyName is the string literal of the name for the bto property in the ActivityStreams vocabulary. +var ActivityStreamsBtoPropertyName string = "bto" + +// GoToSocialCanAnnouncePropertyName is the string literal of the name for the canAnnounce property in the GoToSocial vocabulary. +var GoToSocialCanAnnouncePropertyName string = "canAnnounce" + +// GoToSocialCanLikePropertyName is the string literal of the name for the canLike property in the GoToSocial vocabulary. +var GoToSocialCanLikePropertyName string = "canLike" + +// GoToSocialCanQuotePropertyName is the string literal of the name for the canQuote property in the GoToSocial vocabulary. +var GoToSocialCanQuotePropertyName string = "canQuote" + +// GoToSocialCanReplyPropertyName is the string literal of the name for the canReply property in the GoToSocial vocabulary. +var GoToSocialCanReplyPropertyName string = "canReply" + +// ActivityStreamsCcPropertyName is the string literal of the name for the cc property in the ActivityStreams vocabulary. +var ActivityStreamsCcPropertyName string = "cc" + +// ActivityStreamsClosedPropertyName is the string literal of the name for the closed property in the ActivityStreams vocabulary. +var ActivityStreamsClosedPropertyName string = "closed" + +// ActivityStreamsContentPropertyName is the string literal of the name for the content property in the ActivityStreams vocabulary. +var ActivityStreamsContentPropertyName string = "content" + +// ActivityStreamsContentPropertyMapName is the string literal of the name for the content property in the ActivityStreams vocabulary when it is a natural language map. +var ActivityStreamsContentPropertyMapName string = "contentMap" + +// ActivityStreamsContextPropertyName is the string literal of the name for the context property in the ActivityStreams vocabulary. +var ActivityStreamsContextPropertyName string = "context" + +// ActivityStreamsCurrentPropertyName is the string literal of the name for the current property in the ActivityStreams vocabulary. +var ActivityStreamsCurrentPropertyName string = "current" + +// ActivityStreamsDeletedPropertyName is the string literal of the name for the deleted property in the ActivityStreams vocabulary. +var ActivityStreamsDeletedPropertyName string = "deleted" + +// ActivityStreamsDescribesPropertyName is the string literal of the name for the describes property in the ActivityStreams vocabulary. +var ActivityStreamsDescribesPropertyName string = "describes" + +// TootDiscoverablePropertyName is the string literal of the name for the discoverable property in the Toot vocabulary. +var TootDiscoverablePropertyName string = "discoverable" + +// ActivityStreamsDurationPropertyName is the string literal of the name for the duration property in the ActivityStreams vocabulary. +var ActivityStreamsDurationPropertyName string = "duration" + +// ActivityStreamsEndTimePropertyName is the string literal of the name for the endTime property in the ActivityStreams vocabulary. +var ActivityStreamsEndTimePropertyName string = "endTime" + +// ActivityStreamsEndpointsPropertyName is the string literal of the name for the endpoints property in the ActivityStreams vocabulary. +var ActivityStreamsEndpointsPropertyName string = "endpoints" + +// TootFeaturedPropertyName is the string literal of the name for the featured property in the Toot vocabulary. +var TootFeaturedPropertyName string = "featured" + +// ActivityStreamsFirstPropertyName is the string literal of the name for the first property in the ActivityStreams vocabulary. +var ActivityStreamsFirstPropertyName string = "first" + +// TootFocalPointPropertyName is the string literal of the name for the focalPoint property in the Toot vocabulary. +var TootFocalPointPropertyName string = "focalPoint" + +// ActivityStreamsFollowersPropertyName is the string literal of the name for the followers property in the ActivityStreams vocabulary. +var ActivityStreamsFollowersPropertyName string = "followers" + +// ActivityStreamsFollowingPropertyName is the string literal of the name for the following property in the ActivityStreams vocabulary. +var ActivityStreamsFollowingPropertyName string = "following" + +// ActivityStreamsFormerTypePropertyName is the string literal of the name for the formerType property in the ActivityStreams vocabulary. +var ActivityStreamsFormerTypePropertyName string = "formerType" + +// ActivityStreamsGeneratorPropertyName is the string literal of the name for the generator property in the ActivityStreams vocabulary. +var ActivityStreamsGeneratorPropertyName string = "generator" + +// ActivityStreamsHeightPropertyName is the string literal of the name for the height property in the ActivityStreams vocabulary. +var ActivityStreamsHeightPropertyName string = "height" + +// ActivityStreamsHrefPropertyName is the string literal of the name for the href property in the ActivityStreams vocabulary. +var ActivityStreamsHrefPropertyName string = "href" + +// ActivityStreamsHreflangPropertyName is the string literal of the name for the hreflang property in the ActivityStreams vocabulary. +var ActivityStreamsHreflangPropertyName string = "hreflang" + +// ActivityStreamsIconPropertyName is the string literal of the name for the icon property in the ActivityStreams vocabulary. +var ActivityStreamsIconPropertyName string = "icon" + +// ActivityStreamsImagePropertyName is the string literal of the name for the image property in the ActivityStreams vocabulary. +var ActivityStreamsImagePropertyName string = "image" + +// ActivityStreamsInReplyToPropertyName is the string literal of the name for the inReplyTo property in the ActivityStreams vocabulary. +var ActivityStreamsInReplyToPropertyName string = "inReplyTo" + +// ActivityStreamsInboxPropertyName is the string literal of the name for the inbox property in the ActivityStreams vocabulary. +var ActivityStreamsInboxPropertyName string = "inbox" + +// TootIndexablePropertyName is the string literal of the name for the indexable property in the Toot vocabulary. +var TootIndexablePropertyName string = "indexable" + +// ActivityStreamsInstrumentPropertyName is the string literal of the name for the instrument property in the ActivityStreams vocabulary. +var ActivityStreamsInstrumentPropertyName string = "instrument" + +// GoToSocialInteractingObjectPropertyName is the string literal of the name for the interactingObject property in the GoToSocial vocabulary. +var GoToSocialInteractingObjectPropertyName string = "interactingObject" + +// GoToSocialInteractionPolicyPropertyName is the string literal of the name for the interactionPolicy property in the GoToSocial vocabulary. +var GoToSocialInteractionPolicyPropertyName string = "interactionPolicy" + +// GoToSocialInteractionTargetPropertyName is the string literal of the name for the interactionTarget property in the GoToSocial vocabulary. +var GoToSocialInteractionTargetPropertyName string = "interactionTarget" + +// ActivityStreamsItemsPropertyName is the string literal of the name for the items property in the ActivityStreams vocabulary. +var ActivityStreamsItemsPropertyName string = "items" + +// ActivityStreamsLastPropertyName is the string literal of the name for the last property in the ActivityStreams vocabulary. +var ActivityStreamsLastPropertyName string = "last" + +// ActivityStreamsLatitudePropertyName is the string literal of the name for the latitude property in the ActivityStreams vocabulary. +var ActivityStreamsLatitudePropertyName string = "latitude" + +// ActivityStreamsLikedPropertyName is the string literal of the name for the liked property in the ActivityStreams vocabulary. +var ActivityStreamsLikedPropertyName string = "liked" + +// ActivityStreamsLikesPropertyName is the string literal of the name for the likes property in the ActivityStreams vocabulary. +var ActivityStreamsLikesPropertyName string = "likes" + +// ActivityStreamsLocationPropertyName is the string literal of the name for the location property in the ActivityStreams vocabulary. +var ActivityStreamsLocationPropertyName string = "location" + +// ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary. +var ActivityStreamsLongitudePropertyName string = "longitude" + +// GoToSocialManualApprovalPropertyName is the string literal of the name for the manualApproval property in the GoToSocial vocabulary. +var GoToSocialManualApprovalPropertyName string = "manualApproval" + +// ActivityStreamsManuallyApprovesFollowersPropertyName is the string literal of the name for the manuallyApprovesFollowers property in the ActivityStreams vocabulary. +var ActivityStreamsManuallyApprovesFollowersPropertyName string = "manuallyApprovesFollowers" + +// ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary. +var ActivityStreamsMediaTypePropertyName string = "mediaType" + +// ActivityStreamsMovedToPropertyName is the string literal of the name for the movedTo property in the ActivityStreams vocabulary. +var ActivityStreamsMovedToPropertyName string = "movedTo" + +// ActivityStreamsNamePropertyName is the string literal of the name for the name property in the ActivityStreams vocabulary. +var ActivityStreamsNamePropertyName string = "name" + +// ActivityStreamsNamePropertyMapName is the string literal of the name for the name property in the ActivityStreams vocabulary when it is a natural language map. +var ActivityStreamsNamePropertyMapName string = "nameMap" + +// ActivityStreamsNextPropertyName is the string literal of the name for the next property in the ActivityStreams vocabulary. +var ActivityStreamsNextPropertyName string = "next" + +// ActivityStreamsObjectPropertyName is the string literal of the name for the object property in the ActivityStreams vocabulary. +var ActivityStreamsObjectPropertyName string = "object" + +// ActivityStreamsOneOfPropertyName is the string literal of the name for the oneOf property in the ActivityStreams vocabulary. +var ActivityStreamsOneOfPropertyName string = "oneOf" + +// ActivityStreamsOrderedItemsPropertyName is the string literal of the name for the orderedItems property in the ActivityStreams vocabulary. +var ActivityStreamsOrderedItemsPropertyName string = "orderedItems" + +// ActivityStreamsOriginPropertyName is the string literal of the name for the origin property in the ActivityStreams vocabulary. +var ActivityStreamsOriginPropertyName string = "origin" + +// ActivityStreamsOutboxPropertyName is the string literal of the name for the outbox property in the ActivityStreams vocabulary. +var ActivityStreamsOutboxPropertyName string = "outbox" + +// W3IDSecurityV1OwnerPropertyName is the string literal of the name for the owner property in the W3IDSecurityV1 vocabulary. +var W3IDSecurityV1OwnerPropertyName string = "owner" + +// ActivityStreamsPartOfPropertyName is the string literal of the name for the partOf property in the ActivityStreams vocabulary. +var ActivityStreamsPartOfPropertyName string = "partOf" + +// ActivityStreamsPreferredUsernamePropertyName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary. +var ActivityStreamsPreferredUsernamePropertyName string = "preferredUsername" + +// ActivityStreamsPreferredUsernamePropertyMapName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary when it is a natural language map. +var ActivityStreamsPreferredUsernamePropertyMapName string = "preferredUsernameMap" + +// ActivityStreamsPrevPropertyName is the string literal of the name for the prev property in the ActivityStreams vocabulary. +var ActivityStreamsPrevPropertyName string = "prev" + +// ActivityStreamsPreviewPropertyName is the string literal of the name for the preview property in the ActivityStreams vocabulary. +var ActivityStreamsPreviewPropertyName string = "preview" + +// W3IDSecurityV1PublicKeyPropertyName is the string literal of the name for the publicKey property in the W3IDSecurityV1 vocabulary. +var W3IDSecurityV1PublicKeyPropertyName string = "publicKey" + +// W3IDSecurityV1PublicKeyPemPropertyName is the string literal of the name for the publicKeyPem property in the W3IDSecurityV1 vocabulary. +var W3IDSecurityV1PublicKeyPemPropertyName string = "publicKeyPem" + +// ActivityStreamsPublishedPropertyName is the string literal of the name for the published property in the ActivityStreams vocabulary. +var ActivityStreamsPublishedPropertyName string = "published" + +// ActivityStreamsRadiusPropertyName is the string literal of the name for the radius property in the ActivityStreams vocabulary. +var ActivityStreamsRadiusPropertyName string = "radius" + +// ActivityStreamsRelPropertyName is the string literal of the name for the rel property in the ActivityStreams vocabulary. +var ActivityStreamsRelPropertyName string = "rel" + +// ActivityStreamsRelationshipPropertyName is the string literal of the name for the relationship property in the ActivityStreams vocabulary. +var ActivityStreamsRelationshipPropertyName string = "relationship" + +// ActivityStreamsRepliesPropertyName is the string literal of the name for the replies property in the ActivityStreams vocabulary. +var ActivityStreamsRepliesPropertyName string = "replies" + +// ActivityStreamsResultPropertyName is the string literal of the name for the result property in the ActivityStreams vocabulary. +var ActivityStreamsResultPropertyName string = "result" + +// ActivityStreamsSensitivePropertyName is the string literal of the name for the sensitive property in the ActivityStreams vocabulary. +var ActivityStreamsSensitivePropertyName string = "sensitive" + +// ActivityStreamsSharedInboxPropertyName is the string literal of the name for the sharedInbox property in the ActivityStreams vocabulary. +var ActivityStreamsSharedInboxPropertyName string = "sharedInbox" + +// ActivityStreamsSharesPropertyName is the string literal of the name for the shares property in the ActivityStreams vocabulary. +var ActivityStreamsSharesPropertyName string = "shares" + +// TootSignatureAlgorithmPropertyName is the string literal of the name for the signatureAlgorithm property in the Toot vocabulary. +var TootSignatureAlgorithmPropertyName string = "signatureAlgorithm" + +// TootSignatureValuePropertyName is the string literal of the name for the signatureValue property in the Toot vocabulary. +var TootSignatureValuePropertyName string = "signatureValue" + +// ActivityStreamsSourcePropertyName is the string literal of the name for the source property in the ActivityStreams vocabulary. +var ActivityStreamsSourcePropertyName string = "source" + +// ActivityStreamsStartIndexPropertyName is the string literal of the name for the startIndex property in the ActivityStreams vocabulary. +var ActivityStreamsStartIndexPropertyName string = "startIndex" + +// ActivityStreamsStartTimePropertyName is the string literal of the name for the startTime property in the ActivityStreams vocabulary. +var ActivityStreamsStartTimePropertyName string = "startTime" + +// ActivityStreamsStreamsPropertyName is the string literal of the name for the streams property in the ActivityStreams vocabulary. +var ActivityStreamsStreamsPropertyName string = "streams" + +// ActivityStreamsSubjectPropertyName is the string literal of the name for the subject property in the ActivityStreams vocabulary. +var ActivityStreamsSubjectPropertyName string = "subject" + +// ActivityStreamsSummaryPropertyName is the string literal of the name for the summary property in the ActivityStreams vocabulary. +var ActivityStreamsSummaryPropertyName string = "summary" + +// ActivityStreamsSummaryPropertyMapName is the string literal of the name for the summary property in the ActivityStreams vocabulary when it is a natural language map. +var ActivityStreamsSummaryPropertyMapName string = "summaryMap" + +// ActivityStreamsTagPropertyName is the string literal of the name for the tag property in the ActivityStreams vocabulary. +var ActivityStreamsTagPropertyName string = "tag" + +// ActivityStreamsTargetPropertyName is the string literal of the name for the target property in the ActivityStreams vocabulary. +var ActivityStreamsTargetPropertyName string = "target" + +// ActivityStreamsToPropertyName is the string literal of the name for the to property in the ActivityStreams vocabulary. +var ActivityStreamsToPropertyName string = "to" + +// ActivityStreamsTotalItemsPropertyName is the string literal of the name for the totalItems property in the ActivityStreams vocabulary. +var ActivityStreamsTotalItemsPropertyName string = "totalItems" + +// ActivityStreamsUnitsPropertyName is the string literal of the name for the units property in the ActivityStreams vocabulary. +var ActivityStreamsUnitsPropertyName string = "units" + +// ActivityStreamsUpdatedPropertyName is the string literal of the name for the updated property in the ActivityStreams vocabulary. +var ActivityStreamsUpdatedPropertyName string = "updated" + +// ActivityStreamsUrlPropertyName is the string literal of the name for the url property in the ActivityStreams vocabulary. +var ActivityStreamsUrlPropertyName string = "url" + +// SchemaValuePropertyName is the string literal of the name for the value property in the Schema vocabulary. +var SchemaValuePropertyName string = "value" + +// TootVotersCountPropertyName is the string literal of the name for the votersCount property in the Toot vocabulary. +var TootVotersCountPropertyName string = "votersCount" + +// ActivityStreamsWidthPropertyName is the string literal of the name for the width property in the ActivityStreams vocabulary. +var ActivityStreamsWidthPropertyName string = "width" diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_doc.go new file mode 100644 index 000000000..40fce7258 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_doc.go @@ -0,0 +1,51 @@ +// Code generated by astool. DO NOT EDIT. + +// Package streams contains constructors and functions necessary for applications +// to serialize, deserialize, and use ActivityStreams types in Go. This +// package is code-generated and subject to the same license as the go-fed +// tool used to generate it. +// +// This package is useful to three classes of developers: end-user-application +// developers, specification writers creating an ActivityStream Extension, and +// ActivityPub implementors wanting to create an alternate ActivityStreams +// implementation that still satisfies the interfaces generated by the go-fed +// tool. +// +// Application developers should limit their use to the Resolver type, the +// constructors beginning with "New", the "Extends" functions, the +// "DisjointWith" functions, the "ExtendedBy" functions, and any interfaces +// returned in those functions in this package. This lets applications use +// Resolvers to Deserialize or Dispatch specific types. The types themselves +// can Serialize as needed. The "Extends", "DisjointWith", and "ExtendedBy" +// functions help navigate the ActivityStreams hierarchy since it is not +// equivalent to object-oriented inheritance. +// +// When creating an ActivityStreams extension, developers will want to ensure +// that the generated code builds correctly and check that the properties, +// types, extensions, and disjointedness is set up correctly. Writing unit +// tests with concrete types is then the next step. If the tool has an error +// generating this code, a fix is needed in the tool as it is likely there is +// a new RDF type being used in the extension that the tool does not know how +// to resolve. Thus, most development will focus on the go-fed tool itself. +// +// Finally, ActivityStreams implementors that want drop-in replacement while +// still using the generated interfaces are highly encouraged to examine the +// Manager type in this package (in addition to the constructors) as these are +// the locations where concrete types are instantiated. When supplying a +// different type in these two locations, the other generated code will +// propagate it throughout the rest of an application. The Manager is +// instantiated as a singleton at init time in this library. It is then +// injected into each implementation library so they can deserialize their +// needed types without relying on the underlying concrete type. +// +// Subdirectories of this package include implementation files and functions +// that are not intended to be directly linked to applications, but are used +// by this particular package. It is strongly recommended to only use the +// property interfaces and type interfaces in subdirectories and limiting +// concrete types to those in this package. The go-fed tool is likely to +// contain a pruning feature in the future which will analyze an application +// and eliminate code that would be dead if it were to be generated which +// reduces the compilation time, compilation resources, and binary size of an +// application. Such a feature will not be compatible with applications that +// use the concrete implementation types. +package streams diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_init.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_init.go new file mode 100644 index 000000000..ecc0b4d86 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_init.go @@ -0,0 +1,457 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyaccuracy "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy" + propertyactor "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor" + propertyalsoknownas "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas" + propertyaltitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude" + propertyanyof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof" + propertyattachment "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment" + propertyattributedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto" + propertyaudience "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience" + propertybcc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc" + propertybto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto" + propertycc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc" + propertyclosed "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed" + propertycontent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content" + propertycontext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context" + propertycurrent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current" + propertydeleted "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted" + propertydescribes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes" + propertyduration "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration" + propertyendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints" + propertyendtime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime" + propertyfirst "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first" + propertyfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers" + propertyfollowing "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following" + propertyformertype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype" + propertygenerator "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator" + propertyheight "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height" + propertyhref "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href" + propertyhreflang "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang" + propertyicon "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon" + propertyimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image" + propertyinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox" + propertyinreplyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto" + propertyinstrument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument" + propertyitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items" + propertylast "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last" + propertylatitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude" + propertyliked "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked" + propertylikes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes" + propertylocation "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location" + propertylongitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude" + propertymanuallyapprovesfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" + propertymediatype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype" + propertymovedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto" + propertyname "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name" + propertynext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next" + propertyobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object" + propertyoneof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof" + propertyordereditems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems" + propertyorigin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin" + propertyoutbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox" + propertypartof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof" + propertypreferredusername "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername" + propertyprev "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev" + propertypreview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview" + propertypublished "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published" + propertyradius "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius" + propertyrel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel" + propertyrelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship" + propertyreplies "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies" + propertyresult "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result" + propertysensitive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive" + propertysharedinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox" + propertyshares "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares" + propertysource "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source" + propertystartindex "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex" + propertystarttime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime" + propertystreams "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams" + propertysubject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject" + propertysummary "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary" + propertytag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag" + propertytarget "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target" + propertyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to" + propertytotalitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems" + propertyunits "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units" + propertyupdated "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated" + propertyurl "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url" + propertywidth "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width" + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + propertyalways "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always" + propertyapprovalrequired "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired" + propertyapprovedby "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby" + propertyautomaticapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval" + propertycanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce" + propertycanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike" + propertycanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote" + propertycanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply" + propertyinteractingobject "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject" + propertyinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy" + propertyinteractiontarget "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget" + propertymanualapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval" + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + propertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/property_value" + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + propertyblurhash "code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash" + propertydiscoverable "code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable" + propertyfeatured "code.superseriousbusiness.org/activity/streams/impl/toot/property_featured" + propertyfocalpoint "code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint" + propertyindexable "code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable" + propertysignaturealgorithm "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm" + propertysignaturevalue "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue" + propertyvoterscount "code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount" + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + propertyowner "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner" + propertypublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey" + propertypublickeypem "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" +) + +var mgr *Manager + +// init handles the 'magic' of creating a Manager and dependency-injecting it into +// every other code-generated package. This gives the implementations access +// to create any type needed to deserialize, without relying on the other +// specific concrete implementations. In order to replace a go-fed created +// type with your own, be sure to have the manager call your own +// implementation's deserialize functions instead of the built-in type. +// Finally, each implementation views the Manager as an interface with only a +// subset of funcitons available. This means this Manager implements the union +// of those interfaces. +func init() { + mgr = &Manager{} + propertyaccuracy.SetManager(mgr) + propertyactor.SetManager(mgr) + propertyalsoknownas.SetManager(mgr) + propertyaltitude.SetManager(mgr) + propertyanyof.SetManager(mgr) + propertyattachment.SetManager(mgr) + propertyattributedto.SetManager(mgr) + propertyaudience.SetManager(mgr) + propertybcc.SetManager(mgr) + propertybto.SetManager(mgr) + propertycc.SetManager(mgr) + propertyclosed.SetManager(mgr) + propertycontent.SetManager(mgr) + propertycontext.SetManager(mgr) + propertycurrent.SetManager(mgr) + propertydeleted.SetManager(mgr) + propertydescribes.SetManager(mgr) + propertyduration.SetManager(mgr) + propertyendpoints.SetManager(mgr) + propertyendtime.SetManager(mgr) + propertyfirst.SetManager(mgr) + propertyfollowers.SetManager(mgr) + propertyfollowing.SetManager(mgr) + propertyformertype.SetManager(mgr) + propertygenerator.SetManager(mgr) + propertyheight.SetManager(mgr) + propertyhref.SetManager(mgr) + propertyhreflang.SetManager(mgr) + propertyicon.SetManager(mgr) + propertyimage.SetManager(mgr) + propertyinbox.SetManager(mgr) + propertyinreplyto.SetManager(mgr) + propertyinstrument.SetManager(mgr) + propertyitems.SetManager(mgr) + propertylast.SetManager(mgr) + propertylatitude.SetManager(mgr) + propertyliked.SetManager(mgr) + propertylikes.SetManager(mgr) + propertylocation.SetManager(mgr) + propertylongitude.SetManager(mgr) + propertymanuallyapprovesfollowers.SetManager(mgr) + propertymediatype.SetManager(mgr) + propertymovedto.SetManager(mgr) + propertyname.SetManager(mgr) + propertynext.SetManager(mgr) + propertyobject.SetManager(mgr) + propertyoneof.SetManager(mgr) + propertyordereditems.SetManager(mgr) + propertyorigin.SetManager(mgr) + propertyoutbox.SetManager(mgr) + propertypartof.SetManager(mgr) + propertypreferredusername.SetManager(mgr) + propertyprev.SetManager(mgr) + propertypreview.SetManager(mgr) + propertypublished.SetManager(mgr) + propertyradius.SetManager(mgr) + propertyrel.SetManager(mgr) + propertyrelationship.SetManager(mgr) + propertyreplies.SetManager(mgr) + propertyresult.SetManager(mgr) + propertysensitive.SetManager(mgr) + propertysharedinbox.SetManager(mgr) + propertyshares.SetManager(mgr) + propertysource.SetManager(mgr) + propertystartindex.SetManager(mgr) + propertystarttime.SetManager(mgr) + propertystreams.SetManager(mgr) + propertysubject.SetManager(mgr) + propertysummary.SetManager(mgr) + propertytag.SetManager(mgr) + propertytarget.SetManager(mgr) + propertyto.SetManager(mgr) + propertytotalitems.SetManager(mgr) + propertyunits.SetManager(mgr) + propertyupdated.SetManager(mgr) + propertyurl.SetManager(mgr) + propertywidth.SetManager(mgr) + typeaccept.SetManager(mgr) + typeactivity.SetManager(mgr) + typeadd.SetManager(mgr) + typeannounce.SetManager(mgr) + typeapplication.SetManager(mgr) + typearrive.SetManager(mgr) + typearticle.SetManager(mgr) + typeaudio.SetManager(mgr) + typeblock.SetManager(mgr) + typecollection.SetManager(mgr) + typecollectionpage.SetManager(mgr) + typecreate.SetManager(mgr) + typedelete.SetManager(mgr) + typedislike.SetManager(mgr) + typedocument.SetManager(mgr) + typeendpoints.SetManager(mgr) + typeevent.SetManager(mgr) + typeflag.SetManager(mgr) + typefollow.SetManager(mgr) + typegroup.SetManager(mgr) + typeignore.SetManager(mgr) + typeimage.SetManager(mgr) + typeintransitiveactivity.SetManager(mgr) + typeinvite.SetManager(mgr) + typejoin.SetManager(mgr) + typeleave.SetManager(mgr) + typelike.SetManager(mgr) + typelink.SetManager(mgr) + typelisten.SetManager(mgr) + typemention.SetManager(mgr) + typemove.SetManager(mgr) + typenote.SetManager(mgr) + typeobject.SetManager(mgr) + typeoffer.SetManager(mgr) + typeorderedcollection.SetManager(mgr) + typeorderedcollectionpage.SetManager(mgr) + typeorganization.SetManager(mgr) + typepage.SetManager(mgr) + typeperson.SetManager(mgr) + typeplace.SetManager(mgr) + typeprofile.SetManager(mgr) + typequestion.SetManager(mgr) + typeread.SetManager(mgr) + typereject.SetManager(mgr) + typerelationship.SetManager(mgr) + typeremove.SetManager(mgr) + typeservice.SetManager(mgr) + typetentativeaccept.SetManager(mgr) + typetentativereject.SetManager(mgr) + typetombstone.SetManager(mgr) + typetravel.SetManager(mgr) + typeundo.SetManager(mgr) + typeupdate.SetManager(mgr) + typevideo.SetManager(mgr) + typeview.SetManager(mgr) + typealbum.SetManager(mgr) + typeartist.SetManager(mgr) + typelibrary.SetManager(mgr) + typetrack.SetManager(mgr) + propertyalways.SetManager(mgr) + propertyapprovalrequired.SetManager(mgr) + propertyapprovedby.SetManager(mgr) + propertyautomaticapproval.SetManager(mgr) + propertycanannounce.SetManager(mgr) + propertycanlike.SetManager(mgr) + propertycanquote.SetManager(mgr) + propertycanreply.SetManager(mgr) + propertyinteractingobject.SetManager(mgr) + propertyinteractionpolicy.SetManager(mgr) + propertyinteractiontarget.SetManager(mgr) + propertymanualapproval.SetManager(mgr) + typeannounceapproval.SetManager(mgr) + typeannounceauthorization.SetManager(mgr) + typeannouncerequest.SetManager(mgr) + typecanannounce.SetManager(mgr) + typecanlike.SetManager(mgr) + typecanquote.SetManager(mgr) + typecanreply.SetManager(mgr) + typeinteractionpolicy.SetManager(mgr) + typelikeapproval.SetManager(mgr) + typelikeauthorization.SetManager(mgr) + typelikerequest.SetManager(mgr) + typereplyapproval.SetManager(mgr) + typereplyauthorization.SetManager(mgr) + typereplyrequest.SetManager(mgr) + propertyvalue.SetManager(mgr) + typepropertyvalue.SetManager(mgr) + propertyblurhash.SetManager(mgr) + propertydiscoverable.SetManager(mgr) + propertyfeatured.SetManager(mgr) + propertyfocalpoint.SetManager(mgr) + propertyindexable.SetManager(mgr) + propertysignaturealgorithm.SetManager(mgr) + propertysignaturevalue.SetManager(mgr) + propertyvoterscount.SetManager(mgr) + typeemoji.SetManager(mgr) + typehashtag.SetManager(mgr) + typeidentityproof.SetManager(mgr) + propertyowner.SetManager(mgr) + propertypublickey.SetManager(mgr) + propertypublickeypem.SetManager(mgr) + typepublickey.SetManager(mgr) + typeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeadd.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeapplication.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typearrive.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typearticle.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeaudio.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeblock.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecollection.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecreate.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typedelete.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typedislike.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typedocument.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeendpoints.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeevent.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeflag.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typefollow.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typegroup.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeignore.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeimage.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeintransitiveactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeinvite.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typejoin.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeleave.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelike.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelink.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelisten.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typemention.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typemove.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typenote.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeobject.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeoffer.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeorderedcollection.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeorderedcollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeorganization.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typepage.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeperson.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeplace.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeprofile.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typequestion.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeread.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typereject.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typerelationship.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeremove.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeservice.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetentativeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetentativereject.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetombstone.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetravel.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeundo.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typealbum.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeartist.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelibrary.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetrack.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeannounceapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeannounceauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeannouncerequest.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecanannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecanlike.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecanquote.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typecanreply.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeinteractionpolicy.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelikeapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelikeauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelikerequest.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typereplyapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typereplyauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typereplyrequest.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typepropertyvalue.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typehashtag.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_json_resolver.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_json_resolver.go new file mode 100644 index 000000000..6ec189262 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_json_resolver.go @@ -0,0 +1,1187 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "context" + "errors" + "fmt" + "strings" +) + +// JSONResolver resolves a JSON-deserialized map into its concrete ActivityStreams +// type +type JSONResolver struct { + callbacks []interface{} +} + +// NewJSONResolver creates a new Resolver that takes a JSON-deserialized generic +// map and determines the correct concrete Go type. The callback function is +// guaranteed to receive a value whose underlying ActivityStreams type matches +// the concrete interface name in its signature. The callback functions must +// be of the form: +// +// func(context.Context, ) error +// +// where TypeInterface is the code-generated interface for an ActivityStream +// type. An error is returned if a callback function does not match this +// signature. +func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { + for _, cb := range callbacks { + // Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail. + switch cb.(type) { + case func(context.Context, vocab.ActivityStreamsAccept) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsActivity) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsAdd) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleAlbum) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsAnnounce) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceApproval) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceRequest) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsApplication) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsArrive) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsArticle) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleArtist) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsAudio) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsBlock) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialCanAnnounce) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialCanLike) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialCanQuote) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialCanReply) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsCollection) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsCollectionPage) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsCreate) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsDelete) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsDislike) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsDocument) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.TootEmoji) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsEndpoints) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsEvent) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsFlag) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsFollow) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsGroup) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.TootHashtag) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.TootIdentityProof) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsIgnore) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsImage) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialInteractionPolicy) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsInvite) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsJoin) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsLeave) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleLibrary) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsLike) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialLikeApproval) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialLikeAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialLikeRequest) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsLink) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsListen) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsMention) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsMove) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsNote) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsObject) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsOffer) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsOrderedCollection) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsOrganization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsPage) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsPerson) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsPlace) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsProfile) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.SchemaPropertyValue) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.W3IDSecurityV1PublicKey) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsQuestion) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsRead) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsReject) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsRelationship) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsRemove) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialReplyApproval) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialReplyAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialReplyRequest) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsService) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsTentativeAccept) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsTentativeReject) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsTombstone) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleTrack) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsTravel) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsUndo) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsUpdate) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsVideo) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsView) error: + // Do nothing, this callback has a correct signature. + default: + return nil, errors.New("a callback function is of the wrong signature and would never be called") + } + } + return &JSONResolver{callbacks: callbacks}, nil +} + +// toAliasMap converts a JSONLD context into a map of vocabulary name to alias. +func toAliasMap(i interface{}) (m map[string]string) { + m = make(map[string]string) + toHttpHttpsFn := func(s string) (ok bool, http, https string) { + if strings.HasPrefix(s, "http://") { + ok = true + http = s + https = "https" + strings.TrimPrefix(s, "http") + } else if strings.HasPrefix(s, "https://") { + ok = true + https = s + http = "http" + strings.TrimPrefix(s, "https") + } + return + } + switch v := i.(type) { + case string: + // Single entry, no alias. + if ok, http, https := toHttpHttpsFn(v); ok { + m[http] = "" + m[https] = "" + } else { + m[v] = "" + } + case []interface{}: + // Recursively apply. + for _, elem := range v { + r := toAliasMap(elem) + for k, val := range r { + m[k] = val + } + } + case map[string]interface{}: + // Map any aliases. + for k, val := range v { + // Only handle string aliases. + switch conc := val.(type) { + case string: + m[k] = conc + } + } + } + return +} + +// Resolve determines the ActivityStreams type of the payload, then applies the +// first callback function whose signature accepts the ActivityStreams value's +// type. This strictly assures that the callback function will only be passed +// ActivityStream objects whose type matches its interface. Returns an error +// if the ActivityStreams type does not match callbackers or is not a type +// handled by the generated code. If multiple types are present, it will check +// each one in order and apply only the first one. It returns an unhandled +// error for a multi-typed object if none of the types were able to be handled. +func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) error { + typeValue, ok := m["type"] + if !ok { + return fmt.Errorf("cannot determine ActivityStreams type: 'type' property is missing") + } + rawContext, ok := m["@context"] + if !ok { + return fmt.Errorf("cannot determine ActivityStreams type: '@context' is missing") + } + aliasMap := toAliasMap(rawContext) + // Begin: Private lambda to handle a single string "type" value. Makes code generation easier. + handleFn := func(typeString string) error { + ActivityStreamsAlias, ok := aliasMap["https://www.w3.org/ns/activitystreams"] + if !ok { + ActivityStreamsAlias = aliasMap["http://www.w3.org/ns/activitystreams"] + } + if len(ActivityStreamsAlias) > 0 { + ActivityStreamsAlias += ":" + } + FunkwhaleAlias, ok := aliasMap["https://funkwhale.audio/ns"] + if !ok { + FunkwhaleAlias = aliasMap["http://funkwhale.audio/ns"] + } + if len(FunkwhaleAlias) > 0 { + FunkwhaleAlias += ":" + } + GoToSocialAlias, ok := aliasMap["https://gotosocial.org/ns"] + if !ok { + GoToSocialAlias = aliasMap["http://gotosocial.org/ns"] + } + if len(GoToSocialAlias) > 0 { + GoToSocialAlias += ":" + } + TootAlias, ok := aliasMap["https://joinmastodon.org/ns"] + if !ok { + TootAlias = aliasMap["http://joinmastodon.org/ns"] + } + if len(TootAlias) > 0 { + TootAlias += ":" + } + SchemaAlias, ok := aliasMap["https://schema.org"] + if !ok { + SchemaAlias = aliasMap["http://schema.org"] + } + if len(SchemaAlias) > 0 { + SchemaAlias += ":" + } + W3IDSecurityV1Alias, ok := aliasMap["https://w3id.org/security/v1"] + if !ok { + W3IDSecurityV1Alias = aliasMap["http://w3id.org/security/v1"] + } + if len(W3IDSecurityV1Alias) > 0 { + W3IDSecurityV1Alias += ":" + } + + if typeString == ActivityStreamsAlias+"Accept" { + v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAccept) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Activity" { + v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsActivity) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Add" { + v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAdd) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == FunkwhaleAlias+"Album" { + v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleAlbum) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Announce" { + v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"AnnounceApproval" { + v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceApproval) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"AnnounceAuthorization" { + v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"AnnounceRequest" { + v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceRequest) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Application" { + v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Arrive" { + v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArrive) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Article" { + v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArticle) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == FunkwhaleAlias+"Artist" { + v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleArtist) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Audio" { + v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Block" { + v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsBlock) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"CanAnnounce" { + v, err := mgr.DeserializeCanAnnounceGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialCanAnnounce) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"CanLike" { + v, err := mgr.DeserializeCanLikeGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialCanLike) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"CanQuote" { + v, err := mgr.DeserializeCanQuoteGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialCanQuote) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"CanReply" { + v, err := mgr.DeserializeCanReplyGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialCanReply) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Collection" { + v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"CollectionPage" { + v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollectionPage) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Create" { + v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Delete" { + v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDelete) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Dislike" { + v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDislike) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Document" { + v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDocument) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == TootAlias+"Emoji" { + v, err := mgr.DeserializeEmojiToot()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.TootEmoji) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Endpoints" { + v, err := mgr.DeserializeEndpointsActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEndpoints) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Event" { + v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEvent) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Flag" { + v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFlag) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Follow" { + v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFollow) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Group" { + v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsGroup) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == TootAlias+"Hashtag" { + v, err := mgr.DeserializeHashtagToot()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.TootHashtag) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == TootAlias+"IdentityProof" { + v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.TootIdentityProof) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Ignore" { + v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIgnore) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Image" { + v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsImage) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"InteractionPolicy" { + v, err := mgr.DeserializeInteractionPolicyGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialInteractionPolicy) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"IntransitiveActivity" { + v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Invite" { + v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsInvite) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Join" { + v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsJoin) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Leave" { + v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLeave) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == FunkwhaleAlias+"Library" { + v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleLibrary) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Like" { + v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"LikeApproval" { + v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeApproval) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"LikeAuthorization" { + v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeAuthorization) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"LikeRequest" { + v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeRequest) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Link" { + v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Listen" { + v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsListen) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Mention" { + v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMention) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Move" { + v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMove) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Note" { + v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsNote) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Object" { + v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsObject) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Offer" { + v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOffer) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"OrderedCollection" { + v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollection) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"OrderedCollectionPage" { + v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Organization" { + v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrganization) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Page" { + v, err := mgr.DeserializePageActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPage) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Person" { + v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPerson) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Place" { + v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPlace) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Profile" { + v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsProfile) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == SchemaAlias+"PropertyValue" { + v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.SchemaPropertyValue) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == W3IDSecurityV1Alias+"PublicKey" { + v, err := mgr.DeserializePublicKeyW3IDSecurityV1()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.W3IDSecurityV1PublicKey) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Question" { + v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Read" { + v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRead) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Reject" { + v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsReject) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Relationship" { + v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRelationship) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Remove" { + v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRemove) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"ReplyApproval" { + v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyApproval) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"ReplyAuthorization" { + v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyAuthorization) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == GoToSocialAlias+"ReplyRequest" { + v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyRequest) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Service" { + v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"TentativeAccept" { + v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeAccept) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"TentativeReject" { + v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeReject) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Tombstone" { + v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == FunkwhaleAlias+"Track" { + v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleTrack) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Travel" { + v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Undo" { + v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUndo) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Update" { + v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUpdate) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"Video" { + v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsVideo) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else if typeString == ActivityStreamsAlias+"View" { + v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsView) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch + } else { + return ErrUnhandledType + } + } + // End: Private lambda + if typeStr, ok := typeValue.(string); ok { + return handleFn(typeStr) + } else if typeIArr, ok := typeValue.([]interface{}); ok { + for _, typeI := range typeIArr { + if typeStr, ok := typeI.(string); ok { + if err := handleFn(typeStr); err == nil { + return nil + } else if err == ErrUnhandledType { + // Keep trying other types: only if all fail do we return this error. + continue + } else { + return err + } + } + } + return ErrUnhandledType + } else { + return ErrUnhandledType + } +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_manager.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_manager.go new file mode 100644 index 000000000..c46d50808 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_manager.go @@ -0,0 +1,2528 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyaccuracy "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy" + propertyactor "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor" + propertyalsoknownas "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas" + propertyaltitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude" + propertyanyof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof" + propertyattachment "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment" + propertyattributedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto" + propertyaudience "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience" + propertybcc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc" + propertybto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto" + propertycc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc" + propertyclosed "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed" + propertycontent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content" + propertycontext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context" + propertycurrent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current" + propertydeleted "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted" + propertydescribes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes" + propertyduration "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration" + propertyendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints" + propertyendtime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime" + propertyfirst "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first" + propertyfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers" + propertyfollowing "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following" + propertyformertype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype" + propertygenerator "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator" + propertyheight "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height" + propertyhref "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href" + propertyhreflang "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang" + propertyicon "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon" + propertyimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image" + propertyinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox" + propertyinreplyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto" + propertyinstrument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument" + propertyitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items" + propertylast "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last" + propertylatitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude" + propertyliked "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked" + propertylikes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes" + propertylocation "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location" + propertylongitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude" + propertymanuallyapprovesfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" + propertymediatype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype" + propertymovedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto" + propertyname "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name" + propertynext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next" + propertyobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object" + propertyoneof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof" + propertyordereditems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems" + propertyorigin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin" + propertyoutbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox" + propertypartof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof" + propertypreferredusername "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername" + propertyprev "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev" + propertypreview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview" + propertypublished "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published" + propertyradius "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius" + propertyrel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel" + propertyrelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship" + propertyreplies "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies" + propertyresult "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result" + propertysensitive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive" + propertysharedinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox" + propertyshares "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares" + propertysource "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source" + propertystartindex "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex" + propertystarttime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime" + propertystreams "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams" + propertysubject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject" + propertysummary "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary" + propertytag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag" + propertytarget "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target" + propertyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to" + propertytotalitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems" + propertyunits "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units" + propertyupdated "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated" + propertyurl "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url" + propertywidth "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width" + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + propertyalways "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always" + propertyapprovalrequired "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired" + propertyapprovedby "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby" + propertyautomaticapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval" + propertycanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce" + propertycanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike" + propertycanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote" + propertycanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply" + propertyinteractingobject "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject" + propertyinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy" + propertyinteractiontarget "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget" + propertymanualapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval" + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + propertyid "code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id" + propertytype "code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type" + propertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/property_value" + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + propertyblurhash "code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash" + propertydiscoverable "code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable" + propertyfeatured "code.superseriousbusiness.org/activity/streams/impl/toot/property_featured" + propertyfocalpoint "code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint" + propertyindexable "code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable" + propertysignaturealgorithm "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm" + propertysignaturevalue "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue" + propertyvoterscount "code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount" + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + propertyowner "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner" + propertypublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey" + propertypublickeypem "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem" + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// Manager manages interface types and deserializations for use by generated code. +// Application code implicitly uses this manager at run-time to create +// concrete implementations of the interfaces. +type Manager struct { +} + +// DeserializeAcceptActivityStreams returns the deserialization method for the +// "ActivityStreamsAccept" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAccept, error) { + i, err := typeaccept.DeserializeAccept(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAccuracyPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsAccuracyProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeAccuracyPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccuracyProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAccuracyProperty, error) { + i, err := propertyaccuracy.DeserializeAccuracyProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeActivityActivityStreams returns the deserialization method for the +// "ActivityStreamsActivity" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsActivity, error) { + i, err := typeactivity.DeserializeActivity(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeActorPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsActorProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsActorProperty, error) { + i, err := propertyactor.DeserializeActorProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAddActivityStreams returns the deserialization method for the +// "ActivityStreamsAdd" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAdd, error) { + i, err := typeadd.DeserializeAdd(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAlbumFunkwhale returns the deserialization method for the +// "FunkwhaleAlbum" non-functional property in the vocabulary "Funkwhale" +func (this Manager) DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleAlbum, error) { + i, err := typealbum.DeserializeAlbum(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAlsoKnownAsPropertyActivityStreams returns the deserialization +// method for the "ActivityStreamsAlsoKnownAsProperty" non-functional property +// in the vocabulary "ActivityStreams" +func (this Manager) DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error) { + i, err := propertyalsoknownas.DeserializeAlsoKnownAsProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAltitudePropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsAltitudeProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) { + i, err := propertyaltitude.DeserializeAltitudeProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAlwaysPropertyGoToSocial returns the deserialization method for the +// "GoToSocialAlwaysProperty" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAlwaysProperty, error) { + i, err := propertyalways.DeserializeAlwaysProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAnnounceActivityStreams returns the deserialization method for the +// "ActivityStreamsAnnounce" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAnnounce, error) { + i, err := typeannounce.DeserializeAnnounce(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAnnounceApprovalGoToSocial returns the deserialization method for +// the "GoToSocialAnnounceApproval" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceApproval, error) { + i, err := typeannounceapproval.DeserializeAnnounceApproval(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization method +// for the "GoToSocialAnnounceAuthorization" non-functional property in the +// vocabulary "GoToSocial" +func (this Manager) DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) { + i, err := typeannounceauthorization.DeserializeAnnounceAuthorization(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAnnounceRequestGoToSocial returns the deserialization method for the +// "GoToSocialAnnounceRequest" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceRequest, error) { + i, err := typeannouncerequest.DeserializeAnnounceRequest(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAnyOfPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsAnyOfProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeAnyOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) { + i, err := propertyanyof.DeserializeAnyOfProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeApplicationActivityStreams returns the deserialization method for +// the "ActivityStreamsApplication" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsApplication, error) { + i, err := typeapplication.DeserializeApplication(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeApprovalRequiredPropertyGoToSocial returns the deserialization +// method for the "GoToSocialApprovalRequiredProperty" non-functional property +// in the vocabulary "GoToSocial" +func (this Manager) DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) { + i, err := propertyapprovalrequired.DeserializeApprovalRequiredProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeApprovedByPropertyGoToSocial returns the deserialization method for +// the "GoToSocialApprovedByProperty" non-functional property in the +// vocabulary "GoToSocial" +func (this Manager) DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialApprovedByProperty, error) { + i, err := propertyapprovedby.DeserializeApprovedByProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeArriveActivityStreams returns the deserialization method for the +// "ActivityStreamsArrive" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsArrive, error) { + i, err := typearrive.DeserializeArrive(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeArticleActivityStreams returns the deserialization method for the +// "ActivityStreamsArticle" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsArticle, error) { + i, err := typearticle.DeserializeArticle(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeArtistFunkwhale returns the deserialization method for the +// "FunkwhaleArtist" non-functional property in the vocabulary "Funkwhale" +func (this Manager) DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleArtist, error) { + i, err := typeartist.DeserializeArtist(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAttachmentPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsAttachmentProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) { + i, err := propertyattachment.DeserializeAttachmentProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAttributedToPropertyActivityStreams returns the deserialization +// method for the "ActivityStreamsAttributedToProperty" non-functional +// property in the vocabulary "ActivityStreams" +func (this Manager) DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) { + i, err := propertyattributedto.DeserializeAttributedToProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAudiencePropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsAudienceProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAudienceProperty, error) { + i, err := propertyaudience.DeserializeAudienceProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAudioActivityStreams returns the deserialization method for the +// "ActivityStreamsAudio" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAudio, error) { + i, err := typeaudio.DeserializeAudio(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeAutomaticApprovalPropertyGoToSocial returns the deserialization +// method for the "GoToSocialAutomaticApprovalProperty" non-functional +// property in the vocabulary "GoToSocial" +func (this Manager) DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) { + i, err := propertyautomaticapproval.DeserializeAutomaticApprovalProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeBccPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsBccProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBccProperty, error) { + i, err := propertybcc.DeserializeBccProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeBlockActivityStreams returns the deserialization method for the +// "ActivityStreamsBlock" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBlock, error) { + i, err := typeblock.DeserializeBlock(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeBlurhashPropertyToot returns the deserialization method for the +// "TootBlurhashProperty" non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootBlurhashProperty, error) { + i, err := propertyblurhash.DeserializeBlurhashProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeBtoPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsBtoProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBtoProperty, error) { + i, err := propertybto.DeserializeBtoProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCanAnnounceGoToSocial returns the deserialization method for the +// "GoToSocialCanAnnounce" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeCanAnnounceGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanAnnounce, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanAnnounce, error) { + i, err := typecanannounce.DeserializeCanAnnounce(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCanAnnouncePropertyGoToSocial returns the deserialization method for +// the "GoToSocialCanAnnounceProperty" non-functional property in the +// vocabulary "GoToSocial" +func (this Manager) DeserializeCanAnnouncePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanAnnounceProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanAnnounceProperty, error) { + i, err := propertycanannounce.DeserializeCanAnnounceProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCanLikeGoToSocial returns the deserialization method for the +// "GoToSocialCanLike" non-functional property in the vocabulary "GoToSocial" +func (this Manager) DeserializeCanLikeGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanLike, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanLike, error) { + i, err := typecanlike.DeserializeCanLike(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCanLikePropertyGoToSocial returns the deserialization method for the +// "GoToSocialCanLikeProperty" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeCanLikePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanLikeProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanLikeProperty, error) { + i, err := propertycanlike.DeserializeCanLikeProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCanQuoteGoToSocial returns the deserialization method for the +// "GoToSocialCanQuote" non-functional property in the vocabulary "GoToSocial" +func (this Manager) DeserializeCanQuoteGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuote, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuote, error) { + i, err := typecanquote.DeserializeCanQuote(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCanQuotePropertyGoToSocial returns the deserialization method for +// the "GoToSocialCanQuoteProperty" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeCanQuotePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuoteProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuoteProperty, error) { + i, err := propertycanquote.DeserializeCanQuoteProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCanReplyGoToSocial returns the deserialization method for the +// "GoToSocialCanReply" non-functional property in the vocabulary "GoToSocial" +func (this Manager) DeserializeCanReplyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanReply, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanReply, error) { + i, err := typecanreply.DeserializeCanReply(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCanReplyPropertyGoToSocial returns the deserialization method for +// the "GoToSocialCanReplyProperty" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeCanReplyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanReplyProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanReplyProperty, error) { + i, err := propertycanreply.DeserializeCanReplyProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCcPropertyActivityStreams returns the deserialization method for the +// "ActivityStreamsCcProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCcProperty, error) { + i, err := propertycc.DeserializeCcProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeClosedPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsClosedProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeClosedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsClosedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsClosedProperty, error) { + i, err := propertyclosed.DeserializeClosedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCollectionActivityStreams returns the deserialization method for the +// "ActivityStreamsCollection" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCollection, error) { + i, err := typecollection.DeserializeCollection(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCollectionPageActivityStreams returns the deserialization method for +// the "ActivityStreamsCollectionPage" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCollectionPage, error) { + i, err := typecollectionpage.DeserializeCollectionPage(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeContentPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsContentProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContentProperty, error) { + i, err := propertycontent.DeserializeContentProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeContextPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsContextProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContextProperty, error) { + i, err := propertycontext.DeserializeContextProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCreateActivityStreams returns the deserialization method for the +// "ActivityStreamsCreate" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCreate, error) { + i, err := typecreate.DeserializeCreate(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeCurrentPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsCurrentProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeCurrentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCurrentProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCurrentProperty, error) { + i, err := propertycurrent.DeserializeCurrentProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeDeleteActivityStreams returns the deserialization method for the +// "ActivityStreamsDelete" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDelete, error) { + i, err := typedelete.DeserializeDelete(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeDeletedPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsDeletedProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeDeletedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDeletedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDeletedProperty, error) { + i, err := propertydeleted.DeserializeDeletedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeDescribesPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsDescribesProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeDescribesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDescribesProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDescribesProperty, error) { + i, err := propertydescribes.DeserializeDescribesProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeDiscoverablePropertyToot returns the deserialization method for the +// "TootDiscoverableProperty" non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootDiscoverableProperty, error) { + i, err := propertydiscoverable.DeserializeDiscoverableProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeDislikeActivityStreams returns the deserialization method for the +// "ActivityStreamsDislike" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDislike, error) { + i, err := typedislike.DeserializeDislike(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeDocumentActivityStreams returns the deserialization method for the +// "ActivityStreamsDocument" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDocument, error) { + i, err := typedocument.DeserializeDocument(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeDurationPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsDurationProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDurationProperty, error) { + i, err := propertyduration.DeserializeDurationProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeEmojiToot returns the deserialization method for the "TootEmoji" +// non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootEmoji, error) { + i, err := typeemoji.DeserializeEmoji(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeEndTimePropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsEndTimeProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) { + i, err := propertyendtime.DeserializeEndTimeProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeEndpointsActivityStreams returns the deserialization method for the +// "ActivityStreamsEndpoints" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeEndpointsActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpoints, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEndpoints, error) { + i, err := typeendpoints.DeserializeEndpoints(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeEndpointsPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsEndpointsProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEndpointsProperty, error) { + i, err := propertyendpoints.DeserializeEndpointsProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeEventActivityStreams returns the deserialization method for the +// "ActivityStreamsEvent" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEvent, error) { + i, err := typeevent.DeserializeEvent(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeFeaturedPropertyToot returns the deserialization method for the +// "TootFeaturedProperty" non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeFeaturedPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFeaturedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootFeaturedProperty, error) { + i, err := propertyfeatured.DeserializeFeaturedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeFirstPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsFirstProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeFirstPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFirstProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFirstProperty, error) { + i, err := propertyfirst.DeserializeFirstProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeFlagActivityStreams returns the deserialization method for the +// "ActivityStreamsFlag" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFlag, error) { + i, err := typeflag.DeserializeFlag(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeFocalPointPropertyToot returns the deserialization method for the +// "TootFocalPointProperty" non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootFocalPointProperty, error) { + i, err := propertyfocalpoint.DeserializeFocalPointProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeFollowActivityStreams returns the deserialization method for the +// "ActivityStreamsFollow" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollow, error) { + i, err := typefollow.DeserializeFollow(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeFollowersPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsFollowersProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowersProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollowersProperty, error) { + i, err := propertyfollowers.DeserializeFollowersProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeFollowingPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsFollowingProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeFollowingPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowingProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollowingProperty, error) { + i, err := propertyfollowing.DeserializeFollowingProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeFormerTypePropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsFormerTypeProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeFormerTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) { + i, err := propertyformertype.DeserializeFormerTypeProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeGeneratorPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsGeneratorProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) { + i, err := propertygenerator.DeserializeGeneratorProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeGroupActivityStreams returns the deserialization method for the +// "ActivityStreamsGroup" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsGroup, error) { + i, err := typegroup.DeserializeGroup(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeHashtagToot returns the deserialization method for the "TootHashtag" +// non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootHashtag, error) { + i, err := typehashtag.DeserializeHashtag(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeHeightPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsHeightProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeHeightPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHeightProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHeightProperty, error) { + i, err := propertyheight.DeserializeHeightProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeHrefPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsHrefProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeHrefPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHrefProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHrefProperty, error) { + i, err := propertyhref.DeserializeHrefProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeHreflangPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsHreflangProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeHreflangPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHreflangProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHreflangProperty, error) { + i, err := propertyhreflang.DeserializeHreflangProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeIconPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsIconProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIconProperty, error) { + i, err := propertyicon.DeserializeIconProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeIdPropertyJSONLD returns the deserialization method for the +// "JSONLDIdProperty" non-functional property in the vocabulary "JSONLD" +func (this Manager) DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDIdProperty, error) { + i, err := propertyid.DeserializeIdProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeIdentityProofToot returns the deserialization method for the +// "TootIdentityProof" non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootIdentityProof, error) { + i, err := typeidentityproof.DeserializeIdentityProof(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeIgnoreActivityStreams returns the deserialization method for the +// "ActivityStreamsIgnore" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIgnore, error) { + i, err := typeignore.DeserializeIgnore(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeImageActivityStreams returns the deserialization method for the +// "ActivityStreamsImage" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsImage, error) { + i, err := typeimage.DeserializeImage(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeImagePropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsImageProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsImageProperty, error) { + i, err := propertyimage.DeserializeImageProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeInReplyToPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsInReplyToProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) { + i, err := propertyinreplyto.DeserializeInReplyToProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeInboxPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsInboxProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInboxProperty, error) { + i, err := propertyinbox.DeserializeInboxProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeIndexablePropertyToot returns the deserialization method for the +// "TootIndexableProperty" non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootIndexableProperty, error) { + i, err := propertyindexable.DeserializeIndexableProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeInstrumentPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsInstrumentProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) { + i, err := propertyinstrument.DeserializeInstrumentProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeInteractingObjectPropertyGoToSocial returns the deserialization +// method for the "GoToSocialInteractingObjectProperty" non-functional +// property in the vocabulary "GoToSocial" +func (this Manager) DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) { + i, err := propertyinteractingobject.DeserializeInteractingObjectProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeInteractionPolicyGoToSocial returns the deserialization method for +// the "GoToSocialInteractionPolicy" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeInteractionPolicyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicy, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionPolicy, error) { + i, err := typeinteractionpolicy.DeserializeInteractionPolicy(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeInteractionPolicyPropertyGoToSocial returns the deserialization +// method for the "GoToSocialInteractionPolicyProperty" non-functional +// property in the vocabulary "GoToSocial" +func (this Manager) DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error) { + i, err := propertyinteractionpolicy.DeserializeInteractionPolicyProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeInteractionTargetPropertyGoToSocial returns the deserialization +// method for the "GoToSocialInteractionTargetProperty" non-functional +// property in the vocabulary "GoToSocial" +func (this Manager) DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) { + i, err := propertyinteractiontarget.DeserializeInteractionTargetProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeIntransitiveActivityActivityStreams returns the deserialization +// method for the "ActivityStreamsIntransitiveActivity" non-functional +// property in the vocabulary "ActivityStreams" +func (this Manager) DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) { + i, err := typeintransitiveactivity.DeserializeIntransitiveActivity(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeInviteActivityStreams returns the deserialization method for the +// "ActivityStreamsInvite" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInvite, error) { + i, err := typeinvite.DeserializeInvite(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeItemsPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsItemsProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsItemsProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsItemsProperty, error) { + i, err := propertyitems.DeserializeItemsProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeJoinActivityStreams returns the deserialization method for the +// "ActivityStreamsJoin" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsJoin, error) { + i, err := typejoin.DeserializeJoin(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLastPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsLastProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeLastPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLastProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLastProperty, error) { + i, err := propertylast.DeserializeLastProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLatitudePropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsLatitudeProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeLatitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLatitudeProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLatitudeProperty, error) { + i, err := propertylatitude.DeserializeLatitudeProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLeaveActivityStreams returns the deserialization method for the +// "ActivityStreamsLeave" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLeave, error) { + i, err := typeleave.DeserializeLeave(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLibraryFunkwhale returns the deserialization method for the +// "FunkwhaleLibrary" non-functional property in the vocabulary "Funkwhale" +func (this Manager) DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleLibrary, error) { + i, err := typelibrary.DeserializeLibrary(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLikeActivityStreams returns the deserialization method for the +// "ActivityStreamsLike" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLike, error) { + i, err := typelike.DeserializeLike(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLikeApprovalGoToSocial returns the deserialization method for the +// "GoToSocialLikeApproval" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeApproval, error) { + i, err := typelikeapproval.DeserializeLikeApproval(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLikeAuthorizationGoToSocial returns the deserialization method for +// the "GoToSocialLikeAuthorization" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeAuthorization, error) { + i, err := typelikeauthorization.DeserializeLikeAuthorization(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLikeRequestGoToSocial returns the deserialization method for the +// "GoToSocialLikeRequest" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeRequest, error) { + i, err := typelikerequest.DeserializeLikeRequest(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLikedPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsLikedProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeLikedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLikedProperty, error) { + i, err := propertyliked.DeserializeLikedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLikesPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsLikesProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLikesProperty, error) { + i, err := propertylikes.DeserializeLikesProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLinkActivityStreams returns the deserialization method for the +// "ActivityStreamsLink" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLink, error) { + i, err := typelink.DeserializeLink(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeListenActivityStreams returns the deserialization method for the +// "ActivityStreamsListen" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsListen, error) { + i, err := typelisten.DeserializeListen(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLocationPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsLocationProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLocationProperty, error) { + i, err := propertylocation.DeserializeLocationProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeLongitudePropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsLongitudeProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeLongitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLongitudeProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLongitudeProperty, error) { + i, err := propertylongitude.DeserializeLongitudeProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeManualApprovalPropertyGoToSocial returns the deserialization method +// for the "GoToSocialManualApprovalProperty" non-functional property in the +// vocabulary "GoToSocial" +func (this Manager) DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialManualApprovalProperty, error) { + i, err := propertymanualapproval.DeserializeManualApprovalProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the +// deserialization method for the +// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional property +// in the vocabulary "ActivityStreams" +func (this Manager) DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) { + i, err := propertymanuallyapprovesfollowers.DeserializeManuallyApprovesFollowersProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeMediaTypePropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsMediaTypeProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) { + i, err := propertymediatype.DeserializeMediaTypeProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeMentionActivityStreams returns the deserialization method for the +// "ActivityStreamsMention" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMention, error) { + i, err := typemention.DeserializeMention(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeMoveActivityStreams returns the deserialization method for the +// "ActivityStreamsMove" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMove, error) { + i, err := typemove.DeserializeMove(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeMovedToPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsMovedToProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMovedToProperty, error) { + i, err := propertymovedto.DeserializeMovedToProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeNamePropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsNameProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNameProperty, error) { + i, err := propertyname.DeserializeNameProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeNextPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsNextProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeNextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNextProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNextProperty, error) { + i, err := propertynext.DeserializeNextProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeNoteActivityStreams returns the deserialization method for the +// "ActivityStreamsNote" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNote, error) { + i, err := typenote.DeserializeNote(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeObjectActivityStreams returns the deserialization method for the +// "ActivityStreamsObject" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsObject, error) { + i, err := typeobject.DeserializeObject(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeObjectPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsObjectProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsObjectProperty, error) { + i, err := propertyobject.DeserializeObjectProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeOfferActivityStreams returns the deserialization method for the +// "ActivityStreamsOffer" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOffer, error) { + i, err := typeoffer.DeserializeOffer(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeOneOfPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsOneOfProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeOneOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOneOfProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOneOfProperty, error) { + i, err := propertyoneof.DeserializeOneOfProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeOrderedCollectionActivityStreams returns the deserialization method +// for the "ActivityStreamsOrderedCollection" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedCollection, error) { + i, err := typeorderedcollection.DeserializeOrderedCollection(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeOrderedCollectionPageActivityStreams returns the deserialization +// method for the "ActivityStreamsOrderedCollectionPage" non-functional +// property in the vocabulary "ActivityStreams" +func (this Manager) DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) { + i, err := typeorderedcollectionpage.DeserializeOrderedCollectionPage(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeOrderedItemsPropertyActivityStreams returns the deserialization +// method for the "ActivityStreamsOrderedItemsProperty" non-functional +// property in the vocabulary "ActivityStreams" +func (this Manager) DeserializeOrderedItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) { + i, err := propertyordereditems.DeserializeOrderedItemsProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeOrganizationActivityStreams returns the deserialization method for +// the "ActivityStreamsOrganization" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrganization, error) { + i, err := typeorganization.DeserializeOrganization(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeOriginPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsOriginProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOriginProperty, error) { + i, err := propertyorigin.DeserializeOriginProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeOutboxPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsOutboxProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeOutboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOutboxProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOutboxProperty, error) { + i, err := propertyoutbox.DeserializeOutboxProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeOwnerPropertyW3IDSecurityV1 returns the deserialization method for +// the "W3IDSecurityV1OwnerProperty" non-functional property in the vocabulary +// "W3IDSecurityV1" +func (this Manager) DeserializeOwnerPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) { + i, err := propertyowner.DeserializeOwnerProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePageActivityStreams returns the deserialization method for the +// "ActivityStreamsPage" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPage, error) { + i, err := typepage.DeserializePage(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePartOfPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsPartOfProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializePartOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPartOfProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPartOfProperty, error) { + i, err := propertypartof.DeserializePartOfProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePersonActivityStreams returns the deserialization method for the +// "ActivityStreamsPerson" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPerson, error) { + i, err := typeperson.DeserializePerson(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePlaceActivityStreams returns the deserialization method for the +// "ActivityStreamsPlace" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPlace, error) { + i, err := typeplace.DeserializePlace(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePreferredUsernamePropertyActivityStreams returns the deserialization +// method for the "ActivityStreamsPreferredUsernameProperty" non-functional +// property in the vocabulary "ActivityStreams" +func (this Manager) DeserializePreferredUsernamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) { + i, err := propertypreferredusername.DeserializePreferredUsernameProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePrevPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsPrevProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializePrevPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPrevProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPrevProperty, error) { + i, err := propertyprev.DeserializePrevProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePreviewPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsPreviewProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPreviewProperty, error) { + i, err := propertypreview.DeserializePreviewProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeProfileActivityStreams returns the deserialization method for the +// "ActivityStreamsProfile" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsProfile, error) { + i, err := typeprofile.DeserializeProfile(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePropertyValueSchema returns the deserialization method for the +// "SchemaPropertyValue" non-functional property in the vocabulary "Schema" +func (this Manager) DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SchemaPropertyValue, error) { + i, err := typepropertyvalue.DeserializePropertyValue(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePublicKeyPemPropertyW3IDSecurityV1 returns the deserialization +// method for the "W3IDSecurityV1PublicKeyPemProperty" non-functional property +// in the vocabulary "W3IDSecurityV1" +func (this Manager) DeserializePublicKeyPemPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) { + i, err := propertypublickeypem.DeserializePublicKeyPemProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePublicKeyPropertyW3IDSecurityV1 returns the deserialization method +// for the "W3IDSecurityV1PublicKeyProperty" non-functional property in the +// vocabulary "W3IDSecurityV1" +func (this Manager) DeserializePublicKeyPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) { + i, err := propertypublickey.DeserializePublicKeyProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePublicKeyW3IDSecurityV1 returns the deserialization method for the +// "W3IDSecurityV1PublicKey" non-functional property in the vocabulary +// "W3IDSecurityV1" +func (this Manager) DeserializePublicKeyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKey, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKey, error) { + i, err := typepublickey.DeserializePublicKey(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializePublishedPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsPublishedProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPublishedProperty, error) { + i, err := propertypublished.DeserializePublishedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeQuestionActivityStreams returns the deserialization method for the +// "ActivityStreamsQuestion" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsQuestion, error) { + i, err := typequestion.DeserializeQuestion(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeRadiusPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsRadiusProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeRadiusPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRadiusProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRadiusProperty, error) { + i, err := propertyradius.DeserializeRadiusProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeReadActivityStreams returns the deserialization method for the +// "ActivityStreamsRead" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRead, error) { + i, err := typeread.DeserializeRead(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeRejectActivityStreams returns the deserialization method for the +// "ActivityStreamsReject" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsReject, error) { + i, err := typereject.DeserializeReject(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeRelPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsRelProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeRelPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelProperty, error) { + i, err := propertyrel.DeserializeRelProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeRelationshipActivityStreams returns the deserialization method for +// the "ActivityStreamsRelationship" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelationship, error) { + i, err := typerelationship.DeserializeRelationship(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeRelationshipPropertyActivityStreams returns the deserialization +// method for the "ActivityStreamsRelationshipProperty" non-functional +// property in the vocabulary "ActivityStreams" +func (this Manager) DeserializeRelationshipPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) { + i, err := propertyrelationship.DeserializeRelationshipProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeRemoveActivityStreams returns the deserialization method for the +// "ActivityStreamsRemove" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRemove, error) { + i, err := typeremove.DeserializeRemove(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeRepliesPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsRepliesProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRepliesProperty, error) { + i, err := propertyreplies.DeserializeRepliesProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeReplyApprovalGoToSocial returns the deserialization method for the +// "GoToSocialReplyApproval" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyApproval, error) { + i, err := typereplyapproval.DeserializeReplyApproval(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeReplyAuthorizationGoToSocial returns the deserialization method for +// the "GoToSocialReplyAuthorization" non-functional property in the +// vocabulary "GoToSocial" +func (this Manager) DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyAuthorization, error) { + i, err := typereplyauthorization.DeserializeReplyAuthorization(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeReplyRequestGoToSocial returns the deserialization method for the +// "GoToSocialReplyRequest" non-functional property in the vocabulary +// "GoToSocial" +func (this Manager) DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyRequest, error) { + i, err := typereplyrequest.DeserializeReplyRequest(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeResultPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsResultProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsResultProperty, error) { + i, err := propertyresult.DeserializeResultProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeSensitivePropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsSensitiveProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) { + i, err := propertysensitive.DeserializeSensitiveProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeServiceActivityStreams returns the deserialization method for the +// "ActivityStreamsService" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsService, error) { + i, err := typeservice.DeserializeService(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeSharedInboxPropertyActivityStreams returns the deserialization +// method for the "ActivityStreamsSharedInboxProperty" non-functional property +// in the vocabulary "ActivityStreams" +func (this Manager) DeserializeSharedInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharedInboxProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSharedInboxProperty, error) { + i, err := propertysharedinbox.DeserializeSharedInboxProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeSharesPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsSharesProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSharesProperty, error) { + i, err := propertyshares.DeserializeSharesProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeSignatureAlgorithmPropertyToot returns the deserialization method +// for the "TootSignatureAlgorithmProperty" non-functional property in the +// vocabulary "Toot" +func (this Manager) DeserializeSignatureAlgorithmPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureAlgorithmProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootSignatureAlgorithmProperty, error) { + i, err := propertysignaturealgorithm.DeserializeSignatureAlgorithmProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeSignatureValuePropertyToot returns the deserialization method for +// the "TootSignatureValueProperty" non-functional property in the vocabulary +// "Toot" +func (this Manager) DeserializeSignatureValuePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureValueProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootSignatureValueProperty, error) { + i, err := propertysignaturevalue.DeserializeSignatureValueProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeSourcePropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsSourceProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSourceProperty, error) { + i, err := propertysource.DeserializeSourceProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeStartIndexPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsStartIndexProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeStartIndexPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartIndexProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStartIndexProperty, error) { + i, err := propertystartindex.DeserializeStartIndexProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeStartTimePropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsStartTimeProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) { + i, err := propertystarttime.DeserializeStartTimeProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeStreamsPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsStreamsProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeStreamsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStreamsProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStreamsProperty, error) { + i, err := propertystreams.DeserializeStreamsProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeSubjectPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsSubjectProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeSubjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSubjectProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSubjectProperty, error) { + i, err := propertysubject.DeserializeSubjectProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeSummaryPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsSummaryProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSummaryProperty, error) { + i, err := propertysummary.DeserializeSummaryProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTagPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsTagProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTagProperty, error) { + i, err := propertytag.DeserializeTagProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTargetPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsTargetProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTargetProperty, error) { + i, err := propertytarget.DeserializeTargetProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTentativeAcceptActivityStreams returns the deserialization method +// for the "ActivityStreamsTentativeAccept" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTentativeAccept, error) { + i, err := typetentativeaccept.DeserializeTentativeAccept(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTentativeRejectActivityStreams returns the deserialization method +// for the "ActivityStreamsTentativeReject" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTentativeReject, error) { + i, err := typetentativereject.DeserializeTentativeReject(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeToPropertyActivityStreams returns the deserialization method for the +// "ActivityStreamsToProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsToProperty, error) { + i, err := propertyto.DeserializeToProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTombstoneActivityStreams returns the deserialization method for the +// "ActivityStreamsTombstone" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTombstone, error) { + i, err := typetombstone.DeserializeTombstone(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTotalItemsPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsTotalItemsProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) { + i, err := propertytotalitems.DeserializeTotalItemsProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTrackFunkwhale returns the deserialization method for the +// "FunkwhaleTrack" non-functional property in the vocabulary "Funkwhale" +func (this Manager) DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleTrack, error) { + i, err := typetrack.DeserializeTrack(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTravelActivityStreams returns the deserialization method for the +// "ActivityStreamsTravel" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTravel, error) { + i, err := typetravel.DeserializeTravel(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeTypePropertyJSONLD returns the deserialization method for the +// "JSONLDTypeProperty" non-functional property in the vocabulary "JSONLD" +func (this Manager) DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDTypeProperty, error) { + i, err := propertytype.DeserializeTypeProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeUndoActivityStreams returns the deserialization method for the +// "ActivityStreamsUndo" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUndo, error) { + i, err := typeundo.DeserializeUndo(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeUnitsPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsUnitsProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeUnitsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUnitsProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUnitsProperty, error) { + i, err := propertyunits.DeserializeUnitsProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeUpdateActivityStreams returns the deserialization method for the +// "ActivityStreamsUpdate" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUpdate, error) { + i, err := typeupdate.DeserializeUpdate(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeUpdatedPropertyActivityStreams returns the deserialization method +// for the "ActivityStreamsUpdatedProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) { + i, err := propertyupdated.DeserializeUpdatedProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeUrlPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsUrlProperty" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUrlProperty, error) { + i, err := propertyurl.DeserializeUrlProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeValuePropertySchema returns the deserialization method for the +// "SchemaValueProperty" non-functional property in the vocabulary "Schema" +func (this Manager) DeserializeValuePropertySchema() func(map[string]interface{}, map[string]string) (vocab.SchemaValueProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SchemaValueProperty, error) { + i, err := propertyvalue.DeserializeValueProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeVideoActivityStreams returns the deserialization method for the +// "ActivityStreamsVideo" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsVideo, error) { + i, err := typevideo.DeserializeVideo(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeViewActivityStreams returns the deserialization method for the +// "ActivityStreamsView" non-functional property in the vocabulary +// "ActivityStreams" +func (this Manager) DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsView, error) { + i, err := typeview.DeserializeView(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeVotersCountPropertyToot returns the deserialization method for the +// "TootVotersCountProperty" non-functional property in the vocabulary "Toot" +func (this Manager) DeserializeVotersCountPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootVotersCountProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootVotersCountProperty, error) { + i, err := propertyvoterscount.DeserializeVotersCountProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + +// DeserializeWidthPropertyActivityStreams returns the deserialization method for +// the "ActivityStreamsWidthProperty" non-functional property in the +// vocabulary "ActivityStreams" +func (this Manager) DeserializeWidthPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsWidthProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsWidthProperty, error) { + i, err := propertywidth.DeserializeWidthProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_disjoint.go new file mode 100644 index 000000000..e1aace85c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_disjoint.go @@ -0,0 +1,392 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// ActivityStreamsAcceptIsDisjointWith returns true if Accept is disjoint with the +// other's type. +func ActivityStreamsAcceptIsDisjointWith(other vocab.Type) bool { + return typeaccept.AcceptIsDisjointWith(other) +} + +// ActivityStreamsActivityIsDisjointWith returns true if Activity is disjoint with +// the other's type. +func ActivityStreamsActivityIsDisjointWith(other vocab.Type) bool { + return typeactivity.ActivityIsDisjointWith(other) +} + +// ActivityStreamsAddIsDisjointWith returns true if Add is disjoint with the +// other's type. +func ActivityStreamsAddIsDisjointWith(other vocab.Type) bool { + return typeadd.AddIsDisjointWith(other) +} + +// ActivityStreamsAnnounceIsDisjointWith returns true if Announce is disjoint with +// the other's type. +func ActivityStreamsAnnounceIsDisjointWith(other vocab.Type) bool { + return typeannounce.AnnounceIsDisjointWith(other) +} + +// ActivityStreamsApplicationIsDisjointWith returns true if Application is +// disjoint with the other's type. +func ActivityStreamsApplicationIsDisjointWith(other vocab.Type) bool { + return typeapplication.ApplicationIsDisjointWith(other) +} + +// ActivityStreamsArriveIsDisjointWith returns true if Arrive is disjoint with the +// other's type. +func ActivityStreamsArriveIsDisjointWith(other vocab.Type) bool { + return typearrive.ArriveIsDisjointWith(other) +} + +// ActivityStreamsArticleIsDisjointWith returns true if Article is disjoint with +// the other's type. +func ActivityStreamsArticleIsDisjointWith(other vocab.Type) bool { + return typearticle.ArticleIsDisjointWith(other) +} + +// ActivityStreamsAudioIsDisjointWith returns true if Audio is disjoint with the +// other's type. +func ActivityStreamsAudioIsDisjointWith(other vocab.Type) bool { + return typeaudio.AudioIsDisjointWith(other) +} + +// ActivityStreamsBlockIsDisjointWith returns true if Block is disjoint with the +// other's type. +func ActivityStreamsBlockIsDisjointWith(other vocab.Type) bool { + return typeblock.BlockIsDisjointWith(other) +} + +// ActivityStreamsCollectionIsDisjointWith returns true if Collection is disjoint +// with the other's type. +func ActivityStreamsCollectionIsDisjointWith(other vocab.Type) bool { + return typecollection.CollectionIsDisjointWith(other) +} + +// ActivityStreamsCollectionPageIsDisjointWith returns true if CollectionPage is +// disjoint with the other's type. +func ActivityStreamsCollectionPageIsDisjointWith(other vocab.Type) bool { + return typecollectionpage.CollectionPageIsDisjointWith(other) +} + +// ActivityStreamsCreateIsDisjointWith returns true if Create is disjoint with the +// other's type. +func ActivityStreamsCreateIsDisjointWith(other vocab.Type) bool { + return typecreate.CreateIsDisjointWith(other) +} + +// ActivityStreamsDeleteIsDisjointWith returns true if Delete is disjoint with the +// other's type. +func ActivityStreamsDeleteIsDisjointWith(other vocab.Type) bool { + return typedelete.DeleteIsDisjointWith(other) +} + +// ActivityStreamsDislikeIsDisjointWith returns true if Dislike is disjoint with +// the other's type. +func ActivityStreamsDislikeIsDisjointWith(other vocab.Type) bool { + return typedislike.DislikeIsDisjointWith(other) +} + +// ActivityStreamsDocumentIsDisjointWith returns true if Document is disjoint with +// the other's type. +func ActivityStreamsDocumentIsDisjointWith(other vocab.Type) bool { + return typedocument.DocumentIsDisjointWith(other) +} + +// ActivityStreamsEndpointsIsDisjointWith returns true if Endpoints is disjoint +// with the other's type. +func ActivityStreamsEndpointsIsDisjointWith(other vocab.Type) bool { + return typeendpoints.EndpointsIsDisjointWith(other) +} + +// ActivityStreamsEventIsDisjointWith returns true if Event is disjoint with the +// other's type. +func ActivityStreamsEventIsDisjointWith(other vocab.Type) bool { + return typeevent.EventIsDisjointWith(other) +} + +// ActivityStreamsFlagIsDisjointWith returns true if Flag is disjoint with the +// other's type. +func ActivityStreamsFlagIsDisjointWith(other vocab.Type) bool { + return typeflag.FlagIsDisjointWith(other) +} + +// ActivityStreamsFollowIsDisjointWith returns true if Follow is disjoint with the +// other's type. +func ActivityStreamsFollowIsDisjointWith(other vocab.Type) bool { + return typefollow.FollowIsDisjointWith(other) +} + +// ActivityStreamsGroupIsDisjointWith returns true if Group is disjoint with the +// other's type. +func ActivityStreamsGroupIsDisjointWith(other vocab.Type) bool { + return typegroup.GroupIsDisjointWith(other) +} + +// ActivityStreamsIgnoreIsDisjointWith returns true if Ignore is disjoint with the +// other's type. +func ActivityStreamsIgnoreIsDisjointWith(other vocab.Type) bool { + return typeignore.IgnoreIsDisjointWith(other) +} + +// ActivityStreamsImageIsDisjointWith returns true if Image is disjoint with the +// other's type. +func ActivityStreamsImageIsDisjointWith(other vocab.Type) bool { + return typeimage.ImageIsDisjointWith(other) +} + +// ActivityStreamsIntransitiveActivityIsDisjointWith returns true if +// IntransitiveActivity is disjoint with the other's type. +func ActivityStreamsIntransitiveActivityIsDisjointWith(other vocab.Type) bool { + return typeintransitiveactivity.IntransitiveActivityIsDisjointWith(other) +} + +// ActivityStreamsInviteIsDisjointWith returns true if Invite is disjoint with the +// other's type. +func ActivityStreamsInviteIsDisjointWith(other vocab.Type) bool { + return typeinvite.InviteIsDisjointWith(other) +} + +// ActivityStreamsJoinIsDisjointWith returns true if Join is disjoint with the +// other's type. +func ActivityStreamsJoinIsDisjointWith(other vocab.Type) bool { + return typejoin.JoinIsDisjointWith(other) +} + +// ActivityStreamsLeaveIsDisjointWith returns true if Leave is disjoint with the +// other's type. +func ActivityStreamsLeaveIsDisjointWith(other vocab.Type) bool { + return typeleave.LeaveIsDisjointWith(other) +} + +// ActivityStreamsLikeIsDisjointWith returns true if Like is disjoint with the +// other's type. +func ActivityStreamsLikeIsDisjointWith(other vocab.Type) bool { + return typelike.LikeIsDisjointWith(other) +} + +// ActivityStreamsLinkIsDisjointWith returns true if Link is disjoint with the +// other's type. +func ActivityStreamsLinkIsDisjointWith(other vocab.Type) bool { + return typelink.LinkIsDisjointWith(other) +} + +// ActivityStreamsListenIsDisjointWith returns true if Listen is disjoint with the +// other's type. +func ActivityStreamsListenIsDisjointWith(other vocab.Type) bool { + return typelisten.ListenIsDisjointWith(other) +} + +// ActivityStreamsMentionIsDisjointWith returns true if Mention is disjoint with +// the other's type. +func ActivityStreamsMentionIsDisjointWith(other vocab.Type) bool { + return typemention.MentionIsDisjointWith(other) +} + +// ActivityStreamsMoveIsDisjointWith returns true if Move is disjoint with the +// other's type. +func ActivityStreamsMoveIsDisjointWith(other vocab.Type) bool { + return typemove.MoveIsDisjointWith(other) +} + +// ActivityStreamsNoteIsDisjointWith returns true if Note is disjoint with the +// other's type. +func ActivityStreamsNoteIsDisjointWith(other vocab.Type) bool { + return typenote.NoteIsDisjointWith(other) +} + +// ActivityStreamsObjectIsDisjointWith returns true if Object is disjoint with the +// other's type. +func ActivityStreamsObjectIsDisjointWith(other vocab.Type) bool { + return typeobject.ObjectIsDisjointWith(other) +} + +// ActivityStreamsOfferIsDisjointWith returns true if Offer is disjoint with the +// other's type. +func ActivityStreamsOfferIsDisjointWith(other vocab.Type) bool { + return typeoffer.OfferIsDisjointWith(other) +} + +// ActivityStreamsOrderedCollectionIsDisjointWith returns true if +// OrderedCollection is disjoint with the other's type. +func ActivityStreamsOrderedCollectionIsDisjointWith(other vocab.Type) bool { + return typeorderedcollection.OrderedCollectionIsDisjointWith(other) +} + +// ActivityStreamsOrderedCollectionPageIsDisjointWith returns true if +// OrderedCollectionPage is disjoint with the other's type. +func ActivityStreamsOrderedCollectionPageIsDisjointWith(other vocab.Type) bool { + return typeorderedcollectionpage.OrderedCollectionPageIsDisjointWith(other) +} + +// ActivityStreamsOrganizationIsDisjointWith returns true if Organization is +// disjoint with the other's type. +func ActivityStreamsOrganizationIsDisjointWith(other vocab.Type) bool { + return typeorganization.OrganizationIsDisjointWith(other) +} + +// ActivityStreamsPageIsDisjointWith returns true if Page is disjoint with the +// other's type. +func ActivityStreamsPageIsDisjointWith(other vocab.Type) bool { + return typepage.PageIsDisjointWith(other) +} + +// ActivityStreamsPersonIsDisjointWith returns true if Person is disjoint with the +// other's type. +func ActivityStreamsPersonIsDisjointWith(other vocab.Type) bool { + return typeperson.PersonIsDisjointWith(other) +} + +// ActivityStreamsPlaceIsDisjointWith returns true if Place is disjoint with the +// other's type. +func ActivityStreamsPlaceIsDisjointWith(other vocab.Type) bool { + return typeplace.PlaceIsDisjointWith(other) +} + +// ActivityStreamsProfileIsDisjointWith returns true if Profile is disjoint with +// the other's type. +func ActivityStreamsProfileIsDisjointWith(other vocab.Type) bool { + return typeprofile.ProfileIsDisjointWith(other) +} + +// ActivityStreamsQuestionIsDisjointWith returns true if Question is disjoint with +// the other's type. +func ActivityStreamsQuestionIsDisjointWith(other vocab.Type) bool { + return typequestion.QuestionIsDisjointWith(other) +} + +// ActivityStreamsReadIsDisjointWith returns true if Read is disjoint with the +// other's type. +func ActivityStreamsReadIsDisjointWith(other vocab.Type) bool { + return typeread.ReadIsDisjointWith(other) +} + +// ActivityStreamsRejectIsDisjointWith returns true if Reject is disjoint with the +// other's type. +func ActivityStreamsRejectIsDisjointWith(other vocab.Type) bool { + return typereject.RejectIsDisjointWith(other) +} + +// ActivityStreamsRelationshipIsDisjointWith returns true if Relationship is +// disjoint with the other's type. +func ActivityStreamsRelationshipIsDisjointWith(other vocab.Type) bool { + return typerelationship.RelationshipIsDisjointWith(other) +} + +// ActivityStreamsRemoveIsDisjointWith returns true if Remove is disjoint with the +// other's type. +func ActivityStreamsRemoveIsDisjointWith(other vocab.Type) bool { + return typeremove.RemoveIsDisjointWith(other) +} + +// ActivityStreamsServiceIsDisjointWith returns true if Service is disjoint with +// the other's type. +func ActivityStreamsServiceIsDisjointWith(other vocab.Type) bool { + return typeservice.ServiceIsDisjointWith(other) +} + +// ActivityStreamsTentativeAcceptIsDisjointWith returns true if TentativeAccept is +// disjoint with the other's type. +func ActivityStreamsTentativeAcceptIsDisjointWith(other vocab.Type) bool { + return typetentativeaccept.TentativeAcceptIsDisjointWith(other) +} + +// ActivityStreamsTentativeRejectIsDisjointWith returns true if TentativeReject is +// disjoint with the other's type. +func ActivityStreamsTentativeRejectIsDisjointWith(other vocab.Type) bool { + return typetentativereject.TentativeRejectIsDisjointWith(other) +} + +// ActivityStreamsTombstoneIsDisjointWith returns true if Tombstone is disjoint +// with the other's type. +func ActivityStreamsTombstoneIsDisjointWith(other vocab.Type) bool { + return typetombstone.TombstoneIsDisjointWith(other) +} + +// ActivityStreamsTravelIsDisjointWith returns true if Travel is disjoint with the +// other's type. +func ActivityStreamsTravelIsDisjointWith(other vocab.Type) bool { + return typetravel.TravelIsDisjointWith(other) +} + +// ActivityStreamsUndoIsDisjointWith returns true if Undo is disjoint with the +// other's type. +func ActivityStreamsUndoIsDisjointWith(other vocab.Type) bool { + return typeundo.UndoIsDisjointWith(other) +} + +// ActivityStreamsUpdateIsDisjointWith returns true if Update is disjoint with the +// other's type. +func ActivityStreamsUpdateIsDisjointWith(other vocab.Type) bool { + return typeupdate.UpdateIsDisjointWith(other) +} + +// ActivityStreamsVideoIsDisjointWith returns true if Video is disjoint with the +// other's type. +func ActivityStreamsVideoIsDisjointWith(other vocab.Type) bool { + return typevideo.VideoIsDisjointWith(other) +} + +// ActivityStreamsViewIsDisjointWith returns true if View is disjoint with the +// other's type. +func ActivityStreamsViewIsDisjointWith(other vocab.Type) bool { + return typeview.ViewIsDisjointWith(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extendedby.go new file mode 100644 index 000000000..ff05ceaf5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extendedby.go @@ -0,0 +1,447 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// ActivityStreamsAcceptIsExtendedBy returns true if the other's type extends from +// Accept. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsAcceptIsExtendedBy(other vocab.Type) bool { + return typeaccept.AcceptIsExtendedBy(other) +} + +// ActivityStreamsActivityIsExtendedBy returns true if the other's type extends +// from Activity. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func ActivityStreamsActivityIsExtendedBy(other vocab.Type) bool { + return typeactivity.ActivityIsExtendedBy(other) +} + +// ActivityStreamsAddIsExtendedBy returns true if the other's type extends from +// Add. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsAddIsExtendedBy(other vocab.Type) bool { + return typeadd.AddIsExtendedBy(other) +} + +// ActivityStreamsAnnounceIsExtendedBy returns true if the other's type extends +// from Announce. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func ActivityStreamsAnnounceIsExtendedBy(other vocab.Type) bool { + return typeannounce.AnnounceIsExtendedBy(other) +} + +// ActivityStreamsApplicationIsExtendedBy returns true if the other's type extends +// from Application. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func ActivityStreamsApplicationIsExtendedBy(other vocab.Type) bool { + return typeapplication.ApplicationIsExtendedBy(other) +} + +// ActivityStreamsArriveIsExtendedBy returns true if the other's type extends from +// Arrive. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsArriveIsExtendedBy(other vocab.Type) bool { + return typearrive.ArriveIsExtendedBy(other) +} + +// ActivityStreamsArticleIsExtendedBy returns true if the other's type extends +// from Article. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsArticleIsExtendedBy(other vocab.Type) bool { + return typearticle.ArticleIsExtendedBy(other) +} + +// ActivityStreamsAudioIsExtendedBy returns true if the other's type extends from +// Audio. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsAudioIsExtendedBy(other vocab.Type) bool { + return typeaudio.AudioIsExtendedBy(other) +} + +// ActivityStreamsBlockIsExtendedBy returns true if the other's type extends from +// Block. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsBlockIsExtendedBy(other vocab.Type) bool { + return typeblock.BlockIsExtendedBy(other) +} + +// ActivityStreamsCollectionIsExtendedBy returns true if the other's type extends +// from Collection. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func ActivityStreamsCollectionIsExtendedBy(other vocab.Type) bool { + return typecollection.CollectionIsExtendedBy(other) +} + +// ActivityStreamsCollectionPageIsExtendedBy returns true if the other's type +// extends from CollectionPage. Note that it returns false if the types are +// the same; see the "IsOrExtends" variant instead. +func ActivityStreamsCollectionPageIsExtendedBy(other vocab.Type) bool { + return typecollectionpage.CollectionPageIsExtendedBy(other) +} + +// ActivityStreamsCreateIsExtendedBy returns true if the other's type extends from +// Create. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsCreateIsExtendedBy(other vocab.Type) bool { + return typecreate.CreateIsExtendedBy(other) +} + +// ActivityStreamsDeleteIsExtendedBy returns true if the other's type extends from +// Delete. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsDeleteIsExtendedBy(other vocab.Type) bool { + return typedelete.DeleteIsExtendedBy(other) +} + +// ActivityStreamsDislikeIsExtendedBy returns true if the other's type extends +// from Dislike. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsDislikeIsExtendedBy(other vocab.Type) bool { + return typedislike.DislikeIsExtendedBy(other) +} + +// ActivityStreamsDocumentIsExtendedBy returns true if the other's type extends +// from Document. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func ActivityStreamsDocumentIsExtendedBy(other vocab.Type) bool { + return typedocument.DocumentIsExtendedBy(other) +} + +// ActivityStreamsEndpointsIsExtendedBy returns true if the other's type extends +// from Endpoints. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func ActivityStreamsEndpointsIsExtendedBy(other vocab.Type) bool { + return typeendpoints.EndpointsIsExtendedBy(other) +} + +// ActivityStreamsEventIsExtendedBy returns true if the other's type extends from +// Event. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsEventIsExtendedBy(other vocab.Type) bool { + return typeevent.EventIsExtendedBy(other) +} + +// ActivityStreamsFlagIsExtendedBy returns true if the other's type extends from +// Flag. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsFlagIsExtendedBy(other vocab.Type) bool { + return typeflag.FlagIsExtendedBy(other) +} + +// ActivityStreamsFollowIsExtendedBy returns true if the other's type extends from +// Follow. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsFollowIsExtendedBy(other vocab.Type) bool { + return typefollow.FollowIsExtendedBy(other) +} + +// ActivityStreamsGroupIsExtendedBy returns true if the other's type extends from +// Group. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsGroupIsExtendedBy(other vocab.Type) bool { + return typegroup.GroupIsExtendedBy(other) +} + +// ActivityStreamsIgnoreIsExtendedBy returns true if the other's type extends from +// Ignore. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsIgnoreIsExtendedBy(other vocab.Type) bool { + return typeignore.IgnoreIsExtendedBy(other) +} + +// ActivityStreamsImageIsExtendedBy returns true if the other's type extends from +// Image. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsImageIsExtendedBy(other vocab.Type) bool { + return typeimage.ImageIsExtendedBy(other) +} + +// ActivityStreamsIntransitiveActivityIsExtendedBy returns true if the other's +// type extends from IntransitiveActivity. Note that it returns false if the +// types are the same; see the "IsOrExtends" variant instead. +func ActivityStreamsIntransitiveActivityIsExtendedBy(other vocab.Type) bool { + return typeintransitiveactivity.IntransitiveActivityIsExtendedBy(other) +} + +// ActivityStreamsInviteIsExtendedBy returns true if the other's type extends from +// Invite. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsInviteIsExtendedBy(other vocab.Type) bool { + return typeinvite.InviteIsExtendedBy(other) +} + +// ActivityStreamsJoinIsExtendedBy returns true if the other's type extends from +// Join. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsJoinIsExtendedBy(other vocab.Type) bool { + return typejoin.JoinIsExtendedBy(other) +} + +// ActivityStreamsLeaveIsExtendedBy returns true if the other's type extends from +// Leave. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsLeaveIsExtendedBy(other vocab.Type) bool { + return typeleave.LeaveIsExtendedBy(other) +} + +// ActivityStreamsLikeIsExtendedBy returns true if the other's type extends from +// Like. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsLikeIsExtendedBy(other vocab.Type) bool { + return typelike.LikeIsExtendedBy(other) +} + +// ActivityStreamsLinkIsExtendedBy returns true if the other's type extends from +// Link. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsLinkIsExtendedBy(other vocab.Type) bool { + return typelink.LinkIsExtendedBy(other) +} + +// ActivityStreamsListenIsExtendedBy returns true if the other's type extends from +// Listen. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsListenIsExtendedBy(other vocab.Type) bool { + return typelisten.ListenIsExtendedBy(other) +} + +// ActivityStreamsMentionIsExtendedBy returns true if the other's type extends +// from Mention. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsMentionIsExtendedBy(other vocab.Type) bool { + return typemention.MentionIsExtendedBy(other) +} + +// ActivityStreamsMoveIsExtendedBy returns true if the other's type extends from +// Move. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsMoveIsExtendedBy(other vocab.Type) bool { + return typemove.MoveIsExtendedBy(other) +} + +// ActivityStreamsNoteIsExtendedBy returns true if the other's type extends from +// Note. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsNoteIsExtendedBy(other vocab.Type) bool { + return typenote.NoteIsExtendedBy(other) +} + +// ActivityStreamsObjectIsExtendedBy returns true if the other's type extends from +// Object. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsObjectIsExtendedBy(other vocab.Type) bool { + return typeobject.ObjectIsExtendedBy(other) +} + +// ActivityStreamsOfferIsExtendedBy returns true if the other's type extends from +// Offer. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsOfferIsExtendedBy(other vocab.Type) bool { + return typeoffer.OfferIsExtendedBy(other) +} + +// ActivityStreamsOrderedCollectionIsExtendedBy returns true if the other's type +// extends from OrderedCollection. Note that it returns false if the types are +// the same; see the "IsOrExtends" variant instead. +func ActivityStreamsOrderedCollectionIsExtendedBy(other vocab.Type) bool { + return typeorderedcollection.OrderedCollectionIsExtendedBy(other) +} + +// ActivityStreamsOrderedCollectionPageIsExtendedBy returns true if the other's +// type extends from OrderedCollectionPage. Note that it returns false if the +// types are the same; see the "IsOrExtends" variant instead. +func ActivityStreamsOrderedCollectionPageIsExtendedBy(other vocab.Type) bool { + return typeorderedcollectionpage.OrderedCollectionPageIsExtendedBy(other) +} + +// ActivityStreamsOrganizationIsExtendedBy returns true if the other's type +// extends from Organization. Note that it returns false if the types are the +// same; see the "IsOrExtends" variant instead. +func ActivityStreamsOrganizationIsExtendedBy(other vocab.Type) bool { + return typeorganization.OrganizationIsExtendedBy(other) +} + +// ActivityStreamsPageIsExtendedBy returns true if the other's type extends from +// Page. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsPageIsExtendedBy(other vocab.Type) bool { + return typepage.PageIsExtendedBy(other) +} + +// ActivityStreamsPersonIsExtendedBy returns true if the other's type extends from +// Person. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsPersonIsExtendedBy(other vocab.Type) bool { + return typeperson.PersonIsExtendedBy(other) +} + +// ActivityStreamsPlaceIsExtendedBy returns true if the other's type extends from +// Place. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsPlaceIsExtendedBy(other vocab.Type) bool { + return typeplace.PlaceIsExtendedBy(other) +} + +// ActivityStreamsProfileIsExtendedBy returns true if the other's type extends +// from Profile. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsProfileIsExtendedBy(other vocab.Type) bool { + return typeprofile.ProfileIsExtendedBy(other) +} + +// ActivityStreamsQuestionIsExtendedBy returns true if the other's type extends +// from Question. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func ActivityStreamsQuestionIsExtendedBy(other vocab.Type) bool { + return typequestion.QuestionIsExtendedBy(other) +} + +// ActivityStreamsReadIsExtendedBy returns true if the other's type extends from +// Read. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsReadIsExtendedBy(other vocab.Type) bool { + return typeread.ReadIsExtendedBy(other) +} + +// ActivityStreamsRejectIsExtendedBy returns true if the other's type extends from +// Reject. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsRejectIsExtendedBy(other vocab.Type) bool { + return typereject.RejectIsExtendedBy(other) +} + +// ActivityStreamsRelationshipIsExtendedBy returns true if the other's type +// extends from Relationship. Note that it returns false if the types are the +// same; see the "IsOrExtends" variant instead. +func ActivityStreamsRelationshipIsExtendedBy(other vocab.Type) bool { + return typerelationship.RelationshipIsExtendedBy(other) +} + +// ActivityStreamsRemoveIsExtendedBy returns true if the other's type extends from +// Remove. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsRemoveIsExtendedBy(other vocab.Type) bool { + return typeremove.RemoveIsExtendedBy(other) +} + +// ActivityStreamsServiceIsExtendedBy returns true if the other's type extends +// from Service. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsServiceIsExtendedBy(other vocab.Type) bool { + return typeservice.ServiceIsExtendedBy(other) +} + +// ActivityStreamsTentativeAcceptIsExtendedBy returns true if the other's type +// extends from TentativeAccept. Note that it returns false if the types are +// the same; see the "IsOrExtends" variant instead. +func ActivityStreamsTentativeAcceptIsExtendedBy(other vocab.Type) bool { + return typetentativeaccept.TentativeAcceptIsExtendedBy(other) +} + +// ActivityStreamsTentativeRejectIsExtendedBy returns true if the other's type +// extends from TentativeReject. Note that it returns false if the types are +// the same; see the "IsOrExtends" variant instead. +func ActivityStreamsTentativeRejectIsExtendedBy(other vocab.Type) bool { + return typetentativereject.TentativeRejectIsExtendedBy(other) +} + +// ActivityStreamsTombstoneIsExtendedBy returns true if the other's type extends +// from Tombstone. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func ActivityStreamsTombstoneIsExtendedBy(other vocab.Type) bool { + return typetombstone.TombstoneIsExtendedBy(other) +} + +// ActivityStreamsTravelIsExtendedBy returns true if the other's type extends from +// Travel. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsTravelIsExtendedBy(other vocab.Type) bool { + return typetravel.TravelIsExtendedBy(other) +} + +// ActivityStreamsUndoIsExtendedBy returns true if the other's type extends from +// Undo. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsUndoIsExtendedBy(other vocab.Type) bool { + return typeundo.UndoIsExtendedBy(other) +} + +// ActivityStreamsUpdateIsExtendedBy returns true if the other's type extends from +// Update. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsUpdateIsExtendedBy(other vocab.Type) bool { + return typeupdate.UpdateIsExtendedBy(other) +} + +// ActivityStreamsVideoIsExtendedBy returns true if the other's type extends from +// Video. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsVideoIsExtendedBy(other vocab.Type) bool { + return typevideo.VideoIsExtendedBy(other) +} + +// ActivityStreamsViewIsExtendedBy returns true if the other's type extends from +// View. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func ActivityStreamsViewIsExtendedBy(other vocab.Type) bool { + return typeview.ViewIsExtendedBy(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extends.go new file mode 100644 index 000000000..c84420913 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_extends.go @@ -0,0 +1,392 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// ActivityStreamsActivityStreamsAcceptExtends returns true if Accept extends from +// the other's type. +func ActivityStreamsActivityStreamsAcceptExtends(other vocab.Type) bool { + return typeaccept.ActivityStreamsAcceptExtends(other) +} + +// ActivityStreamsActivityStreamsActivityExtends returns true if Activity extends +// from the other's type. +func ActivityStreamsActivityStreamsActivityExtends(other vocab.Type) bool { + return typeactivity.ActivityStreamsActivityExtends(other) +} + +// ActivityStreamsActivityStreamsAddExtends returns true if Add extends from the +// other's type. +func ActivityStreamsActivityStreamsAddExtends(other vocab.Type) bool { + return typeadd.ActivityStreamsAddExtends(other) +} + +// ActivityStreamsActivityStreamsAnnounceExtends returns true if Announce extends +// from the other's type. +func ActivityStreamsActivityStreamsAnnounceExtends(other vocab.Type) bool { + return typeannounce.ActivityStreamsAnnounceExtends(other) +} + +// ActivityStreamsActivityStreamsApplicationExtends returns true if Application +// extends from the other's type. +func ActivityStreamsActivityStreamsApplicationExtends(other vocab.Type) bool { + return typeapplication.ActivityStreamsApplicationExtends(other) +} + +// ActivityStreamsActivityStreamsArriveExtends returns true if Arrive extends from +// the other's type. +func ActivityStreamsActivityStreamsArriveExtends(other vocab.Type) bool { + return typearrive.ActivityStreamsArriveExtends(other) +} + +// ActivityStreamsActivityStreamsArticleExtends returns true if Article extends +// from the other's type. +func ActivityStreamsActivityStreamsArticleExtends(other vocab.Type) bool { + return typearticle.ActivityStreamsArticleExtends(other) +} + +// ActivityStreamsActivityStreamsAudioExtends returns true if Audio extends from +// the other's type. +func ActivityStreamsActivityStreamsAudioExtends(other vocab.Type) bool { + return typeaudio.ActivityStreamsAudioExtends(other) +} + +// ActivityStreamsActivityStreamsBlockExtends returns true if Block extends from +// the other's type. +func ActivityStreamsActivityStreamsBlockExtends(other vocab.Type) bool { + return typeblock.ActivityStreamsBlockExtends(other) +} + +// ActivityStreamsActivityStreamsCollectionExtends returns true if Collection +// extends from the other's type. +func ActivityStreamsActivityStreamsCollectionExtends(other vocab.Type) bool { + return typecollection.ActivityStreamsCollectionExtends(other) +} + +// ActivityStreamsActivityStreamsCollectionPageExtends returns true if +// CollectionPage extends from the other's type. +func ActivityStreamsActivityStreamsCollectionPageExtends(other vocab.Type) bool { + return typecollectionpage.ActivityStreamsCollectionPageExtends(other) +} + +// ActivityStreamsActivityStreamsCreateExtends returns true if Create extends from +// the other's type. +func ActivityStreamsActivityStreamsCreateExtends(other vocab.Type) bool { + return typecreate.ActivityStreamsCreateExtends(other) +} + +// ActivityStreamsActivityStreamsDeleteExtends returns true if Delete extends from +// the other's type. +func ActivityStreamsActivityStreamsDeleteExtends(other vocab.Type) bool { + return typedelete.ActivityStreamsDeleteExtends(other) +} + +// ActivityStreamsActivityStreamsDislikeExtends returns true if Dislike extends +// from the other's type. +func ActivityStreamsActivityStreamsDislikeExtends(other vocab.Type) bool { + return typedislike.ActivityStreamsDislikeExtends(other) +} + +// ActivityStreamsActivityStreamsDocumentExtends returns true if Document extends +// from the other's type. +func ActivityStreamsActivityStreamsDocumentExtends(other vocab.Type) bool { + return typedocument.ActivityStreamsDocumentExtends(other) +} + +// ActivityStreamsActivityStreamsEndpointsExtends returns true if Endpoints +// extends from the other's type. +func ActivityStreamsActivityStreamsEndpointsExtends(other vocab.Type) bool { + return typeendpoints.ActivityStreamsEndpointsExtends(other) +} + +// ActivityStreamsActivityStreamsEventExtends returns true if Event extends from +// the other's type. +func ActivityStreamsActivityStreamsEventExtends(other vocab.Type) bool { + return typeevent.ActivityStreamsEventExtends(other) +} + +// ActivityStreamsActivityStreamsFlagExtends returns true if Flag extends from the +// other's type. +func ActivityStreamsActivityStreamsFlagExtends(other vocab.Type) bool { + return typeflag.ActivityStreamsFlagExtends(other) +} + +// ActivityStreamsActivityStreamsFollowExtends returns true if Follow extends from +// the other's type. +func ActivityStreamsActivityStreamsFollowExtends(other vocab.Type) bool { + return typefollow.ActivityStreamsFollowExtends(other) +} + +// ActivityStreamsActivityStreamsGroupExtends returns true if Group extends from +// the other's type. +func ActivityStreamsActivityStreamsGroupExtends(other vocab.Type) bool { + return typegroup.ActivityStreamsGroupExtends(other) +} + +// ActivityStreamsActivityStreamsIgnoreExtends returns true if Ignore extends from +// the other's type. +func ActivityStreamsActivityStreamsIgnoreExtends(other vocab.Type) bool { + return typeignore.ActivityStreamsIgnoreExtends(other) +} + +// ActivityStreamsActivityStreamsImageExtends returns true if Image extends from +// the other's type. +func ActivityStreamsActivityStreamsImageExtends(other vocab.Type) bool { + return typeimage.ActivityStreamsImageExtends(other) +} + +// ActivityStreamsActivityStreamsIntransitiveActivityExtends returns true if +// IntransitiveActivity extends from the other's type. +func ActivityStreamsActivityStreamsIntransitiveActivityExtends(other vocab.Type) bool { + return typeintransitiveactivity.ActivityStreamsIntransitiveActivityExtends(other) +} + +// ActivityStreamsActivityStreamsInviteExtends returns true if Invite extends from +// the other's type. +func ActivityStreamsActivityStreamsInviteExtends(other vocab.Type) bool { + return typeinvite.ActivityStreamsInviteExtends(other) +} + +// ActivityStreamsActivityStreamsJoinExtends returns true if Join extends from the +// other's type. +func ActivityStreamsActivityStreamsJoinExtends(other vocab.Type) bool { + return typejoin.ActivityStreamsJoinExtends(other) +} + +// ActivityStreamsActivityStreamsLeaveExtends returns true if Leave extends from +// the other's type. +func ActivityStreamsActivityStreamsLeaveExtends(other vocab.Type) bool { + return typeleave.ActivityStreamsLeaveExtends(other) +} + +// ActivityStreamsActivityStreamsLikeExtends returns true if Like extends from the +// other's type. +func ActivityStreamsActivityStreamsLikeExtends(other vocab.Type) bool { + return typelike.ActivityStreamsLikeExtends(other) +} + +// ActivityStreamsActivityStreamsLinkExtends returns true if Link extends from the +// other's type. +func ActivityStreamsActivityStreamsLinkExtends(other vocab.Type) bool { + return typelink.ActivityStreamsLinkExtends(other) +} + +// ActivityStreamsActivityStreamsListenExtends returns true if Listen extends from +// the other's type. +func ActivityStreamsActivityStreamsListenExtends(other vocab.Type) bool { + return typelisten.ActivityStreamsListenExtends(other) +} + +// ActivityStreamsActivityStreamsMentionExtends returns true if Mention extends +// from the other's type. +func ActivityStreamsActivityStreamsMentionExtends(other vocab.Type) bool { + return typemention.ActivityStreamsMentionExtends(other) +} + +// ActivityStreamsActivityStreamsMoveExtends returns true if Move extends from the +// other's type. +func ActivityStreamsActivityStreamsMoveExtends(other vocab.Type) bool { + return typemove.ActivityStreamsMoveExtends(other) +} + +// ActivityStreamsActivityStreamsNoteExtends returns true if Note extends from the +// other's type. +func ActivityStreamsActivityStreamsNoteExtends(other vocab.Type) bool { + return typenote.ActivityStreamsNoteExtends(other) +} + +// ActivityStreamsActivityStreamsObjectExtends returns true if Object extends from +// the other's type. +func ActivityStreamsActivityStreamsObjectExtends(other vocab.Type) bool { + return typeobject.ActivityStreamsObjectExtends(other) +} + +// ActivityStreamsActivityStreamsOfferExtends returns true if Offer extends from +// the other's type. +func ActivityStreamsActivityStreamsOfferExtends(other vocab.Type) bool { + return typeoffer.ActivityStreamsOfferExtends(other) +} + +// ActivityStreamsActivityStreamsOrderedCollectionExtends returns true if +// OrderedCollection extends from the other's type. +func ActivityStreamsActivityStreamsOrderedCollectionExtends(other vocab.Type) bool { + return typeorderedcollection.ActivityStreamsOrderedCollectionExtends(other) +} + +// ActivityStreamsActivityStreamsOrderedCollectionPageExtends returns true if +// OrderedCollectionPage extends from the other's type. +func ActivityStreamsActivityStreamsOrderedCollectionPageExtends(other vocab.Type) bool { + return typeorderedcollectionpage.ActivityStreamsOrderedCollectionPageExtends(other) +} + +// ActivityStreamsActivityStreamsOrganizationExtends returns true if Organization +// extends from the other's type. +func ActivityStreamsActivityStreamsOrganizationExtends(other vocab.Type) bool { + return typeorganization.ActivityStreamsOrganizationExtends(other) +} + +// ActivityStreamsActivityStreamsPageExtends returns true if Page extends from the +// other's type. +func ActivityStreamsActivityStreamsPageExtends(other vocab.Type) bool { + return typepage.ActivityStreamsPageExtends(other) +} + +// ActivityStreamsActivityStreamsPersonExtends returns true if Person extends from +// the other's type. +func ActivityStreamsActivityStreamsPersonExtends(other vocab.Type) bool { + return typeperson.ActivityStreamsPersonExtends(other) +} + +// ActivityStreamsActivityStreamsPlaceExtends returns true if Place extends from +// the other's type. +func ActivityStreamsActivityStreamsPlaceExtends(other vocab.Type) bool { + return typeplace.ActivityStreamsPlaceExtends(other) +} + +// ActivityStreamsActivityStreamsProfileExtends returns true if Profile extends +// from the other's type. +func ActivityStreamsActivityStreamsProfileExtends(other vocab.Type) bool { + return typeprofile.ActivityStreamsProfileExtends(other) +} + +// ActivityStreamsActivityStreamsQuestionExtends returns true if Question extends +// from the other's type. +func ActivityStreamsActivityStreamsQuestionExtends(other vocab.Type) bool { + return typequestion.ActivityStreamsQuestionExtends(other) +} + +// ActivityStreamsActivityStreamsReadExtends returns true if Read extends from the +// other's type. +func ActivityStreamsActivityStreamsReadExtends(other vocab.Type) bool { + return typeread.ActivityStreamsReadExtends(other) +} + +// ActivityStreamsActivityStreamsRejectExtends returns true if Reject extends from +// the other's type. +func ActivityStreamsActivityStreamsRejectExtends(other vocab.Type) bool { + return typereject.ActivityStreamsRejectExtends(other) +} + +// ActivityStreamsActivityStreamsRelationshipExtends returns true if Relationship +// extends from the other's type. +func ActivityStreamsActivityStreamsRelationshipExtends(other vocab.Type) bool { + return typerelationship.ActivityStreamsRelationshipExtends(other) +} + +// ActivityStreamsActivityStreamsRemoveExtends returns true if Remove extends from +// the other's type. +func ActivityStreamsActivityStreamsRemoveExtends(other vocab.Type) bool { + return typeremove.ActivityStreamsRemoveExtends(other) +} + +// ActivityStreamsActivityStreamsServiceExtends returns true if Service extends +// from the other's type. +func ActivityStreamsActivityStreamsServiceExtends(other vocab.Type) bool { + return typeservice.ActivityStreamsServiceExtends(other) +} + +// ActivityStreamsActivityStreamsTentativeAcceptExtends returns true if +// TentativeAccept extends from the other's type. +func ActivityStreamsActivityStreamsTentativeAcceptExtends(other vocab.Type) bool { + return typetentativeaccept.ActivityStreamsTentativeAcceptExtends(other) +} + +// ActivityStreamsActivityStreamsTentativeRejectExtends returns true if +// TentativeReject extends from the other's type. +func ActivityStreamsActivityStreamsTentativeRejectExtends(other vocab.Type) bool { + return typetentativereject.ActivityStreamsTentativeRejectExtends(other) +} + +// ActivityStreamsActivityStreamsTombstoneExtends returns true if Tombstone +// extends from the other's type. +func ActivityStreamsActivityStreamsTombstoneExtends(other vocab.Type) bool { + return typetombstone.ActivityStreamsTombstoneExtends(other) +} + +// ActivityStreamsActivityStreamsTravelExtends returns true if Travel extends from +// the other's type. +func ActivityStreamsActivityStreamsTravelExtends(other vocab.Type) bool { + return typetravel.ActivityStreamsTravelExtends(other) +} + +// ActivityStreamsActivityStreamsUndoExtends returns true if Undo extends from the +// other's type. +func ActivityStreamsActivityStreamsUndoExtends(other vocab.Type) bool { + return typeundo.ActivityStreamsUndoExtends(other) +} + +// ActivityStreamsActivityStreamsUpdateExtends returns true if Update extends from +// the other's type. +func ActivityStreamsActivityStreamsUpdateExtends(other vocab.Type) bool { + return typeupdate.ActivityStreamsUpdateExtends(other) +} + +// ActivityStreamsActivityStreamsVideoExtends returns true if Video extends from +// the other's type. +func ActivityStreamsActivityStreamsVideoExtends(other vocab.Type) bool { + return typevideo.ActivityStreamsVideoExtends(other) +} + +// ActivityStreamsActivityStreamsViewExtends returns true if View extends from the +// other's type. +func ActivityStreamsActivityStreamsViewExtends(other vocab.Type) bool { + return typeview.ActivityStreamsViewExtends(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_isorextends.go new file mode 100644 index 000000000..6de450700 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_isorextends.go @@ -0,0 +1,395 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// IsOrExtendsActivityStreamsAccept returns true if the other provided type is the +// Accept type or extends from the Accept type. +func IsOrExtendsActivityStreamsAccept(other vocab.Type) bool { + return typeaccept.IsOrExtendsAccept(other) +} + +// IsOrExtendsActivityStreamsActivity returns true if the other provided type is +// the Activity type or extends from the Activity type. +func IsOrExtendsActivityStreamsActivity(other vocab.Type) bool { + return typeactivity.IsOrExtendsActivity(other) +} + +// IsOrExtendsActivityStreamsAdd returns true if the other provided type is the +// Add type or extends from the Add type. +func IsOrExtendsActivityStreamsAdd(other vocab.Type) bool { + return typeadd.IsOrExtendsAdd(other) +} + +// IsOrExtendsActivityStreamsAnnounce returns true if the other provided type is +// the Announce type or extends from the Announce type. +func IsOrExtendsActivityStreamsAnnounce(other vocab.Type) bool { + return typeannounce.IsOrExtendsAnnounce(other) +} + +// IsOrExtendsActivityStreamsApplication returns true if the other provided type +// is the Application type or extends from the Application type. +func IsOrExtendsActivityStreamsApplication(other vocab.Type) bool { + return typeapplication.IsOrExtendsApplication(other) +} + +// IsOrExtendsActivityStreamsArrive returns true if the other provided type is the +// Arrive type or extends from the Arrive type. +func IsOrExtendsActivityStreamsArrive(other vocab.Type) bool { + return typearrive.IsOrExtendsArrive(other) +} + +// IsOrExtendsActivityStreamsArticle returns true if the other provided type is +// the Article type or extends from the Article type. +func IsOrExtendsActivityStreamsArticle(other vocab.Type) bool { + return typearticle.IsOrExtendsArticle(other) +} + +// IsOrExtendsActivityStreamsAudio returns true if the other provided type is the +// Audio type or extends from the Audio type. +func IsOrExtendsActivityStreamsAudio(other vocab.Type) bool { + return typeaudio.IsOrExtendsAudio(other) +} + +// IsOrExtendsActivityStreamsBlock returns true if the other provided type is the +// Block type or extends from the Block type. +func IsOrExtendsActivityStreamsBlock(other vocab.Type) bool { + return typeblock.IsOrExtendsBlock(other) +} + +// IsOrExtendsActivityStreamsCollection returns true if the other provided type is +// the Collection type or extends from the Collection type. +func IsOrExtendsActivityStreamsCollection(other vocab.Type) bool { + return typecollection.IsOrExtendsCollection(other) +} + +// IsOrExtendsActivityStreamsCollectionPage returns true if the other provided +// type is the CollectionPage type or extends from the CollectionPage type. +func IsOrExtendsActivityStreamsCollectionPage(other vocab.Type) bool { + return typecollectionpage.IsOrExtendsCollectionPage(other) +} + +// IsOrExtendsActivityStreamsCreate returns true if the other provided type is the +// Create type or extends from the Create type. +func IsOrExtendsActivityStreamsCreate(other vocab.Type) bool { + return typecreate.IsOrExtendsCreate(other) +} + +// IsOrExtendsActivityStreamsDelete returns true if the other provided type is the +// Delete type or extends from the Delete type. +func IsOrExtendsActivityStreamsDelete(other vocab.Type) bool { + return typedelete.IsOrExtendsDelete(other) +} + +// IsOrExtendsActivityStreamsDislike returns true if the other provided type is +// the Dislike type or extends from the Dislike type. +func IsOrExtendsActivityStreamsDislike(other vocab.Type) bool { + return typedislike.IsOrExtendsDislike(other) +} + +// IsOrExtendsActivityStreamsDocument returns true if the other provided type is +// the Document type or extends from the Document type. +func IsOrExtendsActivityStreamsDocument(other vocab.Type) bool { + return typedocument.IsOrExtendsDocument(other) +} + +// IsOrExtendsActivityStreamsEndpoints returns true if the other provided type is +// the Endpoints type or extends from the Endpoints type. +func IsOrExtendsActivityStreamsEndpoints(other vocab.Type) bool { + return typeendpoints.IsOrExtendsEndpoints(other) +} + +// IsOrExtendsActivityStreamsEvent returns true if the other provided type is the +// Event type or extends from the Event type. +func IsOrExtendsActivityStreamsEvent(other vocab.Type) bool { + return typeevent.IsOrExtendsEvent(other) +} + +// IsOrExtendsActivityStreamsFlag returns true if the other provided type is the +// Flag type or extends from the Flag type. +func IsOrExtendsActivityStreamsFlag(other vocab.Type) bool { + return typeflag.IsOrExtendsFlag(other) +} + +// IsOrExtendsActivityStreamsFollow returns true if the other provided type is the +// Follow type or extends from the Follow type. +func IsOrExtendsActivityStreamsFollow(other vocab.Type) bool { + return typefollow.IsOrExtendsFollow(other) +} + +// IsOrExtendsActivityStreamsGroup returns true if the other provided type is the +// Group type or extends from the Group type. +func IsOrExtendsActivityStreamsGroup(other vocab.Type) bool { + return typegroup.IsOrExtendsGroup(other) +} + +// IsOrExtendsActivityStreamsIgnore returns true if the other provided type is the +// Ignore type or extends from the Ignore type. +func IsOrExtendsActivityStreamsIgnore(other vocab.Type) bool { + return typeignore.IsOrExtendsIgnore(other) +} + +// IsOrExtendsActivityStreamsImage returns true if the other provided type is the +// Image type or extends from the Image type. +func IsOrExtendsActivityStreamsImage(other vocab.Type) bool { + return typeimage.IsOrExtendsImage(other) +} + +// IsOrExtendsActivityStreamsIntransitiveActivity returns true if the other +// provided type is the IntransitiveActivity type or extends from the +// IntransitiveActivity type. +func IsOrExtendsActivityStreamsIntransitiveActivity(other vocab.Type) bool { + return typeintransitiveactivity.IsOrExtendsIntransitiveActivity(other) +} + +// IsOrExtendsActivityStreamsInvite returns true if the other provided type is the +// Invite type or extends from the Invite type. +func IsOrExtendsActivityStreamsInvite(other vocab.Type) bool { + return typeinvite.IsOrExtendsInvite(other) +} + +// IsOrExtendsActivityStreamsJoin returns true if the other provided type is the +// Join type or extends from the Join type. +func IsOrExtendsActivityStreamsJoin(other vocab.Type) bool { + return typejoin.IsOrExtendsJoin(other) +} + +// IsOrExtendsActivityStreamsLeave returns true if the other provided type is the +// Leave type or extends from the Leave type. +func IsOrExtendsActivityStreamsLeave(other vocab.Type) bool { + return typeleave.IsOrExtendsLeave(other) +} + +// IsOrExtendsActivityStreamsLike returns true if the other provided type is the +// Like type or extends from the Like type. +func IsOrExtendsActivityStreamsLike(other vocab.Type) bool { + return typelike.IsOrExtendsLike(other) +} + +// IsOrExtendsActivityStreamsLink returns true if the other provided type is the +// Link type or extends from the Link type. +func IsOrExtendsActivityStreamsLink(other vocab.Type) bool { + return typelink.IsOrExtendsLink(other) +} + +// IsOrExtendsActivityStreamsListen returns true if the other provided type is the +// Listen type or extends from the Listen type. +func IsOrExtendsActivityStreamsListen(other vocab.Type) bool { + return typelisten.IsOrExtendsListen(other) +} + +// IsOrExtendsActivityStreamsMention returns true if the other provided type is +// the Mention type or extends from the Mention type. +func IsOrExtendsActivityStreamsMention(other vocab.Type) bool { + return typemention.IsOrExtendsMention(other) +} + +// IsOrExtendsActivityStreamsMove returns true if the other provided type is the +// Move type or extends from the Move type. +func IsOrExtendsActivityStreamsMove(other vocab.Type) bool { + return typemove.IsOrExtendsMove(other) +} + +// IsOrExtendsActivityStreamsNote returns true if the other provided type is the +// Note type or extends from the Note type. +func IsOrExtendsActivityStreamsNote(other vocab.Type) bool { + return typenote.IsOrExtendsNote(other) +} + +// IsOrExtendsActivityStreamsObject returns true if the other provided type is the +// Object type or extends from the Object type. +func IsOrExtendsActivityStreamsObject(other vocab.Type) bool { + return typeobject.IsOrExtendsObject(other) +} + +// IsOrExtendsActivityStreamsOffer returns true if the other provided type is the +// Offer type or extends from the Offer type. +func IsOrExtendsActivityStreamsOffer(other vocab.Type) bool { + return typeoffer.IsOrExtendsOffer(other) +} + +// IsOrExtendsActivityStreamsOrderedCollection returns true if the other provided +// type is the OrderedCollection type or extends from the OrderedCollection +// type. +func IsOrExtendsActivityStreamsOrderedCollection(other vocab.Type) bool { + return typeorderedcollection.IsOrExtendsOrderedCollection(other) +} + +// IsOrExtendsActivityStreamsOrderedCollectionPage returns true if the other +// provided type is the OrderedCollectionPage type or extends from the +// OrderedCollectionPage type. +func IsOrExtendsActivityStreamsOrderedCollectionPage(other vocab.Type) bool { + return typeorderedcollectionpage.IsOrExtendsOrderedCollectionPage(other) +} + +// IsOrExtendsActivityStreamsOrganization returns true if the other provided type +// is the Organization type or extends from the Organization type. +func IsOrExtendsActivityStreamsOrganization(other vocab.Type) bool { + return typeorganization.IsOrExtendsOrganization(other) +} + +// IsOrExtendsActivityStreamsPage returns true if the other provided type is the +// Page type or extends from the Page type. +func IsOrExtendsActivityStreamsPage(other vocab.Type) bool { + return typepage.IsOrExtendsPage(other) +} + +// IsOrExtendsActivityStreamsPerson returns true if the other provided type is the +// Person type or extends from the Person type. +func IsOrExtendsActivityStreamsPerson(other vocab.Type) bool { + return typeperson.IsOrExtendsPerson(other) +} + +// IsOrExtendsActivityStreamsPlace returns true if the other provided type is the +// Place type or extends from the Place type. +func IsOrExtendsActivityStreamsPlace(other vocab.Type) bool { + return typeplace.IsOrExtendsPlace(other) +} + +// IsOrExtendsActivityStreamsProfile returns true if the other provided type is +// the Profile type or extends from the Profile type. +func IsOrExtendsActivityStreamsProfile(other vocab.Type) bool { + return typeprofile.IsOrExtendsProfile(other) +} + +// IsOrExtendsActivityStreamsQuestion returns true if the other provided type is +// the Question type or extends from the Question type. +func IsOrExtendsActivityStreamsQuestion(other vocab.Type) bool { + return typequestion.IsOrExtendsQuestion(other) +} + +// IsOrExtendsActivityStreamsRead returns true if the other provided type is the +// Read type or extends from the Read type. +func IsOrExtendsActivityStreamsRead(other vocab.Type) bool { + return typeread.IsOrExtendsRead(other) +} + +// IsOrExtendsActivityStreamsReject returns true if the other provided type is the +// Reject type or extends from the Reject type. +func IsOrExtendsActivityStreamsReject(other vocab.Type) bool { + return typereject.IsOrExtendsReject(other) +} + +// IsOrExtendsActivityStreamsRelationship returns true if the other provided type +// is the Relationship type or extends from the Relationship type. +func IsOrExtendsActivityStreamsRelationship(other vocab.Type) bool { + return typerelationship.IsOrExtendsRelationship(other) +} + +// IsOrExtendsActivityStreamsRemove returns true if the other provided type is the +// Remove type or extends from the Remove type. +func IsOrExtendsActivityStreamsRemove(other vocab.Type) bool { + return typeremove.IsOrExtendsRemove(other) +} + +// IsOrExtendsActivityStreamsService returns true if the other provided type is +// the Service type or extends from the Service type. +func IsOrExtendsActivityStreamsService(other vocab.Type) bool { + return typeservice.IsOrExtendsService(other) +} + +// IsOrExtendsActivityStreamsTentativeAccept returns true if the other provided +// type is the TentativeAccept type or extends from the TentativeAccept type. +func IsOrExtendsActivityStreamsTentativeAccept(other vocab.Type) bool { + return typetentativeaccept.IsOrExtendsTentativeAccept(other) +} + +// IsOrExtendsActivityStreamsTentativeReject returns true if the other provided +// type is the TentativeReject type or extends from the TentativeReject type. +func IsOrExtendsActivityStreamsTentativeReject(other vocab.Type) bool { + return typetentativereject.IsOrExtendsTentativeReject(other) +} + +// IsOrExtendsActivityStreamsTombstone returns true if the other provided type is +// the Tombstone type or extends from the Tombstone type. +func IsOrExtendsActivityStreamsTombstone(other vocab.Type) bool { + return typetombstone.IsOrExtendsTombstone(other) +} + +// IsOrExtendsActivityStreamsTravel returns true if the other provided type is the +// Travel type or extends from the Travel type. +func IsOrExtendsActivityStreamsTravel(other vocab.Type) bool { + return typetravel.IsOrExtendsTravel(other) +} + +// IsOrExtendsActivityStreamsUndo returns true if the other provided type is the +// Undo type or extends from the Undo type. +func IsOrExtendsActivityStreamsUndo(other vocab.Type) bool { + return typeundo.IsOrExtendsUndo(other) +} + +// IsOrExtendsActivityStreamsUpdate returns true if the other provided type is the +// Update type or extends from the Update type. +func IsOrExtendsActivityStreamsUpdate(other vocab.Type) bool { + return typeupdate.IsOrExtendsUpdate(other) +} + +// IsOrExtendsActivityStreamsVideo returns true if the other provided type is the +// Video type or extends from the Video type. +func IsOrExtendsActivityStreamsVideo(other vocab.Type) bool { + return typevideo.IsOrExtendsVideo(other) +} + +// IsOrExtendsActivityStreamsView returns true if the other provided type is the +// View type or extends from the View type. +func IsOrExtendsActivityStreamsView(other vocab.Type) bool { + return typeview.IsOrExtendsView(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_property_constructors.go new file mode 100644 index 000000000..d9a949eac --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_property_constructors.go @@ -0,0 +1,546 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyaccuracy "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy" + propertyactor "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor" + propertyalsoknownas "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas" + propertyaltitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude" + propertyanyof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof" + propertyattachment "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment" + propertyattributedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto" + propertyaudience "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience" + propertybcc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc" + propertybto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto" + propertycc "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc" + propertyclosed "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed" + propertycontent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content" + propertycontext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context" + propertycurrent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current" + propertydeleted "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted" + propertydescribes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes" + propertyduration "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration" + propertyendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints" + propertyendtime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime" + propertyfirst "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first" + propertyfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers" + propertyfollowing "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following" + propertyformertype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype" + propertygenerator "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator" + propertyheight "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height" + propertyhref "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href" + propertyhreflang "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang" + propertyicon "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon" + propertyimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image" + propertyinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox" + propertyinreplyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto" + propertyinstrument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument" + propertyitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items" + propertylast "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last" + propertylatitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude" + propertyliked "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked" + propertylikes "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes" + propertylocation "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location" + propertylongitude "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude" + propertymanuallyapprovesfollowers "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" + propertymediatype "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype" + propertymovedto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto" + propertyname "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name" + propertynext "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next" + propertyobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object" + propertyoneof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof" + propertyordereditems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems" + propertyorigin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin" + propertyoutbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox" + propertypartof "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof" + propertypreferredusername "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername" + propertyprev "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev" + propertypreview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview" + propertypublished "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published" + propertyradius "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius" + propertyrel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel" + propertyrelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship" + propertyreplies "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies" + propertyresult "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result" + propertysensitive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive" + propertysharedinbox "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox" + propertyshares "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares" + propertysource "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source" + propertystartindex "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex" + propertystarttime "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime" + propertystreams "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams" + propertysubject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject" + propertysummary "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary" + propertytag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag" + propertytarget "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target" + propertyto "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to" + propertytotalitems "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems" + propertyunits "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units" + propertyupdated "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated" + propertyurl "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url" + propertywidth "code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewActivityStreamsActivityStreamsAccuracyProperty creates a new +// ActivityStreamsAccuracyProperty +func NewActivityStreamsAccuracyProperty() vocab.ActivityStreamsAccuracyProperty { + return propertyaccuracy.NewActivityStreamsAccuracyProperty() +} + +// NewActivityStreamsActivityStreamsActorProperty creates a new +// ActivityStreamsActorProperty +func NewActivityStreamsActorProperty() vocab.ActivityStreamsActorProperty { + return propertyactor.NewActivityStreamsActorProperty() +} + +// NewActivityStreamsActivityStreamsAlsoKnownAsProperty creates a new +// ActivityStreamsAlsoKnownAsProperty +func NewActivityStreamsAlsoKnownAsProperty() vocab.ActivityStreamsAlsoKnownAsProperty { + return propertyalsoknownas.NewActivityStreamsAlsoKnownAsProperty() +} + +// NewActivityStreamsActivityStreamsAltitudeProperty creates a new +// ActivityStreamsAltitudeProperty +func NewActivityStreamsAltitudeProperty() vocab.ActivityStreamsAltitudeProperty { + return propertyaltitude.NewActivityStreamsAltitudeProperty() +} + +// NewActivityStreamsActivityStreamsAnyOfProperty creates a new +// ActivityStreamsAnyOfProperty +func NewActivityStreamsAnyOfProperty() vocab.ActivityStreamsAnyOfProperty { + return propertyanyof.NewActivityStreamsAnyOfProperty() +} + +// NewActivityStreamsActivityStreamsAttachmentProperty creates a new +// ActivityStreamsAttachmentProperty +func NewActivityStreamsAttachmentProperty() vocab.ActivityStreamsAttachmentProperty { + return propertyattachment.NewActivityStreamsAttachmentProperty() +} + +// NewActivityStreamsActivityStreamsAttributedToProperty creates a new +// ActivityStreamsAttributedToProperty +func NewActivityStreamsAttributedToProperty() vocab.ActivityStreamsAttributedToProperty { + return propertyattributedto.NewActivityStreamsAttributedToProperty() +} + +// NewActivityStreamsActivityStreamsAudienceProperty creates a new +// ActivityStreamsAudienceProperty +func NewActivityStreamsAudienceProperty() vocab.ActivityStreamsAudienceProperty { + return propertyaudience.NewActivityStreamsAudienceProperty() +} + +// NewActivityStreamsActivityStreamsBccProperty creates a new +// ActivityStreamsBccProperty +func NewActivityStreamsBccProperty() vocab.ActivityStreamsBccProperty { + return propertybcc.NewActivityStreamsBccProperty() +} + +// NewActivityStreamsActivityStreamsBtoProperty creates a new +// ActivityStreamsBtoProperty +func NewActivityStreamsBtoProperty() vocab.ActivityStreamsBtoProperty { + return propertybto.NewActivityStreamsBtoProperty() +} + +// NewActivityStreamsActivityStreamsCcProperty creates a new +// ActivityStreamsCcProperty +func NewActivityStreamsCcProperty() vocab.ActivityStreamsCcProperty { + return propertycc.NewActivityStreamsCcProperty() +} + +// NewActivityStreamsActivityStreamsClosedProperty creates a new +// ActivityStreamsClosedProperty +func NewActivityStreamsClosedProperty() vocab.ActivityStreamsClosedProperty { + return propertyclosed.NewActivityStreamsClosedProperty() +} + +// NewActivityStreamsActivityStreamsContentProperty creates a new +// ActivityStreamsContentProperty +func NewActivityStreamsContentProperty() vocab.ActivityStreamsContentProperty { + return propertycontent.NewActivityStreamsContentProperty() +} + +// NewActivityStreamsActivityStreamsContextProperty creates a new +// ActivityStreamsContextProperty +func NewActivityStreamsContextProperty() vocab.ActivityStreamsContextProperty { + return propertycontext.NewActivityStreamsContextProperty() +} + +// NewActivityStreamsActivityStreamsCurrentProperty creates a new +// ActivityStreamsCurrentProperty +func NewActivityStreamsCurrentProperty() vocab.ActivityStreamsCurrentProperty { + return propertycurrent.NewActivityStreamsCurrentProperty() +} + +// NewActivityStreamsActivityStreamsDeletedProperty creates a new +// ActivityStreamsDeletedProperty +func NewActivityStreamsDeletedProperty() vocab.ActivityStreamsDeletedProperty { + return propertydeleted.NewActivityStreamsDeletedProperty() +} + +// NewActivityStreamsActivityStreamsDescribesProperty creates a new +// ActivityStreamsDescribesProperty +func NewActivityStreamsDescribesProperty() vocab.ActivityStreamsDescribesProperty { + return propertydescribes.NewActivityStreamsDescribesProperty() +} + +// NewActivityStreamsActivityStreamsDurationProperty creates a new +// ActivityStreamsDurationProperty +func NewActivityStreamsDurationProperty() vocab.ActivityStreamsDurationProperty { + return propertyduration.NewActivityStreamsDurationProperty() +} + +// NewActivityStreamsActivityStreamsEndTimeProperty creates a new +// ActivityStreamsEndTimeProperty +func NewActivityStreamsEndTimeProperty() vocab.ActivityStreamsEndTimeProperty { + return propertyendtime.NewActivityStreamsEndTimeProperty() +} + +// NewActivityStreamsActivityStreamsEndpointsProperty creates a new +// ActivityStreamsEndpointsProperty +func NewActivityStreamsEndpointsProperty() vocab.ActivityStreamsEndpointsProperty { + return propertyendpoints.NewActivityStreamsEndpointsProperty() +} + +// NewActivityStreamsActivityStreamsFirstProperty creates a new +// ActivityStreamsFirstProperty +func NewActivityStreamsFirstProperty() vocab.ActivityStreamsFirstProperty { + return propertyfirst.NewActivityStreamsFirstProperty() +} + +// NewActivityStreamsActivityStreamsFollowersProperty creates a new +// ActivityStreamsFollowersProperty +func NewActivityStreamsFollowersProperty() vocab.ActivityStreamsFollowersProperty { + return propertyfollowers.NewActivityStreamsFollowersProperty() +} + +// NewActivityStreamsActivityStreamsFollowingProperty creates a new +// ActivityStreamsFollowingProperty +func NewActivityStreamsFollowingProperty() vocab.ActivityStreamsFollowingProperty { + return propertyfollowing.NewActivityStreamsFollowingProperty() +} + +// NewActivityStreamsActivityStreamsFormerTypeProperty creates a new +// ActivityStreamsFormerTypeProperty +func NewActivityStreamsFormerTypeProperty() vocab.ActivityStreamsFormerTypeProperty { + return propertyformertype.NewActivityStreamsFormerTypeProperty() +} + +// NewActivityStreamsActivityStreamsGeneratorProperty creates a new +// ActivityStreamsGeneratorProperty +func NewActivityStreamsGeneratorProperty() vocab.ActivityStreamsGeneratorProperty { + return propertygenerator.NewActivityStreamsGeneratorProperty() +} + +// NewActivityStreamsActivityStreamsHeightProperty creates a new +// ActivityStreamsHeightProperty +func NewActivityStreamsHeightProperty() vocab.ActivityStreamsHeightProperty { + return propertyheight.NewActivityStreamsHeightProperty() +} + +// NewActivityStreamsActivityStreamsHrefProperty creates a new +// ActivityStreamsHrefProperty +func NewActivityStreamsHrefProperty() vocab.ActivityStreamsHrefProperty { + return propertyhref.NewActivityStreamsHrefProperty() +} + +// NewActivityStreamsActivityStreamsHreflangProperty creates a new +// ActivityStreamsHreflangProperty +func NewActivityStreamsHreflangProperty() vocab.ActivityStreamsHreflangProperty { + return propertyhreflang.NewActivityStreamsHreflangProperty() +} + +// NewActivityStreamsActivityStreamsIconProperty creates a new +// ActivityStreamsIconProperty +func NewActivityStreamsIconProperty() vocab.ActivityStreamsIconProperty { + return propertyicon.NewActivityStreamsIconProperty() +} + +// NewActivityStreamsActivityStreamsImageProperty creates a new +// ActivityStreamsImageProperty +func NewActivityStreamsImageProperty() vocab.ActivityStreamsImageProperty { + return propertyimage.NewActivityStreamsImageProperty() +} + +// NewActivityStreamsActivityStreamsInReplyToProperty creates a new +// ActivityStreamsInReplyToProperty +func NewActivityStreamsInReplyToProperty() vocab.ActivityStreamsInReplyToProperty { + return propertyinreplyto.NewActivityStreamsInReplyToProperty() +} + +// NewActivityStreamsActivityStreamsInboxProperty creates a new +// ActivityStreamsInboxProperty +func NewActivityStreamsInboxProperty() vocab.ActivityStreamsInboxProperty { + return propertyinbox.NewActivityStreamsInboxProperty() +} + +// NewActivityStreamsActivityStreamsInstrumentProperty creates a new +// ActivityStreamsInstrumentProperty +func NewActivityStreamsInstrumentProperty() vocab.ActivityStreamsInstrumentProperty { + return propertyinstrument.NewActivityStreamsInstrumentProperty() +} + +// NewActivityStreamsActivityStreamsItemsProperty creates a new +// ActivityStreamsItemsProperty +func NewActivityStreamsItemsProperty() vocab.ActivityStreamsItemsProperty { + return propertyitems.NewActivityStreamsItemsProperty() +} + +// NewActivityStreamsActivityStreamsLastProperty creates a new +// ActivityStreamsLastProperty +func NewActivityStreamsLastProperty() vocab.ActivityStreamsLastProperty { + return propertylast.NewActivityStreamsLastProperty() +} + +// NewActivityStreamsActivityStreamsLatitudeProperty creates a new +// ActivityStreamsLatitudeProperty +func NewActivityStreamsLatitudeProperty() vocab.ActivityStreamsLatitudeProperty { + return propertylatitude.NewActivityStreamsLatitudeProperty() +} + +// NewActivityStreamsActivityStreamsLikedProperty creates a new +// ActivityStreamsLikedProperty +func NewActivityStreamsLikedProperty() vocab.ActivityStreamsLikedProperty { + return propertyliked.NewActivityStreamsLikedProperty() +} + +// NewActivityStreamsActivityStreamsLikesProperty creates a new +// ActivityStreamsLikesProperty +func NewActivityStreamsLikesProperty() vocab.ActivityStreamsLikesProperty { + return propertylikes.NewActivityStreamsLikesProperty() +} + +// NewActivityStreamsActivityStreamsLocationProperty creates a new +// ActivityStreamsLocationProperty +func NewActivityStreamsLocationProperty() vocab.ActivityStreamsLocationProperty { + return propertylocation.NewActivityStreamsLocationProperty() +} + +// NewActivityStreamsActivityStreamsLongitudeProperty creates a new +// ActivityStreamsLongitudeProperty +func NewActivityStreamsLongitudeProperty() vocab.ActivityStreamsLongitudeProperty { + return propertylongitude.NewActivityStreamsLongitudeProperty() +} + +// NewActivityStreamsActivityStreamsManuallyApprovesFollowersProperty creates a +// new ActivityStreamsManuallyApprovesFollowersProperty +func NewActivityStreamsManuallyApprovesFollowersProperty() vocab.ActivityStreamsManuallyApprovesFollowersProperty { + return propertymanuallyapprovesfollowers.NewActivityStreamsManuallyApprovesFollowersProperty() +} + +// NewActivityStreamsActivityStreamsMediaTypeProperty creates a new +// ActivityStreamsMediaTypeProperty +func NewActivityStreamsMediaTypeProperty() vocab.ActivityStreamsMediaTypeProperty { + return propertymediatype.NewActivityStreamsMediaTypeProperty() +} + +// NewActivityStreamsActivityStreamsMovedToProperty creates a new +// ActivityStreamsMovedToProperty +func NewActivityStreamsMovedToProperty() vocab.ActivityStreamsMovedToProperty { + return propertymovedto.NewActivityStreamsMovedToProperty() +} + +// NewActivityStreamsActivityStreamsNameProperty creates a new +// ActivityStreamsNameProperty +func NewActivityStreamsNameProperty() vocab.ActivityStreamsNameProperty { + return propertyname.NewActivityStreamsNameProperty() +} + +// NewActivityStreamsActivityStreamsNextProperty creates a new +// ActivityStreamsNextProperty +func NewActivityStreamsNextProperty() vocab.ActivityStreamsNextProperty { + return propertynext.NewActivityStreamsNextProperty() +} + +// NewActivityStreamsActivityStreamsObjectProperty creates a new +// ActivityStreamsObjectProperty +func NewActivityStreamsObjectProperty() vocab.ActivityStreamsObjectProperty { + return propertyobject.NewActivityStreamsObjectProperty() +} + +// NewActivityStreamsActivityStreamsOneOfProperty creates a new +// ActivityStreamsOneOfProperty +func NewActivityStreamsOneOfProperty() vocab.ActivityStreamsOneOfProperty { + return propertyoneof.NewActivityStreamsOneOfProperty() +} + +// NewActivityStreamsActivityStreamsOrderedItemsProperty creates a new +// ActivityStreamsOrderedItemsProperty +func NewActivityStreamsOrderedItemsProperty() vocab.ActivityStreamsOrderedItemsProperty { + return propertyordereditems.NewActivityStreamsOrderedItemsProperty() +} + +// NewActivityStreamsActivityStreamsOriginProperty creates a new +// ActivityStreamsOriginProperty +func NewActivityStreamsOriginProperty() vocab.ActivityStreamsOriginProperty { + return propertyorigin.NewActivityStreamsOriginProperty() +} + +// NewActivityStreamsActivityStreamsOutboxProperty creates a new +// ActivityStreamsOutboxProperty +func NewActivityStreamsOutboxProperty() vocab.ActivityStreamsOutboxProperty { + return propertyoutbox.NewActivityStreamsOutboxProperty() +} + +// NewActivityStreamsActivityStreamsPartOfProperty creates a new +// ActivityStreamsPartOfProperty +func NewActivityStreamsPartOfProperty() vocab.ActivityStreamsPartOfProperty { + return propertypartof.NewActivityStreamsPartOfProperty() +} + +// NewActivityStreamsActivityStreamsPreferredUsernameProperty creates a new +// ActivityStreamsPreferredUsernameProperty +func NewActivityStreamsPreferredUsernameProperty() vocab.ActivityStreamsPreferredUsernameProperty { + return propertypreferredusername.NewActivityStreamsPreferredUsernameProperty() +} + +// NewActivityStreamsActivityStreamsPrevProperty creates a new +// ActivityStreamsPrevProperty +func NewActivityStreamsPrevProperty() vocab.ActivityStreamsPrevProperty { + return propertyprev.NewActivityStreamsPrevProperty() +} + +// NewActivityStreamsActivityStreamsPreviewProperty creates a new +// ActivityStreamsPreviewProperty +func NewActivityStreamsPreviewProperty() vocab.ActivityStreamsPreviewProperty { + return propertypreview.NewActivityStreamsPreviewProperty() +} + +// NewActivityStreamsActivityStreamsPublishedProperty creates a new +// ActivityStreamsPublishedProperty +func NewActivityStreamsPublishedProperty() vocab.ActivityStreamsPublishedProperty { + return propertypublished.NewActivityStreamsPublishedProperty() +} + +// NewActivityStreamsActivityStreamsRadiusProperty creates a new +// ActivityStreamsRadiusProperty +func NewActivityStreamsRadiusProperty() vocab.ActivityStreamsRadiusProperty { + return propertyradius.NewActivityStreamsRadiusProperty() +} + +// NewActivityStreamsActivityStreamsRelProperty creates a new +// ActivityStreamsRelProperty +func NewActivityStreamsRelProperty() vocab.ActivityStreamsRelProperty { + return propertyrel.NewActivityStreamsRelProperty() +} + +// NewActivityStreamsActivityStreamsRelationshipProperty creates a new +// ActivityStreamsRelationshipProperty +func NewActivityStreamsRelationshipProperty() vocab.ActivityStreamsRelationshipProperty { + return propertyrelationship.NewActivityStreamsRelationshipProperty() +} + +// NewActivityStreamsActivityStreamsRepliesProperty creates a new +// ActivityStreamsRepliesProperty +func NewActivityStreamsRepliesProperty() vocab.ActivityStreamsRepliesProperty { + return propertyreplies.NewActivityStreamsRepliesProperty() +} + +// NewActivityStreamsActivityStreamsResultProperty creates a new +// ActivityStreamsResultProperty +func NewActivityStreamsResultProperty() vocab.ActivityStreamsResultProperty { + return propertyresult.NewActivityStreamsResultProperty() +} + +// NewActivityStreamsActivityStreamsSensitiveProperty creates a new +// ActivityStreamsSensitiveProperty +func NewActivityStreamsSensitiveProperty() vocab.ActivityStreamsSensitiveProperty { + return propertysensitive.NewActivityStreamsSensitiveProperty() +} + +// NewActivityStreamsActivityStreamsSharedInboxProperty creates a new +// ActivityStreamsSharedInboxProperty +func NewActivityStreamsSharedInboxProperty() vocab.ActivityStreamsSharedInboxProperty { + return propertysharedinbox.NewActivityStreamsSharedInboxProperty() +} + +// NewActivityStreamsActivityStreamsSharesProperty creates a new +// ActivityStreamsSharesProperty +func NewActivityStreamsSharesProperty() vocab.ActivityStreamsSharesProperty { + return propertyshares.NewActivityStreamsSharesProperty() +} + +// NewActivityStreamsActivityStreamsSourceProperty creates a new +// ActivityStreamsSourceProperty +func NewActivityStreamsSourceProperty() vocab.ActivityStreamsSourceProperty { + return propertysource.NewActivityStreamsSourceProperty() +} + +// NewActivityStreamsActivityStreamsStartIndexProperty creates a new +// ActivityStreamsStartIndexProperty +func NewActivityStreamsStartIndexProperty() vocab.ActivityStreamsStartIndexProperty { + return propertystartindex.NewActivityStreamsStartIndexProperty() +} + +// NewActivityStreamsActivityStreamsStartTimeProperty creates a new +// ActivityStreamsStartTimeProperty +func NewActivityStreamsStartTimeProperty() vocab.ActivityStreamsStartTimeProperty { + return propertystarttime.NewActivityStreamsStartTimeProperty() +} + +// NewActivityStreamsActivityStreamsStreamsProperty creates a new +// ActivityStreamsStreamsProperty +func NewActivityStreamsStreamsProperty() vocab.ActivityStreamsStreamsProperty { + return propertystreams.NewActivityStreamsStreamsProperty() +} + +// NewActivityStreamsActivityStreamsSubjectProperty creates a new +// ActivityStreamsSubjectProperty +func NewActivityStreamsSubjectProperty() vocab.ActivityStreamsSubjectProperty { + return propertysubject.NewActivityStreamsSubjectProperty() +} + +// NewActivityStreamsActivityStreamsSummaryProperty creates a new +// ActivityStreamsSummaryProperty +func NewActivityStreamsSummaryProperty() vocab.ActivityStreamsSummaryProperty { + return propertysummary.NewActivityStreamsSummaryProperty() +} + +// NewActivityStreamsActivityStreamsTagProperty creates a new +// ActivityStreamsTagProperty +func NewActivityStreamsTagProperty() vocab.ActivityStreamsTagProperty { + return propertytag.NewActivityStreamsTagProperty() +} + +// NewActivityStreamsActivityStreamsTargetProperty creates a new +// ActivityStreamsTargetProperty +func NewActivityStreamsTargetProperty() vocab.ActivityStreamsTargetProperty { + return propertytarget.NewActivityStreamsTargetProperty() +} + +// NewActivityStreamsActivityStreamsToProperty creates a new +// ActivityStreamsToProperty +func NewActivityStreamsToProperty() vocab.ActivityStreamsToProperty { + return propertyto.NewActivityStreamsToProperty() +} + +// NewActivityStreamsActivityStreamsTotalItemsProperty creates a new +// ActivityStreamsTotalItemsProperty +func NewActivityStreamsTotalItemsProperty() vocab.ActivityStreamsTotalItemsProperty { + return propertytotalitems.NewActivityStreamsTotalItemsProperty() +} + +// NewActivityStreamsActivityStreamsUnitsProperty creates a new +// ActivityStreamsUnitsProperty +func NewActivityStreamsUnitsProperty() vocab.ActivityStreamsUnitsProperty { + return propertyunits.NewActivityStreamsUnitsProperty() +} + +// NewActivityStreamsActivityStreamsUpdatedProperty creates a new +// ActivityStreamsUpdatedProperty +func NewActivityStreamsUpdatedProperty() vocab.ActivityStreamsUpdatedProperty { + return propertyupdated.NewActivityStreamsUpdatedProperty() +} + +// NewActivityStreamsActivityStreamsUrlProperty creates a new +// ActivityStreamsUrlProperty +func NewActivityStreamsUrlProperty() vocab.ActivityStreamsUrlProperty { + return propertyurl.NewActivityStreamsUrlProperty() +} + +// NewActivityStreamsActivityStreamsWidthProperty creates a new +// ActivityStreamsWidthProperty +func NewActivityStreamsWidthProperty() vocab.ActivityStreamsWidthProperty { + return propertywidth.NewActivityStreamsWidthProperty() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_type_constructors.go new file mode 100644 index 000000000..0e5c3c8ab --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_activitystreams_type_constructors.go @@ -0,0 +1,340 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept" + typeactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity" + typeadd "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add" + typeannounce "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce" + typeapplication "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application" + typearrive "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive" + typearticle "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article" + typeaudio "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio" + typeblock "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block" + typecollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection" + typecollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage" + typecreate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create" + typedelete "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete" + typedislike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike" + typedocument "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document" + typeendpoints "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints" + typeevent "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event" + typeflag "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag" + typefollow "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow" + typegroup "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group" + typeignore "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore" + typeimage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image" + typeintransitiveactivity "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity" + typeinvite "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite" + typejoin "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join" + typeleave "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave" + typelike "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like" + typelink "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link" + typelisten "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen" + typemention "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention" + typemove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move" + typenote "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note" + typeobject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object" + typeoffer "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer" + typeorderedcollection "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection" + typeorderedcollectionpage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage" + typeorganization "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization" + typepage "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page" + typeperson "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person" + typeplace "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place" + typeprofile "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile" + typequestion "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question" + typeread "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read" + typereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject" + typerelationship "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship" + typeremove "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove" + typeservice "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service" + typetentativeaccept "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept" + typetentativereject "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject" + typetombstone "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone" + typetravel "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel" + typeundo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo" + typeupdate "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update" + typevideo "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video" + typeview "code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewActivityStreamsAccept creates a new ActivityStreamsAccept +func NewActivityStreamsAccept() vocab.ActivityStreamsAccept { + return typeaccept.NewActivityStreamsAccept() +} + +// NewActivityStreamsActivity creates a new ActivityStreamsActivity +func NewActivityStreamsActivity() vocab.ActivityStreamsActivity { + return typeactivity.NewActivityStreamsActivity() +} + +// NewActivityStreamsAdd creates a new ActivityStreamsAdd +func NewActivityStreamsAdd() vocab.ActivityStreamsAdd { + return typeadd.NewActivityStreamsAdd() +} + +// NewActivityStreamsAnnounce creates a new ActivityStreamsAnnounce +func NewActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { + return typeannounce.NewActivityStreamsAnnounce() +} + +// NewActivityStreamsApplication creates a new ActivityStreamsApplication +func NewActivityStreamsApplication() vocab.ActivityStreamsApplication { + return typeapplication.NewActivityStreamsApplication() +} + +// NewActivityStreamsArrive creates a new ActivityStreamsArrive +func NewActivityStreamsArrive() vocab.ActivityStreamsArrive { + return typearrive.NewActivityStreamsArrive() +} + +// NewActivityStreamsArticle creates a new ActivityStreamsArticle +func NewActivityStreamsArticle() vocab.ActivityStreamsArticle { + return typearticle.NewActivityStreamsArticle() +} + +// NewActivityStreamsAudio creates a new ActivityStreamsAudio +func NewActivityStreamsAudio() vocab.ActivityStreamsAudio { + return typeaudio.NewActivityStreamsAudio() +} + +// NewActivityStreamsBlock creates a new ActivityStreamsBlock +func NewActivityStreamsBlock() vocab.ActivityStreamsBlock { + return typeblock.NewActivityStreamsBlock() +} + +// NewActivityStreamsCollection creates a new ActivityStreamsCollection +func NewActivityStreamsCollection() vocab.ActivityStreamsCollection { + return typecollection.NewActivityStreamsCollection() +} + +// NewActivityStreamsCollectionPage creates a new ActivityStreamsCollectionPage +func NewActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { + return typecollectionpage.NewActivityStreamsCollectionPage() +} + +// NewActivityStreamsCreate creates a new ActivityStreamsCreate +func NewActivityStreamsCreate() vocab.ActivityStreamsCreate { + return typecreate.NewActivityStreamsCreate() +} + +// NewActivityStreamsDelete creates a new ActivityStreamsDelete +func NewActivityStreamsDelete() vocab.ActivityStreamsDelete { + return typedelete.NewActivityStreamsDelete() +} + +// NewActivityStreamsDislike creates a new ActivityStreamsDislike +func NewActivityStreamsDislike() vocab.ActivityStreamsDislike { + return typedislike.NewActivityStreamsDislike() +} + +// NewActivityStreamsDocument creates a new ActivityStreamsDocument +func NewActivityStreamsDocument() vocab.ActivityStreamsDocument { + return typedocument.NewActivityStreamsDocument() +} + +// NewActivityStreamsEndpoints creates a new ActivityStreamsEndpoints +func NewActivityStreamsEndpoints() vocab.ActivityStreamsEndpoints { + return typeendpoints.NewActivityStreamsEndpoints() +} + +// NewActivityStreamsEvent creates a new ActivityStreamsEvent +func NewActivityStreamsEvent() vocab.ActivityStreamsEvent { + return typeevent.NewActivityStreamsEvent() +} + +// NewActivityStreamsFlag creates a new ActivityStreamsFlag +func NewActivityStreamsFlag() vocab.ActivityStreamsFlag { + return typeflag.NewActivityStreamsFlag() +} + +// NewActivityStreamsFollow creates a new ActivityStreamsFollow +func NewActivityStreamsFollow() vocab.ActivityStreamsFollow { + return typefollow.NewActivityStreamsFollow() +} + +// NewActivityStreamsGroup creates a new ActivityStreamsGroup +func NewActivityStreamsGroup() vocab.ActivityStreamsGroup { + return typegroup.NewActivityStreamsGroup() +} + +// NewActivityStreamsIgnore creates a new ActivityStreamsIgnore +func NewActivityStreamsIgnore() vocab.ActivityStreamsIgnore { + return typeignore.NewActivityStreamsIgnore() +} + +// NewActivityStreamsImage creates a new ActivityStreamsImage +func NewActivityStreamsImage() vocab.ActivityStreamsImage { + return typeimage.NewActivityStreamsImage() +} + +// NewActivityStreamsIntransitiveActivity creates a new +// ActivityStreamsIntransitiveActivity +func NewActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { + return typeintransitiveactivity.NewActivityStreamsIntransitiveActivity() +} + +// NewActivityStreamsInvite creates a new ActivityStreamsInvite +func NewActivityStreamsInvite() vocab.ActivityStreamsInvite { + return typeinvite.NewActivityStreamsInvite() +} + +// NewActivityStreamsJoin creates a new ActivityStreamsJoin +func NewActivityStreamsJoin() vocab.ActivityStreamsJoin { + return typejoin.NewActivityStreamsJoin() +} + +// NewActivityStreamsLeave creates a new ActivityStreamsLeave +func NewActivityStreamsLeave() vocab.ActivityStreamsLeave { + return typeleave.NewActivityStreamsLeave() +} + +// NewActivityStreamsLike creates a new ActivityStreamsLike +func NewActivityStreamsLike() vocab.ActivityStreamsLike { + return typelike.NewActivityStreamsLike() +} + +// NewActivityStreamsLink creates a new ActivityStreamsLink +func NewActivityStreamsLink() vocab.ActivityStreamsLink { + return typelink.NewActivityStreamsLink() +} + +// NewActivityStreamsListen creates a new ActivityStreamsListen +func NewActivityStreamsListen() vocab.ActivityStreamsListen { + return typelisten.NewActivityStreamsListen() +} + +// NewActivityStreamsMention creates a new ActivityStreamsMention +func NewActivityStreamsMention() vocab.ActivityStreamsMention { + return typemention.NewActivityStreamsMention() +} + +// NewActivityStreamsMove creates a new ActivityStreamsMove +func NewActivityStreamsMove() vocab.ActivityStreamsMove { + return typemove.NewActivityStreamsMove() +} + +// NewActivityStreamsNote creates a new ActivityStreamsNote +func NewActivityStreamsNote() vocab.ActivityStreamsNote { + return typenote.NewActivityStreamsNote() +} + +// NewActivityStreamsObject creates a new ActivityStreamsObject +func NewActivityStreamsObject() vocab.ActivityStreamsObject { + return typeobject.NewActivityStreamsObject() +} + +// NewActivityStreamsOffer creates a new ActivityStreamsOffer +func NewActivityStreamsOffer() vocab.ActivityStreamsOffer { + return typeoffer.NewActivityStreamsOffer() +} + +// NewActivityStreamsOrderedCollection creates a new +// ActivityStreamsOrderedCollection +func NewActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return typeorderedcollection.NewActivityStreamsOrderedCollection() +} + +// NewActivityStreamsOrderedCollectionPage creates a new +// ActivityStreamsOrderedCollectionPage +func NewActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return typeorderedcollectionpage.NewActivityStreamsOrderedCollectionPage() +} + +// NewActivityStreamsOrganization creates a new ActivityStreamsOrganization +func NewActivityStreamsOrganization() vocab.ActivityStreamsOrganization { + return typeorganization.NewActivityStreamsOrganization() +} + +// NewActivityStreamsPage creates a new ActivityStreamsPage +func NewActivityStreamsPage() vocab.ActivityStreamsPage { + return typepage.NewActivityStreamsPage() +} + +// NewActivityStreamsPerson creates a new ActivityStreamsPerson +func NewActivityStreamsPerson() vocab.ActivityStreamsPerson { + return typeperson.NewActivityStreamsPerson() +} + +// NewActivityStreamsPlace creates a new ActivityStreamsPlace +func NewActivityStreamsPlace() vocab.ActivityStreamsPlace { + return typeplace.NewActivityStreamsPlace() +} + +// NewActivityStreamsProfile creates a new ActivityStreamsProfile +func NewActivityStreamsProfile() vocab.ActivityStreamsProfile { + return typeprofile.NewActivityStreamsProfile() +} + +// NewActivityStreamsQuestion creates a new ActivityStreamsQuestion +func NewActivityStreamsQuestion() vocab.ActivityStreamsQuestion { + return typequestion.NewActivityStreamsQuestion() +} + +// NewActivityStreamsRead creates a new ActivityStreamsRead +func NewActivityStreamsRead() vocab.ActivityStreamsRead { + return typeread.NewActivityStreamsRead() +} + +// NewActivityStreamsReject creates a new ActivityStreamsReject +func NewActivityStreamsReject() vocab.ActivityStreamsReject { + return typereject.NewActivityStreamsReject() +} + +// NewActivityStreamsRelationship creates a new ActivityStreamsRelationship +func NewActivityStreamsRelationship() vocab.ActivityStreamsRelationship { + return typerelationship.NewActivityStreamsRelationship() +} + +// NewActivityStreamsRemove creates a new ActivityStreamsRemove +func NewActivityStreamsRemove() vocab.ActivityStreamsRemove { + return typeremove.NewActivityStreamsRemove() +} + +// NewActivityStreamsService creates a new ActivityStreamsService +func NewActivityStreamsService() vocab.ActivityStreamsService { + return typeservice.NewActivityStreamsService() +} + +// NewActivityStreamsTentativeAccept creates a new ActivityStreamsTentativeAccept +func NewActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { + return typetentativeaccept.NewActivityStreamsTentativeAccept() +} + +// NewActivityStreamsTentativeReject creates a new ActivityStreamsTentativeReject +func NewActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { + return typetentativereject.NewActivityStreamsTentativeReject() +} + +// NewActivityStreamsTombstone creates a new ActivityStreamsTombstone +func NewActivityStreamsTombstone() vocab.ActivityStreamsTombstone { + return typetombstone.NewActivityStreamsTombstone() +} + +// NewActivityStreamsTravel creates a new ActivityStreamsTravel +func NewActivityStreamsTravel() vocab.ActivityStreamsTravel { + return typetravel.NewActivityStreamsTravel() +} + +// NewActivityStreamsUndo creates a new ActivityStreamsUndo +func NewActivityStreamsUndo() vocab.ActivityStreamsUndo { + return typeundo.NewActivityStreamsUndo() +} + +// NewActivityStreamsUpdate creates a new ActivityStreamsUpdate +func NewActivityStreamsUpdate() vocab.ActivityStreamsUpdate { + return typeupdate.NewActivityStreamsUpdate() +} + +// NewActivityStreamsVideo creates a new ActivityStreamsVideo +func NewActivityStreamsVideo() vocab.ActivityStreamsVideo { + return typevideo.NewActivityStreamsVideo() +} + +// NewActivityStreamsView creates a new ActivityStreamsView +func NewActivityStreamsView() vocab.ActivityStreamsView { + return typeview.NewActivityStreamsView() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_disjoint.go new file mode 100644 index 000000000..4314ba096 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_disjoint.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// FunkwhaleAlbumIsDisjointWith returns true if Album is disjoint with the other's +// type. +func FunkwhaleAlbumIsDisjointWith(other vocab.Type) bool { + return typealbum.AlbumIsDisjointWith(other) +} + +// FunkwhaleArtistIsDisjointWith returns true if Artist is disjoint with the +// other's type. +func FunkwhaleArtistIsDisjointWith(other vocab.Type) bool { + return typeartist.ArtistIsDisjointWith(other) +} + +// FunkwhaleLibraryIsDisjointWith returns true if Library is disjoint with the +// other's type. +func FunkwhaleLibraryIsDisjointWith(other vocab.Type) bool { + return typelibrary.LibraryIsDisjointWith(other) +} + +// FunkwhaleTrackIsDisjointWith returns true if Track is disjoint with the other's +// type. +func FunkwhaleTrackIsDisjointWith(other vocab.Type) bool { + return typetrack.TrackIsDisjointWith(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extendedby.go new file mode 100644 index 000000000..3e5e4d04e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extendedby.go @@ -0,0 +1,39 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// FunkwhaleAlbumIsExtendedBy returns true if the other's type extends from Album. +// Note that it returns false if the types are the same; see the "IsOrExtends" +// variant instead. +func FunkwhaleAlbumIsExtendedBy(other vocab.Type) bool { + return typealbum.AlbumIsExtendedBy(other) +} + +// FunkwhaleArtistIsExtendedBy returns true if the other's type extends from +// Artist. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func FunkwhaleArtistIsExtendedBy(other vocab.Type) bool { + return typeartist.ArtistIsExtendedBy(other) +} + +// FunkwhaleLibraryIsExtendedBy returns true if the other's type extends from +// Library. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func FunkwhaleLibraryIsExtendedBy(other vocab.Type) bool { + return typelibrary.LibraryIsExtendedBy(other) +} + +// FunkwhaleTrackIsExtendedBy returns true if the other's type extends from Track. +// Note that it returns false if the types are the same; see the "IsOrExtends" +// variant instead. +func FunkwhaleTrackIsExtendedBy(other vocab.Type) bool { + return typetrack.TrackIsExtendedBy(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extends.go new file mode 100644 index 000000000..714671a21 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_extends.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// FunkwhaleFunkwhaleAlbumExtends returns true if Album extends from the other's +// type. +func FunkwhaleFunkwhaleAlbumExtends(other vocab.Type) bool { + return typealbum.FunkwhaleAlbumExtends(other) +} + +// FunkwhaleFunkwhaleArtistExtends returns true if Artist extends from the other's +// type. +func FunkwhaleFunkwhaleArtistExtends(other vocab.Type) bool { + return typeartist.FunkwhaleArtistExtends(other) +} + +// FunkwhaleFunkwhaleLibraryExtends returns true if Library extends from the +// other's type. +func FunkwhaleFunkwhaleLibraryExtends(other vocab.Type) bool { + return typelibrary.FunkwhaleLibraryExtends(other) +} + +// FunkwhaleFunkwhaleTrackExtends returns true if Track extends from the other's +// type. +func FunkwhaleFunkwhaleTrackExtends(other vocab.Type) bool { + return typetrack.FunkwhaleTrackExtends(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_isorextends.go new file mode 100644 index 000000000..44ec0858c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_isorextends.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// IsOrExtendsFunkwhaleAlbum returns true if the other provided type is the Album +// type or extends from the Album type. +func IsOrExtendsFunkwhaleAlbum(other vocab.Type) bool { + return typealbum.IsOrExtendsAlbum(other) +} + +// IsOrExtendsFunkwhaleArtist returns true if the other provided type is the +// Artist type or extends from the Artist type. +func IsOrExtendsFunkwhaleArtist(other vocab.Type) bool { + return typeartist.IsOrExtendsArtist(other) +} + +// IsOrExtendsFunkwhaleLibrary returns true if the other provided type is the +// Library type or extends from the Library type. +func IsOrExtendsFunkwhaleLibrary(other vocab.Type) bool { + return typelibrary.IsOrExtendsLibrary(other) +} + +// IsOrExtendsFunkwhaleTrack returns true if the other provided type is the Track +// type or extends from the Track type. +func IsOrExtendsFunkwhaleTrack(other vocab.Type) bool { + return typetrack.IsOrExtendsTrack(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_type_constructors.go new file mode 100644 index 000000000..50155575c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_funkwhale_type_constructors.go @@ -0,0 +1,31 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typealbum "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album" + typeartist "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist" + typelibrary "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library" + typetrack "code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewFunkwhaleAlbum creates a new FunkwhaleAlbum +func NewFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return typealbum.NewFunkwhaleAlbum() +} + +// NewFunkwhaleArtist creates a new FunkwhaleArtist +func NewFunkwhaleArtist() vocab.FunkwhaleArtist { + return typeartist.NewFunkwhaleArtist() +} + +// NewFunkwhaleLibrary creates a new FunkwhaleLibrary +func NewFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return typelibrary.NewFunkwhaleLibrary() +} + +// NewFunkwhaleTrack creates a new FunkwhaleTrack +func NewFunkwhaleTrack() vocab.FunkwhaleTrack { + return typetrack.NewFunkwhaleTrack() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_disjoint.go new file mode 100644 index 000000000..31c55a559 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_disjoint.go @@ -0,0 +1,105 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// GoToSocialAnnounceApprovalIsDisjointWith returns true if AnnounceApproval is +// disjoint with the other's type. +func GoToSocialAnnounceApprovalIsDisjointWith(other vocab.Type) bool { + return typeannounceapproval.AnnounceApprovalIsDisjointWith(other) +} + +// GoToSocialAnnounceAuthorizationIsDisjointWith returns true if +// AnnounceAuthorization is disjoint with the other's type. +func GoToSocialAnnounceAuthorizationIsDisjointWith(other vocab.Type) bool { + return typeannounceauthorization.AnnounceAuthorizationIsDisjointWith(other) +} + +// GoToSocialAnnounceRequestIsDisjointWith returns true if AnnounceRequest is +// disjoint with the other's type. +func GoToSocialAnnounceRequestIsDisjointWith(other vocab.Type) bool { + return typeannouncerequest.AnnounceRequestIsDisjointWith(other) +} + +// GoToSocialCanAnnounceIsDisjointWith returns true if CanAnnounce is disjoint +// with the other's type. +func GoToSocialCanAnnounceIsDisjointWith(other vocab.Type) bool { + return typecanannounce.CanAnnounceIsDisjointWith(other) +} + +// GoToSocialCanLikeIsDisjointWith returns true if CanLike is disjoint with the +// other's type. +func GoToSocialCanLikeIsDisjointWith(other vocab.Type) bool { + return typecanlike.CanLikeIsDisjointWith(other) +} + +// GoToSocialCanQuoteIsDisjointWith returns true if CanQuote is disjoint with the +// other's type. +func GoToSocialCanQuoteIsDisjointWith(other vocab.Type) bool { + return typecanquote.CanQuoteIsDisjointWith(other) +} + +// GoToSocialCanReplyIsDisjointWith returns true if CanReply is disjoint with the +// other's type. +func GoToSocialCanReplyIsDisjointWith(other vocab.Type) bool { + return typecanreply.CanReplyIsDisjointWith(other) +} + +// GoToSocialInteractionPolicyIsDisjointWith returns true if InteractionPolicy is +// disjoint with the other's type. +func GoToSocialInteractionPolicyIsDisjointWith(other vocab.Type) bool { + return typeinteractionpolicy.InteractionPolicyIsDisjointWith(other) +} + +// GoToSocialLikeApprovalIsDisjointWith returns true if LikeApproval is disjoint +// with the other's type. +func GoToSocialLikeApprovalIsDisjointWith(other vocab.Type) bool { + return typelikeapproval.LikeApprovalIsDisjointWith(other) +} + +// GoToSocialLikeAuthorizationIsDisjointWith returns true if LikeAuthorization is +// disjoint with the other's type. +func GoToSocialLikeAuthorizationIsDisjointWith(other vocab.Type) bool { + return typelikeauthorization.LikeAuthorizationIsDisjointWith(other) +} + +// GoToSocialLikeRequestIsDisjointWith returns true if LikeRequest is disjoint +// with the other's type. +func GoToSocialLikeRequestIsDisjointWith(other vocab.Type) bool { + return typelikerequest.LikeRequestIsDisjointWith(other) +} + +// GoToSocialReplyApprovalIsDisjointWith returns true if ReplyApproval is disjoint +// with the other's type. +func GoToSocialReplyApprovalIsDisjointWith(other vocab.Type) bool { + return typereplyapproval.ReplyApprovalIsDisjointWith(other) +} + +// GoToSocialReplyAuthorizationIsDisjointWith returns true if ReplyAuthorization +// is disjoint with the other's type. +func GoToSocialReplyAuthorizationIsDisjointWith(other vocab.Type) bool { + return typereplyauthorization.ReplyAuthorizationIsDisjointWith(other) +} + +// GoToSocialReplyRequestIsDisjointWith returns true if ReplyRequest is disjoint +// with the other's type. +func GoToSocialReplyRequestIsDisjointWith(other vocab.Type) bool { + return typereplyrequest.ReplyRequestIsDisjointWith(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extendedby.go new file mode 100644 index 000000000..6fabac79f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extendedby.go @@ -0,0 +1,119 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// GoToSocialAnnounceApprovalIsExtendedBy returns true if the other's type extends +// from AnnounceApproval. Note that it returns false if the types are the +// same; see the "IsOrExtends" variant instead. +func GoToSocialAnnounceApprovalIsExtendedBy(other vocab.Type) bool { + return typeannounceapproval.AnnounceApprovalIsExtendedBy(other) +} + +// GoToSocialAnnounceAuthorizationIsExtendedBy returns true if the other's type +// extends from AnnounceAuthorization. Note that it returns false if the types +// are the same; see the "IsOrExtends" variant instead. +func GoToSocialAnnounceAuthorizationIsExtendedBy(other vocab.Type) bool { + return typeannounceauthorization.AnnounceAuthorizationIsExtendedBy(other) +} + +// GoToSocialAnnounceRequestIsExtendedBy returns true if the other's type extends +// from AnnounceRequest. Note that it returns false if the types are the same; +// see the "IsOrExtends" variant instead. +func GoToSocialAnnounceRequestIsExtendedBy(other vocab.Type) bool { + return typeannouncerequest.AnnounceRequestIsExtendedBy(other) +} + +// GoToSocialCanAnnounceIsExtendedBy returns true if the other's type extends from +// CanAnnounce. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func GoToSocialCanAnnounceIsExtendedBy(other vocab.Type) bool { + return typecanannounce.CanAnnounceIsExtendedBy(other) +} + +// GoToSocialCanLikeIsExtendedBy returns true if the other's type extends from +// CanLike. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func GoToSocialCanLikeIsExtendedBy(other vocab.Type) bool { + return typecanlike.CanLikeIsExtendedBy(other) +} + +// GoToSocialCanQuoteIsExtendedBy returns true if the other's type extends from +// CanQuote. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func GoToSocialCanQuoteIsExtendedBy(other vocab.Type) bool { + return typecanquote.CanQuoteIsExtendedBy(other) +} + +// GoToSocialCanReplyIsExtendedBy returns true if the other's type extends from +// CanReply. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func GoToSocialCanReplyIsExtendedBy(other vocab.Type) bool { + return typecanreply.CanReplyIsExtendedBy(other) +} + +// GoToSocialInteractionPolicyIsExtendedBy returns true if the other's type +// extends from InteractionPolicy. Note that it returns false if the types are +// the same; see the "IsOrExtends" variant instead. +func GoToSocialInteractionPolicyIsExtendedBy(other vocab.Type) bool { + return typeinteractionpolicy.InteractionPolicyIsExtendedBy(other) +} + +// GoToSocialLikeApprovalIsExtendedBy returns true if the other's type extends +// from LikeApproval. Note that it returns false if the types are the same; +// see the "IsOrExtends" variant instead. +func GoToSocialLikeApprovalIsExtendedBy(other vocab.Type) bool { + return typelikeapproval.LikeApprovalIsExtendedBy(other) +} + +// GoToSocialLikeAuthorizationIsExtendedBy returns true if the other's type +// extends from LikeAuthorization. Note that it returns false if the types are +// the same; see the "IsOrExtends" variant instead. +func GoToSocialLikeAuthorizationIsExtendedBy(other vocab.Type) bool { + return typelikeauthorization.LikeAuthorizationIsExtendedBy(other) +} + +// GoToSocialLikeRequestIsExtendedBy returns true if the other's type extends from +// LikeRequest. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func GoToSocialLikeRequestIsExtendedBy(other vocab.Type) bool { + return typelikerequest.LikeRequestIsExtendedBy(other) +} + +// GoToSocialReplyApprovalIsExtendedBy returns true if the other's type extends +// from ReplyApproval. Note that it returns false if the types are the same; +// see the "IsOrExtends" variant instead. +func GoToSocialReplyApprovalIsExtendedBy(other vocab.Type) bool { + return typereplyapproval.ReplyApprovalIsExtendedBy(other) +} + +// GoToSocialReplyAuthorizationIsExtendedBy returns true if the other's type +// extends from ReplyAuthorization. Note that it returns false if the types +// are the same; see the "IsOrExtends" variant instead. +func GoToSocialReplyAuthorizationIsExtendedBy(other vocab.Type) bool { + return typereplyauthorization.ReplyAuthorizationIsExtendedBy(other) +} + +// GoToSocialReplyRequestIsExtendedBy returns true if the other's type extends +// from ReplyRequest. Note that it returns false if the types are the same; +// see the "IsOrExtends" variant instead. +func GoToSocialReplyRequestIsExtendedBy(other vocab.Type) bool { + return typereplyrequest.ReplyRequestIsExtendedBy(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extends.go new file mode 100644 index 000000000..7401c2d51 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_extends.go @@ -0,0 +1,105 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// GoToSocialGoToSocialAnnounceApprovalExtends returns true if AnnounceApproval +// extends from the other's type. +func GoToSocialGoToSocialAnnounceApprovalExtends(other vocab.Type) bool { + return typeannounceapproval.GoToSocialAnnounceApprovalExtends(other) +} + +// GoToSocialGoToSocialAnnounceAuthorizationExtends returns true if +// AnnounceAuthorization extends from the other's type. +func GoToSocialGoToSocialAnnounceAuthorizationExtends(other vocab.Type) bool { + return typeannounceauthorization.GoToSocialAnnounceAuthorizationExtends(other) +} + +// GoToSocialGoToSocialAnnounceRequestExtends returns true if AnnounceRequest +// extends from the other's type. +func GoToSocialGoToSocialAnnounceRequestExtends(other vocab.Type) bool { + return typeannouncerequest.GoToSocialAnnounceRequestExtends(other) +} + +// GoToSocialGoToSocialCanAnnounceExtends returns true if CanAnnounce extends from +// the other's type. +func GoToSocialGoToSocialCanAnnounceExtends(other vocab.Type) bool { + return typecanannounce.GoToSocialCanAnnounceExtends(other) +} + +// GoToSocialGoToSocialCanLikeExtends returns true if CanLike extends from the +// other's type. +func GoToSocialGoToSocialCanLikeExtends(other vocab.Type) bool { + return typecanlike.GoToSocialCanLikeExtends(other) +} + +// GoToSocialGoToSocialCanQuoteExtends returns true if CanQuote extends from the +// other's type. +func GoToSocialGoToSocialCanQuoteExtends(other vocab.Type) bool { + return typecanquote.GoToSocialCanQuoteExtends(other) +} + +// GoToSocialGoToSocialCanReplyExtends returns true if CanReply extends from the +// other's type. +func GoToSocialGoToSocialCanReplyExtends(other vocab.Type) bool { + return typecanreply.GoToSocialCanReplyExtends(other) +} + +// GoToSocialGoToSocialInteractionPolicyExtends returns true if InteractionPolicy +// extends from the other's type. +func GoToSocialGoToSocialInteractionPolicyExtends(other vocab.Type) bool { + return typeinteractionpolicy.GoToSocialInteractionPolicyExtends(other) +} + +// GoToSocialGoToSocialLikeApprovalExtends returns true if LikeApproval extends +// from the other's type. +func GoToSocialGoToSocialLikeApprovalExtends(other vocab.Type) bool { + return typelikeapproval.GoToSocialLikeApprovalExtends(other) +} + +// GoToSocialGoToSocialLikeAuthorizationExtends returns true if LikeAuthorization +// extends from the other's type. +func GoToSocialGoToSocialLikeAuthorizationExtends(other vocab.Type) bool { + return typelikeauthorization.GoToSocialLikeAuthorizationExtends(other) +} + +// GoToSocialGoToSocialLikeRequestExtends returns true if LikeRequest extends from +// the other's type. +func GoToSocialGoToSocialLikeRequestExtends(other vocab.Type) bool { + return typelikerequest.GoToSocialLikeRequestExtends(other) +} + +// GoToSocialGoToSocialReplyApprovalExtends returns true if ReplyApproval extends +// from the other's type. +func GoToSocialGoToSocialReplyApprovalExtends(other vocab.Type) bool { + return typereplyapproval.GoToSocialReplyApprovalExtends(other) +} + +// GoToSocialGoToSocialReplyAuthorizationExtends returns true if +// ReplyAuthorization extends from the other's type. +func GoToSocialGoToSocialReplyAuthorizationExtends(other vocab.Type) bool { + return typereplyauthorization.GoToSocialReplyAuthorizationExtends(other) +} + +// GoToSocialGoToSocialReplyRequestExtends returns true if ReplyRequest extends +// from the other's type. +func GoToSocialGoToSocialReplyRequestExtends(other vocab.Type) bool { + return typereplyrequest.GoToSocialReplyRequestExtends(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_isorextends.go new file mode 100644 index 000000000..829a770b6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_isorextends.go @@ -0,0 +1,106 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// IsOrExtendsGoToSocialAnnounceApproval returns true if the other provided type +// is the AnnounceApproval type or extends from the AnnounceApproval type. +func IsOrExtendsGoToSocialAnnounceApproval(other vocab.Type) bool { + return typeannounceapproval.IsOrExtendsAnnounceApproval(other) +} + +// IsOrExtendsGoToSocialAnnounceAuthorization returns true if the other provided +// type is the AnnounceAuthorization type or extends from the +// AnnounceAuthorization type. +func IsOrExtendsGoToSocialAnnounceAuthorization(other vocab.Type) bool { + return typeannounceauthorization.IsOrExtendsAnnounceAuthorization(other) +} + +// IsOrExtendsGoToSocialAnnounceRequest returns true if the other provided type is +// the AnnounceRequest type or extends from the AnnounceRequest type. +func IsOrExtendsGoToSocialAnnounceRequest(other vocab.Type) bool { + return typeannouncerequest.IsOrExtendsAnnounceRequest(other) +} + +// IsOrExtendsGoToSocialCanAnnounce returns true if the other provided type is the +// CanAnnounce type or extends from the CanAnnounce type. +func IsOrExtendsGoToSocialCanAnnounce(other vocab.Type) bool { + return typecanannounce.IsOrExtendsCanAnnounce(other) +} + +// IsOrExtendsGoToSocialCanLike returns true if the other provided type is the +// CanLike type or extends from the CanLike type. +func IsOrExtendsGoToSocialCanLike(other vocab.Type) bool { + return typecanlike.IsOrExtendsCanLike(other) +} + +// IsOrExtendsGoToSocialCanQuote returns true if the other provided type is the +// CanQuote type or extends from the CanQuote type. +func IsOrExtendsGoToSocialCanQuote(other vocab.Type) bool { + return typecanquote.IsOrExtendsCanQuote(other) +} + +// IsOrExtendsGoToSocialCanReply returns true if the other provided type is the +// CanReply type or extends from the CanReply type. +func IsOrExtendsGoToSocialCanReply(other vocab.Type) bool { + return typecanreply.IsOrExtendsCanReply(other) +} + +// IsOrExtendsGoToSocialInteractionPolicy returns true if the other provided type +// is the InteractionPolicy type or extends from the InteractionPolicy type. +func IsOrExtendsGoToSocialInteractionPolicy(other vocab.Type) bool { + return typeinteractionpolicy.IsOrExtendsInteractionPolicy(other) +} + +// IsOrExtendsGoToSocialLikeApproval returns true if the other provided type is +// the LikeApproval type or extends from the LikeApproval type. +func IsOrExtendsGoToSocialLikeApproval(other vocab.Type) bool { + return typelikeapproval.IsOrExtendsLikeApproval(other) +} + +// IsOrExtendsGoToSocialLikeAuthorization returns true if the other provided type +// is the LikeAuthorization type or extends from the LikeAuthorization type. +func IsOrExtendsGoToSocialLikeAuthorization(other vocab.Type) bool { + return typelikeauthorization.IsOrExtendsLikeAuthorization(other) +} + +// IsOrExtendsGoToSocialLikeRequest returns true if the other provided type is the +// LikeRequest type or extends from the LikeRequest type. +func IsOrExtendsGoToSocialLikeRequest(other vocab.Type) bool { + return typelikerequest.IsOrExtendsLikeRequest(other) +} + +// IsOrExtendsGoToSocialReplyApproval returns true if the other provided type is +// the ReplyApproval type or extends from the ReplyApproval type. +func IsOrExtendsGoToSocialReplyApproval(other vocab.Type) bool { + return typereplyapproval.IsOrExtendsReplyApproval(other) +} + +// IsOrExtendsGoToSocialReplyAuthorization returns true if the other provided type +// is the ReplyAuthorization type or extends from the ReplyAuthorization type. +func IsOrExtendsGoToSocialReplyAuthorization(other vocab.Type) bool { + return typereplyauthorization.IsOrExtendsReplyAuthorization(other) +} + +// IsOrExtendsGoToSocialReplyRequest returns true if the other provided type is +// the ReplyRequest type or extends from the ReplyRequest type. +func IsOrExtendsGoToSocialReplyRequest(other vocab.Type) bool { + return typereplyrequest.IsOrExtendsReplyRequest(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_property_constructors.go new file mode 100644 index 000000000..152beb5a4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_property_constructors.go @@ -0,0 +1,87 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyalways "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always" + propertyapprovalrequired "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired" + propertyapprovedby "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby" + propertyautomaticapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval" + propertycanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce" + propertycanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike" + propertycanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote" + propertycanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply" + propertyinteractingobject "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject" + propertyinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy" + propertyinteractiontarget "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget" + propertymanualapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewGoToSocialGoToSocialAlwaysProperty creates a new GoToSocialAlwaysProperty +func NewGoToSocialAlwaysProperty() vocab.GoToSocialAlwaysProperty { + return propertyalways.NewGoToSocialAlwaysProperty() +} + +// NewGoToSocialGoToSocialApprovalRequiredProperty creates a new +// GoToSocialApprovalRequiredProperty +func NewGoToSocialApprovalRequiredProperty() vocab.GoToSocialApprovalRequiredProperty { + return propertyapprovalrequired.NewGoToSocialApprovalRequiredProperty() +} + +// NewGoToSocialGoToSocialApprovedByProperty creates a new +// GoToSocialApprovedByProperty +func NewGoToSocialApprovedByProperty() vocab.GoToSocialApprovedByProperty { + return propertyapprovedby.NewGoToSocialApprovedByProperty() +} + +// NewGoToSocialGoToSocialAutomaticApprovalProperty creates a new +// GoToSocialAutomaticApprovalProperty +func NewGoToSocialAutomaticApprovalProperty() vocab.GoToSocialAutomaticApprovalProperty { + return propertyautomaticapproval.NewGoToSocialAutomaticApprovalProperty() +} + +// NewGoToSocialGoToSocialCanAnnounceProperty creates a new +// GoToSocialCanAnnounceProperty +func NewGoToSocialCanAnnounceProperty() vocab.GoToSocialCanAnnounceProperty { + return propertycanannounce.NewGoToSocialCanAnnounceProperty() +} + +// NewGoToSocialGoToSocialCanLikeProperty creates a new GoToSocialCanLikeProperty +func NewGoToSocialCanLikeProperty() vocab.GoToSocialCanLikeProperty { + return propertycanlike.NewGoToSocialCanLikeProperty() +} + +// NewGoToSocialGoToSocialCanQuoteProperty creates a new GoToSocialCanQuoteProperty +func NewGoToSocialCanQuoteProperty() vocab.GoToSocialCanQuoteProperty { + return propertycanquote.NewGoToSocialCanQuoteProperty() +} + +// NewGoToSocialGoToSocialCanReplyProperty creates a new GoToSocialCanReplyProperty +func NewGoToSocialCanReplyProperty() vocab.GoToSocialCanReplyProperty { + return propertycanreply.NewGoToSocialCanReplyProperty() +} + +// NewGoToSocialGoToSocialInteractingObjectProperty creates a new +// GoToSocialInteractingObjectProperty +func NewGoToSocialInteractingObjectProperty() vocab.GoToSocialInteractingObjectProperty { + return propertyinteractingobject.NewGoToSocialInteractingObjectProperty() +} + +// NewGoToSocialGoToSocialInteractionPolicyProperty creates a new +// GoToSocialInteractionPolicyProperty +func NewGoToSocialInteractionPolicyProperty() vocab.GoToSocialInteractionPolicyProperty { + return propertyinteractionpolicy.NewGoToSocialInteractionPolicyProperty() +} + +// NewGoToSocialGoToSocialInteractionTargetProperty creates a new +// GoToSocialInteractionTargetProperty +func NewGoToSocialInteractionTargetProperty() vocab.GoToSocialInteractionTargetProperty { + return propertyinteractiontarget.NewGoToSocialInteractionTargetProperty() +} + +// NewGoToSocialGoToSocialManualApprovalProperty creates a new +// GoToSocialManualApprovalProperty +func NewGoToSocialManualApprovalProperty() vocab.GoToSocialManualApprovalProperty { + return propertymanualapproval.NewGoToSocialManualApprovalProperty() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_type_constructors.go new file mode 100644 index 000000000..98400d004 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_gotosocial_type_constructors.go @@ -0,0 +1,91 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeannounceapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval" + typeannounceauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization" + typeannouncerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest" + typecanannounce "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce" + typecanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike" + typecanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote" + typecanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply" + typeinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy" + typelikeapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval" + typelikeauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization" + typelikerequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest" + typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval" + typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization" + typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewGoToSocialAnnounceApproval creates a new GoToSocialAnnounceApproval +func NewGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return typeannounceapproval.NewGoToSocialAnnounceApproval() +} + +// NewGoToSocialAnnounceAuthorization creates a new GoToSocialAnnounceAuthorization +func NewGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return typeannounceauthorization.NewGoToSocialAnnounceAuthorization() +} + +// NewGoToSocialAnnounceRequest creates a new GoToSocialAnnounceRequest +func NewGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return typeannouncerequest.NewGoToSocialAnnounceRequest() +} + +// NewGoToSocialCanAnnounce creates a new GoToSocialCanAnnounce +func NewGoToSocialCanAnnounce() vocab.GoToSocialCanAnnounce { + return typecanannounce.NewGoToSocialCanAnnounce() +} + +// NewGoToSocialCanLike creates a new GoToSocialCanLike +func NewGoToSocialCanLike() vocab.GoToSocialCanLike { + return typecanlike.NewGoToSocialCanLike() +} + +// NewGoToSocialCanQuote creates a new GoToSocialCanQuote +func NewGoToSocialCanQuote() vocab.GoToSocialCanQuote { + return typecanquote.NewGoToSocialCanQuote() +} + +// NewGoToSocialCanReply creates a new GoToSocialCanReply +func NewGoToSocialCanReply() vocab.GoToSocialCanReply { + return typecanreply.NewGoToSocialCanReply() +} + +// NewGoToSocialInteractionPolicy creates a new GoToSocialInteractionPolicy +func NewGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicy { + return typeinteractionpolicy.NewGoToSocialInteractionPolicy() +} + +// NewGoToSocialLikeApproval creates a new GoToSocialLikeApproval +func NewGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return typelikeapproval.NewGoToSocialLikeApproval() +} + +// NewGoToSocialLikeAuthorization creates a new GoToSocialLikeAuthorization +func NewGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return typelikeauthorization.NewGoToSocialLikeAuthorization() +} + +// NewGoToSocialLikeRequest creates a new GoToSocialLikeRequest +func NewGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return typelikerequest.NewGoToSocialLikeRequest() +} + +// NewGoToSocialReplyApproval creates a new GoToSocialReplyApproval +func NewGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return typereplyapproval.NewGoToSocialReplyApproval() +} + +// NewGoToSocialReplyAuthorization creates a new GoToSocialReplyAuthorization +func NewGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return typereplyauthorization.NewGoToSocialReplyAuthorization() +} + +// NewGoToSocialReplyRequest creates a new GoToSocialReplyRequest +func NewGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return typereplyrequest.NewGoToSocialReplyRequest() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_jsonld_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_jsonld_property_constructors.go new file mode 100644 index 000000000..7ed424159 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_jsonld_property_constructors.go @@ -0,0 +1,19 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyid "code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id" + propertytype "code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewJSONLDJSONLDTypeProperty creates a new JSONLDTypeProperty +func NewJSONLDTypeProperty() vocab.JSONLDTypeProperty { + return propertytype.NewJSONLDTypeProperty() +} + +// NewJSONLDJSONLDIdProperty creates a new JSONLDIdProperty +func NewJSONLDIdProperty() vocab.JSONLDIdProperty { + return propertyid.NewJSONLDIdProperty() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_disjoint.go new file mode 100644 index 000000000..5b92c9948 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_disjoint.go @@ -0,0 +1,14 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// SchemaPropertyValueIsDisjointWith returns true if PropertyValue is disjoint +// with the other's type. +func SchemaPropertyValueIsDisjointWith(other vocab.Type) bool { + return typepropertyvalue.PropertyValueIsDisjointWith(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extendedby.go new file mode 100644 index 000000000..fb590453c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extendedby.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// SchemaPropertyValueIsExtendedBy returns true if the other's type extends from +// PropertyValue. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func SchemaPropertyValueIsExtendedBy(other vocab.Type) bool { + return typepropertyvalue.PropertyValueIsExtendedBy(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extends.go new file mode 100644 index 000000000..2ad4f4621 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_extends.go @@ -0,0 +1,14 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// SchemaSchemaPropertyValueExtends returns true if PropertyValue extends from the +// other's type. +func SchemaSchemaPropertyValueExtends(other vocab.Type) bool { + return typepropertyvalue.SchemaPropertyValueExtends(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_isorextends.go new file mode 100644 index 000000000..66efa613a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_isorextends.go @@ -0,0 +1,14 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// IsOrExtendsSchemaPropertyValue returns true if the other provided type is the +// PropertyValue type or extends from the PropertyValue type. +func IsOrExtendsSchemaPropertyValue(other vocab.Type) bool { + return typepropertyvalue.IsOrExtendsPropertyValue(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_property_constructors.go new file mode 100644 index 000000000..93bb0e292 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_property_constructors.go @@ -0,0 +1,13 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/property_value" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewSchemaSchemaValueProperty creates a new SchemaValueProperty +func NewSchemaValueProperty() vocab.SchemaValueProperty { + return propertyvalue.NewSchemaValueProperty() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_type_constructors.go new file mode 100644 index 000000000..37f5ce7e8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_schema_type_constructors.go @@ -0,0 +1,13 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewSchemaPropertyValue creates a new SchemaPropertyValue +func NewSchemaPropertyValue() vocab.SchemaPropertyValue { + return typepropertyvalue.NewSchemaPropertyValue() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_disjoint.go new file mode 100644 index 000000000..b0368fcab --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_disjoint.go @@ -0,0 +1,27 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// TootEmojiIsDisjointWith returns true if Emoji is disjoint with the other's type. +func TootEmojiIsDisjointWith(other vocab.Type) bool { + return typeemoji.EmojiIsDisjointWith(other) +} + +// TootHashtagIsDisjointWith returns true if Hashtag is disjoint with the other's +// type. +func TootHashtagIsDisjointWith(other vocab.Type) bool { + return typehashtag.HashtagIsDisjointWith(other) +} + +// TootIdentityProofIsDisjointWith returns true if IdentityProof is disjoint with +// the other's type. +func TootIdentityProofIsDisjointWith(other vocab.Type) bool { + return typeidentityproof.IdentityProofIsDisjointWith(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extendedby.go new file mode 100644 index 000000000..400671c03 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extendedby.go @@ -0,0 +1,31 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// TootEmojiIsExtendedBy returns true if the other's type extends from Emoji. Note +// that it returns false if the types are the same; see the "IsOrExtends" +// variant instead. +func TootEmojiIsExtendedBy(other vocab.Type) bool { + return typeemoji.EmojiIsExtendedBy(other) +} + +// TootHashtagIsExtendedBy returns true if the other's type extends from Hashtag. +// Note that it returns false if the types are the same; see the "IsOrExtends" +// variant instead. +func TootHashtagIsExtendedBy(other vocab.Type) bool { + return typehashtag.HashtagIsExtendedBy(other) +} + +// TootIdentityProofIsExtendedBy returns true if the other's type extends from +// IdentityProof. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func TootIdentityProofIsExtendedBy(other vocab.Type) bool { + return typeidentityproof.IdentityProofIsExtendedBy(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extends.go new file mode 100644 index 000000000..2c4fa1dd1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_extends.go @@ -0,0 +1,26 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// TootTootEmojiExtends returns true if Emoji extends from the other's type. +func TootTootEmojiExtends(other vocab.Type) bool { + return typeemoji.TootEmojiExtends(other) +} + +// TootTootHashtagExtends returns true if Hashtag extends from the other's type. +func TootTootHashtagExtends(other vocab.Type) bool { + return typehashtag.TootHashtagExtends(other) +} + +// TootTootIdentityProofExtends returns true if IdentityProof extends from the +// other's type. +func TootTootIdentityProofExtends(other vocab.Type) bool { + return typeidentityproof.TootIdentityProofExtends(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_isorextends.go new file mode 100644 index 000000000..75425f5ea --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_isorextends.go @@ -0,0 +1,28 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// IsOrExtendsTootEmoji returns true if the other provided type is the Emoji type +// or extends from the Emoji type. +func IsOrExtendsTootEmoji(other vocab.Type) bool { + return typeemoji.IsOrExtendsEmoji(other) +} + +// IsOrExtendsTootHashtag returns true if the other provided type is the Hashtag +// type or extends from the Hashtag type. +func IsOrExtendsTootHashtag(other vocab.Type) bool { + return typehashtag.IsOrExtendsHashtag(other) +} + +// IsOrExtendsTootIdentityProof returns true if the other provided type is the +// IdentityProof type or extends from the IdentityProof type. +func IsOrExtendsTootIdentityProof(other vocab.Type) bool { + return typeidentityproof.IsOrExtendsIdentityProof(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_property_constructors.go new file mode 100644 index 000000000..dc193534f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_property_constructors.go @@ -0,0 +1,56 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyblurhash "code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash" + propertydiscoverable "code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable" + propertyfeatured "code.superseriousbusiness.org/activity/streams/impl/toot/property_featured" + propertyfocalpoint "code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint" + propertyindexable "code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable" + propertysignaturealgorithm "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm" + propertysignaturevalue "code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue" + propertyvoterscount "code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewTootTootBlurhashProperty creates a new TootBlurhashProperty +func NewTootBlurhashProperty() vocab.TootBlurhashProperty { + return propertyblurhash.NewTootBlurhashProperty() +} + +// NewTootTootDiscoverableProperty creates a new TootDiscoverableProperty +func NewTootDiscoverableProperty() vocab.TootDiscoverableProperty { + return propertydiscoverable.NewTootDiscoverableProperty() +} + +// NewTootTootFeaturedProperty creates a new TootFeaturedProperty +func NewTootFeaturedProperty() vocab.TootFeaturedProperty { + return propertyfeatured.NewTootFeaturedProperty() +} + +// NewTootTootFocalPointProperty creates a new TootFocalPointProperty +func NewTootFocalPointProperty() vocab.TootFocalPointProperty { + return propertyfocalpoint.NewTootFocalPointProperty() +} + +// NewTootTootIndexableProperty creates a new TootIndexableProperty +func NewTootIndexableProperty() vocab.TootIndexableProperty { + return propertyindexable.NewTootIndexableProperty() +} + +// NewTootTootSignatureAlgorithmProperty creates a new +// TootSignatureAlgorithmProperty +func NewTootSignatureAlgorithmProperty() vocab.TootSignatureAlgorithmProperty { + return propertysignaturealgorithm.NewTootSignatureAlgorithmProperty() +} + +// NewTootTootSignatureValueProperty creates a new TootSignatureValueProperty +func NewTootSignatureValueProperty() vocab.TootSignatureValueProperty { + return propertysignaturevalue.NewTootSignatureValueProperty() +} + +// NewTootTootVotersCountProperty creates a new TootVotersCountProperty +func NewTootVotersCountProperty() vocab.TootVotersCountProperty { + return propertyvoterscount.NewTootVotersCountProperty() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_type_constructors.go new file mode 100644 index 000000000..1dbe5fa0d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_toot_type_constructors.go @@ -0,0 +1,25 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typeemoji "code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji" + typehashtag "code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag" + typeidentityproof "code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewTootEmoji creates a new TootEmoji +func NewTootEmoji() vocab.TootEmoji { + return typeemoji.NewTootEmoji() +} + +// NewTootHashtag creates a new TootHashtag +func NewTootHashtag() vocab.TootHashtag { + return typehashtag.NewTootHashtag() +} + +// NewTootIdentityProof creates a new TootIdentityProof +func NewTootIdentityProof() vocab.TootIdentityProof { + return typeidentityproof.NewTootIdentityProof() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go new file mode 100644 index 000000000..465a14b20 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go @@ -0,0 +1,14 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// W3IDSecurityV1PublicKeyIsDisjointWith returns true if PublicKey is disjoint +// with the other's type. +func W3IDSecurityV1PublicKeyIsDisjointWith(other vocab.Type) bool { + return typepublickey.PublicKeyIsDisjointWith(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go new file mode 100644 index 000000000..3ca0fddee --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// W3IDSecurityV1PublicKeyIsExtendedBy returns true if the other's type extends +// from PublicKey. Note that it returns false if the types are the same; see +// the "IsOrExtends" variant instead. +func W3IDSecurityV1PublicKeyIsExtendedBy(other vocab.Type) bool { + return typepublickey.PublicKeyIsExtendedBy(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extends.go new file mode 100644 index 000000000..781d8ac48 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_extends.go @@ -0,0 +1,14 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// W3IDSecurityV1W3IDSecurityV1PublicKeyExtends returns true if PublicKey extends +// from the other's type. +func W3IDSecurityV1W3IDSecurityV1PublicKeyExtends(other vocab.Type) bool { + return typepublickey.W3IDSecurityV1PublicKeyExtends(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go new file mode 100644 index 000000000..f77aeac21 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go @@ -0,0 +1,14 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// IsOrExtendsW3IDSecurityV1PublicKey returns true if the other provided type is +// the PublicKey type or extends from the PublicKey type. +func IsOrExtendsW3IDSecurityV1PublicKey(other vocab.Type) bool { + return typepublickey.IsOrExtendsPublicKey(other) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go new file mode 100644 index 000000000..fa9f7bab8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go @@ -0,0 +1,28 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + propertyowner "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner" + propertypublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey" + propertypublickeypem "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewW3IDSecurityV1W3IDSecurityV1OwnerProperty creates a new +// W3IDSecurityV1OwnerProperty +func NewW3IDSecurityV1OwnerProperty() vocab.W3IDSecurityV1OwnerProperty { + return propertyowner.NewW3IDSecurityV1OwnerProperty() +} + +// NewW3IDSecurityV1W3IDSecurityV1PublicKeyProperty creates a new +// W3IDSecurityV1PublicKeyProperty +func NewW3IDSecurityV1PublicKeyProperty() vocab.W3IDSecurityV1PublicKeyProperty { + return propertypublickey.NewW3IDSecurityV1PublicKeyProperty() +} + +// NewW3IDSecurityV1W3IDSecurityV1PublicKeyPemProperty creates a new +// W3IDSecurityV1PublicKeyPemProperty +func NewW3IDSecurityV1PublicKeyPemProperty() vocab.W3IDSecurityV1PublicKeyPemProperty { + return propertypublickeypem.NewW3IDSecurityV1PublicKeyPemProperty() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go new file mode 100644 index 000000000..72200cd82 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go @@ -0,0 +1,13 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typepublickey "code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey" + vocab "code.superseriousbusiness.org/activity/streams/vocab" +) + +// NewW3IDSecurityV1PublicKey creates a new W3IDSecurityV1PublicKey +func NewW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKey { + return typepublickey.NewW3IDSecurityV1PublicKey() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_resolver_utils.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_resolver_utils.go new file mode 100644 index 000000000..9a3f74a55 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_resolver_utils.go @@ -0,0 +1,289 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "context" + "errors" +) + +// ErrNoCallbackMatch indicates a Resolver could not match the ActivityStreams value to a callback function. +var ErrNoCallbackMatch error = errors.New("activity stream did not match the callback function") + +// ErrUnhandledType indicates that an ActivityStreams value has a type that is not handled by the code that has been generated. +var ErrUnhandledType error = errors.New("activity stream did not match any known types") + +// ErrPredicateUnmatched indicates that a predicate is accepting a type or interface that does not match an ActivityStreams value's type or interface. +var ErrPredicateUnmatched error = errors.New("activity stream did not match type demanded by predicate") + +// errCannotTypeAssertType indicates that the 'type' property returned by the ActivityStreams value cannot be type-asserted to its interface form. +var errCannotTypeAssertType error = errors.New("activity stream type cannot be asserted to its interface") + +// ActivityStreamsInterface represents any ActivityStream value code-generated by +// go-fed or compatible with the generated interfaces. +type ActivityStreamsInterface interface { + // GetTypeName returns the ActiivtyStreams value's type. + GetTypeName() string + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} + +// Resolver represents any TypeResolver. +type Resolver interface { + // Resolve will attempt to resolve an untyped ActivityStreams value into a + // Go concrete type. + Resolve(ctx context.Context, o ActivityStreamsInterface) error +} + +// IsUnmatchedErr is true when the error indicates that a Resolver was +// unsuccessful due to the ActivityStreams value not matching its callbacks or +// predicates. +func IsUnmatchedErr(err error) bool { + return err == ErrPredicateUnmatched || err == ErrUnhandledType || err == ErrNoCallbackMatch +} + +// ToType attempts to resolve the generic JSON map into a Type. +func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err error) { + var r *JSONResolver + r, err = NewJSONResolver(func(ctx context.Context, i vocab.ActivityStreamsAccept) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsActivity) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsAdd) error { + t = i + return nil + }, func(ctx context.Context, i vocab.FunkwhaleAlbum) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsAnnounce) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialAnnounceApproval) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialAnnounceAuthorization) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialAnnounceRequest) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsApplication) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsArrive) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsArticle) error { + t = i + return nil + }, func(ctx context.Context, i vocab.FunkwhaleArtist) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsAudio) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsBlock) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialCanAnnounce) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialCanLike) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialCanQuote) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialCanReply) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsCollection) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsCollectionPage) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsCreate) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsDelete) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsDislike) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsDocument) error { + t = i + return nil + }, func(ctx context.Context, i vocab.TootEmoji) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsEndpoints) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsEvent) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsFlag) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsFollow) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsGroup) error { + t = i + return nil + }, func(ctx context.Context, i vocab.TootHashtag) error { + t = i + return nil + }, func(ctx context.Context, i vocab.TootIdentityProof) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsIgnore) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsImage) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialInteractionPolicy) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsIntransitiveActivity) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsInvite) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsJoin) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsLeave) error { + t = i + return nil + }, func(ctx context.Context, i vocab.FunkwhaleLibrary) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsLike) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialLikeApproval) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialLikeAuthorization) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialLikeRequest) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsLink) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsListen) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsMention) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsMove) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsNote) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsObject) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsOffer) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsOrderedCollection) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsOrderedCollectionPage) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsOrganization) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsPage) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsPerson) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsPlace) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsProfile) error { + t = i + return nil + }, func(ctx context.Context, i vocab.SchemaPropertyValue) error { + t = i + return nil + }, func(ctx context.Context, i vocab.W3IDSecurityV1PublicKey) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsQuestion) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsRead) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsReject) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsRelationship) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsRemove) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialReplyApproval) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialReplyAuthorization) error { + t = i + return nil + }, func(ctx context.Context, i vocab.GoToSocialReplyRequest) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsService) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsTentativeAccept) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsTentativeReject) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsTombstone) error { + t = i + return nil + }, func(ctx context.Context, i vocab.FunkwhaleTrack) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsTravel) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsUndo) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsUpdate) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsVideo) error { + t = i + return nil + }, func(ctx context.Context, i vocab.ActivityStreamsView) error { + t = i + return nil + }) + if err != nil { + return + } + err = r.Resolve(c, m) + return +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_type_predicated_resolver.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_type_predicated_resolver.go new file mode 100644 index 000000000..4edf517e7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_type_predicated_resolver.go @@ -0,0 +1,1076 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "context" + "errors" +) + +// TypePredicatedResolver resolves ActivityStreams values if the value satisfies a +// predicate condition based on its type. +type TypePredicatedResolver struct { + delegate Resolver + predicate interface{} +} + +// NewTypePredicatedResolver creates a new Resolver that applies a predicate to an +// ActivityStreams value to determine whether to Resolve or not. The +// ActivityStreams value's type is examined to determine if the predicate can +// apply itself to the value. This guarantees the predicate will receive a +// concrete value whose underlying ActivityStreams type matches the concrete +// interface name. The predicate function must be of the form: +// +// func(context.Context, ) (bool, error) +// +// where TypeInterface is the code-generated interface for an ActivityStreams +// type. An error is returned if the predicate does not match this signature. +func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypePredicatedResolver, error) { + // The predicate must satisfy one known predicate function signature, or else we will generate a runtime error instead of silently fail. + switch predicate.(type) { + case func(context.Context, vocab.ActivityStreamsAccept) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsActivity) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsAdd) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.FunkwhaleAlbum) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceApproval) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceAuthorization) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceRequest) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsApplication) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsArrive) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsArticle) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.FunkwhaleArtist) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsAudio) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsBlock) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialCanAnnounce) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialCanLike) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialCanQuote) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialCanReply) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsCollection) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsCollectionPage) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsCreate) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsDelete) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsDislike) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsDocument) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.TootEmoji) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsEndpoints) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsEvent) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsFlag) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsFollow) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsGroup) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.TootHashtag) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.TootIdentityProof) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsIgnore) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsImage) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialInteractionPolicy) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsInvite) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsJoin) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsLeave) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.FunkwhaleLibrary) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsLike) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialLikeApproval) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialLikeAuthorization) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialLikeRequest) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsLink) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsListen) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsMention) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsMove) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsNote) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsObject) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsOffer) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsOrderedCollection) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsOrganization) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsPage) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsPerson) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsPlace) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsProfile) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.SchemaPropertyValue) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsQuestion) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsRead) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsReject) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsRelationship) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsRemove) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialReplyApproval) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialReplyAuthorization) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.GoToSocialReplyRequest) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsService) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsTentativeReject) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsTombstone) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.FunkwhaleTrack) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsTravel) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsUndo) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsUpdate) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsVideo) (bool, error): + // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.ActivityStreamsView) (bool, error): + // Do nothing, this predicate has a correct signature. + default: + return nil, errors.New("the predicate function is of the wrong signature and would never be called") + } + return &TypePredicatedResolver{ + delegate: delegate, + predicate: predicate, + }, nil +} + +// Apply uses a predicate to determine whether to resolve the ActivityStreams +// value. The predicate's signature is matched with the ActivityStreams +// value's type. This strictly assures that the predicate will only be passed +// ActivityStream objects whose type matches its interface. Returns an error +// if the ActivityStreams type does not match the predicate, is not a type +// handled by the generated code, or the resolver returns an error. Returns +// true if the predicate returned true. +func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsInterface) (bool, error) { + var predicatePasses bool + var err error + if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Accept" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAccept) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsAccept); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Activity" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsActivity) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsActivity); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Add" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAdd) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsAdd); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Album" { + if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleAlbum) (bool, error)); ok { + if v, ok := o.(vocab.FunkwhaleAlbum); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsAnnounce); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceApproval" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialAnnounceApproval) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialAnnounceApproval); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceAuthorization" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialAnnounceAuthorization); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceRequest" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialAnnounceRequest) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialAnnounceRequest); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsApplication) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsApplication); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Arrive" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsArrive) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsArrive); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Article" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsArticle) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsArticle); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Artist" { + if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleArtist) (bool, error)); ok { + if v, ok := o.(vocab.FunkwhaleArtist); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAudio) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsAudio); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Block" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsBlock) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsBlock); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanAnnounce" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanAnnounce) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialCanAnnounce); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanLike" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanLike) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialCanLike); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanQuote" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanQuote) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialCanQuote); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanReply" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanReply) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialCanReply); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollection) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsCollection); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "CollectionPage" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollectionPage) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCreate) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsCreate); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Delete" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDelete) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsDelete); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Dislike" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDislike) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsDislike); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Document" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDocument) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsDocument); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Emoji" { + if fn, ok := this.predicate.(func(context.Context, vocab.TootEmoji) (bool, error)); ok { + if v, ok := o.(vocab.TootEmoji); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Endpoints" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsEndpoints) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsEndpoints); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Event" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsEvent) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsEvent); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Flag" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsFlag) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsFlag); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Follow" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsFollow) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsFollow); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Group" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsGroup) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsGroup); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Hashtag" { + if fn, ok := this.predicate.(func(context.Context, vocab.TootHashtag) (bool, error)); ok { + if v, ok := o.(vocab.TootHashtag); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "IdentityProof" { + if fn, ok := this.predicate.(func(context.Context, vocab.TootIdentityProof) (bool, error)); ok { + if v, ok := o.(vocab.TootIdentityProof); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Ignore" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsIgnore) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsIgnore); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Image" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsImage) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsImage); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "InteractionPolicy" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialInteractionPolicy) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialInteractionPolicy); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "IntransitiveActivity" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Invite" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsInvite) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsInvite); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Join" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsJoin) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsJoin); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Leave" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLeave) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsLeave); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Library" { + if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleLibrary) (bool, error)); ok { + if v, ok := o.(vocab.FunkwhaleLibrary); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLike) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsLike); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeApproval" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialLikeApproval) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialLikeApproval); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeAuthorization" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialLikeAuthorization) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialLikeAuthorization); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeRequest" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialLikeRequest) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialLikeRequest); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLink) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsLink); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Listen" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsListen) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsListen); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Mention" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsMention) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsMention); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Move" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsMove) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsMove); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Note" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsNote) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsNote); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Object" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsObject) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsObject); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Offer" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOffer) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsOffer); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollection" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrderedCollection) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollectionPage" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Organization" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrganization) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsOrganization); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Page" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPage) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsPage); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Person" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPerson) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsPerson); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Place" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPlace) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsPlace); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Profile" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsProfile) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsProfile); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "http://schema.org" && o.GetTypeName() == "PropertyValue" { + if fn, ok := this.predicate.(func(context.Context, vocab.SchemaPropertyValue) (bool, error)); ok { + if v, ok := o.(vocab.SchemaPropertyValue); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" { + if fn, ok := this.predicate.(func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error)); ok { + if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsQuestion) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsQuestion); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Read" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRead) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsRead); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Reject" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsReject) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsReject); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Relationship" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRelationship) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsRelationship); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Remove" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRemove) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsRemove); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyApproval" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialReplyApproval) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialReplyApproval); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyAuthorization" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialReplyAuthorization) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialReplyAuthorization); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyRequest" { + if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialReplyRequest) (bool, error)); ok { + if v, ok := o.(vocab.GoToSocialReplyRequest); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsService) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsService); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeAccept" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeReject" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTentativeReject) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTombstone) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsTombstone); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Track" { + if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleTrack) (bool, error)); ok { + if v, ok := o.(vocab.FunkwhaleTrack); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTravel) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsTravel); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Undo" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsUndo) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsUndo); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Update" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsUpdate) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsUpdate); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Video" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsVideo) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsVideo); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "View" { + if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsView) (bool, error)); ok { + if v, ok := o.(vocab.ActivityStreamsView); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } + } else { + return false, ErrUnhandledType + } + if err != nil { + return predicatePasses, err + } + if predicatePasses { + return true, this.delegate.Resolve(ctx, o) + } else { + return false, nil + } +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/gen_type_resolver.go b/vendor/code.superseriousbusiness.org/activity/streams/gen_type_resolver.go new file mode 100644 index 000000000..07ff63a21 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/gen_type_resolver.go @@ -0,0 +1,909 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "context" + "errors" +) + +// TypeResolver resolves ActivityStreams values based on their type name. +type TypeResolver struct { + callbacks []interface{} +} + +// NewTypeResolver creates a new Resolver that examines the type of an +// ActivityStream value to determine what callback function to pass the +// concretely typed value. The callback is guaranteed to receive a value whose +// underlying ActivityStreams type matches the concrete interface name in its +// signature. The callback functions must be of the form: +// +// func(context.Context, ) error +// +// where TypeInterface is the code-generated interface for an ActivityStream +// type. An error is returned if a callback function does not match this +// signature. +func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { + for _, cb := range callbacks { + // Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail. + switch cb.(type) { + case func(context.Context, vocab.ActivityStreamsAccept) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsActivity) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsAdd) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleAlbum) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsAnnounce) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceApproval) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialAnnounceRequest) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsApplication) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsArrive) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsArticle) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleArtist) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsAudio) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsBlock) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialCanAnnounce) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialCanLike) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialCanQuote) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialCanReply) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsCollection) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsCollectionPage) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsCreate) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsDelete) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsDislike) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsDocument) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.TootEmoji) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsEndpoints) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsEvent) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsFlag) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsFollow) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsGroup) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.TootHashtag) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.TootIdentityProof) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsIgnore) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsImage) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialInteractionPolicy) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsInvite) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsJoin) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsLeave) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleLibrary) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsLike) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialLikeApproval) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialLikeAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialLikeRequest) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsLink) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsListen) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsMention) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsMove) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsNote) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsObject) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsOffer) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsOrderedCollection) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsOrganization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsPage) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsPerson) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsPlace) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsProfile) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.SchemaPropertyValue) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.W3IDSecurityV1PublicKey) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsQuestion) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsRead) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsReject) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsRelationship) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsRemove) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialReplyApproval) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialReplyAuthorization) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.GoToSocialReplyRequest) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsService) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsTentativeAccept) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsTentativeReject) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsTombstone) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleTrack) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsTravel) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsUndo) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsUpdate) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsVideo) error: + // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.ActivityStreamsView) error: + // Do nothing, this callback has a correct signature. + default: + return nil, errors.New("a callback function is of the wrong signature and would never be called") + } + } + return &TypeResolver{callbacks: callbacks}, nil +} + +// Resolve applies the first callback function whose signature accepts the +// ActivityStreams value's type. This strictly assures that the callback +// function will only be passed ActivityStream objects whose type matches its +// interface. Returns an error if the ActivityStreams type does not match +// callbackers, is not a type handled by the generated code, or the value +// passed in is not go-fed compatible. +func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface) error { + for _, i := range this.callbacks { + if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Accept" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAccept) error); ok { + if v, ok := o.(vocab.ActivityStreamsAccept); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Activity" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsActivity) error); ok { + if v, ok := o.(vocab.ActivityStreamsActivity); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Add" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAdd) error); ok { + if v, ok := o.(vocab.ActivityStreamsAdd); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Album" { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleAlbum) error); ok { + if v, ok := o.(vocab.FunkwhaleAlbum); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok { + if v, ok := o.(vocab.ActivityStreamsAnnounce); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceApproval" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceApproval) error); ok { + if v, ok := o.(vocab.GoToSocialAnnounceApproval); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceAuthorization" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) error); ok { + if v, ok := o.(vocab.GoToSocialAnnounceAuthorization); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceRequest" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceRequest) error); ok { + if v, ok := o.(vocab.GoToSocialAnnounceRequest); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok { + if v, ok := o.(vocab.ActivityStreamsApplication); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Arrive" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArrive) error); ok { + if v, ok := o.(vocab.ActivityStreamsArrive); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Article" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArticle) error); ok { + if v, ok := o.(vocab.ActivityStreamsArticle); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Artist" { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleArtist) error); ok { + if v, ok := o.(vocab.FunkwhaleArtist); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok { + if v, ok := o.(vocab.ActivityStreamsAudio); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Block" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsBlock) error); ok { + if v, ok := o.(vocab.ActivityStreamsBlock); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanAnnounce" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialCanAnnounce) error); ok { + if v, ok := o.(vocab.GoToSocialCanAnnounce); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanLike" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialCanLike) error); ok { + if v, ok := o.(vocab.GoToSocialCanLike); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanQuote" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialCanQuote) error); ok { + if v, ok := o.(vocab.GoToSocialCanQuote); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanReply" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialCanReply) error); ok { + if v, ok := o.(vocab.GoToSocialCanReply); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok { + if v, ok := o.(vocab.ActivityStreamsCollection); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "CollectionPage" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollectionPage) error); ok { + if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok { + if v, ok := o.(vocab.ActivityStreamsCreate); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Delete" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDelete) error); ok { + if v, ok := o.(vocab.ActivityStreamsDelete); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Dislike" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDislike) error); ok { + if v, ok := o.(vocab.ActivityStreamsDislike); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Document" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDocument) error); ok { + if v, ok := o.(vocab.ActivityStreamsDocument); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Emoji" { + if fn, ok := i.(func(context.Context, vocab.TootEmoji) error); ok { + if v, ok := o.(vocab.TootEmoji); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Endpoints" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEndpoints) error); ok { + if v, ok := o.(vocab.ActivityStreamsEndpoints); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Event" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEvent) error); ok { + if v, ok := o.(vocab.ActivityStreamsEvent); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Flag" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFlag) error); ok { + if v, ok := o.(vocab.ActivityStreamsFlag); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Follow" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFollow) error); ok { + if v, ok := o.(vocab.ActivityStreamsFollow); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Group" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsGroup) error); ok { + if v, ok := o.(vocab.ActivityStreamsGroup); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Hashtag" { + if fn, ok := i.(func(context.Context, vocab.TootHashtag) error); ok { + if v, ok := o.(vocab.TootHashtag); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "IdentityProof" { + if fn, ok := i.(func(context.Context, vocab.TootIdentityProof) error); ok { + if v, ok := o.(vocab.TootIdentityProof); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Ignore" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIgnore) error); ok { + if v, ok := o.(vocab.ActivityStreamsIgnore); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Image" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsImage) error); ok { + if v, ok := o.(vocab.ActivityStreamsImage); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "InteractionPolicy" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialInteractionPolicy) error); ok { + if v, ok := o.(vocab.GoToSocialInteractionPolicy); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "IntransitiveActivity" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error); ok { + if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Invite" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsInvite) error); ok { + if v, ok := o.(vocab.ActivityStreamsInvite); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Join" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsJoin) error); ok { + if v, ok := o.(vocab.ActivityStreamsJoin); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Leave" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLeave) error); ok { + if v, ok := o.(vocab.ActivityStreamsLeave); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Library" { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleLibrary) error); ok { + if v, ok := o.(vocab.FunkwhaleLibrary); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok { + if v, ok := o.(vocab.ActivityStreamsLike); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeApproval" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeApproval) error); ok { + if v, ok := o.(vocab.GoToSocialLikeApproval); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeAuthorization" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeAuthorization) error); ok { + if v, ok := o.(vocab.GoToSocialLikeAuthorization); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeRequest" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeRequest) error); ok { + if v, ok := o.(vocab.GoToSocialLikeRequest); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok { + if v, ok := o.(vocab.ActivityStreamsLink); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Listen" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsListen) error); ok { + if v, ok := o.(vocab.ActivityStreamsListen); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Mention" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMention) error); ok { + if v, ok := o.(vocab.ActivityStreamsMention); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Move" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMove) error); ok { + if v, ok := o.(vocab.ActivityStreamsMove); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Note" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsNote) error); ok { + if v, ok := o.(vocab.ActivityStreamsNote); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Object" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsObject) error); ok { + if v, ok := o.(vocab.ActivityStreamsObject); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Offer" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOffer) error); ok { + if v, ok := o.(vocab.ActivityStreamsOffer); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollection" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollection) error); ok { + if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollectionPage" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error); ok { + if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Organization" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrganization) error); ok { + if v, ok := o.(vocab.ActivityStreamsOrganization); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Page" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPage) error); ok { + if v, ok := o.(vocab.ActivityStreamsPage); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Person" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPerson) error); ok { + if v, ok := o.(vocab.ActivityStreamsPerson); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Place" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPlace) error); ok { + if v, ok := o.(vocab.ActivityStreamsPlace); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Profile" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsProfile) error); ok { + if v, ok := o.(vocab.ActivityStreamsProfile); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "http://schema.org" && o.GetTypeName() == "PropertyValue" { + if fn, ok := i.(func(context.Context, vocab.SchemaPropertyValue) error); ok { + if v, ok := o.(vocab.SchemaPropertyValue); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" { + if fn, ok := i.(func(context.Context, vocab.W3IDSecurityV1PublicKey) error); ok { + if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok { + if v, ok := o.(vocab.ActivityStreamsQuestion); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Read" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRead) error); ok { + if v, ok := o.(vocab.ActivityStreamsRead); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Reject" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsReject) error); ok { + if v, ok := o.(vocab.ActivityStreamsReject); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Relationship" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRelationship) error); ok { + if v, ok := o.(vocab.ActivityStreamsRelationship); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Remove" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRemove) error); ok { + if v, ok := o.(vocab.ActivityStreamsRemove); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyApproval" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyApproval) error); ok { + if v, ok := o.(vocab.GoToSocialReplyApproval); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyAuthorization" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyAuthorization) error); ok { + if v, ok := o.(vocab.GoToSocialReplyAuthorization); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyRequest" { + if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyRequest) error); ok { + if v, ok := o.(vocab.GoToSocialReplyRequest); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok { + if v, ok := o.(vocab.ActivityStreamsService); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeAccept" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeAccept) error); ok { + if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeReject" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeReject) error); ok { + if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok { + if v, ok := o.(vocab.ActivityStreamsTombstone); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Track" { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleTrack) error); ok { + if v, ok := o.(vocab.FunkwhaleTrack); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok { + if v, ok := o.(vocab.ActivityStreamsTravel); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Undo" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUndo) error); ok { + if v, ok := o.(vocab.ActivityStreamsUndo); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Update" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUpdate) error); ok { + if v, ok := o.(vocab.ActivityStreamsUpdate); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Video" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsVideo) error); ok { + if v, ok := o.(vocab.ActivityStreamsVideo); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "View" { + if fn, ok := i.(func(context.Context, vocab.ActivityStreamsView) error); ok { + if v, ok := o.(vocab.ActivityStreamsView); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } + } else { + return ErrUnhandledType + } + } + return ErrNoCallbackMatch +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go new file mode 100644 index 000000000..51987e2ba --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go new file mode 100644 index 000000000..5e3d5a700 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go new file mode 100644 index 000000000..1f51475f1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyaccuracy + +import ( + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_doc.go new file mode 100644 index 000000000..6dee21217 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go new file mode 100644 index 000000000..75edcc679 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyactor + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go new file mode 100644 index 000000000..9ebcc6db4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go @@ -0,0 +1,7985 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyactor + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsActorPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "actor". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "actor". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "actor". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "actor". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "actor". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "actor". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "actor". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "actor". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "actor". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "actor". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsActorProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go new file mode 100644 index 000000000..a3238c561 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyalsoknownas contains the implementation for the alsoKnownAs +// 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 propertyalsoknownas diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go new file mode 100644 index 000000000..4b6b308cd --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyalsoknownas + +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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go new file mode 100644 index 000000000..fb8cb302b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go @@ -0,0 +1,509 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyalsoknownas + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// ActivityStreamsAlsoKnownAsPropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type ActivityStreamsAlsoKnownAsPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.ActivityStreamsAlsoKnownAsProperty +} + +// NewActivityStreamsAlsoKnownAsPropertyIterator creates a new +// ActivityStreamsAlsoKnownAs property. +func NewActivityStreamsAlsoKnownAsPropertyIterator() *ActivityStreamsAlsoKnownAsPropertyIterator { + return &ActivityStreamsAlsoKnownAsPropertyIterator{alias: ""} +} + +// deserializeActivityStreamsAlsoKnownAsPropertyIterator creates an iterator from +// an element that has been unmarshalled from a text or binary format. +func deserializeActivityStreamsAlsoKnownAsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAlsoKnownAsPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &ActivityStreamsAlsoKnownAsPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &ActivityStreamsAlsoKnownAsPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this ActivityStreamsAlsoKnownAsPropertyIterator) 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 ActivityStreamsAlsoKnownAsPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this ActivityStreamsAlsoKnownAsPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this ActivityStreamsAlsoKnownAsPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this ActivityStreamsAlsoKnownAsPropertyIterator) 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 ActivityStreamsAlsoKnownAsPropertyIterator) 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 ActivityStreamsAlsoKnownAsPropertyIterator) 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 ActivityStreamsAlsoKnownAsPropertyIterator) LessThan(o vocab.ActivityStreamsAlsoKnownAsPropertyIterator) 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: "ActivityStreamsAlsoKnownAs". +func (this ActivityStreamsAlsoKnownAsPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ActivityStreamsAlsoKnownAs" + } else { + return "ActivityStreamsAlsoKnownAs" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this ActivityStreamsAlsoKnownAsPropertyIterator) Next() vocab.ActivityStreamsAlsoKnownAsPropertyIterator { + 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 ActivityStreamsAlsoKnownAsPropertyIterator) Prev() vocab.ActivityStreamsAlsoKnownAsPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *ActivityStreamsAlsoKnownAsPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ActivityStreamsAlsoKnownAsPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *ActivityStreamsAlsoKnownAsPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = 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 ActivityStreamsAlsoKnownAsPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// ActivityStreamsAlsoKnownAsProperty is the non-functional property +// "alsoKnownAs". It is permitted to have one or more values, and of different +// value types. +type ActivityStreamsAlsoKnownAsProperty struct { + properties []*ActivityStreamsAlsoKnownAsPropertyIterator + alias string +} + +// DeserializeAlsoKnownAsProperty creates a "alsoKnownAs" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeAlsoKnownAsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error) { + alias := "" + if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { + alias = a + } + propName := "alsoKnownAs" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "alsoKnownAs") + } + i, ok := m[propName] + + if ok { + this := &ActivityStreamsAlsoKnownAsProperty{ + alias: alias, + properties: []*ActivityStreamsAlsoKnownAsPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeActivityStreamsAlsoKnownAsPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeActivityStreamsAlsoKnownAsPropertyIterator(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 +} + +// NewActivityStreamsAlsoKnownAsProperty creates a new alsoKnownAs property. +func NewActivityStreamsAlsoKnownAsProperty() *ActivityStreamsAlsoKnownAsProperty { + return &ActivityStreamsAlsoKnownAsProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "alsoKnownAs" +func (this *ActivityStreamsAlsoKnownAsProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &ActivityStreamsAlsoKnownAsPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "alsoKnownAs". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAlsoKnownAsProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &ActivityStreamsAlsoKnownAsPropertyIterator{ + 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 ActivityStreamsAlsoKnownAsProperty) At(index int) vocab.ActivityStreamsAlsoKnownAsPropertyIterator { + 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 ActivityStreamsAlsoKnownAsProperty) Begin() vocab.ActivityStreamsAlsoKnownAsPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this ActivityStreamsAlsoKnownAsProperty) 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 ActivityStreamsAlsoKnownAsProperty) End() vocab.ActivityStreamsAlsoKnownAsPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "alsoKnownAs". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsAlsoKnownAsProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "alsoKnownAs". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAlsoKnownAsProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{ + 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 ActivityStreamsAlsoKnownAsProperty) 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 ActivityStreamsAlsoKnownAsProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "alsoKnownAs" property. +func (this ActivityStreamsAlsoKnownAsProperty) 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 ActivityStreamsAlsoKnownAsProperty) 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 anyuri.LessAnyURI(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 ActivityStreamsAlsoKnownAsProperty) LessThan(o vocab.ActivityStreamsAlsoKnownAsProperty) 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 ("alsoKnownAs") with any alias. +func (this ActivityStreamsAlsoKnownAsProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "alsoKnownAs" + } else { + return "alsoKnownAs" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "alsoKnownAs". +func (this *ActivityStreamsAlsoKnownAsProperty) PrependIRI(v *url.URL) { + this.properties = append([]*ActivityStreamsAlsoKnownAsPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "alsoKnownAs". Invalidates all iterators. +func (this *ActivityStreamsAlsoKnownAsProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*ActivityStreamsAlsoKnownAsPropertyIterator{{ + 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 +// "alsoKnownAs", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAlsoKnownAsProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &ActivityStreamsAlsoKnownAsPropertyIterator{} + 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 ActivityStreamsAlsoKnownAsProperty) 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 anyURI value to be at the specified index for the property +// "alsoKnownAs". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAlsoKnownAsProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "alsoKnownAs". Panics if the index is out of bounds. +func (this *ActivityStreamsAlsoKnownAsProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "alsoKnownAs" property. +func (this ActivityStreamsAlsoKnownAsProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_doc.go new file mode 100644 index 000000000..373eab307 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go new file mode 100644 index 000000000..2bfcb1ceb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go new file mode 100644 index 000000000..025cd61c7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyaltitude + +import ( + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_doc.go new file mode 100644 index 000000000..b962ff710 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go new file mode 100644 index 000000000..ad2be2ce6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyanyof + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go new file mode 100644 index 000000000..d4a22f0d4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go @@ -0,0 +1,7985 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyanyof + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsAnyOfPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "anyOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "anyOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "anyOf". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "anyOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "anyOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "anyOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "anyOf". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "anyOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "anyOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "anyOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAnyOfProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_doc.go new file mode 100644 index 000000000..997e74d36 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go new file mode 100644 index 000000000..29fb6634d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyattachment + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go new file mode 100644 index 000000000..81f56f071 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go @@ -0,0 +1,8001 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyattachment + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsAttachmentPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "attachment". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "attachment". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "attachment". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "attachment". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "attachment". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "attachment". Invalidates all +// iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go new file mode 100644 index 000000000..08c99c087 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go new file mode 100644 index 000000000..9755352c6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyattributedto + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go new file mode 100644 index 000000000..04267548b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go @@ -0,0 +1,8044 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyattributedto + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsAttributedToPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "attributedTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "attributedTo". Invalidates iterators +// that are traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "attributedTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "attributedTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "attributedTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "attributedTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "attributedTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "attributedTo". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "attributedTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "attributedTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "attributedTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "attributedTo". Invalidates all +// iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_doc.go new file mode 100644 index 000000000..0c4fc3e39 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go new file mode 100644 index 000000000..3e8f4ddcc --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyaudience + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go new file mode 100644 index 000000000..70280dd94 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go @@ -0,0 +1,7997 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyaudience + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsAudiencePropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "audience". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "audience". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "audience". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "audience". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "audience". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "audience". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "audience". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "audience". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "audience". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "audience". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAudienceProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "audience". Invalidates all +// iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_doc.go new file mode 100644 index 000000000..65292aaae --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go new file mode 100644 index 000000000..e3e71450c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertybcc + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go new file mode 100644 index 000000000..476472d9f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go @@ -0,0 +1,7979 @@ +// Code generated by astool. DO NOT EDIT. + +package propertybcc + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsBccPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "bcc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "bcc". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "bcc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "bcc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "bcc". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "bcc". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_doc.go new file mode 100644 index 000000000..d2ed4646a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go new file mode 100644 index 000000000..d2b265bcb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertybto + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go new file mode 100644 index 000000000..5bdb72cac --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go @@ -0,0 +1,7979 @@ +// Code generated by astool. DO NOT EDIT. + +package propertybto + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsBtoPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "bto". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "bto". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "bto". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "bto". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "bto". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "bto". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_doc.go new file mode 100644 index 000000000..59f1c6ce9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go new file mode 100644 index 000000000..e0ba13656 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycc + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go new file mode 100644 index 000000000..930063768 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go @@ -0,0 +1,7979 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycc + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsCcPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "cc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "cc". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "cc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "cc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "cc". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "cc". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_doc.go new file mode 100644 index 000000000..b98a695ac --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go new file mode 100644 index 000000000..1dfcf9653 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyclosed + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go new file mode 100644 index 000000000..d2ed32d7a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go @@ -0,0 +1,8195 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyclosed + +import ( + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsClosedPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 7 + } + if this.IsActivityStreamsAnnounce() { + return 8 + } + if this.IsGoToSocialAnnounceApproval() { + return 9 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 10 + } + if this.IsGoToSocialAnnounceRequest() { + return 11 + } + if this.IsActivityStreamsApplication() { + return 12 + } + if this.IsActivityStreamsArrive() { + return 13 + } + if this.IsActivityStreamsArticle() { + return 14 + } + if this.IsFunkwhaleArtist() { + return 15 + } + if this.IsActivityStreamsAudio() { + return 16 + } + if this.IsActivityStreamsBlock() { + return 17 + } + if this.IsActivityStreamsCollection() { + return 18 + } + if this.IsActivityStreamsCollectionPage() { + return 19 + } + if this.IsActivityStreamsCreate() { + return 20 + } + if this.IsActivityStreamsDelete() { + return 21 + } + if this.IsActivityStreamsDislike() { + return 22 + } + if this.IsActivityStreamsDocument() { + return 23 + } + if this.IsTootEmoji() { + return 24 + } + if this.IsActivityStreamsEvent() { + return 25 + } + if this.IsActivityStreamsFlag() { + return 26 + } + if this.IsActivityStreamsFollow() { + return 27 + } + if this.IsActivityStreamsGroup() { + return 28 + } + if this.IsTootHashtag() { + return 29 + } + if this.IsTootIdentityProof() { + return 30 + } + if this.IsActivityStreamsIgnore() { + return 31 + } + if this.IsActivityStreamsImage() { + return 32 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 33 + } + if this.IsActivityStreamsInvite() { + return 34 + } + if this.IsActivityStreamsJoin() { + return 35 + } + if this.IsActivityStreamsLeave() { + return 36 + } + if this.IsFunkwhaleLibrary() { + return 37 + } + if this.IsActivityStreamsLike() { + return 38 + } + if this.IsGoToSocialLikeApproval() { + return 39 + } + if this.IsGoToSocialLikeAuthorization() { + return 40 + } + if this.IsGoToSocialLikeRequest() { + return 41 + } + if this.IsActivityStreamsListen() { + return 42 + } + if this.IsActivityStreamsMention() { + return 43 + } + if this.IsActivityStreamsMove() { + return 44 + } + if this.IsActivityStreamsNote() { + return 45 + } + if this.IsActivityStreamsOffer() { + return 46 + } + if this.IsActivityStreamsOrderedCollection() { + return 47 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 48 + } + if this.IsActivityStreamsOrganization() { + return 49 + } + if this.IsActivityStreamsPage() { + return 50 + } + if this.IsActivityStreamsPerson() { + return 51 + } + if this.IsActivityStreamsPlace() { + return 52 + } + if this.IsActivityStreamsProfile() { + return 53 + } + if this.IsSchemaPropertyValue() { + return 54 + } + if this.IsActivityStreamsQuestion() { + return 55 + } + if this.IsActivityStreamsRead() { + return 56 + } + if this.IsActivityStreamsReject() { + return 57 + } + if this.IsActivityStreamsRelationship() { + return 58 + } + if this.IsActivityStreamsRemove() { + return 59 + } + if this.IsGoToSocialReplyApproval() { + return 60 + } + if this.IsGoToSocialReplyAuthorization() { + return 61 + } + if this.IsGoToSocialReplyRequest() { + return 62 + } + if this.IsActivityStreamsService() { + return 63 + } + if this.IsActivityStreamsTentativeAccept() { + return 64 + } + if this.IsActivityStreamsTentativeReject() { + return 65 + } + if this.IsActivityStreamsTombstone() { + return 66 + } + if this.IsFunkwhaleTrack() { + return 67 + } + if this.IsActivityStreamsTravel() { + return 68 + } + if this.IsActivityStreamsUndo() { + return 69 + } + if this.IsActivityStreamsUpdate() { + return 70 + } + if this.IsActivityStreamsVideo() { + return 71 + } + if this.IsActivityStreamsView() { + return 72 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "closed". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "closed". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "closed". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "closed". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "closed". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "closed". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "closed". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "closed". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "closed". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "closed". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsClosedProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 71 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 72 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_doc.go new file mode 100644 index 000000000..722a4a72e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_pkg.go new file mode 100644 index 000000000..8d2ea1607 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go new file mode 100644 index 000000000..e75a1daf9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go @@ -0,0 +1,668 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycontent + +import ( + langstring "code.superseriousbusiness.org/activity/streams/values/langString" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_doc.go new file mode 100644 index 000000000..b3d0a4934 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go new file mode 100644 index 000000000..cf30a8655 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycontext + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go new file mode 100644 index 000000000..590719bcd --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go @@ -0,0 +1,7996 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycontext + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsContextPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "context". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "context". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "context". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "context". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "context". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "context". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "context". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "context". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "context". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "context". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsContextProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_doc.go new file mode 100644 index 000000000..4e598e242 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_pkg.go new file mode 100644 index 000000000..7bd714c9b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_pkg.go @@ -0,0 +1,38 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycurrent + +import vocab "code.superseriousbusiness.org/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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go new file mode 100644 index 000000000..5dc583750 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go @@ -0,0 +1,404 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycurrent + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + tootHashtagMember vocab.TootHashtag + 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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsCurrentProperty{ + alias: alias, + tootHashtagMember: v, + } + 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.tootHashtagMember = 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsCurrentProperty) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsTootHashtag() || + 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsCurrentProperty) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsTootHashtag() { + return 2 + } + if this.IsActivityStreamsMention() { + return 3 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 4 + } + 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsCurrentProperty) SetTootHashtag(v vocab.TootHashtag) { + this.Clear() + this.tootHashtagMember = 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.TootHashtag); ok { + this.SetTootHashtag(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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_doc.go new file mode 100644 index 000000000..e774a6cd5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go new file mode 100644 index 000000000..37abebbad --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go new file mode 100644 index 000000000..52c15ca73 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydeleted + +import ( + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_doc.go new file mode 100644 index 000000000..5787b3500 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go new file mode 100644 index 000000000..5127ea951 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go @@ -0,0 +1,290 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydescribes + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go new file mode 100644 index 000000000..139e0a8b9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go @@ -0,0 +1,3301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydescribes + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + funkwhaleTrackMember: v, + } + 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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsDescribesProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + 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.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + this.IsActivityStreamsListen() || + this.IsActivityStreamsMove() || + this.IsActivityStreamsNote() || + this.IsActivityStreamsOffer() || + this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.IsActivityStreamsOrganization() || + this.IsActivityStreamsPage() || + this.IsActivityStreamsPerson() || + this.IsActivityStreamsPlace() || + this.IsActivityStreamsProfile() || + this.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsDescribesProperty) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsDescribesProperty) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsDescribesProperty) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsDescribesProperty) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 4 + } + if this.IsActivityStreamsAnnounce() { + return 5 + } + if this.IsGoToSocialAnnounceApproval() { + return 6 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 7 + } + if this.IsGoToSocialAnnounceRequest() { + return 8 + } + if this.IsActivityStreamsApplication() { + return 9 + } + if this.IsActivityStreamsArrive() { + return 10 + } + if this.IsActivityStreamsArticle() { + return 11 + } + if this.IsFunkwhaleArtist() { + return 12 + } + if this.IsActivityStreamsAudio() { + return 13 + } + if this.IsActivityStreamsBlock() { + return 14 + } + if this.IsActivityStreamsCollection() { + return 15 + } + if this.IsActivityStreamsCollectionPage() { + 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.IsFunkwhaleLibrary() { + return 33 + } + if this.IsActivityStreamsLike() { + return 34 + } + if this.IsGoToSocialLikeApproval() { + return 35 + } + if this.IsGoToSocialLikeAuthorization() { + return 36 + } + if this.IsGoToSocialLikeRequest() { + return 37 + } + if this.IsActivityStreamsListen() { + return 38 + } + if this.IsActivityStreamsMove() { + return 39 + } + if this.IsActivityStreamsNote() { + return 40 + } + if this.IsActivityStreamsOffer() { + return 41 + } + if this.IsActivityStreamsOrderedCollection() { + return 42 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 43 + } + if this.IsActivityStreamsOrganization() { + return 44 + } + if this.IsActivityStreamsPage() { + return 45 + } + if this.IsActivityStreamsPerson() { + return 46 + } + if this.IsActivityStreamsPlace() { + return 47 + } + if this.IsActivityStreamsProfile() { + return 48 + } + if this.IsSchemaPropertyValue() { + return 49 + } + if this.IsActivityStreamsQuestion() { + return 50 + } + if this.IsActivityStreamsRead() { + return 51 + } + if this.IsActivityStreamsReject() { + return 52 + } + if this.IsActivityStreamsRelationship() { + return 53 + } + if this.IsActivityStreamsRemove() { + return 54 + } + if this.IsGoToSocialReplyApproval() { + return 55 + } + if this.IsGoToSocialReplyAuthorization() { + return 56 + } + if this.IsGoToSocialReplyRequest() { + return 57 + } + if this.IsActivityStreamsService() { + return 58 + } + if this.IsActivityStreamsTentativeAccept() { + return 59 + } + if this.IsActivityStreamsTentativeReject() { + return 60 + } + if this.IsActivityStreamsTombstone() { + return 61 + } + if this.IsFunkwhaleTrack() { + return 62 + } + if this.IsActivityStreamsTravel() { + return 63 + } + if this.IsActivityStreamsUndo() { + return 64 + } + if this.IsActivityStreamsUpdate() { + return 65 + } + if this.IsActivityStreamsVideo() { + return 66 + } + if this.IsActivityStreamsView() { + return 67 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.Clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.Clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.Clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.Clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.Clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.Clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.Clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.Clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.Clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.Clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.Clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.Clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.Clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.Clear() + this.schemaPropertyValueMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_doc.go new file mode 100644 index 000000000..3ebc4df92 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_pkg.go new file mode 100644 index 000000000..3c6cd3f05 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go new file mode 100644 index 000000000..a25557352 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyduration + +import ( + duration "code.superseriousbusiness.org/activity/streams/values/duration" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go new file mode 100644 index 000000000..36d3706c8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyendpoints contains the implementation for the endpoints +// 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 propertyendpoints diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go new file mode 100644 index 000000000..23f9aa498 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyendpoints + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeEndpointsActivityStreams returns the deserialization method + // for the "ActivityStreamsEndpoints" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeEndpointsActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpoints, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go new file mode 100644 index 000000000..dcdd5878e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go @@ -0,0 +1,621 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyendpoints + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// ActivityStreamsEndpointsPropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type ActivityStreamsEndpointsPropertyIterator struct { + activitystreamsEndpointsMember vocab.ActivityStreamsEndpoints + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.ActivityStreamsEndpointsProperty +} + +// NewActivityStreamsEndpointsPropertyIterator creates a new +// ActivityStreamsEndpoints property. +func NewActivityStreamsEndpointsPropertyIterator() *ActivityStreamsEndpointsPropertyIterator { + return &ActivityStreamsEndpointsPropertyIterator{alias: ""} +} + +// deserializeActivityStreamsEndpointsPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeActivityStreamsEndpointsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsEndpointsPropertyIterator, 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 := &ActivityStreamsEndpointsPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeEndpointsActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsEndpointsPropertyIterator{ + activitystreamsEndpointsMember: v, + alias: alias, + } + return this, nil + } + } + this := &ActivityStreamsEndpointsPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsActivityStreamsEndpoints returns +// false, Get will return any arbitrary value. +func (this ActivityStreamsEndpointsPropertyIterator) Get() vocab.ActivityStreamsEndpoints { + return this.activitystreamsEndpointsMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ActivityStreamsEndpointsPropertyIterator) 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 ActivityStreamsEndpointsPropertyIterator) GetType() vocab.Type { + if this.IsActivityStreamsEndpoints() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this ActivityStreamsEndpointsPropertyIterator) HasAny() bool { + return this.IsActivityStreamsEndpoints() || this.iri != nil +} + +// IsActivityStreamsEndpoints returns true if this property is set and not an IRI. +func (this ActivityStreamsEndpointsPropertyIterator) IsActivityStreamsEndpoints() bool { + return this.activitystreamsEndpointsMember != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ActivityStreamsEndpointsPropertyIterator) 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 ActivityStreamsEndpointsPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} + var child map[string]string + if this.IsActivityStreamsEndpoints() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this ActivityStreamsEndpointsPropertyIterator) KindIndex() int { + if this.IsActivityStreamsEndpoints() { + 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 ActivityStreamsEndpointsPropertyIterator) LessThan(o vocab.ActivityStreamsEndpointsPropertyIterator) 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.IsActivityStreamsEndpoints() && !o.IsActivityStreamsEndpoints() { + // Both are unknowns. + return false + } else if this.IsActivityStreamsEndpoints() && !o.IsActivityStreamsEndpoints() { + // Values are always greater than unknown values. + return false + } else if !this.IsActivityStreamsEndpoints() && o.IsActivityStreamsEndpoints() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "ActivityStreamsEndpoints". +func (this ActivityStreamsEndpointsPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ActivityStreamsEndpoints" + } else { + return "ActivityStreamsEndpoints" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this ActivityStreamsEndpointsPropertyIterator) Next() vocab.ActivityStreamsEndpointsPropertyIterator { + 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 ActivityStreamsEndpointsPropertyIterator) Prev() vocab.ActivityStreamsEndpointsPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsActivityStreamsEndpoints +// afterwards will return true. +func (this *ActivityStreamsEndpointsPropertyIterator) Set(v vocab.ActivityStreamsEndpoints) { + this.clear() + this.activitystreamsEndpointsMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ActivityStreamsEndpointsPropertyIterator) 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 *ActivityStreamsEndpointsPropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsEndpoints); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on ActivityStreamsEndpoints property: %T", t) +} + +// clear ensures no value of this property is set. Calling +// IsActivityStreamsEndpoints afterwards will return false. +func (this *ActivityStreamsEndpointsPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.activitystreamsEndpointsMember = 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 ActivityStreamsEndpointsPropertyIterator) serialize() (interface{}, error) { + if this.IsActivityStreamsEndpoints() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// ActivityStreamsEndpointsProperty is the non-functional property "endpoints". It +// is permitted to have one or more values, and of different value types. +type ActivityStreamsEndpointsProperty struct { + properties []*ActivityStreamsEndpointsPropertyIterator + alias string +} + +// DeserializeEndpointsProperty creates a "endpoints" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeEndpointsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEndpointsProperty, error) { + alias := "" + if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { + alias = a + } + propName := "endpoints" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "endpoints") + } + i, ok := m[propName] + + if ok { + this := &ActivityStreamsEndpointsProperty{ + alias: alias, + properties: []*ActivityStreamsEndpointsPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeActivityStreamsEndpointsPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeActivityStreamsEndpointsPropertyIterator(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 +} + +// NewActivityStreamsEndpointsProperty creates a new endpoints property. +func NewActivityStreamsEndpointsProperty() *ActivityStreamsEndpointsProperty { + return &ActivityStreamsEndpointsProperty{alias: ""} +} + +// AppendActivityStreamsEndpoints appends a Endpoints value to the back of a list +// of the property "endpoints". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsEndpointsProperty) AppendActivityStreamsEndpoints(v vocab.ActivityStreamsEndpoints) { + this.properties = append(this.properties, &ActivityStreamsEndpointsPropertyIterator{ + activitystreamsEndpointsMember: v, + alias: this.alias, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property "endpoints" +func (this *ActivityStreamsEndpointsProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &ActivityStreamsEndpointsPropertyIterator{ + 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 "endpoints". 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 *ActivityStreamsEndpointsProperty) AppendType(t vocab.Type) error { + n := &ActivityStreamsEndpointsPropertyIterator{ + 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 ActivityStreamsEndpointsProperty) At(index int) vocab.ActivityStreamsEndpointsPropertyIterator { + 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 ActivityStreamsEndpointsProperty) Begin() vocab.ActivityStreamsEndpointsPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this ActivityStreamsEndpointsProperty) 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 ActivityStreamsEndpointsProperty) End() vocab.ActivityStreamsEndpointsPropertyIterator { + return nil +} + +// InsertActivityStreamsEndpoints inserts a Endpoints value at the specified index +// for a property "endpoints". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsEndpointsProperty) InsertActivityStreamsEndpoints(idx int, v vocab.ActivityStreamsEndpoints) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsEndpointsPropertyIterator{ + activitystreamsEndpointsMember: 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 "endpoints". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsEndpointsProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsEndpointsPropertyIterator{ + 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 "endpoints". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *ActivityStreamsEndpointsProperty) InsertType(idx int, t vocab.Type) error { + n := &ActivityStreamsEndpointsPropertyIterator{ + 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 ActivityStreamsEndpointsProperty) 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 ActivityStreamsEndpointsProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "endpoints" property. +func (this ActivityStreamsEndpointsProperty) 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 ActivityStreamsEndpointsProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this ActivityStreamsEndpointsProperty) LessThan(o vocab.ActivityStreamsEndpointsProperty) 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 ("endpoints") with any alias. +func (this ActivityStreamsEndpointsProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "endpoints" + } else { + return "endpoints" + } +} + +// PrependActivityStreamsEndpoints prepends a Endpoints value to the front of a +// list of the property "endpoints". Invalidates all iterators. +func (this *ActivityStreamsEndpointsProperty) PrependActivityStreamsEndpoints(v vocab.ActivityStreamsEndpoints) { + this.properties = append([]*ActivityStreamsEndpointsPropertyIterator{{ + activitystreamsEndpointsMember: 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 +// "endpoints". +func (this *ActivityStreamsEndpointsProperty) PrependIRI(v *url.URL) { + this.properties = append([]*ActivityStreamsEndpointsPropertyIterator{{ + 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 "endpoints". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *ActivityStreamsEndpointsProperty) PrependType(t vocab.Type) error { + n := &ActivityStreamsEndpointsPropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*ActivityStreamsEndpointsPropertyIterator{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 +// "endpoints", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsEndpointsProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &ActivityStreamsEndpointsPropertyIterator{} + 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 ActivityStreamsEndpointsProperty) 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 Endpoints value to be at the specified index for the property +// "endpoints". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsEndpointsProperty) Set(idx int, v vocab.ActivityStreamsEndpoints) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsEndpointsPropertyIterator{ + activitystreamsEndpointsMember: v, + alias: this.alias, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "endpoints". Panics if the index is out of bounds. +func (this *ActivityStreamsEndpointsProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsEndpointsPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "endpoints". 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 *ActivityStreamsEndpointsProperty) SetType(idx int, t vocab.Type) error { + n := &ActivityStreamsEndpointsPropertyIterator{ + 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 "endpoints" property. +func (this ActivityStreamsEndpointsProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_doc.go new file mode 100644 index 000000000..171486c68 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go new file mode 100644 index 000000000..fbe2fc7a3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go new file mode 100644 index 000000000..267ddb7fe --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyendtime + +import ( + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_doc.go new file mode 100644 index 000000000..cde426655 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_pkg.go new file mode 100644 index 000000000..d6655f96d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_pkg.go @@ -0,0 +1,38 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfirst + +import vocab "code.superseriousbusiness.org/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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go new file mode 100644 index 000000000..7dacd3082 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go @@ -0,0 +1,404 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfirst + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + tootHashtagMember vocab.TootHashtag + 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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsFirstProperty{ + alias: alias, + tootHashtagMember: v, + } + 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.tootHashtagMember = 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsFirstProperty) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsTootHashtag() || + 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsFirstProperty) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsTootHashtag() { + return 2 + } + if this.IsActivityStreamsMention() { + return 3 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 4 + } + 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsFirstProperty) SetTootHashtag(v vocab.TootHashtag) { + this.Clear() + this.tootHashtagMember = 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.TootHashtag); ok { + this.SetTootHashtag(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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_doc.go new file mode 100644 index 000000000..72d13b9e4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_pkg.go new file mode 100644 index 000000000..afb41bc45 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_pkg.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfollowers + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go new file mode 100644 index 000000000..d34c0f919 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go @@ -0,0 +1,360 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfollowers + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_doc.go new file mode 100644 index 000000000..b9a9f1d29 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_pkg.go new file mode 100644 index 000000000..a8a5f0239 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_pkg.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfollowing + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go new file mode 100644 index 000000000..31f6b9a9c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go @@ -0,0 +1,360 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfollowing + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_doc.go new file mode 100644 index 000000000..93b382c03 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go new file mode 100644 index 000000000..f6d4de64e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go @@ -0,0 +1,290 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyformertype + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go new file mode 100644 index 000000000..66a784524 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go @@ -0,0 +1,7790 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyformertype + +import ( + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + 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.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + this.IsActivityStreamsListen() || + this.IsActivityStreamsMove() || + this.IsActivityStreamsNote() || + this.IsActivityStreamsOffer() || + this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.IsActivityStreamsOrganization() || + this.IsActivityStreamsPage() || + this.IsActivityStreamsPerson() || + this.IsActivityStreamsPlace() || + this.IsActivityStreamsProfile() || + this.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootIdentityProof() { + return 27 + } + if this.IsActivityStreamsIgnore() { + return 28 + } + if this.IsActivityStreamsImage() { + return 29 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 30 + } + if this.IsActivityStreamsInvite() { + return 31 + } + if this.IsActivityStreamsJoin() { + return 32 + } + if this.IsActivityStreamsLeave() { + return 33 + } + if this.IsFunkwhaleLibrary() { + return 34 + } + if this.IsActivityStreamsLike() { + return 35 + } + if this.IsGoToSocialLikeApproval() { + return 36 + } + if this.IsGoToSocialLikeAuthorization() { + return 37 + } + if this.IsGoToSocialLikeRequest() { + return 38 + } + if this.IsActivityStreamsListen() { + return 39 + } + if this.IsActivityStreamsMove() { + return 40 + } + if this.IsActivityStreamsNote() { + return 41 + } + if this.IsActivityStreamsOffer() { + return 42 + } + if this.IsActivityStreamsOrderedCollection() { + return 43 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 44 + } + if this.IsActivityStreamsOrganization() { + return 45 + } + if this.IsActivityStreamsPage() { + return 46 + } + if this.IsActivityStreamsPerson() { + return 47 + } + if this.IsActivityStreamsPlace() { + return 48 + } + if this.IsActivityStreamsProfile() { + return 49 + } + if this.IsSchemaPropertyValue() { + return 50 + } + if this.IsActivityStreamsQuestion() { + return 51 + } + if this.IsActivityStreamsRead() { + return 52 + } + if this.IsActivityStreamsReject() { + return 53 + } + if this.IsActivityStreamsRelationship() { + return 54 + } + if this.IsActivityStreamsRemove() { + return 55 + } + if this.IsGoToSocialReplyApproval() { + return 56 + } + if this.IsGoToSocialReplyAuthorization() { + return 57 + } + if this.IsGoToSocialReplyRequest() { + return 58 + } + if this.IsActivityStreamsService() { + return 59 + } + if this.IsActivityStreamsTentativeAccept() { + return 60 + } + if this.IsActivityStreamsTentativeReject() { + return 61 + } + if this.IsActivityStreamsTombstone() { + return 62 + } + if this.IsFunkwhaleTrack() { + return 63 + } + if this.IsActivityStreamsTravel() { + return 64 + } + if this.IsActivityStreamsUndo() { + return 65 + } + if this.IsActivityStreamsUpdate() { + return 66 + } + if this.IsActivityStreamsVideo() { + return 67 + } + if this.IsActivityStreamsView() { + return 68 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "formerType". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "formerType". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "formerType". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "formerType". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "formerType". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "formerType". Invalidates all +// iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_doc.go new file mode 100644 index 000000000..4142ee42f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go new file mode 100644 index 000000000..c0a57ce1c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertygenerator + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go new file mode 100644 index 000000000..0fead0258 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go @@ -0,0 +1,7998 @@ +// Code generated by astool. DO NOT EDIT. + +package propertygenerator + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsGeneratorPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "generator". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "generator". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "generator". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "generator". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "generator". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "generator". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "generator". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "generator". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "generator". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "generator". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "generator". Invalidates all +// iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_doc.go new file mode 100644 index 000000000..c6d74624e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_pkg.go new file mode 100644 index 000000000..c27687c4e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go new file mode 100644 index 000000000..9c5536c7f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyheight + +import ( + nonnegativeinteger "code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_doc.go new file mode 100644 index 000000000..d9f6aab6e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_pkg.go new file mode 100644 index 000000000..7b6ec2810 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go new file mode 100644 index 000000000..c357f050e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go @@ -0,0 +1,181 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyhref + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go new file mode 100644 index 000000000..7c75ed765 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go new file mode 100644 index 000000000..f6cfedd44 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go new file mode 100644 index 000000000..7e93125ed --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyhreflang + +import ( + bcp47 "code.superseriousbusiness.org/activity/streams/values/bcp47" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_doc.go new file mode 100644 index 000000000..088b11899 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_pkg.go new file mode 100644 index 000000000..bae50173f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_pkg.go @@ -0,0 +1,33 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyicon + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go new file mode 100644 index 000000000..cf19197ec --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go @@ -0,0 +1,928 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyicon + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + tootHashtagMember vocab.TootHashtag + 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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsIconPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsIconPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsTootHashtag() || + 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsIconPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsTootHashtag() { + return 2 + } + if this.IsActivityStreamsMention() { + 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 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsIconPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.TootHashtag); ok { + this.SetTootHashtag(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.tootHashtagMember = 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.IsTootHashtag() { + return this.GetTootHashtag().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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "icon". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsIconProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: v, + }) +} + +// 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsIconPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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 "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].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 3 { + 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "icon". Invalidates all iterators. +func (this *ActivityStreamsIconProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsIconPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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 "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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsIconPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: v, + } +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_doc.go new file mode 100644 index 000000000..322c67066 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_pkg.go new file mode 100644 index 000000000..70565bb83 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_pkg.go @@ -0,0 +1,33 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyimage + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go new file mode 100644 index 000000000..93797ffe6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go @@ -0,0 +1,928 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyimage + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + tootHashtagMember vocab.TootHashtag + 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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsImagePropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsImagePropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsTootHashtag() || + 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsImagePropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsTootHashtag() { + return 2 + } + if this.IsActivityStreamsMention() { + 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 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsImagePropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.TootHashtag); ok { + this.SetTootHashtag(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.tootHashtagMember = 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.IsTootHashtag() { + return this.GetTootHashtag().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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "image". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsImageProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: v, + }) +} + +// 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsImagePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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 "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].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 3 { + 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "image". Invalidates all iterators. +func (this *ActivityStreamsImageProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsImagePropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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 "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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsImagePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: v, + } +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_doc.go new file mode 100644 index 000000000..b3f67f050 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go new file mode 100644 index 000000000..1abd51c4c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go @@ -0,0 +1,27 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinbox + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go new file mode 100644 index 000000000..fe3bdf210 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go @@ -0,0 +1,268 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinbox + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go new file mode 100644 index 000000000..b4a0ba151 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go new file mode 100644 index 000000000..4a3e2ec55 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinreplyto + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go new file mode 100644 index 000000000..3e03a769f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go @@ -0,0 +1,7998 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinreplyto + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsInReplyToPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "inReplyTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "inReplyTo". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "inReplyTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "inReplyTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "inReplyTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "inReplyTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "inReplyTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "inReplyTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "inReplyTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "inReplyTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "inReplyTo". Invalidates all +// iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_doc.go new file mode 100644 index 000000000..e8f2992a6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go new file mode 100644 index 000000000..9d6fe156b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinstrument + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go new file mode 100644 index 000000000..234d3f3a6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go @@ -0,0 +1,8001 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinstrument + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsInstrumentPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "instrument". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "instrument". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "instrument". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "instrument". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "instrument". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "instrument". Invalidates all +// iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_doc.go new file mode 100644 index 000000000..8c35ce49d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go new file mode 100644 index 000000000..1ab2dc2ad --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyitems + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go new file mode 100644 index 000000000..554c9d113 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go @@ -0,0 +1,7985 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyitems + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsItemsPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "items". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "items". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "items". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "items". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "items". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "items". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "items". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "items". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "items". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "items". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsItemsProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_doc.go new file mode 100644 index 000000000..90dd7f279 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_pkg.go new file mode 100644 index 000000000..2d65e62c2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_pkg.go @@ -0,0 +1,38 @@ +// Code generated by astool. DO NOT EDIT. + +package propertylast + +import vocab "code.superseriousbusiness.org/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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go new file mode 100644 index 000000000..a8c710acf --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go @@ -0,0 +1,404 @@ +// Code generated by astool. DO NOT EDIT. + +package propertylast + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + tootHashtagMember vocab.TootHashtag + 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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsLastProperty{ + alias: alias, + tootHashtagMember: v, + } + 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.tootHashtagMember = 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsLastProperty) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsTootHashtag() || + 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsLastProperty) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsTootHashtag() { + return 2 + } + if this.IsActivityStreamsMention() { + return 3 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 4 + } + 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsLastProperty) SetTootHashtag(v vocab.TootHashtag) { + this.Clear() + this.tootHashtagMember = 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.TootHashtag); ok { + this.SetTootHashtag(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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_doc.go new file mode 100644 index 000000000..88315b8ad --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go new file mode 100644 index 000000000..116607c10 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go new file mode 100644 index 000000000..fd5bd467f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertylatitude + +import ( + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_doc.go new file mode 100644 index 000000000..1164385d9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_pkg.go new file mode 100644 index 000000000..face6b248 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_pkg.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyliked + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go new file mode 100644 index 000000000..ce532ec27 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go @@ -0,0 +1,360 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyliked + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_doc.go new file mode 100644 index 000000000..6e04f8efc --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_pkg.go new file mode 100644 index 000000000..5f5ef3344 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_pkg.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package propertylikes + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go new file mode 100644 index 000000000..8fd0cfa36 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go @@ -0,0 +1,360 @@ +// Code generated by astool. DO NOT EDIT. + +package propertylikes + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_doc.go new file mode 100644 index 000000000..cbc195292 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go new file mode 100644 index 000000000..d1cbcc55a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertylocation + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go new file mode 100644 index 000000000..714b5de87 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go @@ -0,0 +1,7997 @@ +// Code generated by astool. DO NOT EDIT. + +package propertylocation + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsLocationPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "location". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "location". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "location". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "location". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "location". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "location". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "location". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "location". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "location". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "location". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsLocationProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "location". Invalidates all +// iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_doc.go new file mode 100644 index 000000000..71299ec90 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go new file mode 100644 index 000000000..4a54b000f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go new file mode 100644 index 000000000..0a30856f7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertylongitude + +import ( + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go new file mode 100644 index 000000000..7b3064f48 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go new file mode 100644 index 000000000..9783436ed --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go new file mode 100644 index 000000000..228469a33 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go @@ -0,0 +1,206 @@ +// Code generated by astool. DO NOT EDIT. + +package propertymanuallyapprovesfollowers + +import ( + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go new file mode 100644 index 000000000..e212ac5b6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go new file mode 100644 index 000000000..a337f7e57 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go new file mode 100644 index 000000000..f1c1f7ad6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertymediatype + +import ( + rfc2045 "code.superseriousbusiness.org/activity/streams/values/rfc2045" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_doc.go new file mode 100644 index 000000000..5590bb856 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertymovedto contains the implementation for the movedTo 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 propertymovedto diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go new file mode 100644 index 000000000..593a3534b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertymovedto + +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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go new file mode 100644 index 000000000..63431b29a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go @@ -0,0 +1,181 @@ +// Code generated by astool. DO NOT EDIT. + +package propertymovedto + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// ActivityStreamsMovedToProperty is the functional property "movedTo". It is +// permitted to be a single nilable value type. +type ActivityStreamsMovedToProperty struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string +} + +// DeserializeMovedToProperty creates a "movedTo" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeMovedToProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsMovedToProperty, error) { + alias := "" + if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { + alias = a + } + propName := "movedTo" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "movedTo") + } + i, ok := m[propName] + + if ok { + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &ActivityStreamsMovedToProperty{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &ActivityStreamsMovedToProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewActivityStreamsMovedToProperty creates a new movedTo property. +func NewActivityStreamsMovedToProperty() *ActivityStreamsMovedToProperty { + return &ActivityStreamsMovedToProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *ActivityStreamsMovedToProperty) 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 ActivityStreamsMovedToProperty) 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 ActivityStreamsMovedToProperty) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this ActivityStreamsMovedToProperty) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this ActivityStreamsMovedToProperty) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this ActivityStreamsMovedToProperty) 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 ActivityStreamsMovedToProperty) 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 ActivityStreamsMovedToProperty) 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 ActivityStreamsMovedToProperty) LessThan(o vocab.ActivityStreamsMovedToProperty) 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: "movedTo". +func (this ActivityStreamsMovedToProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "movedTo" + } else { + return "movedTo" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need 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 ActivityStreamsMovedToProperty) 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 *ActivityStreamsMovedToProperty) Set(v *url.URL) { + this.Clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ActivityStreamsMovedToProperty) SetIRI(v *url.URL) { + this.Clear() + this.Set(v) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_doc.go new file mode 100644 index 000000000..7082b2e8a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_pkg.go new file mode 100644 index 000000000..cd9cb9f38 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go new file mode 100644 index 000000000..b61f976f4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go @@ -0,0 +1,667 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyname + +import ( + langstring "code.superseriousbusiness.org/activity/streams/values/langString" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_doc.go new file mode 100644 index 000000000..e70c87624 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_pkg.go new file mode 100644 index 000000000..be6b27efa --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_pkg.go @@ -0,0 +1,38 @@ +// Code generated by astool. DO NOT EDIT. + +package propertynext + +import vocab "code.superseriousbusiness.org/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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go new file mode 100644 index 000000000..05312045b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go @@ -0,0 +1,404 @@ +// Code generated by astool. DO NOT EDIT. + +package propertynext + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + tootHashtagMember vocab.TootHashtag + 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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsNextProperty{ + alias: alias, + tootHashtagMember: v, + } + 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.tootHashtagMember = 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsNextProperty) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsTootHashtag() || + 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsNextProperty) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsTootHashtag() { + return 2 + } + if this.IsActivityStreamsMention() { + return 3 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 4 + } + 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsNextProperty) SetTootHashtag(v vocab.TootHashtag) { + this.Clear() + this.tootHashtagMember = 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.TootHashtag); ok { + this.SetTootHashtag(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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_doc.go new file mode 100644 index 000000000..dd66c367a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go new file mode 100644 index 000000000..77ff4c192 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyobject + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go new file mode 100644 index 000000000..74fe58c0b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go @@ -0,0 +1,7986 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyobject + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsObjectPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "object". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "object". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "object". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "object". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "object". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "object". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "object". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "object". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "object". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "object". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsObjectProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_doc.go new file mode 100644 index 000000000..9867775b4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go new file mode 100644 index 000000000..c3777073e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyoneof + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go new file mode 100644 index 000000000..99bc8de63 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go @@ -0,0 +1,7985 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyoneof + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsOneOfPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "oneOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "oneOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "oneOf". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "oneOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "oneOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "oneOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "oneOf". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "oneOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "oneOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "oneOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOneOfProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go new file mode 100644 index 000000000..4b9d60d52 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go new file mode 100644 index 000000000..e0808ddd9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyordereditems + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go new file mode 100644 index 000000000..0fbdb709a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go @@ -0,0 +1,8044 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyordereditems + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "orderedItems". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "orderedItems". Invalidates iterators +// that are traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "orderedItems". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "orderedItems". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "orderedItems". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "orderedItems". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "orderedItems". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "orderedItems". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "orderedItems". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "orderedItems". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "orderedItems". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "orderedItems". Invalidates all +// iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_doc.go new file mode 100644 index 000000000..095312aab --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go new file mode 100644 index 000000000..36c215a9f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyorigin + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go new file mode 100644 index 000000000..7913548be --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go @@ -0,0 +1,7986 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyorigin + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsOriginPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "origin". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "origin". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "origin". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "origin". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "origin". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "origin". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "origin". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "origin". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "origin". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "origin". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOriginProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_doc.go new file mode 100644 index 000000000..4f15afb01 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go new file mode 100644 index 000000000..bcf2213d5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go @@ -0,0 +1,27 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyoutbox + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go new file mode 100644 index 000000000..b443f80bf --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go @@ -0,0 +1,268 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyoutbox + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_doc.go new file mode 100644 index 000000000..3de84ee32 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_pkg.go new file mode 100644 index 000000000..ec6c22486 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_pkg.go @@ -0,0 +1,46 @@ +// Code generated by astool. DO NOT EDIT. + +package propertypartof + +import vocab "code.superseriousbusiness.org/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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go new file mode 100644 index 000000000..6cf2a869a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go @@ -0,0 +1,497 @@ +// Code generated by astool. DO NOT EDIT. + +package propertypartof + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + tootHashtagMember vocab.TootHashtag + 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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsPartOfProperty{ + alias: alias, + tootHashtagMember: v, + } + 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.tootHashtagMember = 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsPartOfProperty) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsTootHashtag() || + 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsPartOfProperty) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsTootHashtag() { + return 3 + } + if this.IsActivityStreamsMention() { + return 4 + } + if this.IsActivityStreamsOrderedCollection() { + return 5 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 6 + } + 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsPartOfProperty) SetTootHashtag(v vocab.TootHashtag) { + this.Clear() + this.tootHashtagMember = 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.TootHashtag); ok { + this.SetTootHashtag(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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go new file mode 100644 index 000000000..cf28cee8f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go new file mode 100644 index 000000000..37a4545ae --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go new file mode 100644 index 000000000..fc8c9d85e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go @@ -0,0 +1,284 @@ +// Code generated by astool. DO NOT EDIT. + +package propertypreferredusername + +import ( + langstring "code.superseriousbusiness.org/activity/streams/values/langString" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_doc.go new file mode 100644 index 000000000..260c6629a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_pkg.go new file mode 100644 index 000000000..04224b627 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_pkg.go @@ -0,0 +1,38 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyprev + +import vocab "code.superseriousbusiness.org/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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go new file mode 100644 index 000000000..b37fe7b42 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go @@ -0,0 +1,404 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyprev + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + tootHashtagMember vocab.TootHashtag + 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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsPrevProperty{ + alias: alias, + tootHashtagMember: v, + } + 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.tootHashtagMember = 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsPrevProperty) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsTootHashtag() || + 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsPrevProperty) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsTootHashtag() { + return 2 + } + if this.IsActivityStreamsMention() { + return 3 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 4 + } + 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsPrevProperty) SetTootHashtag(v vocab.TootHashtag) { + this.Clear() + this.tootHashtagMember = 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.TootHashtag); ok { + this.SetTootHashtag(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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_doc.go new file mode 100644 index 000000000..3065a56e0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go new file mode 100644 index 000000000..a599471f9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertypreview + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go new file mode 100644 index 000000000..40e30d94e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go @@ -0,0 +1,7996 @@ +// Code generated by astool. DO NOT EDIT. + +package propertypreview + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsPreviewPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "preview". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "preview". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "preview". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "preview". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "preview". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "preview". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "preview". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "preview". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "preview". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "preview". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsPreviewProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_doc.go new file mode 100644 index 000000000..59952ab71 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_pkg.go new file mode 100644 index 000000000..ca5c51501 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go new file mode 100644 index 000000000..48d40c24e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertypublished + +import ( + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_doc.go new file mode 100644 index 000000000..f2fd21088 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_pkg.go new file mode 100644 index 000000000..582fd0054 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go new file mode 100644 index 000000000..a4aefc919 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyradius + +import ( + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_doc.go new file mode 100644 index 000000000..2982ad469 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_pkg.go new file mode 100644 index 000000000..1965fcf52 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go new file mode 100644 index 000000000..96b4cdd5c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go @@ -0,0 +1,528 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyrel + +import ( + rfc5988 "code.superseriousbusiness.org/activity/streams/values/rfc5988" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_doc.go new file mode 100644 index 000000000..14be103b2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go new file mode 100644 index 000000000..fa834843b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go @@ -0,0 +1,290 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyrelationship + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go new file mode 100644 index 000000000..ff4e90a08 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go @@ -0,0 +1,7728 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyrelationship + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + 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.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + this.IsActivityStreamsListen() || + this.IsActivityStreamsMove() || + this.IsActivityStreamsNote() || + this.IsActivityStreamsOffer() || + this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.IsActivityStreamsOrganization() || + this.IsActivityStreamsPage() || + this.IsActivityStreamsPerson() || + this.IsActivityStreamsPlace() || + this.IsActivityStreamsProfile() || + this.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 4 + } + if this.IsActivityStreamsAnnounce() { + return 5 + } + if this.IsGoToSocialAnnounceApproval() { + return 6 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 7 + } + if this.IsGoToSocialAnnounceRequest() { + return 8 + } + if this.IsActivityStreamsApplication() { + return 9 + } + if this.IsActivityStreamsArrive() { + return 10 + } + if this.IsActivityStreamsArticle() { + return 11 + } + if this.IsFunkwhaleArtist() { + return 12 + } + if this.IsActivityStreamsAudio() { + return 13 + } + if this.IsActivityStreamsBlock() { + return 14 + } + if this.IsActivityStreamsCollection() { + return 15 + } + if this.IsActivityStreamsCollectionPage() { + 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.IsFunkwhaleLibrary() { + return 33 + } + if this.IsActivityStreamsLike() { + return 34 + } + if this.IsGoToSocialLikeApproval() { + return 35 + } + if this.IsGoToSocialLikeAuthorization() { + return 36 + } + if this.IsGoToSocialLikeRequest() { + return 37 + } + if this.IsActivityStreamsListen() { + return 38 + } + if this.IsActivityStreamsMove() { + return 39 + } + if this.IsActivityStreamsNote() { + return 40 + } + if this.IsActivityStreamsOffer() { + return 41 + } + if this.IsActivityStreamsOrderedCollection() { + return 42 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 43 + } + if this.IsActivityStreamsOrganization() { + return 44 + } + if this.IsActivityStreamsPage() { + return 45 + } + if this.IsActivityStreamsPerson() { + return 46 + } + if this.IsActivityStreamsPlace() { + return 47 + } + if this.IsActivityStreamsProfile() { + return 48 + } + if this.IsSchemaPropertyValue() { + return 49 + } + if this.IsActivityStreamsQuestion() { + return 50 + } + if this.IsActivityStreamsRead() { + return 51 + } + if this.IsActivityStreamsReject() { + return 52 + } + if this.IsActivityStreamsRelationship() { + return 53 + } + if this.IsActivityStreamsRemove() { + return 54 + } + if this.IsGoToSocialReplyApproval() { + return 55 + } + if this.IsGoToSocialReplyAuthorization() { + return 56 + } + if this.IsGoToSocialReplyRequest() { + return 57 + } + if this.IsActivityStreamsService() { + return 58 + } + if this.IsActivityStreamsTentativeAccept() { + return 59 + } + if this.IsActivityStreamsTentativeReject() { + return 60 + } + if this.IsActivityStreamsTombstone() { + return 61 + } + if this.IsFunkwhaleTrack() { + return 62 + } + if this.IsActivityStreamsTravel() { + return 63 + } + if this.IsActivityStreamsUndo() { + return 64 + } + if this.IsActivityStreamsUpdate() { + return 65 + } + if this.IsActivityStreamsVideo() { + return 66 + } + if this.IsActivityStreamsView() { + return 67 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "relationship". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "relationship". Invalidates iterators +// that are traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "relationship". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "relationship". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "relationship". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "relationship". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "relationship". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "relationship". Invalidates iterators that +// are traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "relationship". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "relationship". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + 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].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + 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].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "relationship". Invalidates all +// iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_doc.go new file mode 100644 index 000000000..6a8451012 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_pkg.go new file mode 100644 index 000000000..2cba2fbf7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_pkg.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyreplies + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go new file mode 100644 index 000000000..c3b8978aa --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go @@ -0,0 +1,360 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyreplies + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_doc.go new file mode 100644 index 000000000..b40de1b42 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go new file mode 100644 index 000000000..69cb742e7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyresult + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go new file mode 100644 index 000000000..79c332078 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go @@ -0,0 +1,7986 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyresult + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsResultPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "result". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "result". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "result". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "result". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "result". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "result". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "result". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "result". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "result". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "result". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsResultProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go new file mode 100644 index 000000000..869719ba0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertysensitive contains the implementation for the sensitive +// 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 propertysensitive diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go new file mode 100644 index 000000000..88d18245a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysensitive + +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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go new file mode 100644 index 000000000..c46f830da --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go @@ -0,0 +1,531 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysensitive + +import ( + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// ActivityStreamsSensitivePropertyIterator is an iterator for a property. It is +// permitted to be a single default-valued value type. +type ActivityStreamsSensitivePropertyIterator struct { + xmlschemaBooleanMember bool + hasBooleanMember bool + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.ActivityStreamsSensitiveProperty +} + +// NewActivityStreamsSensitivePropertyIterator creates a new +// ActivityStreamsSensitive property. +func NewActivityStreamsSensitivePropertyIterator() *ActivityStreamsSensitivePropertyIterator { + return &ActivityStreamsSensitivePropertyIterator{alias: ""} +} + +// deserializeActivityStreamsSensitivePropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeActivityStreamsSensitivePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsSensitivePropertyIterator, 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 := &ActivityStreamsSensitivePropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := boolean.DeserializeBoolean(i); err == nil { + this := &ActivityStreamsSensitivePropertyIterator{ + alias: alias, + hasBooleanMember: true, + xmlschemaBooleanMember: v, + } + return this, nil + } + this := &ActivityStreamsSensitivePropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaBoolean returns false, +// Get will return any arbitrary value. +func (this ActivityStreamsSensitivePropertyIterator) Get() bool { + return this.xmlschemaBooleanMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this ActivityStreamsSensitivePropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this ActivityStreamsSensitivePropertyIterator) HasAny() bool { + return this.IsXMLSchemaBoolean() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this ActivityStreamsSensitivePropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaBoolean returns true if this property is set and not an IRI. +func (this ActivityStreamsSensitivePropertyIterator) 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 ActivityStreamsSensitivePropertyIterator) 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 ActivityStreamsSensitivePropertyIterator) 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 ActivityStreamsSensitivePropertyIterator) LessThan(o vocab.ActivityStreamsSensitivePropertyIterator) 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: "ActivityStreamsSensitive". +func (this ActivityStreamsSensitivePropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "ActivityStreamsSensitive" + } else { + return "ActivityStreamsSensitive" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this ActivityStreamsSensitivePropertyIterator) Next() vocab.ActivityStreamsSensitivePropertyIterator { + 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 ActivityStreamsSensitivePropertyIterator) Prev() vocab.ActivityStreamsSensitivePropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will +// return true. +func (this *ActivityStreamsSensitivePropertyIterator) 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 *ActivityStreamsSensitivePropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaBoolean +// afterwards will return false. +func (this *ActivityStreamsSensitivePropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.hasBooleanMember = 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 ActivityStreamsSensitivePropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaBoolean() { + return boolean.SerializeBoolean(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// ActivityStreamsSensitiveProperty is the non-functional property "sensitive". It +// is permitted to have one or more values, and of different value types. +type ActivityStreamsSensitiveProperty struct { + properties []*ActivityStreamsSensitivePropertyIterator + alias string +} + +// DeserializeSensitiveProperty creates a "sensitive" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeSensitiveProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) { + alias := "" + if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { + alias = a + } + propName := "sensitive" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "sensitive") + } + i, ok := m[propName] + + if ok { + this := &ActivityStreamsSensitiveProperty{ + alias: alias, + properties: []*ActivityStreamsSensitivePropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeActivityStreamsSensitivePropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeActivityStreamsSensitivePropertyIterator(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 +} + +// NewActivityStreamsSensitiveProperty creates a new sensitive property. +func NewActivityStreamsSensitiveProperty() *ActivityStreamsSensitiveProperty { + return &ActivityStreamsSensitiveProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property "sensitive" +func (this *ActivityStreamsSensitiveProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &ActivityStreamsSensitivePropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendXMLSchemaBoolean appends a boolean value to the back of a list of the +// property "sensitive". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsSensitiveProperty) AppendXMLSchemaBoolean(v bool) { + this.properties = append(this.properties, &ActivityStreamsSensitivePropertyIterator{ + alias: this.alias, + hasBooleanMember: true, + myIdx: this.Len(), + parent: this, + xmlschemaBooleanMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this ActivityStreamsSensitiveProperty) At(index int) vocab.ActivityStreamsSensitivePropertyIterator { + 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 ActivityStreamsSensitiveProperty) Begin() vocab.ActivityStreamsSensitivePropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this ActivityStreamsSensitiveProperty) 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 ActivityStreamsSensitiveProperty) End() vocab.ActivityStreamsSensitivePropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property "sensitive". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *ActivityStreamsSensitiveProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsSensitivePropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaBoolean inserts a boolean value at the specified index for a +// property "sensitive". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsSensitiveProperty) InsertXMLSchemaBoolean(idx int, v bool) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsSensitivePropertyIterator{ + alias: this.alias, + hasBooleanMember: true, + myIdx: idx, + parent: this, + xmlschemaBooleanMember: 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 ActivityStreamsSensitiveProperty) 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 ActivityStreamsSensitiveProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "sensitive" property. +func (this ActivityStreamsSensitiveProperty) 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 ActivityStreamsSensitiveProperty) 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 boolean.LessBoolean(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 ActivityStreamsSensitiveProperty) LessThan(o vocab.ActivityStreamsSensitiveProperty) 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 ("sensitive") with any alias. +func (this ActivityStreamsSensitiveProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "sensitive" + } else { + return "sensitive" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "sensitive". +func (this *ActivityStreamsSensitiveProperty) PrependIRI(v *url.URL) { + this.properties = append([]*ActivityStreamsSensitivePropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaBoolean prepends a boolean value to the front of a list of the +// property "sensitive". Invalidates all iterators. +func (this *ActivityStreamsSensitiveProperty) PrependXMLSchemaBoolean(v bool) { + this.properties = append([]*ActivityStreamsSensitivePropertyIterator{{ + 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 + } +} + +// Remove deletes an element at the specified index from a list of the property +// "sensitive", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *ActivityStreamsSensitiveProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &ActivityStreamsSensitivePropertyIterator{} + 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 ActivityStreamsSensitiveProperty) 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 boolean value to be at the specified index for the property +// "sensitive". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsSensitiveProperty) Set(idx int, v bool) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsSensitivePropertyIterator{ + alias: this.alias, + hasBooleanMember: true, + myIdx: idx, + parent: this, + xmlschemaBooleanMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "sensitive". Panics if the index is out of bounds. +func (this *ActivityStreamsSensitiveProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsSensitivePropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// Swap swaps the location of values at two indices for the "sensitive" property. +func (this ActivityStreamsSensitiveProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go new file mode 100644 index 000000000..a2032e3da --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertysharedinbox contains the implementation for the sharedInbox +// 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 propertysharedinbox diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go new file mode 100644 index 000000000..18e7b7284 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysharedinbox + +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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go new file mode 100644 index 000000000..9c8092422 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go @@ -0,0 +1,182 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysharedinbox + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// ActivityStreamsSharedInboxProperty is the functional property "sharedInbox". It +// is permitted to be a single nilable value type. +type ActivityStreamsSharedInboxProperty struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string +} + +// DeserializeSharedInboxProperty creates a "sharedInbox" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeSharedInboxProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsSharedInboxProperty, error) { + alias := "" + if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { + alias = a + } + propName := "sharedInbox" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "sharedInbox") + } + i, ok := m[propName] + + if ok { + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &ActivityStreamsSharedInboxProperty{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &ActivityStreamsSharedInboxProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewActivityStreamsSharedInboxProperty creates a new sharedInbox property. +func NewActivityStreamsSharedInboxProperty() *ActivityStreamsSharedInboxProperty { + return &ActivityStreamsSharedInboxProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *ActivityStreamsSharedInboxProperty) 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 ActivityStreamsSharedInboxProperty) 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 ActivityStreamsSharedInboxProperty) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this ActivityStreamsSharedInboxProperty) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this ActivityStreamsSharedInboxProperty) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this ActivityStreamsSharedInboxProperty) 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 ActivityStreamsSharedInboxProperty) 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 ActivityStreamsSharedInboxProperty) 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 ActivityStreamsSharedInboxProperty) LessThan(o vocab.ActivityStreamsSharedInboxProperty) 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: "sharedInbox". +func (this ActivityStreamsSharedInboxProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "sharedInbox" + } else { + return "sharedInbox" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need 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 ActivityStreamsSharedInboxProperty) 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 *ActivityStreamsSharedInboxProperty) Set(v *url.URL) { + this.Clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *ActivityStreamsSharedInboxProperty) SetIRI(v *url.URL) { + this.Clear() + this.Set(v) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_doc.go new file mode 100644 index 000000000..339d0b18f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_pkg.go new file mode 100644 index 000000000..4f14099e0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_pkg.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyshares + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go new file mode 100644 index 000000000..9a420cedc --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go @@ -0,0 +1,360 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyshares + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_doc.go new file mode 100644 index 000000000..689076beb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go new file mode 100644 index 000000000..605afc62b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysource + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go new file mode 100644 index 000000000..adf02f58c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go @@ -0,0 +1,3438 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysource + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + funkwhaleTrackMember: v, + } + 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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsSourceProperty) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsSourceProperty) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsSourceProperty) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsSourceProperty) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsSourceProperty) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.Clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.Clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.Clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.Clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.Clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.Clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.Clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.Clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.Clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.Clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.Clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.Clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.Clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.Clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetTootHashtag(v vocab.TootHashtag) { + this.Clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_doc.go new file mode 100644 index 000000000..def07efae --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go new file mode 100644 index 000000000..ef561ec70 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go new file mode 100644 index 000000000..7cbda5373 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertystartindex + +import ( + nonnegativeinteger "code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_doc.go new file mode 100644 index 000000000..7d0f612e6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go new file mode 100644 index 000000000..676e619df --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go new file mode 100644 index 000000000..19db8eadb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertystarttime + +import ( + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_doc.go new file mode 100644 index 000000000..3c9f21e89 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_pkg.go new file mode 100644 index 000000000..a9840f160 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_pkg.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package propertystreams + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go new file mode 100644 index 000000000..c8f61fb4e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go @@ -0,0 +1,938 @@ +// Code generated by astool. DO NOT EDIT. + +package propertystreams + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_doc.go new file mode 100644 index 000000000..70070f9b7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go new file mode 100644 index 000000000..a74fd272a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysubject + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go new file mode 100644 index 000000000..8ca25935f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go @@ -0,0 +1,3438 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysubject + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + funkwhaleTrackMember: v, + } + 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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsSubjectProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsSubjectProperty) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsSubjectProperty) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsSubjectProperty) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsSubjectProperty) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsSubjectProperty) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.Clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.Clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.Clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.Clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.Clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.Clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.Clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.Clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.Clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.Clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.Clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.Clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.Clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.Clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetTootHashtag(v vocab.TootHashtag) { + this.Clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_doc.go new file mode 100644 index 000000000..4c3116554 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_pkg.go new file mode 100644 index 000000000..a83e43a5c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go new file mode 100644 index 000000000..2c273f6b5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go @@ -0,0 +1,668 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysummary + +import ( + langstring "code.superseriousbusiness.org/activity/streams/values/langString" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_doc.go new file mode 100644 index 000000000..5f71d3497 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go new file mode 100644 index 000000000..431e72b0d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertytag + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go new file mode 100644 index 000000000..e619deeef --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go @@ -0,0 +1,7979 @@ +// Code generated by astool. DO NOT EDIT. + +package propertytag + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsTagPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "tag". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "tag". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "tag". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "tag". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "tag". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "tag". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_doc.go new file mode 100644 index 000000000..45b158ba4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go new file mode 100644 index 000000000..fb97befb1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertytarget + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go new file mode 100644 index 000000000..e86bdff83 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go @@ -0,0 +1,7986 @@ +// Code generated by astool. DO NOT EDIT. + +package propertytarget + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsTargetPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "target". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "target". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "target". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "target". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "target". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "target". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "target". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "target". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "target". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "target". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsTargetProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_doc.go new file mode 100644 index 000000000..83448156e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go new file mode 100644 index 000000000..af7cbcb2e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go @@ -0,0 +1,301 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyto + +import vocab "code.superseriousbusiness.org/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) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) + // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) + // DeserializeAnnounceRequestGoToSocial returns the deserialization method + // for the "GoToSocialAnnounceRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) + // 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) + // 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) + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) + // DeserializeLikeAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialLikeAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) + // DeserializeLikeRequestGoToSocial returns the deserialization method for + // the "GoToSocialLikeRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) + // DeserializePropertyValueSchema returns the deserialization method for + // the "SchemaPropertyValue" non-functional property in the vocabulary + // "Schema" + DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) + // DeserializeReplyAuthorizationGoToSocial returns the deserialization + // method for the "GoToSocialReplyAuthorization" non-functional + // property in the vocabulary "GoToSocial" + DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) + // DeserializeReplyRequestGoToSocial returns the deserialization method + // for the "GoToSocialReplyRequest" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) + // 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) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go new file mode 100644 index 000000000..5c290d0f2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go @@ -0,0 +1,7979 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyto + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + funkwhaleAlbumMember vocab.FunkwhaleAlbum + activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval + gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization + gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest + activitystreamsApplicationMember vocab.ActivityStreamsApplication + activitystreamsArriveMember vocab.ActivityStreamsArrive + activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist + activitystreamsAudioMember vocab.ActivityStreamsAudio + activitystreamsBlockMember vocab.ActivityStreamsBlock + activitystreamsCollectionMember vocab.ActivityStreamsCollection + activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage + 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 + tootHashtagMember vocab.TootHashtag + tootIdentityProofMember vocab.TootIdentityProof + activitystreamsIgnoreMember vocab.ActivityStreamsIgnore + activitystreamsImageMember vocab.ActivityStreamsImage + activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity + activitystreamsInviteMember vocab.ActivityStreamsInvite + activitystreamsJoinMember vocab.ActivityStreamsJoin + activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary + activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval + gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization + gotosocialLikeRequestMember vocab.GoToSocialLikeRequest + 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 + schemaPropertyValueMember vocab.SchemaPropertyValue + activitystreamsQuestionMember vocab.ActivityStreamsQuestion + activitystreamsReadMember vocab.ActivityStreamsRead + activitystreamsRejectMember vocab.ActivityStreamsReject + activitystreamsRelationshipMember vocab.ActivityStreamsRelationship + activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval + gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization + gotosocialReplyRequestMember vocab.GoToSocialReplyRequest + activitystreamsServiceMember vocab.ActivityStreamsService + activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept + activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject + activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack + 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialAnnounceAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialAnnounceRequestMember: v, + } + 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialLikeAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialLikeRequestMember: v, + } + 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialReplyAuthorizationMember: v, + } + return this, nil + } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + activitystreamsTombstoneMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + 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 +} + +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialAnnounceAuthorization returns the value of this property. When +// IsGoToSocialAnnounceAuthorization returns false, +// GetGoToSocialAnnounceAuthorization will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { + return this.gotosocialAnnounceAuthorizationMember +} + +// GetGoToSocialAnnounceRequest returns the value of this property. When +// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest +// will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { + return this.gotosocialAnnounceRequestMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialLikeAuthorization returns the value of this property. When +// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization +// will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { + return this.gotosocialLikeAuthorizationMember +} + +// GetGoToSocialLikeRequest returns the value of this property. When +// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return +// an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { + return this.gotosocialLikeRequestMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + +// GetGoToSocialReplyAuthorization returns the value of this property. When +// IsGoToSocialReplyAuthorization returns false, +// GetGoToSocialReplyAuthorization will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { + return this.gotosocialReplyAuthorizationMember +} + +// GetGoToSocialReplyRequest returns the value of this property. When +// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will +// return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { + return this.gotosocialReplyRequestMember +} + +// 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 +} + +// GetSchemaPropertyValue returns the value of this property. When +// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an +// arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { + return this.schemaPropertyValueMember +} + +// 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } + if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce() + } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } + if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization() + } + if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest() + } + if this.IsActivityStreamsApplication() { + return this.GetActivityStreamsApplication() + } + if this.IsActivityStreamsArrive() { + return this.GetActivityStreamsArrive() + } + if this.IsActivityStreamsArticle() { + return this.GetActivityStreamsArticle() + } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } + if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio() + } + if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock() + } + if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection() + } + if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage() + } + 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } + if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike() + } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } + if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization() + } + if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest() + } + 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue() + } + 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } + if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization() + } + if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest() + } + if this.IsActivityStreamsService() { + return this.GetActivityStreamsService() + } + if this.IsActivityStreamsTentativeAccept() { + return this.GetActivityStreamsTentativeAccept() + } + if this.IsActivityStreamsTentativeReject() { + return this.GetActivityStreamsTentativeReject() + } + if this.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone() + } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } + 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.IsFunkwhaleAlbum() || + this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || + this.IsGoToSocialAnnounceAuthorization() || + this.IsGoToSocialAnnounceRequest() || + this.IsActivityStreamsApplication() || + this.IsActivityStreamsArrive() || + this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || + this.IsActivityStreamsAudio() || + this.IsActivityStreamsBlock() || + this.IsActivityStreamsCollection() || + this.IsActivityStreamsCollectionPage() || + this.IsActivityStreamsCreate() || + this.IsActivityStreamsDelete() || + this.IsActivityStreamsDislike() || + this.IsActivityStreamsDocument() || + this.IsTootEmoji() || + this.IsActivityStreamsEvent() || + this.IsActivityStreamsFlag() || + this.IsActivityStreamsFollow() || + this.IsActivityStreamsGroup() || + this.IsTootHashtag() || + this.IsTootIdentityProof() || + this.IsActivityStreamsIgnore() || + this.IsActivityStreamsImage() || + this.IsActivityStreamsIntransitiveActivity() || + this.IsActivityStreamsInvite() || + this.IsActivityStreamsJoin() || + this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || + this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || + this.IsGoToSocialLikeAuthorization() || + this.IsGoToSocialLikeRequest() || + 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.IsSchemaPropertyValue() || + this.IsActivityStreamsQuestion() || + this.IsActivityStreamsRead() || + this.IsActivityStreamsReject() || + this.IsActivityStreamsRelationship() || + this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || + this.IsGoToSocialReplyAuthorization() || + this.IsGoToSocialReplyRequest() || + this.IsActivityStreamsService() || + this.IsActivityStreamsTentativeAccept() || + this.IsActivityStreamsTentativeReject() || + this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || + 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 +} + +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsToPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsToPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsToPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsToPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialAnnounceAuthorization returns true if this property has a type of +// "AnnounceAuthorization". When true, use the +// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization +// methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { + return this.gotosocialAnnounceAuthorizationMember != nil +} + +// IsGoToSocialAnnounceRequest returns true if this property has a type of +// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and +// SetGoToSocialAnnounceRequest methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialAnnounceRequest() bool { + return this.gotosocialAnnounceRequestMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialLikeAuthorization returns true if this property has a type of +// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and +// SetGoToSocialLikeAuthorization methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialLikeAuthorization() bool { + return this.gotosocialLikeAuthorizationMember != nil +} + +// IsGoToSocialLikeRequest returns true if this property has a type of +// "LikeRequest". When true, use the GetGoToSocialLikeRequest and +// SetGoToSocialLikeRequest methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialLikeRequest() bool { + return this.gotosocialLikeRequestMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + +// IsGoToSocialReplyAuthorization returns true if this property has a type of +// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization +// and SetGoToSocialReplyAuthorization methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialReplyAuthorization() bool { + return this.gotosocialReplyAuthorizationMember != nil +} + +// IsGoToSocialReplyRequest returns true if this property has a type of +// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and +// SetGoToSocialReplyRequest methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialReplyRequest() bool { + return this.gotosocialReplyRequestMember != 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 +} + +// IsSchemaPropertyValue returns true if this property has a type of +// "PropertyValue". When true, use the GetSchemaPropertyValue and +// SetSchemaPropertyValue methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsSchemaPropertyValue() bool { + return this.schemaPropertyValueMember != 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsToPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() + } else if this.IsActivityStreamsAnnounce() { + child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() + } else if this.IsGoToSocialAnnounceAuthorization() { + child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() + } else if this.IsGoToSocialAnnounceRequest() { + child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() + } else if this.IsActivityStreamsAudio() { + child = this.GetActivityStreamsAudio().JSONLDContext() + } else if this.IsActivityStreamsBlock() { + child = this.GetActivityStreamsBlock().JSONLDContext() + } else if this.IsActivityStreamsCollection() { + child = this.GetActivityStreamsCollection().JSONLDContext() + } else if this.IsActivityStreamsCollectionPage() { + child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() + } else if this.IsActivityStreamsLike() { + child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() + } else if this.IsGoToSocialLikeAuthorization() { + child = this.GetGoToSocialLikeAuthorization().JSONLDContext() + } else if this.IsGoToSocialLikeRequest() { + child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() + } else if this.IsGoToSocialReplyAuthorization() { + child = this.GetGoToSocialReplyAuthorization().JSONLDContext() + } else if this.IsGoToSocialReplyRequest() { + child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { + return 5 + } + if this.IsActivityStreamsAnnounce() { + return 6 + } + if this.IsGoToSocialAnnounceApproval() { + return 7 + } + if this.IsGoToSocialAnnounceAuthorization() { + return 8 + } + if this.IsGoToSocialAnnounceRequest() { + return 9 + } + if this.IsActivityStreamsApplication() { + return 10 + } + if this.IsActivityStreamsArrive() { + return 11 + } + if this.IsActivityStreamsArticle() { + return 12 + } + if this.IsFunkwhaleArtist() { + return 13 + } + if this.IsActivityStreamsAudio() { + return 14 + } + if this.IsActivityStreamsBlock() { + return 15 + } + if this.IsActivityStreamsCollection() { + return 16 + } + if this.IsActivityStreamsCollectionPage() { + return 17 + } + if this.IsActivityStreamsCreate() { + return 18 + } + if this.IsActivityStreamsDelete() { + return 19 + } + if this.IsActivityStreamsDislike() { + return 20 + } + if this.IsActivityStreamsDocument() { + return 21 + } + if this.IsTootEmoji() { + return 22 + } + if this.IsActivityStreamsEvent() { + return 23 + } + if this.IsActivityStreamsFlag() { + return 24 + } + if this.IsActivityStreamsFollow() { + return 25 + } + if this.IsActivityStreamsGroup() { + return 26 + } + if this.IsTootHashtag() { + return 27 + } + if this.IsTootIdentityProof() { + return 28 + } + if this.IsActivityStreamsIgnore() { + return 29 + } + if this.IsActivityStreamsImage() { + return 30 + } + if this.IsActivityStreamsIntransitiveActivity() { + return 31 + } + if this.IsActivityStreamsInvite() { + return 32 + } + if this.IsActivityStreamsJoin() { + return 33 + } + if this.IsActivityStreamsLeave() { + return 34 + } + if this.IsFunkwhaleLibrary() { + return 35 + } + if this.IsActivityStreamsLike() { + return 36 + } + if this.IsGoToSocialLikeApproval() { + return 37 + } + if this.IsGoToSocialLikeAuthorization() { + return 38 + } + if this.IsGoToSocialLikeRequest() { + return 39 + } + if this.IsActivityStreamsListen() { + return 40 + } + if this.IsActivityStreamsMention() { + return 41 + } + if this.IsActivityStreamsMove() { + return 42 + } + if this.IsActivityStreamsNote() { + return 43 + } + if this.IsActivityStreamsOffer() { + return 44 + } + if this.IsActivityStreamsOrderedCollection() { + return 45 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 46 + } + if this.IsActivityStreamsOrganization() { + return 47 + } + if this.IsActivityStreamsPage() { + return 48 + } + if this.IsActivityStreamsPerson() { + return 49 + } + if this.IsActivityStreamsPlace() { + return 50 + } + if this.IsActivityStreamsProfile() { + return 51 + } + if this.IsSchemaPropertyValue() { + return 52 + } + if this.IsActivityStreamsQuestion() { + return 53 + } + if this.IsActivityStreamsRead() { + return 54 + } + if this.IsActivityStreamsReject() { + return 55 + } + if this.IsActivityStreamsRelationship() { + return 56 + } + if this.IsActivityStreamsRemove() { + return 57 + } + if this.IsGoToSocialReplyApproval() { + return 58 + } + if this.IsGoToSocialReplyAuthorization() { + return 59 + } + if this.IsGoToSocialReplyRequest() { + return 60 + } + if this.IsActivityStreamsService() { + return 61 + } + if this.IsActivityStreamsTentativeAccept() { + return 62 + } + if this.IsActivityStreamsTentativeReject() { + return 63 + } + if this.IsActivityStreamsTombstone() { + return 64 + } + if this.IsFunkwhaleTrack() { + return 65 + } + if this.IsActivityStreamsTravel() { + return 66 + } + if this.IsActivityStreamsUndo() { + return 67 + } + if this.IsActivityStreamsUpdate() { + return 68 + } + if this.IsActivityStreamsVideo() { + return 69 + } + if this.IsActivityStreamsView() { + return 70 + } + 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) + } 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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) + } 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) + } 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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) + } 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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) + } 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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) + } 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 +} + +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling +// IsGoToSocialAnnounceAuthorization afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.clear() + this.gotosocialAnnounceAuthorizationMember = v +} + +// SetGoToSocialAnnounceRequest sets the value of this property. Calling +// IsGoToSocialAnnounceRequest afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.clear() + this.gotosocialAnnounceRequestMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialLikeAuthorization sets the value of this property. Calling +// IsGoToSocialLikeAuthorization afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.clear() + this.gotosocialLikeAuthorizationMember = v +} + +// SetGoToSocialLikeRequest sets the value of this property. Calling +// IsGoToSocialLikeRequest afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.clear() + this.gotosocialLikeRequestMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + +// SetGoToSocialReplyAuthorization sets the value of this property. Calling +// IsGoToSocialReplyAuthorization afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.clear() + this.gotosocialReplyAuthorizationMember = v +} + +// SetGoToSocialReplyRequest sets the value of this property. Calling +// IsGoToSocialReplyRequest afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.clear() + this.gotosocialReplyRequestMember = 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 +} + +// SetSchemaPropertyValue sets the value of this property. Calling +// IsSchemaPropertyValue afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.clear() + this.schemaPropertyValueMember = 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 +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { + this.SetActivityStreamsAnnounce(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { + this.SetGoToSocialAnnounceAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { + this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { + this.SetActivityStreamsCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { + this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { + this.SetTootHashtag(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.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsLike); ok { + this.SetActivityStreamsLike(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { + this.SetGoToSocialLikeAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialLikeRequest); ok { + this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { + this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { + this.SetGoToSocialReplyAuthorization(v) + return nil + } + if v, ok := t.(vocab.GoToSocialReplyRequest); ok { + this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { + this.SetActivityStreamsTombstone(v) + return nil + } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil + this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil + this.gotosocialAnnounceAuthorizationMember = nil + this.gotosocialAnnounceRequestMember = nil + this.activitystreamsApplicationMember = nil + this.activitystreamsArriveMember = nil + this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil + this.activitystreamsAudioMember = nil + this.activitystreamsBlockMember = nil + this.activitystreamsCollectionMember = nil + this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil + this.tootIdentityProofMember = nil + this.activitystreamsIgnoreMember = nil + this.activitystreamsImageMember = nil + this.activitystreamsIntransitiveActivityMember = nil + this.activitystreamsInviteMember = nil + this.activitystreamsJoinMember = nil + this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil + this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil + this.gotosocialLikeAuthorizationMember = nil + this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil + this.activitystreamsQuestionMember = nil + this.activitystreamsReadMember = nil + this.activitystreamsRejectMember = nil + this.activitystreamsRelationshipMember = nil + this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil + this.gotosocialReplyAuthorizationMember = nil + this.gotosocialReplyRequestMember = nil + this.activitystreamsServiceMember = nil + this.activitystreamsTentativeAcceptMember = nil + this.activitystreamsTentativeRejectMember = nil + this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() + } else if this.IsActivityStreamsAnnounce() { + return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() + } else if this.IsGoToSocialAnnounceAuthorization() { + return this.GetGoToSocialAnnounceAuthorization().Serialize() + } else if this.IsGoToSocialAnnounceRequest() { + return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() + } else if this.IsActivityStreamsAudio() { + return this.GetActivityStreamsAudio().Serialize() + } else if this.IsActivityStreamsBlock() { + return this.GetActivityStreamsBlock().Serialize() + } else if this.IsActivityStreamsCollection() { + return this.GetActivityStreamsCollection().Serialize() + } else if this.IsActivityStreamsCollectionPage() { + return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { + return this.GetTootHashtag().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.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() + } else if this.IsActivityStreamsLike() { + return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() + } else if this.IsGoToSocialLikeAuthorization() { + return this.GetGoToSocialLikeAuthorization().Serialize() + } else if this.IsGoToSocialLikeRequest() { + return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { + return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() + } else if this.IsGoToSocialReplyAuthorization() { + return this.GetGoToSocialReplyAuthorization().Serialize() + } else if this.IsGoToSocialReplyRequest() { + return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { + return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().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, + }) +} + +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "to". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to +// the back of a list of the property "to". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of +// a list of the property "to". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back +// of a list of the property "to". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list +// of the property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "to". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the +// back of a list of the property "to". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list +// of the property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + }) +} + +// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list +// of the property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + schemaPropertyValueMember: v, + }) +} + +// 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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + 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, + schemaPropertyValueMember: v, + } + 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { + lhs := this.properties[i].GetActivityStreamsAnnounce() + rhs := this.properties[j].GetActivityStreamsAnnounce() + return lhs.LessThan(rhs) + } else if idx1 == 7 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() + rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 9 { + lhs := this.properties[i].GetGoToSocialAnnounceRequest() + rhs := this.properties[j].GetGoToSocialAnnounceRequest() + return lhs.LessThan(rhs) + } else if idx1 == 10 { + lhs := this.properties[i].GetActivityStreamsApplication() + rhs := this.properties[j].GetActivityStreamsApplication() + return lhs.LessThan(rhs) + } else if idx1 == 11 { + lhs := this.properties[i].GetActivityStreamsArrive() + rhs := this.properties[j].GetActivityStreamsArrive() + return lhs.LessThan(rhs) + } else if idx1 == 12 { + lhs := this.properties[i].GetActivityStreamsArticle() + rhs := this.properties[j].GetActivityStreamsArticle() + return lhs.LessThan(rhs) + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { + lhs := this.properties[i].GetActivityStreamsAudio() + rhs := this.properties[j].GetActivityStreamsAudio() + return lhs.LessThan(rhs) + } else if idx1 == 15 { + lhs := this.properties[i].GetActivityStreamsBlock() + rhs := this.properties[j].GetActivityStreamsBlock() + return lhs.LessThan(rhs) + } else if idx1 == 16 { + lhs := this.properties[i].GetActivityStreamsCollection() + rhs := this.properties[j].GetActivityStreamsCollection() + return lhs.LessThan(rhs) + } else if idx1 == 17 { + lhs := this.properties[i].GetActivityStreamsCollectionPage() + rhs := this.properties[j].GetActivityStreamsCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 18 { + lhs := this.properties[i].GetActivityStreamsCreate() + rhs := this.properties[j].GetActivityStreamsCreate() + return lhs.LessThan(rhs) + } else if idx1 == 19 { + lhs := this.properties[i].GetActivityStreamsDelete() + rhs := this.properties[j].GetActivityStreamsDelete() + return lhs.LessThan(rhs) + } else if idx1 == 20 { + lhs := this.properties[i].GetActivityStreamsDislike() + rhs := this.properties[j].GetActivityStreamsDislike() + return lhs.LessThan(rhs) + } else if idx1 == 21 { + lhs := this.properties[i].GetActivityStreamsDocument() + rhs := this.properties[j].GetActivityStreamsDocument() + return lhs.LessThan(rhs) + } else if idx1 == 22 { + lhs := this.properties[i].GetTootEmoji() + rhs := this.properties[j].GetTootEmoji() + return lhs.LessThan(rhs) + } else if idx1 == 23 { + lhs := this.properties[i].GetActivityStreamsEvent() + rhs := this.properties[j].GetActivityStreamsEvent() + return lhs.LessThan(rhs) + } else if idx1 == 24 { + lhs := this.properties[i].GetActivityStreamsFlag() + rhs := this.properties[j].GetActivityStreamsFlag() + return lhs.LessThan(rhs) + } else if idx1 == 25 { + lhs := this.properties[i].GetActivityStreamsFollow() + rhs := this.properties[j].GetActivityStreamsFollow() + return lhs.LessThan(rhs) + } else if idx1 == 26 { + lhs := this.properties[i].GetActivityStreamsGroup() + rhs := this.properties[j].GetActivityStreamsGroup() + return lhs.LessThan(rhs) + } else if idx1 == 27 { + lhs := this.properties[i].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 28 { + lhs := this.properties[i].GetTootIdentityProof() + rhs := this.properties[j].GetTootIdentityProof() + return lhs.LessThan(rhs) + } else if idx1 == 29 { + lhs := this.properties[i].GetActivityStreamsIgnore() + rhs := this.properties[j].GetActivityStreamsIgnore() + return lhs.LessThan(rhs) + } else if idx1 == 30 { + lhs := this.properties[i].GetActivityStreamsImage() + rhs := this.properties[j].GetActivityStreamsImage() + return lhs.LessThan(rhs) + } else if idx1 == 31 { + lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() + rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() + return lhs.LessThan(rhs) + } else if idx1 == 32 { + lhs := this.properties[i].GetActivityStreamsInvite() + rhs := this.properties[j].GetActivityStreamsInvite() + return lhs.LessThan(rhs) + } else if idx1 == 33 { + lhs := this.properties[i].GetActivityStreamsJoin() + rhs := this.properties[j].GetActivityStreamsJoin() + return lhs.LessThan(rhs) + } else if idx1 == 34 { + lhs := this.properties[i].GetActivityStreamsLeave() + rhs := this.properties[j].GetActivityStreamsLeave() + return lhs.LessThan(rhs) + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { + lhs := this.properties[i].GetActivityStreamsLike() + rhs := this.properties[j].GetActivityStreamsLike() + return lhs.LessThan(rhs) + } else if idx1 == 37 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 38 { + lhs := this.properties[i].GetGoToSocialLikeAuthorization() + rhs := this.properties[j].GetGoToSocialLikeAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 39 { + lhs := this.properties[i].GetGoToSocialLikeRequest() + rhs := this.properties[j].GetGoToSocialLikeRequest() + return lhs.LessThan(rhs) + } else if idx1 == 40 { + lhs := this.properties[i].GetActivityStreamsListen() + rhs := this.properties[j].GetActivityStreamsListen() + return lhs.LessThan(rhs) + } else if idx1 == 41 { + lhs := this.properties[i].GetActivityStreamsMention() + rhs := this.properties[j].GetActivityStreamsMention() + return lhs.LessThan(rhs) + } else if idx1 == 42 { + lhs := this.properties[i].GetActivityStreamsMove() + rhs := this.properties[j].GetActivityStreamsMove() + return lhs.LessThan(rhs) + } else if idx1 == 43 { + lhs := this.properties[i].GetActivityStreamsNote() + rhs := this.properties[j].GetActivityStreamsNote() + return lhs.LessThan(rhs) + } else if idx1 == 44 { + lhs := this.properties[i].GetActivityStreamsOffer() + rhs := this.properties[j].GetActivityStreamsOffer() + return lhs.LessThan(rhs) + } else if idx1 == 45 { + lhs := this.properties[i].GetActivityStreamsOrderedCollection() + rhs := this.properties[j].GetActivityStreamsOrderedCollection() + return lhs.LessThan(rhs) + } else if idx1 == 46 { + lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() + rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() + return lhs.LessThan(rhs) + } else if idx1 == 47 { + lhs := this.properties[i].GetActivityStreamsOrganization() + rhs := this.properties[j].GetActivityStreamsOrganization() + return lhs.LessThan(rhs) + } else if idx1 == 48 { + lhs := this.properties[i].GetActivityStreamsPage() + rhs := this.properties[j].GetActivityStreamsPage() + return lhs.LessThan(rhs) + } else if idx1 == 49 { + lhs := this.properties[i].GetActivityStreamsPerson() + rhs := this.properties[j].GetActivityStreamsPerson() + return lhs.LessThan(rhs) + } else if idx1 == 50 { + lhs := this.properties[i].GetActivityStreamsPlace() + rhs := this.properties[j].GetActivityStreamsPlace() + return lhs.LessThan(rhs) + } else if idx1 == 51 { + lhs := this.properties[i].GetActivityStreamsProfile() + rhs := this.properties[j].GetActivityStreamsProfile() + return lhs.LessThan(rhs) + } else if idx1 == 52 { + lhs := this.properties[i].GetSchemaPropertyValue() + rhs := this.properties[j].GetSchemaPropertyValue() + return lhs.LessThan(rhs) + } else if idx1 == 53 { + lhs := this.properties[i].GetActivityStreamsQuestion() + rhs := this.properties[j].GetActivityStreamsQuestion() + return lhs.LessThan(rhs) + } else if idx1 == 54 { + lhs := this.properties[i].GetActivityStreamsRead() + rhs := this.properties[j].GetActivityStreamsRead() + return lhs.LessThan(rhs) + } else if idx1 == 55 { + lhs := this.properties[i].GetActivityStreamsReject() + rhs := this.properties[j].GetActivityStreamsReject() + return lhs.LessThan(rhs) + } else if idx1 == 56 { + lhs := this.properties[i].GetActivityStreamsRelationship() + rhs := this.properties[j].GetActivityStreamsRelationship() + return lhs.LessThan(rhs) + } else if idx1 == 57 { + lhs := this.properties[i].GetActivityStreamsRemove() + rhs := this.properties[j].GetActivityStreamsRemove() + return lhs.LessThan(rhs) + } else if idx1 == 58 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 59 { + lhs := this.properties[i].GetGoToSocialReplyAuthorization() + rhs := this.properties[j].GetGoToSocialReplyAuthorization() + return lhs.LessThan(rhs) + } else if idx1 == 60 { + lhs := this.properties[i].GetGoToSocialReplyRequest() + rhs := this.properties[j].GetGoToSocialReplyRequest() + return lhs.LessThan(rhs) + } else if idx1 == 61 { + lhs := this.properties[i].GetActivityStreamsService() + rhs := this.properties[j].GetActivityStreamsService() + return lhs.LessThan(rhs) + } else if idx1 == 62 { + lhs := this.properties[i].GetActivityStreamsTentativeAccept() + rhs := this.properties[j].GetActivityStreamsTentativeAccept() + return lhs.LessThan(rhs) + } else if idx1 == 63 { + lhs := this.properties[i].GetActivityStreamsTentativeReject() + rhs := this.properties[j].GetActivityStreamsTentativeReject() + return lhs.LessThan(rhs) + } else if idx1 == 64 { + lhs := this.properties[i].GetActivityStreamsTombstone() + rhs := this.properties[j].GetActivityStreamsTombstone() + return lhs.LessThan(rhs) + } else if idx1 == 65 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 66 { + lhs := this.properties[i].GetActivityStreamsTravel() + rhs := this.properties[j].GetActivityStreamsTravel() + return lhs.LessThan(rhs) + } else if idx1 == 67 { + lhs := this.properties[i].GetActivityStreamsUndo() + rhs := this.properties[j].GetActivityStreamsUndo() + return lhs.LessThan(rhs) + } else if idx1 == 68 { + lhs := this.properties[i].GetActivityStreamsUpdate() + rhs := this.properties[j].GetActivityStreamsUpdate() + return lhs.LessThan(rhs) + } else if idx1 == 69 { + lhs := this.properties[i].GetActivityStreamsVideo() + rhs := this.properties[j].GetActivityStreamsVideo() + return lhs.LessThan(rhs) + } else if idx1 == 70 { + 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 + } +} + +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value +// to the front of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front +// of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the +// front of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a +// list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the +// front of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a +// list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialReplyRequestMember: 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 + } +} + +// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a +// list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + schemaPropertyValueMember: v, + }}, 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeRequestMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyAuthorizationMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyRequestMember: 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, + } +} + +// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + schemaPropertyValueMember: v, + } +} + +// 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go new file mode 100644 index 000000000..19fbddf83 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go new file mode 100644 index 000000000..d872e5ab5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go new file mode 100644 index 000000000..8d4b8230f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertytotalitems + +import ( + nonnegativeinteger "code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_doc.go new file mode 100644 index 000000000..c6c0892f0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_pkg.go new file mode 100644 index 000000000..f59f9c692 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go new file mode 100644 index 000000000..d72ae1241 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go @@ -0,0 +1,215 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyunits + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_doc.go new file mode 100644 index 000000000..c3a86be0a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_pkg.go new file mode 100644 index 000000000..2c366bab9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go new file mode 100644 index 000000000..f225c1657 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyupdated + +import ( + datetime "code.superseriousbusiness.org/activity/streams/values/dateTime" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_doc.go new file mode 100644 index 000000000..025914280 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_pkg.go new file mode 100644 index 000000000..cf4108603 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_pkg.go @@ -0,0 +1,29 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyurl + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeHashtagToot returns the deserialization method for the + // "TootHashtag" non-functional property in the vocabulary "Toot" + DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go new file mode 100644 index 000000000..90838e25e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go @@ -0,0 +1,900 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyurl + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + tootHashtagMember vocab.TootHashtag + 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.DeserializeHashtagToot()(m, aliasMap); err == nil { + this := &ActivityStreamsUrlPropertyIterator{ + alias: alias, + tootHashtagMember: v, + } + 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 +} + +// GetTootHashtag returns the value of this property. When IsTootHashtag returns +// false, GetTootHashtag will return an arbitrary value. +func (this ActivityStreamsUrlPropertyIterator) GetTootHashtag() vocab.TootHashtag { + return this.tootHashtagMember +} + +// 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.IsTootHashtag() { + return this.GetTootHashtag() + } + 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.IsTootHashtag() || + 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 +} + +// IsTootHashtag returns true if this property has a type of "Hashtag". When true, +// use the GetTootHashtag and SetTootHashtag methods to access and set this +// property. +func (this ActivityStreamsUrlPropertyIterator) IsTootHashtag() bool { + return this.tootHashtagMember != 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.IsTootHashtag() { + child = this.GetTootHashtag().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.IsTootHashtag() { + return 2 + } + if this.IsActivityStreamsMention() { + 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 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.IsTootHashtag() { + return this.GetTootHashtag().LessThan(o.GetTootHashtag()) + } 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) +} + +// SetTootHashtag sets the value of this property. Calling IsTootHashtag +// afterwards returns true. +func (this *ActivityStreamsUrlPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { + this.clear() + this.tootHashtagMember = 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.TootHashtag); ok { + this.SetTootHashtag(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.tootHashtagMember = 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.IsTootHashtag() { + return this.GetTootHashtag().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, + }) +} + +// AppendTootHashtag appends a Hashtag value to the back of a list of the property +// "url". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsUrlProperty) AppendTootHashtag(v vocab.TootHashtag) { + this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + tootHashtagMember: 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 + } +} + +// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { + 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, + tootHashtagMember: 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].GetTootHashtag() + rhs := this.properties[j].GetTootHashtag() + return lhs.LessThan(rhs) + } else if idx1 == 3 { + 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 + } +} + +// PrependTootHashtag prepends a Hashtag value to the front of a list of the +// property "url". Invalidates all iterators. +func (this *ActivityStreamsUrlProperty) PrependTootHashtag(v vocab.TootHashtag) { + this.properties = append([]*ActivityStreamsUrlPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + tootHashtagMember: 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, + } +} + +// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + tootHashtagMember: 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_doc.go new file mode 100644 index 000000000..aca7b5c39 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_pkg.go new file mode 100644 index 000000000..b69e4b875 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_pkg.go @@ -0,0 +1,15 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go new file mode 100644 index 000000000..ae4fe95af --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertywidth + +import ( + nonnegativeinteger "code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_doc.go new file mode 100644 index 000000000..62869ae5e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_pkg.go new file mode 100644 index 000000000..af3ba581c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeaccept + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go new file mode 100644 index 000000000..3371ab721 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go @@ -0,0 +1,1895 @@ +// Code generated by astool. DO NOT EDIT. + +package typeaccept + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsAccept) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsAccept) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_doc.go new file mode 100644 index 000000000..5d106b490 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_pkg.go new file mode 100644 index 000000000..4a314f164 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeactivity + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go new file mode 100644 index 000000000..7592749e4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go @@ -0,0 +1,1874 @@ +// Code generated by astool. DO NOT EDIT. + +package typeactivity + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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", "AnnounceRequest", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeRequest", "Listen", "Move", "Offer", "Question", "Read", "Reject", "Remove", "ReplyRequest", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsActivity) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsActivity) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_doc.go new file mode 100644 index 000000000..770b99c0c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_pkg.go new file mode 100644 index 000000000..9d1365735 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeadd + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go new file mode 100644 index 000000000..2d7c63514 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go @@ -0,0 +1,1892 @@ +// Code generated by astool. DO NOT EDIT. + +package typeadd + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsAdd) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsAdd) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_doc.go new file mode 100644 index 000000000..ed357559a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_pkg.go new file mode 100644 index 000000000..7ecd4121b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_pkg.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannounce + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go new file mode 100644 index 000000000..0851dfa94 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go @@ -0,0 +1,1913 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannounce + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsAnnounce) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsAnnounce) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// 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.GoToSocialApprovedBy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsAnnounce) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsAnnounce) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_doc.go new file mode 100644 index 000000000..097c76de4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go new file mode 100644 index 000000000..b1c70d6fb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go @@ -0,0 +1,241 @@ +// Code generated by astool. DO NOT EDIT. + +package typeapplication + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeAlsoKnownAsPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAlsoKnownAsProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, 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) + // 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) + // DeserializeEndpointsPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndpointsProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, 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) + // DeserializeIndexablePropertyToot returns the deserialization method for + // the "TootIndexableProperty" non-functional property in the + // vocabulary "Toot" + DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, 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) + // DeserializeMovedToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMovedToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go new file mode 100644 index 000000000..2b73bfaff --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go @@ -0,0 +1,2279 @@ +// Code generated by astool. DO NOT EDIT. + +package typeapplication + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// Describes a software application. +// +// Example 42 (https://www.w3.org/TR/activitystreams-vocabulary/#ex34-jsonld): +// +// { +// "name": "Exampletron 3000", +// "type": "Application" +// } +type ActivityStreamsApplication struct { + ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty + 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 + ActivityStreamsEndpoints vocab.ActivityStreamsEndpointsProperty + 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 + TootIndexable vocab.TootIndexableProperty + ActivityStreamsLiked vocab.ActivityStreamsLikedProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty + ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAlsoKnownAs = 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.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.DeserializeEndpointsPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndpoints = 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.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootIndexable = 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.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMovedTo = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "alsoKnownAs" { + 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 == "discoverable" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "endpoints" { + 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 == "indexable" { + 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 == "movedTo" { + 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 == "sensitive" { + 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 == "to" { + 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{}), + } +} + +// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists, +// and nil otherwise. +func (this ActivityStreamsApplication) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty { + return this.ActivityStreamsAlsoKnownAs +} + +// 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 +} + +// GetActivityStreamsEndpoints returns the "endpoints" property if it exists, and +// nil otherwise. +func (this ActivityStreamsApplication) GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty { + return this.ActivityStreamsEndpoints +} + +// 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 +} + +// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil +// otherwise. +func (this ActivityStreamsApplication) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty { + return this.ActivityStreamsMovedTo +} + +// 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsApplication) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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 +} + +// GetTootIndexable returns the "indexable" property if it exists, and nil +// otherwise. +func (this ActivityStreamsApplication) GetTootIndexable() vocab.TootIndexableProperty { + return this.TootIndexable +} + +// 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.ActivityStreamsAlsoKnownAs, 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.TootDiscoverable, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndpoints, 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.TootIndexable, 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.ActivityStreamsMovedTo, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "alsoKnownAs" + if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "endpoints" + if lhs, rhs := this.ActivityStreamsEndpoints, o.GetActivityStreamsEndpoints(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "indexable" + if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "movedTo" + if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "alsoKnownAs" + if this.ActivityStreamsAlsoKnownAs != nil { + if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAlsoKnownAs.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 "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 "endpoints" + if this.ActivityStreamsEndpoints != nil { + if i, err := this.ActivityStreamsEndpoints.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndpoints.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 "indexable" + if this.TootIndexable != nil { + if i, err := this.TootIndexable.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootIndexable.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 "movedTo" + if this.ActivityStreamsMovedTo != nil { + if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMovedTo.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. +func (this *ActivityStreamsApplication) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) { + this.ActivityStreamsAlsoKnownAs = i +} + +// 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 +} + +// SetActivityStreamsEndpoints sets the "endpoints" property. +func (this *ActivityStreamsApplication) SetActivityStreamsEndpoints(i vocab.ActivityStreamsEndpointsProperty) { + this.ActivityStreamsEndpoints = 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 +} + +// SetActivityStreamsMovedTo sets the "movedTo" property. +func (this *ActivityStreamsApplication) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) { + this.ActivityStreamsMovedTo = 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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsApplication) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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 +} + +// SetTootIndexable sets the "indexable" property. +func (this *ActivityStreamsApplication) SetTootIndexable(i vocab.TootIndexableProperty) { + this.TootIndexable = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_doc.go new file mode 100644 index 000000000..2537e8b78 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go new file mode 100644 index 000000000..1443a0639 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go @@ -0,0 +1,195 @@ +// Code generated by astool. DO NOT EDIT. + +package typearrive + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go new file mode 100644 index 000000000..487f6dd8c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go @@ -0,0 +1,1829 @@ +// Code generated by astool. DO NOT EDIT. + +package typearrive + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsArrive) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsArrive) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_doc.go new file mode 100644 index 000000000..e1d682448 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_pkg.go new file mode 100644 index 000000000..e3ebfdb94 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_pkg.go @@ -0,0 +1,188 @@ +// Code generated by astool. DO NOT EDIT. + +package typearticle + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go new file mode 100644 index 000000000..8a0229af7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go @@ -0,0 +1,1736 @@ +// Code generated by astool. DO NOT EDIT. + +package typearticle + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsArticle) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsArticle) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsArticle) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsArticle) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsArticle) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsArticle) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_doc.go new file mode 100644 index 000000000..9f55f003a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_pkg.go new file mode 100644 index 000000000..729435fbd --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_pkg.go @@ -0,0 +1,196 @@ +// Code generated by astool. DO NOT EDIT. + +package typeaudio + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeFocalPointPropertyToot returns the deserialization method + // for the "TootFocalPointProperty" non-functional property in the + // vocabulary "Toot" + DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go new file mode 100644 index 000000000..bb6664c2c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go @@ -0,0 +1,1819 @@ +// Code generated by astool. DO NOT EDIT. + +package typeaudio + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + TootFocalPoint vocab.TootFocalPointProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootFocalPoint = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "focalPoint" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsAudio) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsAudio) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsAudio) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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 +} + +// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil +// otherwise. +func (this ActivityStreamsAudio) GetTootFocalPoint() vocab.TootFocalPointProperty { + return this.TootFocalPoint +} + +// 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.GoToSocialApprovedBy, 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.TootFocalPoint, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "focalPoint" + if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "focalPoint" + if this.TootFocalPoint != nil { + if i, err := this.TootFocalPoint.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootFocalPoint.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsAudio) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsAudio) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsAudio) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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 +} + +// SetTootFocalPoint sets the "focalPoint" property. +func (this *ActivityStreamsAudio) SetTootFocalPoint(i vocab.TootFocalPointProperty) { + this.TootFocalPoint = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_doc.go new file mode 100644 index 000000000..fb575cffc --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_pkg.go new file mode 100644 index 000000000..1712c97ad --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeblock + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go new file mode 100644 index 000000000..8e9729127 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go @@ -0,0 +1,1862 @@ +// Code generated by astool. DO NOT EDIT. + +package typeblock + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsBlock) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsBlock) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_doc.go new file mode 100644 index 000000000..d5f865c6e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_pkg.go new file mode 100644 index 000000000..7f73e6d67 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typecollection + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go new file mode 100644 index 000000000..7bdedaa06 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go @@ -0,0 +1,1875 @@ +// Code generated by astool. DO NOT EDIT. + +package typecollection + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty + 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.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.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 == "sensitive" { + 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 == "to" { + continue + } else if k == "totalItems" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsCollection) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsCollection) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go new file mode 100644 index 000000000..ea5bc596d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go new file mode 100644 index 000000000..9ee4193f8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go @@ -0,0 +1,211 @@ +// Code generated by astool. DO NOT EDIT. + +package typecollectionpage + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go new file mode 100644 index 000000000..4d958f14f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go @@ -0,0 +1,2002 @@ +// Code generated by astool. DO NOT EDIT. + +package typecollectionpage + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty + 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.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.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 == "sensitive" { + 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 == "to" { + continue + } else if k == "totalItems" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsCollectionPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsCollectionPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_doc.go new file mode 100644 index 000000000..98e4f5ae6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_pkg.go new file mode 100644 index 000000000..e49c505b4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typecreate + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go new file mode 100644 index 000000000..95465b3a9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go @@ -0,0 +1,1866 @@ +// Code generated by astool. DO NOT EDIT. + +package typecreate + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsCreate) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsCreate) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_doc.go new file mode 100644 index 000000000..52199177d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_pkg.go new file mode 100644 index 000000000..1d19e2223 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typedelete + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go new file mode 100644 index 000000000..1f24effb6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go @@ -0,0 +1,1867 @@ +// Code generated by astool. DO NOT EDIT. + +package typedelete + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsDelete) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsDelete) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_doc.go new file mode 100644 index 000000000..7297a1203 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go new file mode 100644 index 000000000..56b53bfcb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typedislike + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go new file mode 100644 index 000000000..fd08b8d41 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go @@ -0,0 +1,1859 @@ +// Code generated by astool. DO NOT EDIT. + +package typedislike + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsDislike) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsDislike) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_doc.go new file mode 100644 index 000000000..0c4682fd9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_pkg.go new file mode 100644 index 000000000..98036d6d1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_pkg.go @@ -0,0 +1,196 @@ +// Code generated by astool. DO NOT EDIT. + +package typedocument + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeFocalPointPropertyToot returns the deserialization method + // for the "TootFocalPointProperty" non-functional property in the + // vocabulary "Toot" + DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go new file mode 100644 index 000000000..0d2d06780 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go @@ -0,0 +1,1820 @@ +// Code generated by astool. DO NOT EDIT. + +package typedocument + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + TootFocalPoint vocab.TootFocalPointProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootFocalPoint = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "focalPoint" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsDocument) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsDocument) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsDocument) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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 +} + +// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil +// otherwise. +func (this ActivityStreamsDocument) GetTootFocalPoint() vocab.TootFocalPointProperty { + return this.TootFocalPoint +} + +// 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.GoToSocialApprovedBy, 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.TootFocalPoint, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "focalPoint" + if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "focalPoint" + if this.TootFocalPoint != nil { + if i, err := this.TootFocalPoint.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootFocalPoint.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsDocument) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsDocument) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsDocument) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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 +} + +// SetTootFocalPoint sets the "focalPoint" property. +func (this *ActivityStreamsDocument) SetTootFocalPoint(i vocab.TootFocalPointProperty) { + this.TootFocalPoint = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go new file mode 100644 index 000000000..b88e108de --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeendpoints contains the implementation for the Endpoints 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 typeendpoints diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go new file mode 100644 index 000000000..6c1b8ab8c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go @@ -0,0 +1,50 @@ +// Code generated by astool. DO NOT EDIT. + +package typeendpoints + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeSharedInboxPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsSharedInboxProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeSharedInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharedInboxProperty, 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go new file mode 100644 index 000000000..53fa0901a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go @@ -0,0 +1,250 @@ +// Code generated by astool. DO NOT EDIT. + +package typeendpoints + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +// A json object which maps additional (typically server/domain-wide) endpoints +// which may be useful either for this actor or someone referencing this +// actor. This mapping may be nested inside the actor document as the value or +// may be a link to a JSON-LD document with these properties. +type ActivityStreamsEndpoints struct { + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsSharedInbox vocab.ActivityStreamsSharedInboxProperty + alias string + unknown map[string]interface{} +} + +// ActivityStreamsEndpointsExtends returns true if the Endpoints type extends from +// the other type. +func ActivityStreamsEndpointsExtends(other vocab.Type) bool { + // Shortcut implementation: this does not extend anything. + return false +} + +// DeserializeEndpoints creates a Endpoints from a map representation that has +// been unmarshalled from a text or binary format. +func DeserializeEndpoints(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsEndpoints, error) { + alias := "" + if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { + alias = a + } + this := &ActivityStreamsEndpoints{ + alias: alias, + unknown: make(map[string]interface{}), + } + + // Begin: Known property deserialization + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeSharedInboxPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSharedInbox = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "id" { + continue + } else if k == "sharedInbox" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// EndpointsIsDisjointWith returns true if the other provided type is disjoint +// with the Endpoints type. +func EndpointsIsDisjointWith(other vocab.Type) bool { + // Shortcut implementation: is not disjoint with anything. + return false +} + +// EndpointsIsExtendedBy returns true if the other provided type extends from the +// Endpoints type. Note that it returns false if the types are the same; see +// the "IsOrExtendsEndpoints" variant instead. +func EndpointsIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// IsOrExtendsEndpoints returns true if the other provided type is the Endpoints +// type or extends from the Endpoints type. +func IsOrExtendsEndpoints(other vocab.Type) bool { + if other.GetTypeName() == "Endpoints" { + return true + } + return EndpointsIsExtendedBy(other) +} + +// NewActivityStreamsEndpoints creates a new Endpoints type +func NewActivityStreamsEndpoints() *ActivityStreamsEndpoints { + return &ActivityStreamsEndpoints{ + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsSharedInbox returns the "sharedInbox" property if it exists, +// and nil otherwise. +func (this ActivityStreamsEndpoints) GetActivityStreamsSharedInbox() vocab.ActivityStreamsSharedInboxProperty { + return this.ActivityStreamsSharedInbox +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this ActivityStreamsEndpoints) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetTypeName returns the name of this type. +func (this ActivityStreamsEndpoints) GetTypeName() string { + return "Endpoints" +} + +// GetUnknownProperties returns the unknown properties for the Endpoints 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 ActivityStreamsEndpoints) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Endpoints type extends from the other type. +func (this ActivityStreamsEndpoints) IsExtending(other vocab.Type) bool { + return ActivityStreamsEndpointsExtends(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 ActivityStreamsEndpoints) JSONLDContext() map[string]string { + m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsSharedInbox, m) + + return m +} + +// LessThan computes if this Endpoints is lesser, with an arbitrary but stable +// determination. +func (this ActivityStreamsEndpoints) LessThan(o vocab.ActivityStreamsEndpoints) bool { + // Begin: Compare known properties + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sharedInbox" + if lhs, rhs := this.ActivityStreamsSharedInbox, o.GetActivityStreamsSharedInbox(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is 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 ActivityStreamsEndpoints) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + // Begin: Serialize known properties + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "sharedInbox" + if this.ActivityStreamsSharedInbox != nil { + if i, err := this.ActivityStreamsSharedInbox.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSharedInbox.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 +} + +// SetActivityStreamsSharedInbox sets the "sharedInbox" property. +func (this *ActivityStreamsEndpoints) SetActivityStreamsSharedInbox(i vocab.ActivityStreamsSharedInboxProperty) { + this.ActivityStreamsSharedInbox = i +} + +// SetJSONLDId sets the "id" property. +func (this *ActivityStreamsEndpoints) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this ActivityStreamsEndpoints) 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 ActivityStreamsEndpoints) 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_doc.go new file mode 100644 index 000000000..f451b2ae1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_pkg.go new file mode 100644 index 000000000..6ec762ae5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_pkg.go @@ -0,0 +1,188 @@ +// Code generated by astool. DO NOT EDIT. + +package typeevent + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go new file mode 100644 index 000000000..1ce5e55ba --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go @@ -0,0 +1,1733 @@ +// Code generated by astool. DO NOT EDIT. + +package typeevent + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsEvent) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsEvent) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsEvent) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsEvent) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsEvent) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsEvent) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_doc.go new file mode 100644 index 000000000..aef69614e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_pkg.go new file mode 100644 index 000000000..59155cca3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeflag + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go new file mode 100644 index 000000000..27d3c84e2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go @@ -0,0 +1,1864 @@ +// Code generated by astool. DO NOT EDIT. + +package typeflag + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsFlag) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsFlag) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_doc.go new file mode 100644 index 000000000..4c8450ab7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_pkg.go new file mode 100644 index 000000000..197658b04 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typefollow + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go new file mode 100644 index 000000000..f55576aa2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go @@ -0,0 +1,1868 @@ +// Code generated by astool. DO NOT EDIT. + +package typefollow + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsFollow) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsFollow) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_doc.go new file mode 100644 index 000000000..7bc7bede6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go new file mode 100644 index 000000000..5f7803be3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go @@ -0,0 +1,241 @@ +// Code generated by astool. DO NOT EDIT. + +package typegroup + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeAlsoKnownAsPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAlsoKnownAsProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, 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) + // 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) + // DeserializeEndpointsPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndpointsProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, 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) + // DeserializeIndexablePropertyToot returns the deserialization method for + // the "TootIndexableProperty" non-functional property in the + // vocabulary "Toot" + DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, 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) + // DeserializeMovedToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMovedToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go new file mode 100644 index 000000000..19e2875d9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go @@ -0,0 +1,2279 @@ +// Code generated by astool. DO NOT EDIT. + +package typegroup + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 { + ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty + 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 + ActivityStreamsEndpoints vocab.ActivityStreamsEndpointsProperty + 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 + TootIndexable vocab.TootIndexableProperty + ActivityStreamsLiked vocab.ActivityStreamsLikedProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty + ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAlsoKnownAs = 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.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.DeserializeEndpointsPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndpoints = 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.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootIndexable = 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.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMovedTo = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "alsoKnownAs" { + 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 == "discoverable" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "endpoints" { + 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 == "indexable" { + 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 == "movedTo" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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{}), + } +} + +// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists, +// and nil otherwise. +func (this ActivityStreamsGroup) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty { + return this.ActivityStreamsAlsoKnownAs +} + +// 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 +} + +// GetActivityStreamsEndpoints returns the "endpoints" property if it exists, and +// nil otherwise. +func (this ActivityStreamsGroup) GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty { + return this.ActivityStreamsEndpoints +} + +// 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 +} + +// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil +// otherwise. +func (this ActivityStreamsGroup) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty { + return this.ActivityStreamsMovedTo +} + +// 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsGroup) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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 +} + +// GetTootIndexable returns the "indexable" property if it exists, and nil +// otherwise. +func (this ActivityStreamsGroup) GetTootIndexable() vocab.TootIndexableProperty { + return this.TootIndexable +} + +// 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.ActivityStreamsAlsoKnownAs, 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.TootDiscoverable, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndpoints, 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.TootIndexable, 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.ActivityStreamsMovedTo, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "alsoKnownAs" + if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "endpoints" + if lhs, rhs := this.ActivityStreamsEndpoints, o.GetActivityStreamsEndpoints(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "indexable" + if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "movedTo" + if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "alsoKnownAs" + if this.ActivityStreamsAlsoKnownAs != nil { + if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAlsoKnownAs.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 "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 "endpoints" + if this.ActivityStreamsEndpoints != nil { + if i, err := this.ActivityStreamsEndpoints.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndpoints.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 "indexable" + if this.TootIndexable != nil { + if i, err := this.TootIndexable.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootIndexable.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 "movedTo" + if this.ActivityStreamsMovedTo != nil { + if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMovedTo.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. +func (this *ActivityStreamsGroup) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) { + this.ActivityStreamsAlsoKnownAs = i +} + +// 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 +} + +// SetActivityStreamsEndpoints sets the "endpoints" property. +func (this *ActivityStreamsGroup) SetActivityStreamsEndpoints(i vocab.ActivityStreamsEndpointsProperty) { + this.ActivityStreamsEndpoints = 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 +} + +// SetActivityStreamsMovedTo sets the "movedTo" property. +func (this *ActivityStreamsGroup) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) { + this.ActivityStreamsMovedTo = 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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsGroup) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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 +} + +// SetTootIndexable sets the "indexable" property. +func (this *ActivityStreamsGroup) SetTootIndexable(i vocab.TootIndexableProperty) { + this.TootIndexable = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_doc.go new file mode 100644 index 000000000..0c21393cc --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go new file mode 100644 index 000000000..2bc323c6c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeignore + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go new file mode 100644 index 000000000..88e6abb85 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go @@ -0,0 +1,1868 @@ +// Code generated by astool. DO NOT EDIT. + +package typeignore + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsIgnore) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsIgnore) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_doc.go new file mode 100644 index 000000000..7225f297b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_pkg.go new file mode 100644 index 000000000..4ab62e8ae --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_pkg.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package typeimage + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeFocalPointPropertyToot returns the deserialization method + // for the "TootFocalPointProperty" non-functional property in the + // vocabulary "Toot" + DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go new file mode 100644 index 000000000..23274172e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go @@ -0,0 +1,1910 @@ +// Code generated by astool. DO NOT EDIT. + +package typeimage + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + TootFocalPoint vocab.TootFocalPointProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsHeight vocab.ActivityStreamsHeightProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootFocalPoint = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "focalPoint" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsImage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsImage) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsImage) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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 +} + +// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil +// otherwise. +func (this ActivityStreamsImage) GetTootFocalPoint() vocab.TootFocalPointProperty { + return this.TootFocalPoint +} + +// 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.GoToSocialApprovedBy, 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.TootFocalPoint, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "focalPoint" + if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "focalPoint" + if this.TootFocalPoint != nil { + if i, err := this.TootFocalPoint.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootFocalPoint.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsImage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsImage) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsImage) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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 +} + +// SetTootFocalPoint sets the "focalPoint" property. +func (this *ActivityStreamsImage) SetTootFocalPoint(i vocab.TootFocalPointProperty) { + this.TootFocalPoint = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go new file mode 100644 index 000000000..d38017ec2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go new file mode 100644 index 000000000..e25c07eb5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go @@ -0,0 +1,195 @@ +// Code generated by astool. DO NOT EDIT. + +package typeintransitiveactivity + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go new file mode 100644 index 000000000..866ab4fdd --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go @@ -0,0 +1,1833 @@ +// Code generated by astool. DO NOT EDIT. + +package typeintransitiveactivity + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_doc.go new file mode 100644 index 000000000..2bc79acc6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_pkg.go new file mode 100644 index 000000000..370f0f23e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeinvite + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go new file mode 100644 index 000000000..b127019a3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go @@ -0,0 +1,1876 @@ +// Code generated by astool. DO NOT EDIT. + +package typeinvite + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsInvite) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsInvite) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_doc.go new file mode 100644 index 000000000..fce28e4c3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_pkg.go new file mode 100644 index 000000000..bb75e8c3a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typejoin + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go new file mode 100644 index 000000000..272c628f9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go @@ -0,0 +1,1866 @@ +// Code generated by astool. DO NOT EDIT. + +package typejoin + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsJoin) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsJoin) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_doc.go new file mode 100644 index 000000000..9d5633e39 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_pkg.go new file mode 100644 index 000000000..8ae071e4e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeleave + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go new file mode 100644 index 000000000..dcbd90aa6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go @@ -0,0 +1,1881 @@ +// Code generated by astool. DO NOT EDIT. + +package typeleave + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsLeave) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsLeave) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_doc.go new file mode 100644 index 000000000..6e51d66d8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_pkg.go new file mode 100644 index 000000000..2c681db43 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_pkg.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package typelike + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go new file mode 100644 index 000000000..f1f0ac6a7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go @@ -0,0 +1,1905 @@ +// Code generated by astool. DO NOT EDIT. + +package typelike + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsLike) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsLike) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// 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.GoToSocialApprovedBy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsLike) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsLike) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_doc.go new file mode 100644 index 000000000..23bb10622 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_pkg.go new file mode 100644 index 000000000..76afe4e2e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_pkg.go @@ -0,0 +1,91 @@ +// Code generated by astool. DO NOT EDIT. + +package typelink + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go new file mode 100644 index 000000000..27f927e71 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go @@ -0,0 +1,732 @@ +// Code generated by astool. DO NOT EDIT. + +package typelink + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "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{"Hashtag", "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_doc.go new file mode 100644 index 000000000..480e1e384 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_pkg.go new file mode 100644 index 000000000..79e3eee27 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typelisten + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go new file mode 100644 index 000000000..51e0e4adb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go @@ -0,0 +1,1862 @@ +// Code generated by astool. DO NOT EDIT. + +package typelisten + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsListen) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsListen) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_doc.go new file mode 100644 index 000000000..6e0f5fa5b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_pkg.go new file mode 100644 index 000000000..a7f9a03ca --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_pkg.go @@ -0,0 +1,91 @@ +// Code generated by astool. DO NOT EDIT. + +package typemention + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go new file mode 100644 index 000000000..537c95b34 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go @@ -0,0 +1,725 @@ +// Code generated by astool. DO NOT EDIT. + +package typemention + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_doc.go new file mode 100644 index 000000000..f5409ea00 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_pkg.go new file mode 100644 index 000000000..4f39b43ac --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typemove + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go new file mode 100644 index 000000000..01fe051e1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go @@ -0,0 +1,1871 @@ +// Code generated by astool. DO NOT EDIT. + +package typemove + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsMove) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsMove) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_doc.go new file mode 100644 index 000000000..70354bba8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_pkg.go new file mode 100644 index 000000000..31280fdfd --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_pkg.go @@ -0,0 +1,188 @@ +// Code generated by astool. DO NOT EDIT. + +package typenote + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go new file mode 100644 index 000000000..15989dd87 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go @@ -0,0 +1,1733 @@ +// Code generated by astool. DO NOT EDIT. + +package typenote + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsNote) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsNote) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsNote) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsNote) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsNote) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsNote) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_doc.go new file mode 100644 index 000000000..e49c55cd0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_pkg.go new file mode 100644 index 000000000..12c506250 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typeobject + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go new file mode 100644 index 000000000..7def5af57 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go @@ -0,0 +1,1651 @@ +// Code generated by astool. DO NOT EDIT. + +package typeobject + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsObject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsObject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_doc.go new file mode 100644 index 000000000..8bb80b809 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_pkg.go new file mode 100644 index 000000000..4db2248b1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeoffer + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go new file mode 100644 index 000000000..6a20b59e5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go @@ -0,0 +1,1875 @@ +// Code generated by astool. DO NOT EDIT. + +package typeoffer + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsOffer) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsOffer) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go new file mode 100644 index 000000000..332ac2c2c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go new file mode 100644 index 000000000..23812102b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go @@ -0,0 +1,200 @@ +// Code generated by astool. DO NOT EDIT. + +package typeorderedcollection + +import vocab "code.superseriousbusiness.org/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) + // 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go new file mode 100644 index 000000000..cbbf5e3b6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go @@ -0,0 +1,1875 @@ +// Code generated by astool. DO NOT EDIT. + +package typeorderedcollection + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty + 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.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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.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.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 == "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 == "sensitive" { + 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 == "to" { + continue + } else if k == "totalItems" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsOrderedCollection) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.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.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, 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 "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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsOrderedCollection) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go new file mode 100644 index 000000000..a81a66313 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go new file mode 100644 index 000000000..d907ed26b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go @@ -0,0 +1,216 @@ +// Code generated by astool. DO NOT EDIT. + +package typeorderedcollectionpage + +import vocab "code.superseriousbusiness.org/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) + // 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go new file mode 100644 index 000000000..e2e82c966 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go @@ -0,0 +1,2042 @@ +// Code generated by astool. DO NOT EDIT. + +package typeorderedcollectionpage + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartIndex vocab.ActivityStreamsStartIndexProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty + 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.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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.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.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 == "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 == "sensitive" { + 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 == "to" { + continue + } else if k == "totalItems" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.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.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, 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 "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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_doc.go new file mode 100644 index 000000000..5e9e4630e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go new file mode 100644 index 000000000..a3b2e4496 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go @@ -0,0 +1,241 @@ +// Code generated by astool. DO NOT EDIT. + +package typeorganization + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeAlsoKnownAsPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAlsoKnownAsProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, 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) + // 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) + // DeserializeEndpointsPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndpointsProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, 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) + // DeserializeIndexablePropertyToot returns the deserialization method for + // the "TootIndexableProperty" non-functional property in the + // vocabulary "Toot" + DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, 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) + // DeserializeMovedToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMovedToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go new file mode 100644 index 000000000..8784a0157 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go @@ -0,0 +1,2279 @@ +// Code generated by astool. DO NOT EDIT. + +package typeorganization + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// Represents an organization. +// +// Example 44 (https://www.w3.org/TR/activitystreams-vocabulary/#ex186-jsonld): +// +// { +// "name": "Example Co.", +// "type": "Organization" +// } +type ActivityStreamsOrganization struct { + ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty + 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 + ActivityStreamsEndpoints vocab.ActivityStreamsEndpointsProperty + 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 + TootIndexable vocab.TootIndexableProperty + ActivityStreamsLiked vocab.ActivityStreamsLikedProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty + ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAlsoKnownAs = 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.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.DeserializeEndpointsPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndpoints = 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.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootIndexable = 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.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMovedTo = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "alsoKnownAs" { + 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 == "discoverable" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "endpoints" { + 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 == "indexable" { + 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 == "movedTo" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists, +// and nil otherwise. +func (this ActivityStreamsOrganization) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty { + return this.ActivityStreamsAlsoKnownAs +} + +// 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 +} + +// GetActivityStreamsEndpoints returns the "endpoints" property if it exists, and +// nil otherwise. +func (this ActivityStreamsOrganization) GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty { + return this.ActivityStreamsEndpoints +} + +// 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 +} + +// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil +// otherwise. +func (this ActivityStreamsOrganization) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty { + return this.ActivityStreamsMovedTo +} + +// 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsOrganization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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 +} + +// GetTootIndexable returns the "indexable" property if it exists, and nil +// otherwise. +func (this ActivityStreamsOrganization) GetTootIndexable() vocab.TootIndexableProperty { + return this.TootIndexable +} + +// 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.ActivityStreamsAlsoKnownAs, 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.TootDiscoverable, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndpoints, 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.TootIndexable, 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.ActivityStreamsMovedTo, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "alsoKnownAs" + if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "endpoints" + if lhs, rhs := this.ActivityStreamsEndpoints, o.GetActivityStreamsEndpoints(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "indexable" + if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "movedTo" + if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "alsoKnownAs" + if this.ActivityStreamsAlsoKnownAs != nil { + if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAlsoKnownAs.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 "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 "endpoints" + if this.ActivityStreamsEndpoints != nil { + if i, err := this.ActivityStreamsEndpoints.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndpoints.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 "indexable" + if this.TootIndexable != nil { + if i, err := this.TootIndexable.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootIndexable.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 "movedTo" + if this.ActivityStreamsMovedTo != nil { + if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMovedTo.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. +func (this *ActivityStreamsOrganization) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) { + this.ActivityStreamsAlsoKnownAs = i +} + +// 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 +} + +// SetActivityStreamsEndpoints sets the "endpoints" property. +func (this *ActivityStreamsOrganization) SetActivityStreamsEndpoints(i vocab.ActivityStreamsEndpointsProperty) { + this.ActivityStreamsEndpoints = 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 +} + +// SetActivityStreamsMovedTo sets the "movedTo" property. +func (this *ActivityStreamsOrganization) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) { + this.ActivityStreamsMovedTo = 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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsOrganization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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 +} + +// SetTootIndexable sets the "indexable" property. +func (this *ActivityStreamsOrganization) SetTootIndexable(i vocab.TootIndexableProperty) { + this.TootIndexable = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_doc.go new file mode 100644 index 000000000..ee281c63b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_pkg.go new file mode 100644 index 000000000..6ea71e27e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_pkg.go @@ -0,0 +1,196 @@ +// Code generated by astool. DO NOT EDIT. + +package typepage + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeFocalPointPropertyToot returns the deserialization method + // for the "TootFocalPointProperty" non-functional property in the + // vocabulary "Toot" + DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go new file mode 100644 index 000000000..2ba55241d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go @@ -0,0 +1,1815 @@ +// Code generated by astool. DO NOT EDIT. + +package typepage + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + TootFocalPoint vocab.TootFocalPointProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootFocalPoint = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "focalPoint" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsPage) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsPage) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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 +} + +// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil +// otherwise. +func (this ActivityStreamsPage) GetTootFocalPoint() vocab.TootFocalPointProperty { + return this.TootFocalPoint +} + +// 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.GoToSocialApprovedBy, 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.TootFocalPoint, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "focalPoint" + if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "focalPoint" + if this.TootFocalPoint != nil { + if i, err := this.TootFocalPoint.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootFocalPoint.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsPage) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsPage) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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 +} + +// SetTootFocalPoint sets the "focalPoint" property. +func (this *ActivityStreamsPage) SetTootFocalPoint(i vocab.TootFocalPointProperty) { + this.TootFocalPoint = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_doc.go new file mode 100644 index 000000000..3c86a2caa --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go new file mode 100644 index 000000000..8b72acc8c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go @@ -0,0 +1,241 @@ +// Code generated by astool. DO NOT EDIT. + +package typeperson + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeAlsoKnownAsPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAlsoKnownAsProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, 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) + // 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) + // DeserializeEndpointsPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndpointsProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, 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) + // DeserializeIndexablePropertyToot returns the deserialization method for + // the "TootIndexableProperty" non-functional property in the + // vocabulary "Toot" + DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, 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) + // DeserializeMovedToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMovedToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go new file mode 100644 index 000000000..bad346077 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go @@ -0,0 +1,2279 @@ +// Code generated by astool. DO NOT EDIT. + +package typeperson + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// Represents an individual person. +// +// Example 45 (https://www.w3.org/TR/activitystreams-vocabulary/#ex39-jsonld): +// +// { +// "name": "Sally Smith", +// "type": "Person" +// } +type ActivityStreamsPerson struct { + ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty + 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 + ActivityStreamsEndpoints vocab.ActivityStreamsEndpointsProperty + 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 + TootIndexable vocab.TootIndexableProperty + ActivityStreamsLiked vocab.ActivityStreamsLikedProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty + ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAlsoKnownAs = 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.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.DeserializeEndpointsPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndpoints = 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.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootIndexable = 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.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMovedTo = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "alsoKnownAs" { + 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 == "discoverable" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "endpoints" { + 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 == "indexable" { + 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 == "movedTo" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists, +// and nil otherwise. +func (this ActivityStreamsPerson) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty { + return this.ActivityStreamsAlsoKnownAs +} + +// 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 +} + +// GetActivityStreamsEndpoints returns the "endpoints" property if it exists, and +// nil otherwise. +func (this ActivityStreamsPerson) GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty { + return this.ActivityStreamsEndpoints +} + +// 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 +} + +// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil +// otherwise. +func (this ActivityStreamsPerson) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty { + return this.ActivityStreamsMovedTo +} + +// 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsPerson) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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 +} + +// GetTootIndexable returns the "indexable" property if it exists, and nil +// otherwise. +func (this ActivityStreamsPerson) GetTootIndexable() vocab.TootIndexableProperty { + return this.TootIndexable +} + +// 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.ActivityStreamsAlsoKnownAs, 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.TootDiscoverable, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndpoints, 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.TootIndexable, 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.ActivityStreamsMovedTo, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "alsoKnownAs" + if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "endpoints" + if lhs, rhs := this.ActivityStreamsEndpoints, o.GetActivityStreamsEndpoints(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "indexable" + if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "movedTo" + if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "alsoKnownAs" + if this.ActivityStreamsAlsoKnownAs != nil { + if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAlsoKnownAs.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 "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 "endpoints" + if this.ActivityStreamsEndpoints != nil { + if i, err := this.ActivityStreamsEndpoints.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndpoints.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 "indexable" + if this.TootIndexable != nil { + if i, err := this.TootIndexable.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootIndexable.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 "movedTo" + if this.ActivityStreamsMovedTo != nil { + if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMovedTo.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. +func (this *ActivityStreamsPerson) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) { + this.ActivityStreamsAlsoKnownAs = i +} + +// 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 +} + +// SetActivityStreamsEndpoints sets the "endpoints" property. +func (this *ActivityStreamsPerson) SetActivityStreamsEndpoints(i vocab.ActivityStreamsEndpointsProperty) { + this.ActivityStreamsEndpoints = 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 +} + +// SetActivityStreamsMovedTo sets the "movedTo" property. +func (this *ActivityStreamsPerson) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) { + this.ActivityStreamsMovedTo = 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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsPerson) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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 +} + +// SetTootIndexable sets the "indexable" property. +func (this *ActivityStreamsPerson) SetTootIndexable(i vocab.TootIndexableProperty) { + this.TootIndexable = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_doc.go new file mode 100644 index 000000000..5eaff6eca --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_pkg.go new file mode 100644 index 000000000..e87a1ca33 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_pkg.go @@ -0,0 +1,208 @@ +// Code generated by astool. DO NOT EDIT. + +package typeplace + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go new file mode 100644 index 000000000..2c7f96e8d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go @@ -0,0 +1,1953 @@ +// Code generated by astool. DO NOT EDIT. + +package typeplace + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsPlace) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsPlace) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsPlace) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsPlace) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsPlace) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsPlace) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_doc.go new file mode 100644 index 000000000..7193cc46a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_pkg.go new file mode 100644 index 000000000..dbd20143d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_pkg.go @@ -0,0 +1,192 @@ +// Code generated by astool. DO NOT EDIT. + +package typeprofile + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go new file mode 100644 index 000000000..7eed51390 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go @@ -0,0 +1,1779 @@ +// Code generated by astool. DO NOT EDIT. + +package typeprofile + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsProfile) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsProfile) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsProfile) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsProfile) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsProfile) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsProfile) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_doc.go new file mode 100644 index 000000000..14eb8a236 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_pkg.go new file mode 100644 index 000000000..f2ce80982 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_pkg.go @@ -0,0 +1,220 @@ +// Code generated by astool. DO NOT EDIT. + +package typequestion + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go new file mode 100644 index 000000000..f2ef016f1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go @@ -0,0 +1,2090 @@ +// Code generated by astool. DO NOT EDIT. + +package typequestion + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsQuestion) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsQuestion) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsQuestion) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsQuestion) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsQuestion) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsQuestion) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_doc.go new file mode 100644 index 000000000..cb52b3047 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_pkg.go new file mode 100644 index 000000000..c29565001 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeread + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go new file mode 100644 index 000000000..22471ce7b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go @@ -0,0 +1,1862 @@ +// Code generated by astool. DO NOT EDIT. + +package typeread + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsRead) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsRead) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_doc.go new file mode 100644 index 000000000..4abce491a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_pkg.go new file mode 100644 index 000000000..61bc5e24b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typereject + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go new file mode 100644 index 000000000..d994b8b13 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go @@ -0,0 +1,1875 @@ +// Code generated by astool. DO NOT EDIT. + +package typereject + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsReject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsReject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_doc.go new file mode 100644 index 000000000..0f685e305 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go new file mode 100644 index 000000000..f15b751fe --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go @@ -0,0 +1,188 @@ +// Code generated by astool. DO NOT EDIT. + +package typerelationship + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go new file mode 100644 index 000000000..2b56986a6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go @@ -0,0 +1,1742 @@ +// Code generated by astool. DO NOT EDIT. + +package typerelationship + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSubject vocab.ActivityStreamsSubjectProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 { + // Shortcut implementation: is not extended by anything. + 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsRelationship) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsRelationship) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_doc.go new file mode 100644 index 000000000..d409311f3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_pkg.go new file mode 100644 index 000000000..542ea7b25 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeremove + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go new file mode 100644 index 000000000..94907f218 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go @@ -0,0 +1,1886 @@ +// Code generated by astool. DO NOT EDIT. + +package typeremove + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsRemove) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsRemove) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_doc.go new file mode 100644 index 000000000..6934f11e8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go new file mode 100644 index 000000000..c06ee9999 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go @@ -0,0 +1,241 @@ +// Code generated by astool. DO NOT EDIT. + +package typeservice + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeAlsoKnownAsPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAlsoKnownAsProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, 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) + // 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) + // DeserializeEndpointsPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndpointsProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, 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) + // DeserializeIndexablePropertyToot returns the deserialization method for + // the "TootIndexableProperty" non-functional property in the + // vocabulary "Toot" + DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, 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) + // DeserializeMovedToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMovedToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go new file mode 100644 index 000000000..1d9083026 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go @@ -0,0 +1,2279 @@ +// Code generated by astool. DO NOT EDIT. + +package typeservice + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 { + ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty + 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 + ActivityStreamsEndpoints vocab.ActivityStreamsEndpointsProperty + 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 + TootIndexable vocab.TootIndexableProperty + ActivityStreamsLiked vocab.ActivityStreamsLikedProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty + ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAlsoKnownAs = 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.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.DeserializeEndpointsPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndpoints = 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.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootIndexable = 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.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMovedTo = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "alsoKnownAs" { + 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 == "discoverable" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "endpoints" { + 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 == "indexable" { + 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 == "movedTo" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists, +// and nil otherwise. +func (this ActivityStreamsService) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty { + return this.ActivityStreamsAlsoKnownAs +} + +// 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 +} + +// GetActivityStreamsEndpoints returns the "endpoints" property if it exists, and +// nil otherwise. +func (this ActivityStreamsService) GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty { + return this.ActivityStreamsEndpoints +} + +// 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 +} + +// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil +// otherwise. +func (this ActivityStreamsService) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty { + return this.ActivityStreamsMovedTo +} + +// 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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsService) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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 +} + +// GetTootIndexable returns the "indexable" property if it exists, and nil +// otherwise. +func (this ActivityStreamsService) GetTootIndexable() vocab.TootIndexableProperty { + return this.TootIndexable +} + +// 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.ActivityStreamsAlsoKnownAs, 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.TootDiscoverable, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndpoints, 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.TootIndexable, 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.ActivityStreamsMovedTo, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "alsoKnownAs" + if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "endpoints" + if lhs, rhs := this.ActivityStreamsEndpoints, o.GetActivityStreamsEndpoints(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "indexable" + if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "movedTo" + if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "alsoKnownAs" + if this.ActivityStreamsAlsoKnownAs != nil { + if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAlsoKnownAs.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 "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 "endpoints" + if this.ActivityStreamsEndpoints != nil { + if i, err := this.ActivityStreamsEndpoints.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndpoints.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 "indexable" + if this.TootIndexable != nil { + if i, err := this.TootIndexable.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootIndexable.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 "movedTo" + if this.ActivityStreamsMovedTo != nil { + if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMovedTo.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. +func (this *ActivityStreamsService) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) { + this.ActivityStreamsAlsoKnownAs = i +} + +// 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 +} + +// SetActivityStreamsEndpoints sets the "endpoints" property. +func (this *ActivityStreamsService) SetActivityStreamsEndpoints(i vocab.ActivityStreamsEndpointsProperty) { + this.ActivityStreamsEndpoints = 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 +} + +// SetActivityStreamsMovedTo sets the "movedTo" property. +func (this *ActivityStreamsService) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) { + this.ActivityStreamsMovedTo = 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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsService) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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 +} + +// SetTootIndexable sets the "indexable" property. +func (this *ActivityStreamsService) SetTootIndexable(i vocab.TootIndexableProperty) { + this.TootIndexable = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go new file mode 100644 index 000000000..117206aec --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go new file mode 100644 index 000000000..5cbb5afc4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typetentativeaccept + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go new file mode 100644 index 000000000..b48b208dc --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go @@ -0,0 +1,1870 @@ +// Code generated by astool. DO NOT EDIT. + +package typetentativeaccept + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsTentativeAccept) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsTentativeAccept) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go new file mode 100644 index 000000000..110d80a32 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go new file mode 100644 index 000000000..5be093eba --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typetentativereject + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go new file mode 100644 index 000000000..bc94345b2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go @@ -0,0 +1,1870 @@ +// Code generated by astool. DO NOT EDIT. + +package typetentativereject + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsTentativeReject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsTentativeReject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go new file mode 100644 index 000000000..096ae5fa9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go new file mode 100644 index 000000000..5c6b2bd53 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go @@ -0,0 +1,187 @@ +// Code generated by astool. DO NOT EDIT. + +package typetombstone + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go new file mode 100644 index 000000000..9a560c48c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go @@ -0,0 +1,1750 @@ +// Code generated by astool. DO NOT EDIT. + +package typetombstone + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsTombstone) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsTombstone) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_doc.go new file mode 100644 index 000000000..40726b064 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_pkg.go new file mode 100644 index 000000000..27bf35131 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_pkg.go @@ -0,0 +1,195 @@ +// Code generated by astool. DO NOT EDIT. + +package typetravel + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go new file mode 100644 index 000000000..ce16e6495 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go @@ -0,0 +1,1829 @@ +// Code generated by astool. DO NOT EDIT. + +package typetravel + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsTravel) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsTravel) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_doc.go new file mode 100644 index 000000000..9c9e327c1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_pkg.go new file mode 100644 index 000000000..6f9f614df --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeundo + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go new file mode 100644 index 000000000..8ddd31301 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go @@ -0,0 +1,1868 @@ +// Code generated by astool. DO NOT EDIT. + +package typeundo + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsUndo) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsUndo) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_doc.go new file mode 100644 index 000000000..e2a36cca5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_pkg.go new file mode 100644 index 000000000..6382d816e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeupdate + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go new file mode 100644 index 000000000..583f7fa45 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go @@ -0,0 +1,1865 @@ +// Code generated by astool. DO NOT EDIT. + +package typeupdate + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsUpdate) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsUpdate) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_doc.go new file mode 100644 index 000000000..7ce17aed1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_pkg.go new file mode 100644 index 000000000..b03980b2a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_pkg.go @@ -0,0 +1,196 @@ +// Code generated by astool. DO NOT EDIT. + +package typevideo + +import vocab "code.superseriousbusiness.org/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) + // DeserializeApprovedByPropertyGoToSocial returns the deserialization + // method for the "GoToSocialApprovedByProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) + // DeserializeFocalPointPropertyToot returns the deserialization method + // for the "TootFocalPointProperty" non-functional property in the + // vocabulary "Toot" + DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, 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) + // DeserializeInteractionPolicyPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionPolicyProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go new file mode 100644 index 000000000..c8a93e70f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go @@ -0,0 +1,1816 @@ +// Code generated by astool. DO NOT EDIT. + +package typevideo + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty + 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 + TootFocalPoint vocab.TootFocalPointProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovedBy = 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.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootFocalPoint = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "approvedBy" { + 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 == "focalPoint" { + 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 == "interactionPolicy" { + 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsVideo) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil +// otherwise. +func (this ActivityStreamsVideo) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { + return this.GoToSocialApprovedBy +} + +// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it +// exists, and nil otherwise. +func (this ActivityStreamsVideo) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { + return this.GoToSocialInteractionPolicy +} + +// 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 +} + +// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil +// otherwise. +func (this ActivityStreamsVideo) GetTootFocalPoint() vocab.TootFocalPointProperty { + return this.TootFocalPoint +} + +// 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.GoToSocialApprovedBy, 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.TootFocalPoint, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" + if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "focalPoint" + if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "interactionPolicy" + if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "approvedBy" + if this.GoToSocialApprovedBy != nil { + if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovedBy.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 "focalPoint" + if this.TootFocalPoint != nil { + if i, err := this.TootFocalPoint.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootFocalPoint.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 "interactionPolicy" + if this.GoToSocialInteractionPolicy != nil { + if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionPolicy.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsVideo) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetGoToSocialApprovedBy sets the "approvedBy" property. +func (this *ActivityStreamsVideo) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { + this.GoToSocialApprovedBy = i +} + +// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. +func (this *ActivityStreamsVideo) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { + this.GoToSocialInteractionPolicy = 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 +} + +// SetTootFocalPoint sets the "focalPoint" property. +func (this *ActivityStreamsVideo) SetTootFocalPoint(i vocab.TootFocalPointProperty) { + this.TootFocalPoint = 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_doc.go new file mode 100644 index 000000000..ce489bbe9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_doc.go @@ -0,0 +1,17 @@ +// 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_pkg.go new file mode 100644 index 000000000..c859ee06b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeview + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go new file mode 100644 index 000000000..b3c84ffa4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go @@ -0,0 +1,1865 @@ +// Code generated by astool. DO NOT EDIT. + +package typeview + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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{"Hashtag", "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 +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this ActivityStreamsView) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// 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 +} + +// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *ActivityStreamsView) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = 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 +} + +// SetJSONLDId sets the "id" property. +func (this *ActivityStreamsView) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *ActivityStreamsView) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this ActivityStreamsView) VocabularyURI() string { + return "https://www.w3.org/ns/activitystreams" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this ActivityStreamsView) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_doc.go new file mode 100644 index 000000000..33c2d4a66 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typealbum contains the implementation for the Album 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 typealbum diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_pkg.go new file mode 100644 index 000000000..c77f4bc95 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typealbum + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go new file mode 100644 index 000000000..a872432c6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go @@ -0,0 +1,1639 @@ +// Code generated by astool. DO NOT EDIT. + +package typealbum + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type FunkwhaleAlbum 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// AlbumIsDisjointWith returns true if the other provided type is disjoint with +// the Album type. +func AlbumIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// AlbumIsExtendedBy returns true if the other provided type extends from the +// Album type. Note that it returns false if the types are the same; see the +// "IsOrExtendsAlbum" variant instead. +func AlbumIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeAlbum creates a Album from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeAlbum(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleAlbum, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &FunkwhaleAlbum{ + 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 != "Album" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Album", 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) == "Album" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Album") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// FunkwhaleAlbumExtends returns true if the Album type extends from the other +// type. +func FunkwhaleAlbumExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsAlbum returns true if the other provided type is the Album type or +// extends from the Album type. +func IsOrExtendsAlbum(other vocab.Type) bool { + if other.GetTypeName() == "Album" { + return true + } + return AlbumIsExtendedBy(other) +} + +// NewFunkwhaleAlbum creates a new Album type +func NewFunkwhaleAlbum() *FunkwhaleAlbum { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Album") + return &FunkwhaleAlbum{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this FunkwhaleAlbum) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this FunkwhaleAlbum) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this FunkwhaleAlbum) GetTypeName() string { + return "Album" +} + +// GetUnknownProperties returns the unknown properties for the Album 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 FunkwhaleAlbum) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Album type extends from the other type. +func (this FunkwhaleAlbum) IsExtending(other vocab.Type) bool { + return FunkwhaleAlbumExtends(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 FunkwhaleAlbum) JSONLDContext() map[string]string { + m := map[string]string{"https://funkwhale.audio/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 Album is lesser, with an arbitrary but stable +// determination. +func (this FunkwhaleAlbum) LessThan(o vocab.FunkwhaleAlbum) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 FunkwhaleAlbum) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Album" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Album" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *FunkwhaleAlbum) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *FunkwhaleAlbum) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *FunkwhaleAlbum) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *FunkwhaleAlbum) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *FunkwhaleAlbum) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *FunkwhaleAlbum) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *FunkwhaleAlbum) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *FunkwhaleAlbum) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *FunkwhaleAlbum) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *FunkwhaleAlbum) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *FunkwhaleAlbum) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *FunkwhaleAlbum) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *FunkwhaleAlbum) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *FunkwhaleAlbum) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *FunkwhaleAlbum) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *FunkwhaleAlbum) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *FunkwhaleAlbum) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *FunkwhaleAlbum) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *FunkwhaleAlbum) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *FunkwhaleAlbum) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *FunkwhaleAlbum) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *FunkwhaleAlbum) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *FunkwhaleAlbum) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *FunkwhaleAlbum) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *FunkwhaleAlbum) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *FunkwhaleAlbum) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *FunkwhaleAlbum) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *FunkwhaleAlbum) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *FunkwhaleAlbum) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *FunkwhaleAlbum) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *FunkwhaleAlbum) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *FunkwhaleAlbum) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *FunkwhaleAlbum) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *FunkwhaleAlbum) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this FunkwhaleAlbum) VocabularyURI() string { + return "https://funkwhale.audio/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this FunkwhaleAlbum) 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/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_doc.go new file mode 100644 index 000000000..80f858e0e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeartist contains the implementation for the Artist 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 typeartist diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_pkg.go new file mode 100644 index 000000000..4577939d5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typeartist + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go new file mode 100644 index 000000000..ef3295d36 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go @@ -0,0 +1,1639 @@ +// Code generated by astool. DO NOT EDIT. + +package typeartist + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type FunkwhaleArtist 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// ArtistIsDisjointWith returns true if the other provided type is disjoint with +// the Artist type. +func ArtistIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// ArtistIsExtendedBy returns true if the other provided type extends from the +// Artist type. Note that it returns false if the types are the same; see the +// "IsOrExtendsArtist" variant instead. +func ArtistIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeArtist creates a Artist from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeArtist(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleArtist, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &FunkwhaleArtist{ + 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 != "Artist" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Artist", 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) == "Artist" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Artist") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// FunkwhaleArtistExtends returns true if the Artist type extends from the other +// type. +func FunkwhaleArtistExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsArtist returns true if the other provided type is the Artist type or +// extends from the Artist type. +func IsOrExtendsArtist(other vocab.Type) bool { + if other.GetTypeName() == "Artist" { + return true + } + return ArtistIsExtendedBy(other) +} + +// NewFunkwhaleArtist creates a new Artist type +func NewFunkwhaleArtist() *FunkwhaleArtist { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Artist") + return &FunkwhaleArtist{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this FunkwhaleArtist) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this FunkwhaleArtist) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this FunkwhaleArtist) GetTypeName() string { + return "Artist" +} + +// GetUnknownProperties returns the unknown properties for the Artist 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 FunkwhaleArtist) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Artist type extends from the other type. +func (this FunkwhaleArtist) IsExtending(other vocab.Type) bool { + return FunkwhaleArtistExtends(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 FunkwhaleArtist) JSONLDContext() map[string]string { + m := map[string]string{"https://funkwhale.audio/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 Artist is lesser, with an arbitrary but stable +// determination. +func (this FunkwhaleArtist) LessThan(o vocab.FunkwhaleArtist) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 FunkwhaleArtist) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Artist" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Artist" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *FunkwhaleArtist) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *FunkwhaleArtist) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *FunkwhaleArtist) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *FunkwhaleArtist) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *FunkwhaleArtist) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *FunkwhaleArtist) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *FunkwhaleArtist) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *FunkwhaleArtist) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *FunkwhaleArtist) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *FunkwhaleArtist) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *FunkwhaleArtist) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *FunkwhaleArtist) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *FunkwhaleArtist) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *FunkwhaleArtist) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *FunkwhaleArtist) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *FunkwhaleArtist) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *FunkwhaleArtist) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *FunkwhaleArtist) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *FunkwhaleArtist) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *FunkwhaleArtist) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *FunkwhaleArtist) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *FunkwhaleArtist) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *FunkwhaleArtist) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *FunkwhaleArtist) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *FunkwhaleArtist) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *FunkwhaleArtist) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *FunkwhaleArtist) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *FunkwhaleArtist) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *FunkwhaleArtist) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *FunkwhaleArtist) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *FunkwhaleArtist) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *FunkwhaleArtist) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *FunkwhaleArtist) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *FunkwhaleArtist) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this FunkwhaleArtist) VocabularyURI() string { + return "https://funkwhale.audio/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this FunkwhaleArtist) 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/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_doc.go new file mode 100644 index 000000000..6e6412376 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typelibrary contains the implementation for the Library 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 typelibrary diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_pkg.go new file mode 100644 index 000000000..d7c7a3e9a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typelibrary + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go new file mode 100644 index 000000000..883265801 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go @@ -0,0 +1,1639 @@ +// Code generated by astool. DO NOT EDIT. + +package typelibrary + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type FunkwhaleLibrary 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeLibrary creates a Library from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeLibrary(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleLibrary, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &FunkwhaleLibrary{ + 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 != "Library" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Library", 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) == "Library" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Library") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// FunkwhaleLibraryExtends returns true if the Library type extends from the other +// type. +func FunkwhaleLibraryExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsLibrary returns true if the other provided type is the Library type +// or extends from the Library type. +func IsOrExtendsLibrary(other vocab.Type) bool { + if other.GetTypeName() == "Library" { + return true + } + return LibraryIsExtendedBy(other) +} + +// LibraryIsDisjointWith returns true if the other provided type is disjoint with +// the Library type. +func LibraryIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// LibraryIsExtendedBy returns true if the other provided type extends from the +// Library type. Note that it returns false if the types are the same; see the +// "IsOrExtendsLibrary" variant instead. +func LibraryIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// NewFunkwhaleLibrary creates a new Library type +func NewFunkwhaleLibrary() *FunkwhaleLibrary { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Library") + return &FunkwhaleLibrary{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this FunkwhaleLibrary) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this FunkwhaleLibrary) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this FunkwhaleLibrary) GetTypeName() string { + return "Library" +} + +// GetUnknownProperties returns the unknown properties for the Library 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 FunkwhaleLibrary) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Library type extends from the other type. +func (this FunkwhaleLibrary) IsExtending(other vocab.Type) bool { + return FunkwhaleLibraryExtends(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 FunkwhaleLibrary) JSONLDContext() map[string]string { + m := map[string]string{"https://funkwhale.audio/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 Library is lesser, with an arbitrary but stable +// determination. +func (this FunkwhaleLibrary) LessThan(o vocab.FunkwhaleLibrary) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 FunkwhaleLibrary) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Library" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Library" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *FunkwhaleLibrary) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *FunkwhaleLibrary) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *FunkwhaleLibrary) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *FunkwhaleLibrary) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *FunkwhaleLibrary) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *FunkwhaleLibrary) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *FunkwhaleLibrary) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *FunkwhaleLibrary) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *FunkwhaleLibrary) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *FunkwhaleLibrary) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *FunkwhaleLibrary) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *FunkwhaleLibrary) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *FunkwhaleLibrary) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *FunkwhaleLibrary) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *FunkwhaleLibrary) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *FunkwhaleLibrary) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *FunkwhaleLibrary) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *FunkwhaleLibrary) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *FunkwhaleLibrary) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *FunkwhaleLibrary) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *FunkwhaleLibrary) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *FunkwhaleLibrary) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *FunkwhaleLibrary) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *FunkwhaleLibrary) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *FunkwhaleLibrary) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *FunkwhaleLibrary) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *FunkwhaleLibrary) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *FunkwhaleLibrary) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *FunkwhaleLibrary) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *FunkwhaleLibrary) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *FunkwhaleLibrary) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *FunkwhaleLibrary) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *FunkwhaleLibrary) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *FunkwhaleLibrary) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this FunkwhaleLibrary) VocabularyURI() string { + return "https://funkwhale.audio/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this FunkwhaleLibrary) 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/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_doc.go new file mode 100644 index 000000000..fe42a8c8c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typetrack contains the implementation for the Track 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 typetrack diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_pkg.go new file mode 100644 index 000000000..e049ae958 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typetrack + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go new file mode 100644 index 000000000..1ac1f1bb1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go @@ -0,0 +1,1639 @@ +// Code generated by astool. DO NOT EDIT. + +package typetrack + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type FunkwhaleTrack 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeTrack creates a Track from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeTrack(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleTrack, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &FunkwhaleTrack{ + 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 != "Track" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Track", 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) == "Track" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Track") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// FunkwhaleTrackExtends returns true if the Track type extends from the other +// type. +func FunkwhaleTrackExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsTrack returns true if the other provided type is the Track type or +// extends from the Track type. +func IsOrExtendsTrack(other vocab.Type) bool { + if other.GetTypeName() == "Track" { + return true + } + return TrackIsExtendedBy(other) +} + +// NewFunkwhaleTrack creates a new Track type +func NewFunkwhaleTrack() *FunkwhaleTrack { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Track") + return &FunkwhaleTrack{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// TrackIsDisjointWith returns true if the other provided type is disjoint with +// the Track type. +func TrackIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// TrackIsExtendedBy returns true if the other provided type extends from the +// Track type. Note that it returns false if the types are the same; see the +// "IsOrExtendsTrack" variant instead. +func TrackIsExtendedBy(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 FunkwhaleTrack) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this FunkwhaleTrack) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this FunkwhaleTrack) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this FunkwhaleTrack) GetTypeName() string { + return "Track" +} + +// GetUnknownProperties returns the unknown properties for the Track 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 FunkwhaleTrack) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Track type extends from the other type. +func (this FunkwhaleTrack) IsExtending(other vocab.Type) bool { + return FunkwhaleTrackExtends(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 FunkwhaleTrack) JSONLDContext() map[string]string { + m := map[string]string{"https://funkwhale.audio/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 Track is lesser, with an arbitrary but stable +// determination. +func (this FunkwhaleTrack) LessThan(o vocab.FunkwhaleTrack) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 FunkwhaleTrack) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Track" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Track" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *FunkwhaleTrack) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *FunkwhaleTrack) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *FunkwhaleTrack) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *FunkwhaleTrack) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *FunkwhaleTrack) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *FunkwhaleTrack) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *FunkwhaleTrack) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *FunkwhaleTrack) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *FunkwhaleTrack) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *FunkwhaleTrack) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *FunkwhaleTrack) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *FunkwhaleTrack) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *FunkwhaleTrack) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *FunkwhaleTrack) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *FunkwhaleTrack) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *FunkwhaleTrack) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *FunkwhaleTrack) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *FunkwhaleTrack) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *FunkwhaleTrack) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *FunkwhaleTrack) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *FunkwhaleTrack) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *FunkwhaleTrack) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *FunkwhaleTrack) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *FunkwhaleTrack) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *FunkwhaleTrack) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *FunkwhaleTrack) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *FunkwhaleTrack) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *FunkwhaleTrack) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *FunkwhaleTrack) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *FunkwhaleTrack) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *FunkwhaleTrack) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *FunkwhaleTrack) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *FunkwhaleTrack) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *FunkwhaleTrack) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this FunkwhaleTrack) VocabularyURI() string { + return "https://funkwhale.audio/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this FunkwhaleTrack) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_doc.go new file mode 100644 index 000000000..7df13c1d9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyalways contains the implementation for the always 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 propertyalways diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_pkg.go new file mode 100644 index 000000000..ee3d9208d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyalways + +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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go new file mode 100644 index 000000000..952e21c23 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go @@ -0,0 +1,503 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyalways + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialAlwaysPropertyIterator is an iterator for a property. It is permitted +// to be a single nilable value type. +type GoToSocialAlwaysPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.GoToSocialAlwaysProperty +} + +// NewGoToSocialAlwaysPropertyIterator creates a new GoToSocialAlways property. +func NewGoToSocialAlwaysPropertyIterator() *GoToSocialAlwaysPropertyIterator { + return &GoToSocialAlwaysPropertyIterator{alias: ""} +} + +// deserializeGoToSocialAlwaysPropertyIterator creates an iterator from an element +// that has been unmarshalled from a text or binary format. +func deserializeGoToSocialAlwaysPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialAlwaysPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialAlwaysPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialAlwaysPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this GoToSocialAlwaysPropertyIterator) 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 GoToSocialAlwaysPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialAlwaysPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialAlwaysPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialAlwaysPropertyIterator) 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 GoToSocialAlwaysPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialAlwaysPropertyIterator) 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 GoToSocialAlwaysPropertyIterator) LessThan(o vocab.GoToSocialAlwaysPropertyIterator) 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: "GoToSocialAlways". +func (this GoToSocialAlwaysPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialAlways" + } else { + return "GoToSocialAlways" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialAlwaysPropertyIterator) Next() vocab.GoToSocialAlwaysPropertyIterator { + 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 GoToSocialAlwaysPropertyIterator) Prev() vocab.GoToSocialAlwaysPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *GoToSocialAlwaysPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialAlwaysPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialAlwaysPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = 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 GoToSocialAlwaysPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// GoToSocialAlwaysProperty is the non-functional property "always". It is +// permitted to have one or more values, and of different value types. +type GoToSocialAlwaysProperty struct { + properties []*GoToSocialAlwaysPropertyIterator + alias string +} + +// DeserializeAlwaysProperty creates a "always" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeAlwaysProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAlwaysProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "always" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "always") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialAlwaysProperty{ + alias: alias, + properties: []*GoToSocialAlwaysPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialAlwaysPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialAlwaysPropertyIterator(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 +} + +// NewGoToSocialAlwaysProperty creates a new always property. +func NewGoToSocialAlwaysProperty() *GoToSocialAlwaysProperty { + return &GoToSocialAlwaysProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property "always" +func (this *GoToSocialAlwaysProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialAlwaysPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "always". Invalidates iterators that are traversing using Prev. +func (this *GoToSocialAlwaysProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialAlwaysPropertyIterator{ + 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 GoToSocialAlwaysProperty) At(index int) vocab.GoToSocialAlwaysPropertyIterator { + 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 GoToSocialAlwaysProperty) Begin() vocab.GoToSocialAlwaysPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialAlwaysProperty) 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 GoToSocialAlwaysProperty) End() vocab.GoToSocialAlwaysPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property "always". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *GoToSocialAlwaysProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialAlwaysPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "always". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialAlwaysProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialAlwaysPropertyIterator{ + 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 GoToSocialAlwaysProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialAlwaysProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "always" property. +func (this GoToSocialAlwaysProperty) 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 GoToSocialAlwaysProperty) 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 anyuri.LessAnyURI(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 GoToSocialAlwaysProperty) LessThan(o vocab.GoToSocialAlwaysProperty) 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 ("always") with any alias. +func (this GoToSocialAlwaysProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "always" + } else { + return "always" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "always". +func (this *GoToSocialAlwaysProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialAlwaysPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "always". Invalidates all iterators. +func (this *GoToSocialAlwaysProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*GoToSocialAlwaysPropertyIterator{{ + 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 +// "always", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *GoToSocialAlwaysProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialAlwaysPropertyIterator{} + 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 GoToSocialAlwaysProperty) 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 anyURI value to be at the specified index for the property "always". +// Panics if the index is out of bounds. Invalidates all iterators. +func (this *GoToSocialAlwaysProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialAlwaysPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "always". Panics if the index is out of bounds. +func (this *GoToSocialAlwaysProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialAlwaysPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "always" property. +func (this GoToSocialAlwaysProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go new file mode 100644 index 000000000..bf6ce36b0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyapprovalrequired contains the implementation for the +// approvalRequired 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 propertyapprovalrequired diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go new file mode 100644 index 000000000..6251a6ed2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyapprovalrequired + +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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go new file mode 100644 index 000000000..1aa43f893 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go @@ -0,0 +1,510 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyapprovalrequired + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialApprovalRequiredPropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type GoToSocialApprovalRequiredPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.GoToSocialApprovalRequiredProperty +} + +// NewGoToSocialApprovalRequiredPropertyIterator creates a new +// GoToSocialApprovalRequired property. +func NewGoToSocialApprovalRequiredPropertyIterator() *GoToSocialApprovalRequiredPropertyIterator { + return &GoToSocialApprovalRequiredPropertyIterator{alias: ""} +} + +// deserializeGoToSocialApprovalRequiredPropertyIterator creates an iterator from +// an element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialApprovalRequiredPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialApprovalRequiredPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialApprovalRequiredPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialApprovalRequiredPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this GoToSocialApprovalRequiredPropertyIterator) 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 GoToSocialApprovalRequiredPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialApprovalRequiredPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialApprovalRequiredPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialApprovalRequiredPropertyIterator) 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 GoToSocialApprovalRequiredPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialApprovalRequiredPropertyIterator) 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 GoToSocialApprovalRequiredPropertyIterator) LessThan(o vocab.GoToSocialApprovalRequiredPropertyIterator) 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: "GoToSocialApprovalRequired". +func (this GoToSocialApprovalRequiredPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialApprovalRequired" + } else { + return "GoToSocialApprovalRequired" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialApprovalRequiredPropertyIterator) Next() vocab.GoToSocialApprovalRequiredPropertyIterator { + 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 GoToSocialApprovalRequiredPropertyIterator) Prev() vocab.GoToSocialApprovalRequiredPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *GoToSocialApprovalRequiredPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialApprovalRequiredPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialApprovalRequiredPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = 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 GoToSocialApprovalRequiredPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// GoToSocialApprovalRequiredProperty is the non-functional property +// "approvalRequired". It is permitted to have one or more values, and of +// different value types. +type GoToSocialApprovalRequiredProperty struct { + properties []*GoToSocialApprovalRequiredPropertyIterator + alias string +} + +// DeserializeApprovalRequiredProperty creates a "approvalRequired" property from +// an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeApprovalRequiredProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "approvalRequired" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "approvalRequired") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialApprovalRequiredProperty{ + alias: alias, + properties: []*GoToSocialApprovalRequiredPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialApprovalRequiredPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialApprovalRequiredPropertyIterator(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 +} + +// NewGoToSocialApprovalRequiredProperty creates a new approvalRequired property. +func NewGoToSocialApprovalRequiredProperty() *GoToSocialApprovalRequiredProperty { + return &GoToSocialApprovalRequiredProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "approvalRequired" +func (this *GoToSocialApprovalRequiredProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialApprovalRequiredPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "approvalRequired". Invalidates iterators that are traversing +// using Prev. +func (this *GoToSocialApprovalRequiredProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialApprovalRequiredPropertyIterator{ + 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 GoToSocialApprovalRequiredProperty) At(index int) vocab.GoToSocialApprovalRequiredPropertyIterator { + 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 GoToSocialApprovalRequiredProperty) Begin() vocab.GoToSocialApprovalRequiredPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialApprovalRequiredProperty) 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 GoToSocialApprovalRequiredProperty) End() vocab.GoToSocialApprovalRequiredPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "approvalRequired". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialApprovalRequiredProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialApprovalRequiredPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "approvalRequired". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *GoToSocialApprovalRequiredProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialApprovalRequiredPropertyIterator{ + 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 GoToSocialApprovalRequiredProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialApprovalRequiredProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "approvalRequired" property. +func (this GoToSocialApprovalRequiredProperty) 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 GoToSocialApprovalRequiredProperty) 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 anyuri.LessAnyURI(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 GoToSocialApprovalRequiredProperty) LessThan(o vocab.GoToSocialApprovalRequiredProperty) 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 ("approvalRequired") with any alias. +func (this GoToSocialApprovalRequiredProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "approvalRequired" + } else { + return "approvalRequired" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "approvalRequired". +func (this *GoToSocialApprovalRequiredProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialApprovalRequiredPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "approvalRequired". Invalidates all iterators. +func (this *GoToSocialApprovalRequiredProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*GoToSocialApprovalRequiredPropertyIterator{{ + 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 +// "approvalRequired", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialApprovalRequiredProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialApprovalRequiredPropertyIterator{} + 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 GoToSocialApprovalRequiredProperty) 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 anyURI value to be at the specified index for the property +// "approvalRequired". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *GoToSocialApprovalRequiredProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialApprovalRequiredPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "approvalRequired". Panics if the index is out of bounds. +func (this *GoToSocialApprovalRequiredProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialApprovalRequiredPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "approvalRequired" +// property. +func (this GoToSocialApprovalRequiredProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go new file mode 100644 index 000000000..f334d13a9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyapprovedby contains the implementation for the approvedBy +// 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 propertyapprovedby diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go new file mode 100644 index 000000000..60c83f53e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyapprovedby + +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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go new file mode 100644 index 000000000..b7215ffbb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go @@ -0,0 +1,181 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyapprovedby + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialApprovedByProperty is the functional property "approvedBy". It is +// permitted to be a single nilable value type. +type GoToSocialApprovedByProperty struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string +} + +// DeserializeApprovedByProperty creates a "approvedBy" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeApprovedByProperty(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialApprovedByProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "approvedBy" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "approvedBy") + } + i, ok := m[propName] + + if ok { + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialApprovedByProperty{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialApprovedByProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewGoToSocialApprovedByProperty creates a new approvedBy property. +func NewGoToSocialApprovedByProperty() *GoToSocialApprovedByProperty { + return &GoToSocialApprovedByProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialApprovedByProperty) 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 GoToSocialApprovedByProperty) 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 GoToSocialApprovedByProperty) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialApprovedByProperty) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialApprovedByProperty) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialApprovedByProperty) 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 GoToSocialApprovedByProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialApprovedByProperty) 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 GoToSocialApprovedByProperty) LessThan(o vocab.GoToSocialApprovedByProperty) 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: "approvedBy". +func (this GoToSocialApprovedByProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "approvedBy" + } else { + return "approvedBy" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need 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 GoToSocialApprovedByProperty) 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 *GoToSocialApprovedByProperty) Set(v *url.URL) { + this.Clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialApprovedByProperty) SetIRI(v *url.URL) { + this.Clear() + this.Set(v) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go new file mode 100644 index 000000000..70135362b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyautomaticapproval contains the implementation for the +// automaticApproval 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 propertyautomaticapproval diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go new file mode 100644 index 000000000..d46f7b30a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyautomaticapproval + +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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go new file mode 100644 index 000000000..9714339f5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go @@ -0,0 +1,511 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyautomaticapproval + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialAutomaticApprovalPropertyIterator is an iterator for a property. It +// is permitted to be a single nilable value type. +type GoToSocialAutomaticApprovalPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.GoToSocialAutomaticApprovalProperty +} + +// NewGoToSocialAutomaticApprovalPropertyIterator creates a new +// GoToSocialAutomaticApproval property. +func NewGoToSocialAutomaticApprovalPropertyIterator() *GoToSocialAutomaticApprovalPropertyIterator { + return &GoToSocialAutomaticApprovalPropertyIterator{alias: ""} +} + +// deserializeGoToSocialAutomaticApprovalPropertyIterator creates an iterator from +// an element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialAutomaticApprovalPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialAutomaticApprovalPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialAutomaticApprovalPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialAutomaticApprovalPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this GoToSocialAutomaticApprovalPropertyIterator) 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 GoToSocialAutomaticApprovalPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialAutomaticApprovalPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialAutomaticApprovalPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialAutomaticApprovalPropertyIterator) 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 GoToSocialAutomaticApprovalPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialAutomaticApprovalPropertyIterator) 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 GoToSocialAutomaticApprovalPropertyIterator) LessThan(o vocab.GoToSocialAutomaticApprovalPropertyIterator) 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: "GoToSocialAutomaticApproval". +func (this GoToSocialAutomaticApprovalPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialAutomaticApproval" + } else { + return "GoToSocialAutomaticApproval" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialAutomaticApprovalPropertyIterator) Next() vocab.GoToSocialAutomaticApprovalPropertyIterator { + 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 GoToSocialAutomaticApprovalPropertyIterator) Prev() vocab.GoToSocialAutomaticApprovalPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *GoToSocialAutomaticApprovalPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialAutomaticApprovalPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialAutomaticApprovalPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = 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 GoToSocialAutomaticApprovalPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// GoToSocialAutomaticApprovalProperty is the non-functional property +// "automaticApproval". It is permitted to have one or more values, and of +// different value types. +type GoToSocialAutomaticApprovalProperty struct { + properties []*GoToSocialAutomaticApprovalPropertyIterator + alias string +} + +// DeserializeAutomaticApprovalProperty creates a "automaticApproval" property +// from an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeAutomaticApprovalProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "automaticApproval" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "automaticApproval") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialAutomaticApprovalProperty{ + alias: alias, + properties: []*GoToSocialAutomaticApprovalPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialAutomaticApprovalPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialAutomaticApprovalPropertyIterator(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 +} + +// NewGoToSocialAutomaticApprovalProperty creates a new automaticApproval property. +func NewGoToSocialAutomaticApprovalProperty() *GoToSocialAutomaticApprovalProperty { + return &GoToSocialAutomaticApprovalProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "automaticApproval" +func (this *GoToSocialAutomaticApprovalProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialAutomaticApprovalPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "automaticApproval". Invalidates iterators that are traversing +// using Prev. +func (this *GoToSocialAutomaticApprovalProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialAutomaticApprovalPropertyIterator{ + 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 GoToSocialAutomaticApprovalProperty) At(index int) vocab.GoToSocialAutomaticApprovalPropertyIterator { + 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 GoToSocialAutomaticApprovalProperty) Begin() vocab.GoToSocialAutomaticApprovalPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialAutomaticApprovalProperty) 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 GoToSocialAutomaticApprovalProperty) End() vocab.GoToSocialAutomaticApprovalPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "automaticApproval". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialAutomaticApprovalProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "automaticApproval". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *GoToSocialAutomaticApprovalProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ + 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 GoToSocialAutomaticApprovalProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialAutomaticApprovalProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "automaticApproval" +// property. +func (this GoToSocialAutomaticApprovalProperty) 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 GoToSocialAutomaticApprovalProperty) 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 anyuri.LessAnyURI(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 GoToSocialAutomaticApprovalProperty) LessThan(o vocab.GoToSocialAutomaticApprovalProperty) 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 ("automaticApproval") with any alias. +func (this GoToSocialAutomaticApprovalProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "automaticApproval" + } else { + return "automaticApproval" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "automaticApproval". +func (this *GoToSocialAutomaticApprovalProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialAutomaticApprovalPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "automaticApproval". Invalidates all iterators. +func (this *GoToSocialAutomaticApprovalProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*GoToSocialAutomaticApprovalPropertyIterator{{ + 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 +// "automaticApproval", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialAutomaticApprovalProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialAutomaticApprovalPropertyIterator{} + 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 GoToSocialAutomaticApprovalProperty) 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 anyURI value to be at the specified index for the property +// "automaticApproval". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *GoToSocialAutomaticApprovalProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "automaticApproval". Panics if the index is out of bounds. +func (this *GoToSocialAutomaticApprovalProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "automaticApproval" +// property. +func (this GoToSocialAutomaticApprovalProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go new file mode 100644 index 000000000..0d90f0913 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertycanannounce contains the implementation for the canAnnounce +// 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 propertycanannounce diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go new file mode 100644 index 000000000..e77983b60 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycanannounce + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeCanAnnounceGoToSocial returns the deserialization method for + // the "GoToSocialCanAnnounce" non-functional property in the + // vocabulary "GoToSocial" + DeserializeCanAnnounceGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanAnnounce, 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go new file mode 100644 index 000000000..e587f6008 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go @@ -0,0 +1,625 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycanannounce + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialCanAnnouncePropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type GoToSocialCanAnnouncePropertyIterator struct { + gotosocialCanAnnounceMember vocab.GoToSocialCanAnnounce + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.GoToSocialCanAnnounceProperty +} + +// NewGoToSocialCanAnnouncePropertyIterator creates a new GoToSocialCanAnnounce +// property. +func NewGoToSocialCanAnnouncePropertyIterator() *GoToSocialCanAnnouncePropertyIterator { + return &GoToSocialCanAnnouncePropertyIterator{alias: ""} +} + +// deserializeGoToSocialCanAnnouncePropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialCanAnnouncePropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialCanAnnouncePropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &GoToSocialCanAnnouncePropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeCanAnnounceGoToSocial()(m, aliasMap); err == nil { + this := &GoToSocialCanAnnouncePropertyIterator{ + alias: alias, + gotosocialCanAnnounceMember: v, + } + return this, nil + } + } + this := &GoToSocialCanAnnouncePropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsGoToSocialCanAnnounce returns +// false, Get will return any arbitrary value. +func (this GoToSocialCanAnnouncePropertyIterator) Get() vocab.GoToSocialCanAnnounce { + return this.gotosocialCanAnnounceMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialCanAnnouncePropertyIterator) 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 GoToSocialCanAnnouncePropertyIterator) GetType() vocab.Type { + if this.IsGoToSocialCanAnnounce() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialCanAnnouncePropertyIterator) HasAny() bool { + return this.IsGoToSocialCanAnnounce() || this.iri != nil +} + +// IsGoToSocialCanAnnounce returns true if this property is set and not an IRI. +func (this GoToSocialCanAnnouncePropertyIterator) IsGoToSocialCanAnnounce() bool { + return this.gotosocialCanAnnounceMember != nil +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialCanAnnouncePropertyIterator) 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 GoToSocialCanAnnouncePropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + if this.IsGoToSocialCanAnnounce() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialCanAnnouncePropertyIterator) KindIndex() int { + if this.IsGoToSocialCanAnnounce() { + 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 GoToSocialCanAnnouncePropertyIterator) LessThan(o vocab.GoToSocialCanAnnouncePropertyIterator) 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.IsGoToSocialCanAnnounce() && !o.IsGoToSocialCanAnnounce() { + // Both are unknowns. + return false + } else if this.IsGoToSocialCanAnnounce() && !o.IsGoToSocialCanAnnounce() { + // Values are always greater than unknown values. + return false + } else if !this.IsGoToSocialCanAnnounce() && o.IsGoToSocialCanAnnounce() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "GoToSocialCanAnnounce". +func (this GoToSocialCanAnnouncePropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialCanAnnounce" + } else { + return "GoToSocialCanAnnounce" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialCanAnnouncePropertyIterator) Next() vocab.GoToSocialCanAnnouncePropertyIterator { + 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 GoToSocialCanAnnouncePropertyIterator) Prev() vocab.GoToSocialCanAnnouncePropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsGoToSocialCanAnnounce afterwards +// will return true. +func (this *GoToSocialCanAnnouncePropertyIterator) Set(v vocab.GoToSocialCanAnnounce) { + this.clear() + this.gotosocialCanAnnounceMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialCanAnnouncePropertyIterator) 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 *GoToSocialCanAnnouncePropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.GoToSocialCanAnnounce); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on GoToSocialCanAnnounce property: %T", t) +} + +// clear ensures no value of this property is set. Calling IsGoToSocialCanAnnounce +// afterwards will return false. +func (this *GoToSocialCanAnnouncePropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.gotosocialCanAnnounceMember = 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 GoToSocialCanAnnouncePropertyIterator) serialize() (interface{}, error) { + if this.IsGoToSocialCanAnnounce() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// GoToSocialCanAnnounceProperty is the non-functional property "canAnnounce". It +// is permitted to have one or more values, and of different value types. +type GoToSocialCanAnnounceProperty struct { + properties []*GoToSocialCanAnnouncePropertyIterator + alias string +} + +// DeserializeCanAnnounceProperty creates a "canAnnounce" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeCanAnnounceProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanAnnounceProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "canAnnounce" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "canAnnounce") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialCanAnnounceProperty{ + alias: alias, + properties: []*GoToSocialCanAnnouncePropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialCanAnnouncePropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialCanAnnouncePropertyIterator(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 +} + +// NewGoToSocialCanAnnounceProperty creates a new canAnnounce property. +func NewGoToSocialCanAnnounceProperty() *GoToSocialCanAnnounceProperty { + return &GoToSocialCanAnnounceProperty{alias: ""} +} + +// AppendGoToSocialCanAnnounce appends a CanAnnounce value to the back of a list +// of the property "canAnnounce". Invalidates iterators that are traversing +// using Prev. +func (this *GoToSocialCanAnnounceProperty) AppendGoToSocialCanAnnounce(v vocab.GoToSocialCanAnnounce) { + this.properties = append(this.properties, &GoToSocialCanAnnouncePropertyIterator{ + alias: this.alias, + gotosocialCanAnnounceMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "canAnnounce" +func (this *GoToSocialCanAnnounceProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialCanAnnouncePropertyIterator{ + 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 "canAnnounce". 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 *GoToSocialCanAnnounceProperty) AppendType(t vocab.Type) error { + n := &GoToSocialCanAnnouncePropertyIterator{ + 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 GoToSocialCanAnnounceProperty) At(index int) vocab.GoToSocialCanAnnouncePropertyIterator { + 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 GoToSocialCanAnnounceProperty) Begin() vocab.GoToSocialCanAnnouncePropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialCanAnnounceProperty) 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 GoToSocialCanAnnounceProperty) End() vocab.GoToSocialCanAnnouncePropertyIterator { + return nil +} + +// InsertGoToSocialCanAnnounce inserts a CanAnnounce value at the specified index +// for a property "canAnnounce". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *GoToSocialCanAnnounceProperty) InsertGoToSocialCanAnnounce(idx int, v vocab.GoToSocialCanAnnounce) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialCanAnnouncePropertyIterator{ + alias: this.alias, + gotosocialCanAnnounceMember: 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 +// "canAnnounce". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *GoToSocialCanAnnounceProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialCanAnnouncePropertyIterator{ + 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 "canAnnounce". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *GoToSocialCanAnnounceProperty) InsertType(idx int, t vocab.Type) error { + n := &GoToSocialCanAnnouncePropertyIterator{ + 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 GoToSocialCanAnnounceProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialCanAnnounceProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "canAnnounce" property. +func (this GoToSocialCanAnnounceProperty) 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 GoToSocialCanAnnounceProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialCanAnnounceProperty) LessThan(o vocab.GoToSocialCanAnnounceProperty) 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 ("canAnnounce") with any alias. +func (this GoToSocialCanAnnounceProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "canAnnounce" + } else { + return "canAnnounce" + } +} + +// PrependGoToSocialCanAnnounce prepends a CanAnnounce value to the front of a +// list of the property "canAnnounce". Invalidates all iterators. +func (this *GoToSocialCanAnnounceProperty) PrependGoToSocialCanAnnounce(v vocab.GoToSocialCanAnnounce) { + this.properties = append([]*GoToSocialCanAnnouncePropertyIterator{{ + alias: this.alias, + gotosocialCanAnnounceMember: 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 +// "canAnnounce". +func (this *GoToSocialCanAnnounceProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialCanAnnouncePropertyIterator{{ + 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 "canAnnounce". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *GoToSocialCanAnnounceProperty) PrependType(t vocab.Type) error { + n := &GoToSocialCanAnnouncePropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*GoToSocialCanAnnouncePropertyIterator{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 +// "canAnnounce", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialCanAnnounceProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialCanAnnouncePropertyIterator{} + 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 GoToSocialCanAnnounceProperty) 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 CanAnnounce value to be at the specified index for the property +// "canAnnounce". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *GoToSocialCanAnnounceProperty) Set(idx int, v vocab.GoToSocialCanAnnounce) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialCanAnnouncePropertyIterator{ + alias: this.alias, + gotosocialCanAnnounceMember: v, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "canAnnounce". Panics if the index is out of bounds. +func (this *GoToSocialCanAnnounceProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialCanAnnouncePropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "canAnnounce". 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 *GoToSocialCanAnnounceProperty) SetType(idx int, t vocab.Type) error { + n := &GoToSocialCanAnnouncePropertyIterator{ + 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 "canAnnounce" property. +func (this GoToSocialCanAnnounceProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_doc.go new file mode 100644 index 000000000..8e8c79c00 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertycanlike contains the implementation for the canLike 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 propertycanlike diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go new file mode 100644 index 000000000..3543ebc98 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycanlike + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeCanLikeGoToSocial returns the deserialization method for the + // "GoToSocialCanLike" non-functional property in the vocabulary + // "GoToSocial" + DeserializeCanLikeGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanLike, 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go new file mode 100644 index 000000000..3de1db3b0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go @@ -0,0 +1,618 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycanlike + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialCanLikePropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type GoToSocialCanLikePropertyIterator struct { + gotosocialCanLikeMember vocab.GoToSocialCanLike + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.GoToSocialCanLikeProperty +} + +// NewGoToSocialCanLikePropertyIterator creates a new GoToSocialCanLike property. +func NewGoToSocialCanLikePropertyIterator() *GoToSocialCanLikePropertyIterator { + return &GoToSocialCanLikePropertyIterator{alias: ""} +} + +// deserializeGoToSocialCanLikePropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialCanLikePropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialCanLikePropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &GoToSocialCanLikePropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeCanLikeGoToSocial()(m, aliasMap); err == nil { + this := &GoToSocialCanLikePropertyIterator{ + alias: alias, + gotosocialCanLikeMember: v, + } + return this, nil + } + } + this := &GoToSocialCanLikePropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsGoToSocialCanLike returns false, +// Get will return any arbitrary value. +func (this GoToSocialCanLikePropertyIterator) Get() vocab.GoToSocialCanLike { + return this.gotosocialCanLikeMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialCanLikePropertyIterator) 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 GoToSocialCanLikePropertyIterator) GetType() vocab.Type { + if this.IsGoToSocialCanLike() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialCanLikePropertyIterator) HasAny() bool { + return this.IsGoToSocialCanLike() || this.iri != nil +} + +// IsGoToSocialCanLike returns true if this property is set and not an IRI. +func (this GoToSocialCanLikePropertyIterator) IsGoToSocialCanLike() bool { + return this.gotosocialCanLikeMember != nil +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialCanLikePropertyIterator) 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 GoToSocialCanLikePropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + if this.IsGoToSocialCanLike() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialCanLikePropertyIterator) KindIndex() int { + if this.IsGoToSocialCanLike() { + 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 GoToSocialCanLikePropertyIterator) LessThan(o vocab.GoToSocialCanLikePropertyIterator) 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.IsGoToSocialCanLike() && !o.IsGoToSocialCanLike() { + // Both are unknowns. + return false + } else if this.IsGoToSocialCanLike() && !o.IsGoToSocialCanLike() { + // Values are always greater than unknown values. + return false + } else if !this.IsGoToSocialCanLike() && o.IsGoToSocialCanLike() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "GoToSocialCanLike". +func (this GoToSocialCanLikePropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialCanLike" + } else { + return "GoToSocialCanLike" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialCanLikePropertyIterator) Next() vocab.GoToSocialCanLikePropertyIterator { + 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 GoToSocialCanLikePropertyIterator) Prev() vocab.GoToSocialCanLikePropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsGoToSocialCanLike afterwards +// will return true. +func (this *GoToSocialCanLikePropertyIterator) Set(v vocab.GoToSocialCanLike) { + this.clear() + this.gotosocialCanLikeMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialCanLikePropertyIterator) 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 *GoToSocialCanLikePropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.GoToSocialCanLike); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on GoToSocialCanLike property: %T", t) +} + +// clear ensures no value of this property is set. Calling IsGoToSocialCanLike +// afterwards will return false. +func (this *GoToSocialCanLikePropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.gotosocialCanLikeMember = 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 GoToSocialCanLikePropertyIterator) serialize() (interface{}, error) { + if this.IsGoToSocialCanLike() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// GoToSocialCanLikeProperty is the non-functional property "canLike". It is +// permitted to have one or more values, and of different value types. +type GoToSocialCanLikeProperty struct { + properties []*GoToSocialCanLikePropertyIterator + alias string +} + +// DeserializeCanLikeProperty creates a "canLike" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeCanLikeProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanLikeProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "canLike" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "canLike") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialCanLikeProperty{ + alias: alias, + properties: []*GoToSocialCanLikePropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialCanLikePropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialCanLikePropertyIterator(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 +} + +// NewGoToSocialCanLikeProperty creates a new canLike property. +func NewGoToSocialCanLikeProperty() *GoToSocialCanLikeProperty { + return &GoToSocialCanLikeProperty{alias: ""} +} + +// AppendGoToSocialCanLike appends a CanLike value to the back of a list of the +// property "canLike". Invalidates iterators that are traversing using Prev. +func (this *GoToSocialCanLikeProperty) AppendGoToSocialCanLike(v vocab.GoToSocialCanLike) { + this.properties = append(this.properties, &GoToSocialCanLikePropertyIterator{ + alias: this.alias, + gotosocialCanLikeMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property "canLike" +func (this *GoToSocialCanLikeProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialCanLikePropertyIterator{ + 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 "canLike". 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 *GoToSocialCanLikeProperty) AppendType(t vocab.Type) error { + n := &GoToSocialCanLikePropertyIterator{ + 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 GoToSocialCanLikeProperty) At(index int) vocab.GoToSocialCanLikePropertyIterator { + 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 GoToSocialCanLikeProperty) Begin() vocab.GoToSocialCanLikePropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialCanLikeProperty) 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 GoToSocialCanLikeProperty) End() vocab.GoToSocialCanLikePropertyIterator { + return nil +} + +// InsertGoToSocialCanLike inserts a CanLike value at the specified index for a +// property "canLike". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialCanLikeProperty) InsertGoToSocialCanLike(idx int, v vocab.GoToSocialCanLike) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialCanLikePropertyIterator{ + alias: this.alias, + gotosocialCanLikeMember: 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 "canLike". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *GoToSocialCanLikeProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialCanLikePropertyIterator{ + 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 "canLike". Invalidates all iterators. Returns an error if the type +// is not a valid one to set for this property. +func (this *GoToSocialCanLikeProperty) InsertType(idx int, t vocab.Type) error { + n := &GoToSocialCanLikePropertyIterator{ + 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 GoToSocialCanLikeProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialCanLikeProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "canLike" property. +func (this GoToSocialCanLikeProperty) 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 GoToSocialCanLikeProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialCanLikeProperty) LessThan(o vocab.GoToSocialCanLikeProperty) 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 ("canLike") with any alias. +func (this GoToSocialCanLikeProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "canLike" + } else { + return "canLike" + } +} + +// PrependGoToSocialCanLike prepends a CanLike value to the front of a list of the +// property "canLike". Invalidates all iterators. +func (this *GoToSocialCanLikeProperty) PrependGoToSocialCanLike(v vocab.GoToSocialCanLike) { + this.properties = append([]*GoToSocialCanLikePropertyIterator{{ + alias: this.alias, + gotosocialCanLikeMember: 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 +// "canLike". +func (this *GoToSocialCanLikeProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialCanLikePropertyIterator{{ + 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 "canLike". Invalidates all iterators. Returns an error if the type +// is not a valid one to set for this property. +func (this *GoToSocialCanLikeProperty) PrependType(t vocab.Type) error { + n := &GoToSocialCanLikePropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*GoToSocialCanLikePropertyIterator{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 +// "canLike", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *GoToSocialCanLikeProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialCanLikePropertyIterator{} + 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 GoToSocialCanLikeProperty) 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 CanLike value to be at the specified index for the property +// "canLike". Panics if the index is out of bounds. Invalidates all iterators. +func (this *GoToSocialCanLikeProperty) Set(idx int, v vocab.GoToSocialCanLike) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialCanLikePropertyIterator{ + alias: this.alias, + gotosocialCanLikeMember: v, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "canLike". Panics if the index is out of bounds. +func (this *GoToSocialCanLikeProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialCanLikePropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "canLike". 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 *GoToSocialCanLikeProperty) SetType(idx int, t vocab.Type) error { + n := &GoToSocialCanLikePropertyIterator{ + 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 "canLike" property. +func (this GoToSocialCanLikeProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_doc.go new file mode 100644 index 000000000..21077ff16 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertycanquote contains the implementation for the canQuote 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 propertycanquote diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go new file mode 100644 index 000000000..601945cee --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycanquote + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeCanQuoteGoToSocial returns the deserialization method for + // the "GoToSocialCanQuote" non-functional property in the vocabulary + // "GoToSocial" + DeserializeCanQuoteGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuote, 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go new file mode 100644 index 000000000..19f1dfa51 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go @@ -0,0 +1,618 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycanquote + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialCanQuotePropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type GoToSocialCanQuotePropertyIterator struct { + gotosocialCanQuoteMember vocab.GoToSocialCanQuote + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.GoToSocialCanQuoteProperty +} + +// NewGoToSocialCanQuotePropertyIterator creates a new GoToSocialCanQuote property. +func NewGoToSocialCanQuotePropertyIterator() *GoToSocialCanQuotePropertyIterator { + return &GoToSocialCanQuotePropertyIterator{alias: ""} +} + +// deserializeGoToSocialCanQuotePropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialCanQuotePropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialCanQuotePropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &GoToSocialCanQuotePropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeCanQuoteGoToSocial()(m, aliasMap); err == nil { + this := &GoToSocialCanQuotePropertyIterator{ + alias: alias, + gotosocialCanQuoteMember: v, + } + return this, nil + } + } + this := &GoToSocialCanQuotePropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsGoToSocialCanQuote returns +// false, Get will return any arbitrary value. +func (this GoToSocialCanQuotePropertyIterator) Get() vocab.GoToSocialCanQuote { + return this.gotosocialCanQuoteMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialCanQuotePropertyIterator) 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 GoToSocialCanQuotePropertyIterator) GetType() vocab.Type { + if this.IsGoToSocialCanQuote() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialCanQuotePropertyIterator) HasAny() bool { + return this.IsGoToSocialCanQuote() || this.iri != nil +} + +// IsGoToSocialCanQuote returns true if this property is set and not an IRI. +func (this GoToSocialCanQuotePropertyIterator) IsGoToSocialCanQuote() bool { + return this.gotosocialCanQuoteMember != nil +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialCanQuotePropertyIterator) 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 GoToSocialCanQuotePropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + if this.IsGoToSocialCanQuote() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialCanQuotePropertyIterator) KindIndex() int { + if this.IsGoToSocialCanQuote() { + 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 GoToSocialCanQuotePropertyIterator) LessThan(o vocab.GoToSocialCanQuotePropertyIterator) 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.IsGoToSocialCanQuote() && !o.IsGoToSocialCanQuote() { + // Both are unknowns. + return false + } else if this.IsGoToSocialCanQuote() && !o.IsGoToSocialCanQuote() { + // Values are always greater than unknown values. + return false + } else if !this.IsGoToSocialCanQuote() && o.IsGoToSocialCanQuote() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "GoToSocialCanQuote". +func (this GoToSocialCanQuotePropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialCanQuote" + } else { + return "GoToSocialCanQuote" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialCanQuotePropertyIterator) Next() vocab.GoToSocialCanQuotePropertyIterator { + 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 GoToSocialCanQuotePropertyIterator) Prev() vocab.GoToSocialCanQuotePropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsGoToSocialCanQuote afterwards +// will return true. +func (this *GoToSocialCanQuotePropertyIterator) Set(v vocab.GoToSocialCanQuote) { + this.clear() + this.gotosocialCanQuoteMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialCanQuotePropertyIterator) 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 *GoToSocialCanQuotePropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.GoToSocialCanQuote); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on GoToSocialCanQuote property: %T", t) +} + +// clear ensures no value of this property is set. Calling IsGoToSocialCanQuote +// afterwards will return false. +func (this *GoToSocialCanQuotePropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.gotosocialCanQuoteMember = 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 GoToSocialCanQuotePropertyIterator) serialize() (interface{}, error) { + if this.IsGoToSocialCanQuote() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// GoToSocialCanQuoteProperty is the non-functional property "canQuote". It is +// permitted to have one or more values, and of different value types. +type GoToSocialCanQuoteProperty struct { + properties []*GoToSocialCanQuotePropertyIterator + alias string +} + +// DeserializeCanQuoteProperty creates a "canQuote" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeCanQuoteProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuoteProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "canQuote" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "canQuote") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialCanQuoteProperty{ + alias: alias, + properties: []*GoToSocialCanQuotePropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialCanQuotePropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialCanQuotePropertyIterator(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 +} + +// NewGoToSocialCanQuoteProperty creates a new canQuote property. +func NewGoToSocialCanQuoteProperty() *GoToSocialCanQuoteProperty { + return &GoToSocialCanQuoteProperty{alias: ""} +} + +// AppendGoToSocialCanQuote appends a CanQuote value to the back of a list of the +// property "canQuote". Invalidates iterators that are traversing using Prev. +func (this *GoToSocialCanQuoteProperty) AppendGoToSocialCanQuote(v vocab.GoToSocialCanQuote) { + this.properties = append(this.properties, &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + gotosocialCanQuoteMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property "canQuote" +func (this *GoToSocialCanQuoteProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialCanQuotePropertyIterator{ + 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 "canQuote". 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 *GoToSocialCanQuoteProperty) AppendType(t vocab.Type) error { + n := &GoToSocialCanQuotePropertyIterator{ + 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 GoToSocialCanQuoteProperty) At(index int) vocab.GoToSocialCanQuotePropertyIterator { + 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 GoToSocialCanQuoteProperty) Begin() vocab.GoToSocialCanQuotePropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialCanQuoteProperty) 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 GoToSocialCanQuoteProperty) End() vocab.GoToSocialCanQuotePropertyIterator { + return nil +} + +// InsertGoToSocialCanQuote inserts a CanQuote value at the specified index for a +// property "canQuote". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialCanQuoteProperty) InsertGoToSocialCanQuote(idx int, v vocab.GoToSocialCanQuote) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + gotosocialCanQuoteMember: 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 "canQuote". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *GoToSocialCanQuoteProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialCanQuotePropertyIterator{ + 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 "canQuote". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *GoToSocialCanQuoteProperty) InsertType(idx int, t vocab.Type) error { + n := &GoToSocialCanQuotePropertyIterator{ + 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 GoToSocialCanQuoteProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialCanQuoteProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "canQuote" property. +func (this GoToSocialCanQuoteProperty) 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 GoToSocialCanQuoteProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialCanQuoteProperty) LessThan(o vocab.GoToSocialCanQuoteProperty) 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 ("canQuote") with any alias. +func (this GoToSocialCanQuoteProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "canQuote" + } else { + return "canQuote" + } +} + +// PrependGoToSocialCanQuote prepends a CanQuote value to the front of a list of +// the property "canQuote". Invalidates all iterators. +func (this *GoToSocialCanQuoteProperty) PrependGoToSocialCanQuote(v vocab.GoToSocialCanQuote) { + this.properties = append([]*GoToSocialCanQuotePropertyIterator{{ + alias: this.alias, + gotosocialCanQuoteMember: 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 +// "canQuote". +func (this *GoToSocialCanQuoteProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialCanQuotePropertyIterator{{ + 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 "canQuote". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *GoToSocialCanQuoteProperty) PrependType(t vocab.Type) error { + n := &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*GoToSocialCanQuotePropertyIterator{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 +// "canQuote", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *GoToSocialCanQuoteProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialCanQuotePropertyIterator{} + 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 GoToSocialCanQuoteProperty) 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 CanQuote value to be at the specified index for the property +// "canQuote". Panics if the index is out of bounds. Invalidates all iterators. +func (this *GoToSocialCanQuoteProperty) Set(idx int, v vocab.GoToSocialCanQuote) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + gotosocialCanQuoteMember: v, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "canQuote". Panics if the index is out of bounds. +func (this *GoToSocialCanQuoteProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialCanQuotePropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "canQuote". 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 *GoToSocialCanQuoteProperty) SetType(idx int, t vocab.Type) error { + n := &GoToSocialCanQuotePropertyIterator{ + 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 "canQuote" property. +func (this GoToSocialCanQuoteProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_doc.go new file mode 100644 index 000000000..0037c92ae --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertycanreply contains the implementation for the canReply 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 propertycanreply diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go new file mode 100644 index 000000000..8546b6a73 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycanreply + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeCanReplyGoToSocial returns the deserialization method for + // the "GoToSocialCanReply" non-functional property in the vocabulary + // "GoToSocial" + DeserializeCanReplyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanReply, 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go new file mode 100644 index 000000000..38ddfc11e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go @@ -0,0 +1,618 @@ +// Code generated by astool. DO NOT EDIT. + +package propertycanreply + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialCanReplyPropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type GoToSocialCanReplyPropertyIterator struct { + gotosocialCanReplyMember vocab.GoToSocialCanReply + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.GoToSocialCanReplyProperty +} + +// NewGoToSocialCanReplyPropertyIterator creates a new GoToSocialCanReply property. +func NewGoToSocialCanReplyPropertyIterator() *GoToSocialCanReplyPropertyIterator { + return &GoToSocialCanReplyPropertyIterator{alias: ""} +} + +// deserializeGoToSocialCanReplyPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialCanReplyPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialCanReplyPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &GoToSocialCanReplyPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeCanReplyGoToSocial()(m, aliasMap); err == nil { + this := &GoToSocialCanReplyPropertyIterator{ + alias: alias, + gotosocialCanReplyMember: v, + } + return this, nil + } + } + this := &GoToSocialCanReplyPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsGoToSocialCanReply returns +// false, Get will return any arbitrary value. +func (this GoToSocialCanReplyPropertyIterator) Get() vocab.GoToSocialCanReply { + return this.gotosocialCanReplyMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialCanReplyPropertyIterator) 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 GoToSocialCanReplyPropertyIterator) GetType() vocab.Type { + if this.IsGoToSocialCanReply() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialCanReplyPropertyIterator) HasAny() bool { + return this.IsGoToSocialCanReply() || this.iri != nil +} + +// IsGoToSocialCanReply returns true if this property is set and not an IRI. +func (this GoToSocialCanReplyPropertyIterator) IsGoToSocialCanReply() bool { + return this.gotosocialCanReplyMember != nil +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialCanReplyPropertyIterator) 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 GoToSocialCanReplyPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + if this.IsGoToSocialCanReply() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialCanReplyPropertyIterator) KindIndex() int { + if this.IsGoToSocialCanReply() { + 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 GoToSocialCanReplyPropertyIterator) LessThan(o vocab.GoToSocialCanReplyPropertyIterator) 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.IsGoToSocialCanReply() && !o.IsGoToSocialCanReply() { + // Both are unknowns. + return false + } else if this.IsGoToSocialCanReply() && !o.IsGoToSocialCanReply() { + // Values are always greater than unknown values. + return false + } else if !this.IsGoToSocialCanReply() && o.IsGoToSocialCanReply() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "GoToSocialCanReply". +func (this GoToSocialCanReplyPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialCanReply" + } else { + return "GoToSocialCanReply" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialCanReplyPropertyIterator) Next() vocab.GoToSocialCanReplyPropertyIterator { + 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 GoToSocialCanReplyPropertyIterator) Prev() vocab.GoToSocialCanReplyPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsGoToSocialCanReply afterwards +// will return true. +func (this *GoToSocialCanReplyPropertyIterator) Set(v vocab.GoToSocialCanReply) { + this.clear() + this.gotosocialCanReplyMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialCanReplyPropertyIterator) 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 *GoToSocialCanReplyPropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.GoToSocialCanReply); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on GoToSocialCanReply property: %T", t) +} + +// clear ensures no value of this property is set. Calling IsGoToSocialCanReply +// afterwards will return false. +func (this *GoToSocialCanReplyPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.gotosocialCanReplyMember = 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 GoToSocialCanReplyPropertyIterator) serialize() (interface{}, error) { + if this.IsGoToSocialCanReply() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// GoToSocialCanReplyProperty is the non-functional property "canReply". It is +// permitted to have one or more values, and of different value types. +type GoToSocialCanReplyProperty struct { + properties []*GoToSocialCanReplyPropertyIterator + alias string +} + +// DeserializeCanReplyProperty creates a "canReply" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeCanReplyProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanReplyProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "canReply" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "canReply") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialCanReplyProperty{ + alias: alias, + properties: []*GoToSocialCanReplyPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialCanReplyPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialCanReplyPropertyIterator(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 +} + +// NewGoToSocialCanReplyProperty creates a new canReply property. +func NewGoToSocialCanReplyProperty() *GoToSocialCanReplyProperty { + return &GoToSocialCanReplyProperty{alias: ""} +} + +// AppendGoToSocialCanReply appends a CanReply value to the back of a list of the +// property "canReply". Invalidates iterators that are traversing using Prev. +func (this *GoToSocialCanReplyProperty) AppendGoToSocialCanReply(v vocab.GoToSocialCanReply) { + this.properties = append(this.properties, &GoToSocialCanReplyPropertyIterator{ + alias: this.alias, + gotosocialCanReplyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property "canReply" +func (this *GoToSocialCanReplyProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialCanReplyPropertyIterator{ + 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 "canReply". 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 *GoToSocialCanReplyProperty) AppendType(t vocab.Type) error { + n := &GoToSocialCanReplyPropertyIterator{ + 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 GoToSocialCanReplyProperty) At(index int) vocab.GoToSocialCanReplyPropertyIterator { + 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 GoToSocialCanReplyProperty) Begin() vocab.GoToSocialCanReplyPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialCanReplyProperty) 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 GoToSocialCanReplyProperty) End() vocab.GoToSocialCanReplyPropertyIterator { + return nil +} + +// InsertGoToSocialCanReply inserts a CanReply value at the specified index for a +// property "canReply". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialCanReplyProperty) InsertGoToSocialCanReply(idx int, v vocab.GoToSocialCanReply) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialCanReplyPropertyIterator{ + alias: this.alias, + gotosocialCanReplyMember: 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 "canReply". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *GoToSocialCanReplyProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialCanReplyPropertyIterator{ + 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 "canReply". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *GoToSocialCanReplyProperty) InsertType(idx int, t vocab.Type) error { + n := &GoToSocialCanReplyPropertyIterator{ + 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 GoToSocialCanReplyProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialCanReplyProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "canReply" property. +func (this GoToSocialCanReplyProperty) 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 GoToSocialCanReplyProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialCanReplyProperty) LessThan(o vocab.GoToSocialCanReplyProperty) 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 ("canReply") with any alias. +func (this GoToSocialCanReplyProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "canReply" + } else { + return "canReply" + } +} + +// PrependGoToSocialCanReply prepends a CanReply value to the front of a list of +// the property "canReply". Invalidates all iterators. +func (this *GoToSocialCanReplyProperty) PrependGoToSocialCanReply(v vocab.GoToSocialCanReply) { + this.properties = append([]*GoToSocialCanReplyPropertyIterator{{ + alias: this.alias, + gotosocialCanReplyMember: 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 +// "canReply". +func (this *GoToSocialCanReplyProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialCanReplyPropertyIterator{{ + 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 "canReply". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *GoToSocialCanReplyProperty) PrependType(t vocab.Type) error { + n := &GoToSocialCanReplyPropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*GoToSocialCanReplyPropertyIterator{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 +// "canReply", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *GoToSocialCanReplyProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialCanReplyPropertyIterator{} + 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 GoToSocialCanReplyProperty) 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 CanReply value to be at the specified index for the property +// "canReply". Panics if the index is out of bounds. Invalidates all iterators. +func (this *GoToSocialCanReplyProperty) Set(idx int, v vocab.GoToSocialCanReply) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialCanReplyPropertyIterator{ + alias: this.alias, + gotosocialCanReplyMember: v, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "canReply". Panics if the index is out of bounds. +func (this *GoToSocialCanReplyProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialCanReplyPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "canReply". 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 *GoToSocialCanReplyProperty) SetType(idx int, t vocab.Type) error { + n := &GoToSocialCanReplyPropertyIterator{ + 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 "canReply" property. +func (this GoToSocialCanReplyProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go new file mode 100644 index 000000000..742c63349 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyinteractingobject contains the implementation for the +// interactingObject 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 propertyinteractingobject diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go new file mode 100644 index 000000000..20cb4d776 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinteractingobject + +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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go new file mode 100644 index 000000000..f4c8fd221 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go @@ -0,0 +1,511 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinteractingobject + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialInteractingObjectPropertyIterator is an iterator for a property. It +// is permitted to be a single nilable value type. +type GoToSocialInteractingObjectPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.GoToSocialInteractingObjectProperty +} + +// NewGoToSocialInteractingObjectPropertyIterator creates a new +// GoToSocialInteractingObject property. +func NewGoToSocialInteractingObjectPropertyIterator() *GoToSocialInteractingObjectPropertyIterator { + return &GoToSocialInteractingObjectPropertyIterator{alias: ""} +} + +// deserializeGoToSocialInteractingObjectPropertyIterator creates an iterator from +// an element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialInteractingObjectPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialInteractingObjectPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialInteractingObjectPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialInteractingObjectPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this GoToSocialInteractingObjectPropertyIterator) 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 GoToSocialInteractingObjectPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialInteractingObjectPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialInteractingObjectPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialInteractingObjectPropertyIterator) 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 GoToSocialInteractingObjectPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialInteractingObjectPropertyIterator) 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 GoToSocialInteractingObjectPropertyIterator) LessThan(o vocab.GoToSocialInteractingObjectPropertyIterator) 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: "GoToSocialInteractingObject". +func (this GoToSocialInteractingObjectPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialInteractingObject" + } else { + return "GoToSocialInteractingObject" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialInteractingObjectPropertyIterator) Next() vocab.GoToSocialInteractingObjectPropertyIterator { + 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 GoToSocialInteractingObjectPropertyIterator) Prev() vocab.GoToSocialInteractingObjectPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *GoToSocialInteractingObjectPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialInteractingObjectPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialInteractingObjectPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = 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 GoToSocialInteractingObjectPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// GoToSocialInteractingObjectProperty is the non-functional property +// "interactingObject". It is permitted to have one or more values, and of +// different value types. +type GoToSocialInteractingObjectProperty struct { + properties []*GoToSocialInteractingObjectPropertyIterator + alias string +} + +// DeserializeInteractingObjectProperty creates a "interactingObject" property +// from an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeInteractingObjectProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "interactingObject" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "interactingObject") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialInteractingObjectProperty{ + alias: alias, + properties: []*GoToSocialInteractingObjectPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialInteractingObjectPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialInteractingObjectPropertyIterator(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 +} + +// NewGoToSocialInteractingObjectProperty creates a new interactingObject property. +func NewGoToSocialInteractingObjectProperty() *GoToSocialInteractingObjectProperty { + return &GoToSocialInteractingObjectProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "interactingObject" +func (this *GoToSocialInteractingObjectProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialInteractingObjectPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "interactingObject". Invalidates iterators that are traversing +// using Prev. +func (this *GoToSocialInteractingObjectProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialInteractingObjectPropertyIterator{ + 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 GoToSocialInteractingObjectProperty) At(index int) vocab.GoToSocialInteractingObjectPropertyIterator { + 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 GoToSocialInteractingObjectProperty) Begin() vocab.GoToSocialInteractingObjectPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialInteractingObjectProperty) 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 GoToSocialInteractingObjectProperty) End() vocab.GoToSocialInteractingObjectPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "interactingObject". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialInteractingObjectProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialInteractingObjectPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "interactingObject". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *GoToSocialInteractingObjectProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialInteractingObjectPropertyIterator{ + 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 GoToSocialInteractingObjectProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialInteractingObjectProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "interactingObject" +// property. +func (this GoToSocialInteractingObjectProperty) 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 GoToSocialInteractingObjectProperty) 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 anyuri.LessAnyURI(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 GoToSocialInteractingObjectProperty) LessThan(o vocab.GoToSocialInteractingObjectProperty) 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 ("interactingObject") with any alias. +func (this GoToSocialInteractingObjectProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "interactingObject" + } else { + return "interactingObject" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "interactingObject". +func (this *GoToSocialInteractingObjectProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialInteractingObjectPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "interactingObject". Invalidates all iterators. +func (this *GoToSocialInteractingObjectProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*GoToSocialInteractingObjectPropertyIterator{{ + 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 +// "interactingObject", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialInteractingObjectProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialInteractingObjectPropertyIterator{} + 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 GoToSocialInteractingObjectProperty) 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 anyURI value to be at the specified index for the property +// "interactingObject". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *GoToSocialInteractingObjectProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialInteractingObjectPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "interactingObject". Panics if the index is out of bounds. +func (this *GoToSocialInteractingObjectProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialInteractingObjectPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "interactingObject" +// property. +func (this GoToSocialInteractingObjectProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go new file mode 100644 index 000000000..a5ccea8ad --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyinteractionpolicy contains the implementation for the +// interactionPolicy 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 propertyinteractionpolicy diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go new file mode 100644 index 000000000..9db21b98d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinteractionpolicy + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeInteractionPolicyGoToSocial returns the deserialization + // method for the "GoToSocialInteractionPolicy" non-functional + // property in the vocabulary "GoToSocial" + DeserializeInteractionPolicyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicy, 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go new file mode 100644 index 000000000..0836aed04 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go @@ -0,0 +1,630 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinteractionpolicy + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialInteractionPolicyPropertyIterator is an iterator for a property. It +// is permitted to be a single nilable value type. +type GoToSocialInteractionPolicyPropertyIterator struct { + gotosocialInteractionPolicyMember vocab.GoToSocialInteractionPolicy + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.GoToSocialInteractionPolicyProperty +} + +// NewGoToSocialInteractionPolicyPropertyIterator creates a new +// GoToSocialInteractionPolicy property. +func NewGoToSocialInteractionPolicyPropertyIterator() *GoToSocialInteractionPolicyPropertyIterator { + return &GoToSocialInteractionPolicyPropertyIterator{alias: ""} +} + +// deserializeGoToSocialInteractionPolicyPropertyIterator creates an iterator from +// an element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialInteractionPolicyPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialInteractionPolicyPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &GoToSocialInteractionPolicyPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeInteractionPolicyGoToSocial()(m, aliasMap); err == nil { + this := &GoToSocialInteractionPolicyPropertyIterator{ + alias: alias, + gotosocialInteractionPolicyMember: v, + } + return this, nil + } + } + this := &GoToSocialInteractionPolicyPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsGoToSocialInteractionPolicy +// returns false, Get will return any arbitrary value. +func (this GoToSocialInteractionPolicyPropertyIterator) Get() vocab.GoToSocialInteractionPolicy { + return this.gotosocialInteractionPolicyMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialInteractionPolicyPropertyIterator) 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 GoToSocialInteractionPolicyPropertyIterator) GetType() vocab.Type { + if this.IsGoToSocialInteractionPolicy() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialInteractionPolicyPropertyIterator) HasAny() bool { + return this.IsGoToSocialInteractionPolicy() || this.iri != nil +} + +// IsGoToSocialInteractionPolicy returns true if this property is set and not an +// IRI. +func (this GoToSocialInteractionPolicyPropertyIterator) IsGoToSocialInteractionPolicy() bool { + return this.gotosocialInteractionPolicyMember != nil +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialInteractionPolicyPropertyIterator) 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 GoToSocialInteractionPolicyPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + if this.IsGoToSocialInteractionPolicy() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialInteractionPolicyPropertyIterator) KindIndex() int { + if this.IsGoToSocialInteractionPolicy() { + 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 GoToSocialInteractionPolicyPropertyIterator) LessThan(o vocab.GoToSocialInteractionPolicyPropertyIterator) 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.IsGoToSocialInteractionPolicy() && !o.IsGoToSocialInteractionPolicy() { + // Both are unknowns. + return false + } else if this.IsGoToSocialInteractionPolicy() && !o.IsGoToSocialInteractionPolicy() { + // Values are always greater than unknown values. + return false + } else if !this.IsGoToSocialInteractionPolicy() && o.IsGoToSocialInteractionPolicy() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "GoToSocialInteractionPolicy". +func (this GoToSocialInteractionPolicyPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialInteractionPolicy" + } else { + return "GoToSocialInteractionPolicy" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialInteractionPolicyPropertyIterator) Next() vocab.GoToSocialInteractionPolicyPropertyIterator { + 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 GoToSocialInteractionPolicyPropertyIterator) Prev() vocab.GoToSocialInteractionPolicyPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsGoToSocialInteractionPolicy +// afterwards will return true. +func (this *GoToSocialInteractionPolicyPropertyIterator) Set(v vocab.GoToSocialInteractionPolicy) { + this.clear() + this.gotosocialInteractionPolicyMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialInteractionPolicyPropertyIterator) 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 *GoToSocialInteractionPolicyPropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.GoToSocialInteractionPolicy); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on GoToSocialInteractionPolicy property: %T", t) +} + +// clear ensures no value of this property is set. Calling +// IsGoToSocialInteractionPolicy afterwards will return false. +func (this *GoToSocialInteractionPolicyPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.gotosocialInteractionPolicyMember = 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 GoToSocialInteractionPolicyPropertyIterator) serialize() (interface{}, error) { + if this.IsGoToSocialInteractionPolicy() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// GoToSocialInteractionPolicyProperty is the non-functional property +// "interactionPolicy". It is permitted to have one or more values, and of +// different value types. +type GoToSocialInteractionPolicyProperty struct { + properties []*GoToSocialInteractionPolicyPropertyIterator + alias string +} + +// DeserializeInteractionPolicyProperty creates a "interactionPolicy" property +// from an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeInteractionPolicyProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "interactionPolicy" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "interactionPolicy") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialInteractionPolicyProperty{ + alias: alias, + properties: []*GoToSocialInteractionPolicyPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialInteractionPolicyPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialInteractionPolicyPropertyIterator(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 +} + +// NewGoToSocialInteractionPolicyProperty creates a new interactionPolicy property. +func NewGoToSocialInteractionPolicyProperty() *GoToSocialInteractionPolicyProperty { + return &GoToSocialInteractionPolicyProperty{alias: ""} +} + +// AppendGoToSocialInteractionPolicy appends a InteractionPolicy value to the back +// of a list of the property "interactionPolicy". Invalidates iterators that +// are traversing using Prev. +func (this *GoToSocialInteractionPolicyProperty) AppendGoToSocialInteractionPolicy(v vocab.GoToSocialInteractionPolicy) { + this.properties = append(this.properties, &GoToSocialInteractionPolicyPropertyIterator{ + alias: this.alias, + gotosocialInteractionPolicyMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "interactionPolicy" +func (this *GoToSocialInteractionPolicyProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialInteractionPolicyPropertyIterator{ + 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 "interactionPolicy". 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 *GoToSocialInteractionPolicyProperty) AppendType(t vocab.Type) error { + n := &GoToSocialInteractionPolicyPropertyIterator{ + 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 GoToSocialInteractionPolicyProperty) At(index int) vocab.GoToSocialInteractionPolicyPropertyIterator { + 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 GoToSocialInteractionPolicyProperty) Begin() vocab.GoToSocialInteractionPolicyPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialInteractionPolicyProperty) 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 GoToSocialInteractionPolicyProperty) End() vocab.GoToSocialInteractionPolicyPropertyIterator { + return nil +} + +// InsertGoToSocialInteractionPolicy inserts a InteractionPolicy value at the +// specified index for a property "interactionPolicy". Existing elements at +// that index and higher are shifted back once. Invalidates all iterators. +func (this *GoToSocialInteractionPolicyProperty) InsertGoToSocialInteractionPolicy(idx int, v vocab.GoToSocialInteractionPolicy) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialInteractionPolicyPropertyIterator{ + alias: this.alias, + gotosocialInteractionPolicyMember: 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 +// "interactionPolicy". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialInteractionPolicyProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialInteractionPolicyPropertyIterator{ + 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 "interactionPolicy". Invalidates all iterators. Returns an error +// if the type is not a valid one to set for this property. +func (this *GoToSocialInteractionPolicyProperty) InsertType(idx int, t vocab.Type) error { + n := &GoToSocialInteractionPolicyPropertyIterator{ + 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 GoToSocialInteractionPolicyProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialInteractionPolicyProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "interactionPolicy" +// property. +func (this GoToSocialInteractionPolicyProperty) 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 GoToSocialInteractionPolicyProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialInteractionPolicyProperty) LessThan(o vocab.GoToSocialInteractionPolicyProperty) 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 ("interactionPolicy") with any alias. +func (this GoToSocialInteractionPolicyProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "interactionPolicy" + } else { + return "interactionPolicy" + } +} + +// PrependGoToSocialInteractionPolicy prepends a InteractionPolicy value to the +// front of a list of the property "interactionPolicy". Invalidates all +// iterators. +func (this *GoToSocialInteractionPolicyProperty) PrependGoToSocialInteractionPolicy(v vocab.GoToSocialInteractionPolicy) { + this.properties = append([]*GoToSocialInteractionPolicyPropertyIterator{{ + alias: this.alias, + gotosocialInteractionPolicyMember: 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 +// "interactionPolicy". +func (this *GoToSocialInteractionPolicyProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialInteractionPolicyPropertyIterator{{ + 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 "interactionPolicy". Invalidates all iterators. Returns an error +// if the type is not a valid one to set for this property. +func (this *GoToSocialInteractionPolicyProperty) PrependType(t vocab.Type) error { + n := &GoToSocialInteractionPolicyPropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*GoToSocialInteractionPolicyPropertyIterator{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 +// "interactionPolicy", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialInteractionPolicyProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialInteractionPolicyPropertyIterator{} + 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 GoToSocialInteractionPolicyProperty) 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 InteractionPolicy value to be at the specified index for the +// property "interactionPolicy". Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *GoToSocialInteractionPolicyProperty) Set(idx int, v vocab.GoToSocialInteractionPolicy) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialInteractionPolicyPropertyIterator{ + alias: this.alias, + gotosocialInteractionPolicyMember: v, + myIdx: idx, + parent: this, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "interactionPolicy". Panics if the index is out of bounds. +func (this *GoToSocialInteractionPolicyProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialInteractionPolicyPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "interactionPolicy". 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 *GoToSocialInteractionPolicyProperty) SetType(idx int, t vocab.Type) error { + n := &GoToSocialInteractionPolicyPropertyIterator{ + 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 "interactionPolicy" +// property. +func (this GoToSocialInteractionPolicyProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go new file mode 100644 index 000000000..b7633ec1a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyinteractiontarget contains the implementation for the +// interactionTarget 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 propertyinteractiontarget diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go new file mode 100644 index 000000000..c957dc08e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinteractiontarget + +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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go new file mode 100644 index 000000000..dc268a79b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go @@ -0,0 +1,511 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyinteractiontarget + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialInteractionTargetPropertyIterator is an iterator for a property. It +// is permitted to be a single nilable value type. +type GoToSocialInteractionTargetPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.GoToSocialInteractionTargetProperty +} + +// NewGoToSocialInteractionTargetPropertyIterator creates a new +// GoToSocialInteractionTarget property. +func NewGoToSocialInteractionTargetPropertyIterator() *GoToSocialInteractionTargetPropertyIterator { + return &GoToSocialInteractionTargetPropertyIterator{alias: ""} +} + +// deserializeGoToSocialInteractionTargetPropertyIterator creates an iterator from +// an element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialInteractionTargetPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialInteractionTargetPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialInteractionTargetPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialInteractionTargetPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this GoToSocialInteractionTargetPropertyIterator) 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 GoToSocialInteractionTargetPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialInteractionTargetPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialInteractionTargetPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialInteractionTargetPropertyIterator) 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 GoToSocialInteractionTargetPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialInteractionTargetPropertyIterator) 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 GoToSocialInteractionTargetPropertyIterator) LessThan(o vocab.GoToSocialInteractionTargetPropertyIterator) 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: "GoToSocialInteractionTarget". +func (this GoToSocialInteractionTargetPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialInteractionTarget" + } else { + return "GoToSocialInteractionTarget" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialInteractionTargetPropertyIterator) Next() vocab.GoToSocialInteractionTargetPropertyIterator { + 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 GoToSocialInteractionTargetPropertyIterator) Prev() vocab.GoToSocialInteractionTargetPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *GoToSocialInteractionTargetPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialInteractionTargetPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialInteractionTargetPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = 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 GoToSocialInteractionTargetPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// GoToSocialInteractionTargetProperty is the non-functional property +// "interactionTarget". It is permitted to have one or more values, and of +// different value types. +type GoToSocialInteractionTargetProperty struct { + properties []*GoToSocialInteractionTargetPropertyIterator + alias string +} + +// DeserializeInteractionTargetProperty creates a "interactionTarget" property +// from an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeInteractionTargetProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "interactionTarget" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "interactionTarget") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialInteractionTargetProperty{ + alias: alias, + properties: []*GoToSocialInteractionTargetPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialInteractionTargetPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialInteractionTargetPropertyIterator(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 +} + +// NewGoToSocialInteractionTargetProperty creates a new interactionTarget property. +func NewGoToSocialInteractionTargetProperty() *GoToSocialInteractionTargetProperty { + return &GoToSocialInteractionTargetProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "interactionTarget" +func (this *GoToSocialInteractionTargetProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialInteractionTargetPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "interactionTarget". Invalidates iterators that are traversing +// using Prev. +func (this *GoToSocialInteractionTargetProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialInteractionTargetPropertyIterator{ + 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 GoToSocialInteractionTargetProperty) At(index int) vocab.GoToSocialInteractionTargetPropertyIterator { + 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 GoToSocialInteractionTargetProperty) Begin() vocab.GoToSocialInteractionTargetPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialInteractionTargetProperty) 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 GoToSocialInteractionTargetProperty) End() vocab.GoToSocialInteractionTargetPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "interactionTarget". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialInteractionTargetProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialInteractionTargetPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "interactionTarget". Existing elements at that index and higher +// are shifted back once. Invalidates all iterators. +func (this *GoToSocialInteractionTargetProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialInteractionTargetPropertyIterator{ + 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 GoToSocialInteractionTargetProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialInteractionTargetProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "interactionTarget" +// property. +func (this GoToSocialInteractionTargetProperty) 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 GoToSocialInteractionTargetProperty) 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 anyuri.LessAnyURI(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 GoToSocialInteractionTargetProperty) LessThan(o vocab.GoToSocialInteractionTargetProperty) 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 ("interactionTarget") with any alias. +func (this GoToSocialInteractionTargetProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "interactionTarget" + } else { + return "interactionTarget" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "interactionTarget". +func (this *GoToSocialInteractionTargetProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialInteractionTargetPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "interactionTarget". Invalidates all iterators. +func (this *GoToSocialInteractionTargetProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*GoToSocialInteractionTargetPropertyIterator{{ + 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 +// "interactionTarget", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialInteractionTargetProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialInteractionTargetPropertyIterator{} + 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 GoToSocialInteractionTargetProperty) 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 anyURI value to be at the specified index for the property +// "interactionTarget". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *GoToSocialInteractionTargetProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialInteractionTargetPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "interactionTarget". Panics if the index is out of bounds. +func (this *GoToSocialInteractionTargetProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialInteractionTargetPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "interactionTarget" +// property. +func (this GoToSocialInteractionTargetProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go new file mode 100644 index 000000000..19ff2b245 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertymanualapproval contains the implementation for the +// manualApproval 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 propertymanualapproval diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go new file mode 100644 index 000000000..e9ee735e2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertymanualapproval + +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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go new file mode 100644 index 000000000..6256d481b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go @@ -0,0 +1,510 @@ +// Code generated by astool. DO NOT EDIT. + +package propertymanualapproval + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialManualApprovalPropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type GoToSocialManualApprovalPropertyIterator struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string + myIdx int + parent vocab.GoToSocialManualApprovalProperty +} + +// NewGoToSocialManualApprovalPropertyIterator creates a new +// GoToSocialManualApproval property. +func NewGoToSocialManualApprovalPropertyIterator() *GoToSocialManualApprovalPropertyIterator { + return &GoToSocialManualApprovalPropertyIterator{alias: ""} +} + +// deserializeGoToSocialManualApprovalPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeGoToSocialManualApprovalPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialManualApprovalPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &GoToSocialManualApprovalPropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &GoToSocialManualApprovalPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this GoToSocialManualApprovalPropertyIterator) 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 GoToSocialManualApprovalPropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialManualApprovalPropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialManualApprovalPropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this GoToSocialManualApprovalPropertyIterator) 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 GoToSocialManualApprovalPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialManualApprovalPropertyIterator) 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 GoToSocialManualApprovalPropertyIterator) LessThan(o vocab.GoToSocialManualApprovalPropertyIterator) 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: "GoToSocialManualApproval". +func (this GoToSocialManualApprovalPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "GoToSocialManualApproval" + } else { + return "GoToSocialManualApproval" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this GoToSocialManualApprovalPropertyIterator) Next() vocab.GoToSocialManualApprovalPropertyIterator { + 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 GoToSocialManualApprovalPropertyIterator) Prev() vocab.GoToSocialManualApprovalPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *GoToSocialManualApprovalPropertyIterator) Set(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialManualApprovalPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.Set(v) +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *GoToSocialManualApprovalPropertyIterator) clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = 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 GoToSocialManualApprovalPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// GoToSocialManualApprovalProperty is the non-functional property +// "manualApproval". It is permitted to have one or more values, and of +// different value types. +type GoToSocialManualApprovalProperty struct { + properties []*GoToSocialManualApprovalPropertyIterator + alias string +} + +// DeserializeManualApprovalProperty creates a "manualApproval" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeManualApprovalProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialManualApprovalProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "manualApproval" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "manualApproval") + } + i, ok := m[propName] + + if ok { + this := &GoToSocialManualApprovalProperty{ + alias: alias, + properties: []*GoToSocialManualApprovalPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeGoToSocialManualApprovalPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeGoToSocialManualApprovalPropertyIterator(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 +} + +// NewGoToSocialManualApprovalProperty creates a new manualApproval property. +func NewGoToSocialManualApprovalProperty() *GoToSocialManualApprovalProperty { + return &GoToSocialManualApprovalProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "manualApproval" +func (this *GoToSocialManualApprovalProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialManualApprovalPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "manualApproval". Invalidates iterators that are traversing using +// Prev. +func (this *GoToSocialManualApprovalProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &GoToSocialManualApprovalPropertyIterator{ + 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 GoToSocialManualApprovalProperty) At(index int) vocab.GoToSocialManualApprovalPropertyIterator { + 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 GoToSocialManualApprovalProperty) Begin() vocab.GoToSocialManualApprovalPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this GoToSocialManualApprovalProperty) 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 GoToSocialManualApprovalProperty) End() vocab.GoToSocialManualApprovalPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property +// "manualApproval". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *GoToSocialManualApprovalProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialManualApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "manualApproval". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *GoToSocialManualApprovalProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &GoToSocialManualApprovalPropertyIterator{ + 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 GoToSocialManualApprovalProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this GoToSocialManualApprovalProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "manualApproval" property. +func (this GoToSocialManualApprovalProperty) 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 GoToSocialManualApprovalProperty) 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 anyuri.LessAnyURI(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 GoToSocialManualApprovalProperty) LessThan(o vocab.GoToSocialManualApprovalProperty) 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 ("manualApproval") with any alias. +func (this GoToSocialManualApprovalProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "manualApproval" + } else { + return "manualApproval" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "manualApproval". +func (this *GoToSocialManualApprovalProperty) PrependIRI(v *url.URL) { + this.properties = append([]*GoToSocialManualApprovalPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "manualApproval". Invalidates all iterators. +func (this *GoToSocialManualApprovalProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*GoToSocialManualApprovalPropertyIterator{{ + 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 +// "manualApproval", regardless of its type. Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *GoToSocialManualApprovalProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &GoToSocialManualApprovalPropertyIterator{} + 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 GoToSocialManualApprovalProperty) 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 anyURI value to be at the specified index for the property +// "manualApproval". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *GoToSocialManualApprovalProperty) Set(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialManualApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "manualApproval". Panics if the index is out of bounds. +func (this *GoToSocialManualApprovalProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &GoToSocialManualApprovalPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// Swap swaps the location of values at two indices for the "manualApproval" +// property. +func (this GoToSocialManualApprovalProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go new file mode 100644 index 000000000..2c764f2e0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeannounceapproval contains the implementation for the +// AnnounceApproval 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 typeannounceapproval diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go new file mode 100644 index 000000000..ed10e7294 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannounceapproval + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go new file mode 100644 index 000000000..a97e92be5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go @@ -0,0 +1,1641 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannounceapproval + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// DEPRECATED: Use `AnnounceAuthorization` instead. +type GoToSocialAnnounceApproval 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// AnnounceApprovalIsDisjointWith returns true if the other provided type is +// disjoint with the AnnounceApproval type. +func AnnounceApprovalIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// AnnounceApprovalIsExtendedBy returns true if the other provided type extends +// from the AnnounceApproval type. Note that it returns false if the types are +// the same; see the "IsOrExtendsAnnounceApproval" variant instead. +func AnnounceApprovalIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeAnnounceApproval creates a AnnounceApproval from a map +// representation that has been unmarshalled from a text or binary format. +func DeserializeAnnounceApproval(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialAnnounceApproval, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialAnnounceApproval{ + 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 != "AnnounceApproval" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "AnnounceApproval", 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) == "AnnounceApproval" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "AnnounceApproval") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GoToSocialAnnounceApprovalExtends returns true if the AnnounceApproval type +// extends from the other type. +func GoToSocialAnnounceApprovalExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsAnnounceApproval returns true if the other provided type is the +// AnnounceApproval type or extends from the AnnounceApproval type. +func IsOrExtendsAnnounceApproval(other vocab.Type) bool { + if other.GetTypeName() == "AnnounceApproval" { + return true + } + return AnnounceApprovalIsExtendedBy(other) +} + +// NewGoToSocialAnnounceApproval creates a new AnnounceApproval type +func NewGoToSocialAnnounceApproval() *GoToSocialAnnounceApproval { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("AnnounceApproval") + return &GoToSocialAnnounceApproval{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceApproval) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceApproval) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceApproval) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialAnnounceApproval) GetTypeName() string { + return "AnnounceApproval" +} + +// GetUnknownProperties returns the unknown properties for the AnnounceApproval +// 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 GoToSocialAnnounceApproval) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the AnnounceApproval type extends from the other +// type. +func (this GoToSocialAnnounceApproval) IsExtending(other vocab.Type) bool { + return GoToSocialAnnounceApprovalExtends(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 GoToSocialAnnounceApproval) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 AnnounceApproval is lesser, with an arbitrary but +// stable determination. +func (this GoToSocialAnnounceApproval) LessThan(o vocab.GoToSocialAnnounceApproval) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 GoToSocialAnnounceApproval) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "AnnounceApproval" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "AnnounceApproval" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialAnnounceApproval) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialAnnounceApproval) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialAnnounceApproval) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialAnnounceApproval) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialAnnounceApproval) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialAnnounceApproval) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go new file mode 100644 index 000000000..549e0ed59 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeannounceauthorization contains the implementation for the +// AnnounceAuthorization 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 typeannounceauthorization diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go new file mode 100644 index 000000000..8f83248ea --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go @@ -0,0 +1,189 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannounceauthorization + +import vocab "code.superseriousbusiness.org/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) + // DeserializeInteractingObjectPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractingObjectProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) + // DeserializeInteractionTargetPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionTargetProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go new file mode 100644 index 000000000..47892251e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go @@ -0,0 +1,1726 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannounceauthorization + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialAnnounceAuthorization 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 + GoToSocialInteractingObject vocab.GoToSocialInteractingObjectProperty + GoToSocialInteractionTarget vocab.GoToSocialInteractionTargetProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// AnnounceAuthorizationIsDisjointWith returns true if the other provided type is +// disjoint with the AnnounceAuthorization type. +func AnnounceAuthorizationIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// AnnounceAuthorizationIsExtendedBy returns true if the other provided type +// extends from the AnnounceAuthorization type. Note that it returns false if +// the types are the same; see the "IsOrExtendsAnnounceAuthorization" variant +// instead. +func AnnounceAuthorizationIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeAnnounceAuthorization creates a AnnounceAuthorization from a map +// representation that has been unmarshalled from a text or binary format. +func DeserializeAnnounceAuthorization(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialAnnounceAuthorization, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialAnnounceAuthorization{ + 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 != "AnnounceAuthorization" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "AnnounceAuthorization", 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) == "AnnounceAuthorization" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "AnnounceAuthorization") + } + // 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.DeserializeInteractingObjectPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractingObject = p + } + if p, err := mgr.DeserializeInteractionTargetPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionTarget = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "interactingObject" { + continue + } else if k == "interactionTarget" { + 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GoToSocialAnnounceAuthorizationExtends returns true if the +// AnnounceAuthorization type extends from the other type. +func GoToSocialAnnounceAuthorizationExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsAnnounceAuthorization returns true if the other provided type is the +// AnnounceAuthorization type or extends from the AnnounceAuthorization type. +func IsOrExtendsAnnounceAuthorization(other vocab.Type) bool { + if other.GetTypeName() == "AnnounceAuthorization" { + return true + } + return AnnounceAuthorizationIsExtendedBy(other) +} + +// NewGoToSocialAnnounceAuthorization creates a new AnnounceAuthorization type +func NewGoToSocialAnnounceAuthorization() *GoToSocialAnnounceAuthorization { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("AnnounceAuthorization") + return &GoToSocialAnnounceAuthorization{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceAuthorization) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetGoToSocialInteractingObject returns the "interactingObject" property if it +// exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetGoToSocialInteractingObject() vocab.GoToSocialInteractingObjectProperty { + return this.GoToSocialInteractingObject +} + +// GetGoToSocialInteractionTarget returns the "interactionTarget" property if it +// exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetGoToSocialInteractionTarget() vocab.GoToSocialInteractionTargetProperty { + return this.GoToSocialInteractionTarget +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceAuthorization) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialAnnounceAuthorization) GetTypeName() string { + return "AnnounceAuthorization" +} + +// GetUnknownProperties returns the unknown properties for the +// AnnounceAuthorization 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 GoToSocialAnnounceAuthorization) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the AnnounceAuthorization type extends from the +// other type. +func (this GoToSocialAnnounceAuthorization) IsExtending(other vocab.Type) bool { + return GoToSocialAnnounceAuthorizationExtends(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 GoToSocialAnnounceAuthorization) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.GoToSocialInteractingObject, m) + m = this.helperJSONLDContext(this.GoToSocialInteractionTarget, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 AnnounceAuthorization is lesser, with an arbitrary +// but stable determination. +func (this GoToSocialAnnounceAuthorization) LessThan(o vocab.GoToSocialAnnounceAuthorization) 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 "interactingObject" + if lhs, rhs := this.GoToSocialInteractingObject, o.GetGoToSocialInteractingObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "interactionTarget" + if lhs, rhs := this.GoToSocialInteractionTarget, o.GetGoToSocialInteractionTarget(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 GoToSocialAnnounceAuthorization) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "AnnounceAuthorization" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "AnnounceAuthorization" + } + 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 "interactingObject" + if this.GoToSocialInteractingObject != nil { + if i, err := this.GoToSocialInteractingObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractingObject.Name()] = i + } + } + // Maybe serialize property "interactionTarget" + if this.GoToSocialInteractionTarget != nil { + if i, err := this.GoToSocialInteractionTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionTarget.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialAnnounceAuthorization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetGoToSocialInteractingObject sets the "interactingObject" property. +func (this *GoToSocialAnnounceAuthorization) SetGoToSocialInteractingObject(i vocab.GoToSocialInteractingObjectProperty) { + this.GoToSocialInteractingObject = i +} + +// SetGoToSocialInteractionTarget sets the "interactionTarget" property. +func (this *GoToSocialAnnounceAuthorization) SetGoToSocialInteractionTarget(i vocab.GoToSocialInteractionTargetProperty) { + this.GoToSocialInteractionTarget = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialAnnounceAuthorization) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialAnnounceAuthorization) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialAnnounceAuthorization) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialAnnounceAuthorization) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go new file mode 100644 index 000000000..b615c2d3d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeannouncerequest contains the implementation for the AnnounceRequest +// 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 typeannouncerequest diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go new file mode 100644 index 000000000..6b1864061 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannouncerequest + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go new file mode 100644 index 000000000..24f1ec236 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go @@ -0,0 +1,1850 @@ +// Code generated by astool. DO NOT EDIT. + +package typeannouncerequest + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialAnnounceRequest 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// AnnounceRequestIsDisjointWith returns true if the other provided type is +// disjoint with the AnnounceRequest type. +func AnnounceRequestIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// AnnounceRequestIsExtendedBy returns true if the other provided type extends +// from the AnnounceRequest type. Note that it returns false if the types are +// the same; see the "IsOrExtendsAnnounceRequest" variant instead. +func AnnounceRequestIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeAnnounceRequest creates a AnnounceRequest from a map representation +// that has been unmarshalled from a text or binary format. +func DeserializeAnnounceRequest(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialAnnounceRequest, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialAnnounceRequest{ + 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 != "AnnounceRequest" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "AnnounceRequest", 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) == "AnnounceRequest" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "AnnounceRequest") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GoToSocialAnnounceRequestExtends returns true if the AnnounceRequest type +// extends from the other type. +func GoToSocialAnnounceRequestExtends(other vocab.Type) bool { + extensions := []string{"Activity", "Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsAnnounceRequest returns true if the other provided type is the +// AnnounceRequest type or extends from the AnnounceRequest type. +func IsOrExtendsAnnounceRequest(other vocab.Type) bool { + if other.GetTypeName() == "AnnounceRequest" { + return true + } + return AnnounceRequestIsExtendedBy(other) +} + +// NewGoToSocialAnnounceRequest creates a new AnnounceRequest type +func NewGoToSocialAnnounceRequest() *GoToSocialAnnounceRequest { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("AnnounceRequest") + return &GoToSocialAnnounceRequest{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsActor returns the "actor" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { + return this.ActivityStreamsActor +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsInstrument returns the "instrument" property if it exists, +// and nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { + return this.ActivityStreamsInstrument +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { + return this.ActivityStreamsOrigin +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsResult returns the "result" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { + return this.ActivityStreamsResult +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTarget returns the "target" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { + return this.ActivityStreamsTarget +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialAnnounceRequest) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceRequest) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialAnnounceRequest) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialAnnounceRequest) GetTypeName() string { + return "AnnounceRequest" +} + +// GetUnknownProperties returns the unknown properties for the AnnounceRequest +// 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 GoToSocialAnnounceRequest) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the AnnounceRequest type extends from the other +// type. +func (this GoToSocialAnnounceRequest) IsExtending(other vocab.Type) bool { + return GoToSocialAnnounceRequestExtends(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 GoToSocialAnnounceRequest) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsActor, m) + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsResult, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 AnnounceRequest is lesser, with an arbitrary but +// stable determination. +func (this GoToSocialAnnounceRequest) LessThan(o vocab.GoToSocialAnnounceRequest) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 GoToSocialAnnounceRequest) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "AnnounceRequest" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "AnnounceRequest" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialAnnounceRequest) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { + this.ActivityStreamsActor = i +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsInstrument sets the "instrument" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { + this.ActivityStreamsInstrument = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsOrigin sets the "origin" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { + this.ActivityStreamsOrigin = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsResult sets the "result" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { + this.ActivityStreamsResult = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTarget sets the "target" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { + this.ActivityStreamsTarget = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialAnnounceRequest) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialAnnounceRequest) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialAnnounceRequest) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialAnnounceRequest) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialAnnounceRequest) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go new file mode 100644 index 000000000..f145bc742 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typecanannounce contains the implementation for the CanAnnounce 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 typecanannounce diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go new file mode 100644 index 000000000..d74919c5b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go @@ -0,0 +1,63 @@ +// Code generated by astool. DO NOT EDIT. + +package typecanannounce + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeAlwaysPropertyGoToSocial returns the deserialization method + // for the "GoToSocialAlwaysProperty" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) + // DeserializeApprovalRequiredPropertyGoToSocial returns the + // deserialization method for the "GoToSocialApprovalRequiredProperty" + // non-functional property in the vocabulary "GoToSocial" + DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) + // DeserializeAutomaticApprovalPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialAutomaticApprovalProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, 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) + // DeserializeManualApprovalPropertyGoToSocial returns the deserialization + // method for the "GoToSocialManualApprovalProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go new file mode 100644 index 000000000..835e2c577 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go @@ -0,0 +1,372 @@ +// Code generated by astool. DO NOT EDIT. + +package typecanannounce + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +type GoToSocialCanAnnounce struct { + GoToSocialAlways vocab.GoToSocialAlwaysProperty + GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty + GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty + JSONLDId vocab.JSONLDIdProperty + GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty + alias string + unknown map[string]interface{} +} + +// CanAnnounceIsDisjointWith returns true if the other provided type is disjoint +// with the CanAnnounce type. +func CanAnnounceIsDisjointWith(other vocab.Type) bool { + // Shortcut implementation: is not disjoint with anything. + return false +} + +// CanAnnounceIsExtendedBy returns true if the other provided type extends from +// the CanAnnounce type. Note that it returns false if the types are the same; +// see the "IsOrExtendsCanAnnounce" variant instead. +func CanAnnounceIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeCanAnnounce creates a CanAnnounce from a map representation that has +// been unmarshalled from a text or binary format. +func DeserializeCanAnnounce(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialCanAnnounce, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + this := &GoToSocialCanAnnounce{ + alias: alias, + unknown: make(map[string]interface{}), + } + + // Begin: Known property deserialization + if p, err := mgr.DeserializeAlwaysPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAlways = p + } + if p, err := mgr.DeserializeApprovalRequiredPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovalRequired = p + } + if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAutomaticApproval = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialManualApproval = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "always" { + continue + } else if k == "approvalRequired" { + continue + } else if k == "automaticApproval" { + continue + } else if k == "id" { + continue + } else if k == "manualApproval" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialCanAnnounceExtends returns true if the CanAnnounce type extends from +// the other type. +func GoToSocialCanAnnounceExtends(other vocab.Type) bool { + // Shortcut implementation: this does not extend anything. + return false +} + +// IsOrExtendsCanAnnounce returns true if the other provided type is the +// CanAnnounce type or extends from the CanAnnounce type. +func IsOrExtendsCanAnnounce(other vocab.Type) bool { + if other.GetTypeName() == "CanAnnounce" { + return true + } + return CanAnnounceIsExtendedBy(other) +} + +// NewGoToSocialCanAnnounce creates a new CanAnnounce type +func NewGoToSocialCanAnnounce() *GoToSocialCanAnnounce { + return &GoToSocialCanAnnounce{ + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetGoToSocialAlways returns the "always" property if it exists, and nil +// otherwise. +func (this GoToSocialCanAnnounce) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty { + return this.GoToSocialAlways +} + +// GetGoToSocialApprovalRequired returns the "approvalRequired" property if it +// exists, and nil otherwise. +func (this GoToSocialCanAnnounce) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty { + return this.GoToSocialApprovalRequired +} + +// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it +// exists, and nil otherwise. +func (this GoToSocialCanAnnounce) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { + return this.GoToSocialAutomaticApproval +} + +// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, +// and nil otherwise. +func (this GoToSocialCanAnnounce) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { + return this.GoToSocialManualApproval +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialCanAnnounce) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetTypeName returns the name of this type. +func (this GoToSocialCanAnnounce) GetTypeName() string { + return "CanAnnounce" +} + +// GetUnknownProperties returns the unknown properties for the CanAnnounce 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 GoToSocialCanAnnounce) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the CanAnnounce type extends from the other type. +func (this GoToSocialCanAnnounce) IsExtending(other vocab.Type) bool { + return GoToSocialCanAnnounceExtends(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 GoToSocialCanAnnounce) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.GoToSocialAlways, m) + m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) + m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) + + return m +} + +// LessThan computes if this CanAnnounce is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialCanAnnounce) LessThan(o vocab.GoToSocialCanAnnounce) bool { + // Begin: Compare known properties + // Compare property "always" + if lhs, rhs := this.GoToSocialAlways, o.GetGoToSocialAlways(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "approvalRequired" + if lhs, rhs := this.GoToSocialApprovalRequired, o.GetGoToSocialApprovalRequired(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "automaticApproval" + if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "manualApproval" + if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is 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 GoToSocialCanAnnounce) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + // Begin: Serialize known properties + // Maybe serialize property "always" + if this.GoToSocialAlways != nil { + if i, err := this.GoToSocialAlways.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAlways.Name()] = i + } + } + // Maybe serialize property "approvalRequired" + if this.GoToSocialApprovalRequired != nil { + if i, err := this.GoToSocialApprovalRequired.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovalRequired.Name()] = i + } + } + // Maybe serialize property "automaticApproval" + if this.GoToSocialAutomaticApproval != nil { + if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAutomaticApproval.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 "manualApproval" + if this.GoToSocialManualApproval != nil { + if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialManualApproval.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 +} + +// SetGoToSocialAlways sets the "always" property. +func (this *GoToSocialCanAnnounce) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty) { + this.GoToSocialAlways = i +} + +// SetGoToSocialApprovalRequired sets the "approvalRequired" property. +func (this *GoToSocialCanAnnounce) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty) { + this.GoToSocialApprovalRequired = i +} + +// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. +func (this *GoToSocialCanAnnounce) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { + this.GoToSocialAutomaticApproval = i +} + +// SetGoToSocialManualApproval sets the "manualApproval" property. +func (this *GoToSocialCanAnnounce) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { + this.GoToSocialManualApproval = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialCanAnnounce) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialCanAnnounce) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialCanAnnounce) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_doc.go new file mode 100644 index 000000000..c539c37d4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typecanlike contains the implementation for the CanLike 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 typecanlike diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go new file mode 100644 index 000000000..b79e14f64 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go @@ -0,0 +1,63 @@ +// Code generated by astool. DO NOT EDIT. + +package typecanlike + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeAlwaysPropertyGoToSocial returns the deserialization method + // for the "GoToSocialAlwaysProperty" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) + // DeserializeApprovalRequiredPropertyGoToSocial returns the + // deserialization method for the "GoToSocialApprovalRequiredProperty" + // non-functional property in the vocabulary "GoToSocial" + DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) + // DeserializeAutomaticApprovalPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialAutomaticApprovalProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, 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) + // DeserializeManualApprovalPropertyGoToSocial returns the deserialization + // method for the "GoToSocialManualApprovalProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go new file mode 100644 index 000000000..890039f50 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go @@ -0,0 +1,372 @@ +// Code generated by astool. DO NOT EDIT. + +package typecanlike + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +type GoToSocialCanLike struct { + GoToSocialAlways vocab.GoToSocialAlwaysProperty + GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty + GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty + JSONLDId vocab.JSONLDIdProperty + GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty + alias string + unknown map[string]interface{} +} + +// CanLikeIsDisjointWith returns true if the other provided type is disjoint with +// the CanLike type. +func CanLikeIsDisjointWith(other vocab.Type) bool { + // Shortcut implementation: is not disjoint with anything. + return false +} + +// CanLikeIsExtendedBy returns true if the other provided type extends from the +// CanLike type. Note that it returns false if the types are the same; see the +// "IsOrExtendsCanLike" variant instead. +func CanLikeIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeCanLike creates a CanLike from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeCanLike(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialCanLike, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + this := &GoToSocialCanLike{ + alias: alias, + unknown: make(map[string]interface{}), + } + + // Begin: Known property deserialization + if p, err := mgr.DeserializeAlwaysPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAlways = p + } + if p, err := mgr.DeserializeApprovalRequiredPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovalRequired = p + } + if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAutomaticApproval = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialManualApproval = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "always" { + continue + } else if k == "approvalRequired" { + continue + } else if k == "automaticApproval" { + continue + } else if k == "id" { + continue + } else if k == "manualApproval" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialCanLikeExtends returns true if the CanLike type extends from the +// other type. +func GoToSocialCanLikeExtends(other vocab.Type) bool { + // Shortcut implementation: this does not extend anything. + return false +} + +// IsOrExtendsCanLike returns true if the other provided type is the CanLike type +// or extends from the CanLike type. +func IsOrExtendsCanLike(other vocab.Type) bool { + if other.GetTypeName() == "CanLike" { + return true + } + return CanLikeIsExtendedBy(other) +} + +// NewGoToSocialCanLike creates a new CanLike type +func NewGoToSocialCanLike() *GoToSocialCanLike { + return &GoToSocialCanLike{ + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetGoToSocialAlways returns the "always" property if it exists, and nil +// otherwise. +func (this GoToSocialCanLike) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty { + return this.GoToSocialAlways +} + +// GetGoToSocialApprovalRequired returns the "approvalRequired" property if it +// exists, and nil otherwise. +func (this GoToSocialCanLike) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty { + return this.GoToSocialApprovalRequired +} + +// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it +// exists, and nil otherwise. +func (this GoToSocialCanLike) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { + return this.GoToSocialAutomaticApproval +} + +// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, +// and nil otherwise. +func (this GoToSocialCanLike) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { + return this.GoToSocialManualApproval +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialCanLike) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetTypeName returns the name of this type. +func (this GoToSocialCanLike) GetTypeName() string { + return "CanLike" +} + +// GetUnknownProperties returns the unknown properties for the CanLike 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 GoToSocialCanLike) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the CanLike type extends from the other type. +func (this GoToSocialCanLike) IsExtending(other vocab.Type) bool { + return GoToSocialCanLikeExtends(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 GoToSocialCanLike) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.GoToSocialAlways, m) + m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) + m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) + + return m +} + +// LessThan computes if this CanLike is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialCanLike) LessThan(o vocab.GoToSocialCanLike) bool { + // Begin: Compare known properties + // Compare property "always" + if lhs, rhs := this.GoToSocialAlways, o.GetGoToSocialAlways(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "approvalRequired" + if lhs, rhs := this.GoToSocialApprovalRequired, o.GetGoToSocialApprovalRequired(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "automaticApproval" + if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "manualApproval" + if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is 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 GoToSocialCanLike) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + // Begin: Serialize known properties + // Maybe serialize property "always" + if this.GoToSocialAlways != nil { + if i, err := this.GoToSocialAlways.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAlways.Name()] = i + } + } + // Maybe serialize property "approvalRequired" + if this.GoToSocialApprovalRequired != nil { + if i, err := this.GoToSocialApprovalRequired.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovalRequired.Name()] = i + } + } + // Maybe serialize property "automaticApproval" + if this.GoToSocialAutomaticApproval != nil { + if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAutomaticApproval.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 "manualApproval" + if this.GoToSocialManualApproval != nil { + if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialManualApproval.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 +} + +// SetGoToSocialAlways sets the "always" property. +func (this *GoToSocialCanLike) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty) { + this.GoToSocialAlways = i +} + +// SetGoToSocialApprovalRequired sets the "approvalRequired" property. +func (this *GoToSocialCanLike) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty) { + this.GoToSocialApprovalRequired = i +} + +// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. +func (this *GoToSocialCanLike) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { + this.GoToSocialAutomaticApproval = i +} + +// SetGoToSocialManualApproval sets the "manualApproval" property. +func (this *GoToSocialCanLike) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { + this.GoToSocialManualApproval = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialCanLike) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialCanLike) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialCanLike) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_doc.go new file mode 100644 index 000000000..99859f18c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typecanquote contains the implementation for the CanQuote 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 typecanquote diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go new file mode 100644 index 000000000..f82f2fe3e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go @@ -0,0 +1,63 @@ +// Code generated by astool. DO NOT EDIT. + +package typecanquote + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeAlwaysPropertyGoToSocial returns the deserialization method + // for the "GoToSocialAlwaysProperty" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) + // DeserializeApprovalRequiredPropertyGoToSocial returns the + // deserialization method for the "GoToSocialApprovalRequiredProperty" + // non-functional property in the vocabulary "GoToSocial" + DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) + // DeserializeAutomaticApprovalPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialAutomaticApprovalProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, 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) + // DeserializeManualApprovalPropertyGoToSocial returns the deserialization + // method for the "GoToSocialManualApprovalProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go new file mode 100644 index 000000000..74aa41c76 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go @@ -0,0 +1,372 @@ +// Code generated by astool. DO NOT EDIT. + +package typecanquote + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +type GoToSocialCanQuote struct { + GoToSocialAlways vocab.GoToSocialAlwaysProperty + GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty + GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty + JSONLDId vocab.JSONLDIdProperty + GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty + alias string + unknown map[string]interface{} +} + +// CanQuoteIsDisjointWith returns true if the other provided type is disjoint with +// the CanQuote type. +func CanQuoteIsDisjointWith(other vocab.Type) bool { + // Shortcut implementation: is not disjoint with anything. + return false +} + +// CanQuoteIsExtendedBy returns true if the other provided type extends from the +// CanQuote type. Note that it returns false if the types are the same; see +// the "IsOrExtendsCanQuote" variant instead. +func CanQuoteIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeCanQuote creates a CanQuote from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeCanQuote(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialCanQuote, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + this := &GoToSocialCanQuote{ + alias: alias, + unknown: make(map[string]interface{}), + } + + // Begin: Known property deserialization + if p, err := mgr.DeserializeAlwaysPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAlways = p + } + if p, err := mgr.DeserializeApprovalRequiredPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovalRequired = p + } + if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAutomaticApproval = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialManualApproval = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "always" { + continue + } else if k == "approvalRequired" { + continue + } else if k == "automaticApproval" { + continue + } else if k == "id" { + continue + } else if k == "manualApproval" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialCanQuoteExtends returns true if the CanQuote type extends from the +// other type. +func GoToSocialCanQuoteExtends(other vocab.Type) bool { + // Shortcut implementation: this does not extend anything. + return false +} + +// IsOrExtendsCanQuote returns true if the other provided type is the CanQuote +// type or extends from the CanQuote type. +func IsOrExtendsCanQuote(other vocab.Type) bool { + if other.GetTypeName() == "CanQuote" { + return true + } + return CanQuoteIsExtendedBy(other) +} + +// NewGoToSocialCanQuote creates a new CanQuote type +func NewGoToSocialCanQuote() *GoToSocialCanQuote { + return &GoToSocialCanQuote{ + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetGoToSocialAlways returns the "always" property if it exists, and nil +// otherwise. +func (this GoToSocialCanQuote) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty { + return this.GoToSocialAlways +} + +// GetGoToSocialApprovalRequired returns the "approvalRequired" property if it +// exists, and nil otherwise. +func (this GoToSocialCanQuote) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty { + return this.GoToSocialApprovalRequired +} + +// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it +// exists, and nil otherwise. +func (this GoToSocialCanQuote) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { + return this.GoToSocialAutomaticApproval +} + +// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, +// and nil otherwise. +func (this GoToSocialCanQuote) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { + return this.GoToSocialManualApproval +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialCanQuote) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetTypeName returns the name of this type. +func (this GoToSocialCanQuote) GetTypeName() string { + return "CanQuote" +} + +// GetUnknownProperties returns the unknown properties for the CanQuote 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 GoToSocialCanQuote) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the CanQuote type extends from the other type. +func (this GoToSocialCanQuote) IsExtending(other vocab.Type) bool { + return GoToSocialCanQuoteExtends(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 GoToSocialCanQuote) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.GoToSocialAlways, m) + m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) + m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) + + return m +} + +// LessThan computes if this CanQuote is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialCanQuote) LessThan(o vocab.GoToSocialCanQuote) bool { + // Begin: Compare known properties + // Compare property "always" + if lhs, rhs := this.GoToSocialAlways, o.GetGoToSocialAlways(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "approvalRequired" + if lhs, rhs := this.GoToSocialApprovalRequired, o.GetGoToSocialApprovalRequired(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "automaticApproval" + if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "manualApproval" + if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is 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 GoToSocialCanQuote) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + // Begin: Serialize known properties + // Maybe serialize property "always" + if this.GoToSocialAlways != nil { + if i, err := this.GoToSocialAlways.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAlways.Name()] = i + } + } + // Maybe serialize property "approvalRequired" + if this.GoToSocialApprovalRequired != nil { + if i, err := this.GoToSocialApprovalRequired.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovalRequired.Name()] = i + } + } + // Maybe serialize property "automaticApproval" + if this.GoToSocialAutomaticApproval != nil { + if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAutomaticApproval.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 "manualApproval" + if this.GoToSocialManualApproval != nil { + if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialManualApproval.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 +} + +// SetGoToSocialAlways sets the "always" property. +func (this *GoToSocialCanQuote) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty) { + this.GoToSocialAlways = i +} + +// SetGoToSocialApprovalRequired sets the "approvalRequired" property. +func (this *GoToSocialCanQuote) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty) { + this.GoToSocialApprovalRequired = i +} + +// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. +func (this *GoToSocialCanQuote) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { + this.GoToSocialAutomaticApproval = i +} + +// SetGoToSocialManualApproval sets the "manualApproval" property. +func (this *GoToSocialCanQuote) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { + this.GoToSocialManualApproval = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialCanQuote) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialCanQuote) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialCanQuote) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_doc.go new file mode 100644 index 000000000..b17fa98ee --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typecanreply contains the implementation for the CanReply 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 typecanreply diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go new file mode 100644 index 000000000..99c922168 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go @@ -0,0 +1,63 @@ +// Code generated by astool. DO NOT EDIT. + +package typecanreply + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeAlwaysPropertyGoToSocial returns the deserialization method + // for the "GoToSocialAlwaysProperty" non-functional property in the + // vocabulary "GoToSocial" + DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) + // DeserializeApprovalRequiredPropertyGoToSocial returns the + // deserialization method for the "GoToSocialApprovalRequiredProperty" + // non-functional property in the vocabulary "GoToSocial" + DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) + // DeserializeAutomaticApprovalPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialAutomaticApprovalProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, 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) + // DeserializeManualApprovalPropertyGoToSocial returns the deserialization + // method for the "GoToSocialManualApprovalProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go new file mode 100644 index 000000000..1bf232d48 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go @@ -0,0 +1,372 @@ +// Code generated by astool. DO NOT EDIT. + +package typecanreply + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +type GoToSocialCanReply struct { + GoToSocialAlways vocab.GoToSocialAlwaysProperty + GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty + GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty + JSONLDId vocab.JSONLDIdProperty + GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty + alias string + unknown map[string]interface{} +} + +// CanReplyIsDisjointWith returns true if the other provided type is disjoint with +// the CanReply type. +func CanReplyIsDisjointWith(other vocab.Type) bool { + // Shortcut implementation: is not disjoint with anything. + return false +} + +// CanReplyIsExtendedBy returns true if the other provided type extends from the +// CanReply type. Note that it returns false if the types are the same; see +// the "IsOrExtendsCanReply" variant instead. +func CanReplyIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeCanReply creates a CanReply from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeCanReply(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialCanReply, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + this := &GoToSocialCanReply{ + alias: alias, + unknown: make(map[string]interface{}), + } + + // Begin: Known property deserialization + if p, err := mgr.DeserializeAlwaysPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAlways = p + } + if p, err := mgr.DeserializeApprovalRequiredPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialApprovalRequired = p + } + if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialAutomaticApproval = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialManualApproval = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "always" { + continue + } else if k == "approvalRequired" { + continue + } else if k == "automaticApproval" { + continue + } else if k == "id" { + continue + } else if k == "manualApproval" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialCanReplyExtends returns true if the CanReply type extends from the +// other type. +func GoToSocialCanReplyExtends(other vocab.Type) bool { + // Shortcut implementation: this does not extend anything. + return false +} + +// IsOrExtendsCanReply returns true if the other provided type is the CanReply +// type or extends from the CanReply type. +func IsOrExtendsCanReply(other vocab.Type) bool { + if other.GetTypeName() == "CanReply" { + return true + } + return CanReplyIsExtendedBy(other) +} + +// NewGoToSocialCanReply creates a new CanReply type +func NewGoToSocialCanReply() *GoToSocialCanReply { + return &GoToSocialCanReply{ + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetGoToSocialAlways returns the "always" property if it exists, and nil +// otherwise. +func (this GoToSocialCanReply) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty { + return this.GoToSocialAlways +} + +// GetGoToSocialApprovalRequired returns the "approvalRequired" property if it +// exists, and nil otherwise. +func (this GoToSocialCanReply) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty { + return this.GoToSocialApprovalRequired +} + +// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it +// exists, and nil otherwise. +func (this GoToSocialCanReply) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { + return this.GoToSocialAutomaticApproval +} + +// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, +// and nil otherwise. +func (this GoToSocialCanReply) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { + return this.GoToSocialManualApproval +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialCanReply) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetTypeName returns the name of this type. +func (this GoToSocialCanReply) GetTypeName() string { + return "CanReply" +} + +// GetUnknownProperties returns the unknown properties for the CanReply 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 GoToSocialCanReply) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the CanReply type extends from the other type. +func (this GoToSocialCanReply) IsExtending(other vocab.Type) bool { + return GoToSocialCanReplyExtends(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 GoToSocialCanReply) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.GoToSocialAlways, m) + m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) + m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) + + return m +} + +// LessThan computes if this CanReply is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialCanReply) LessThan(o vocab.GoToSocialCanReply) bool { + // Begin: Compare known properties + // Compare property "always" + if lhs, rhs := this.GoToSocialAlways, o.GetGoToSocialAlways(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "approvalRequired" + if lhs, rhs := this.GoToSocialApprovalRequired, o.GetGoToSocialApprovalRequired(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "automaticApproval" + if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "manualApproval" + if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is 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 GoToSocialCanReply) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + // Begin: Serialize known properties + // Maybe serialize property "always" + if this.GoToSocialAlways != nil { + if i, err := this.GoToSocialAlways.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAlways.Name()] = i + } + } + // Maybe serialize property "approvalRequired" + if this.GoToSocialApprovalRequired != nil { + if i, err := this.GoToSocialApprovalRequired.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialApprovalRequired.Name()] = i + } + } + // Maybe serialize property "automaticApproval" + if this.GoToSocialAutomaticApproval != nil { + if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialAutomaticApproval.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 "manualApproval" + if this.GoToSocialManualApproval != nil { + if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialManualApproval.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 +} + +// SetGoToSocialAlways sets the "always" property. +func (this *GoToSocialCanReply) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty) { + this.GoToSocialAlways = i +} + +// SetGoToSocialApprovalRequired sets the "approvalRequired" property. +func (this *GoToSocialCanReply) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty) { + this.GoToSocialApprovalRequired = i +} + +// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. +func (this *GoToSocialCanReply) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { + this.GoToSocialAutomaticApproval = i +} + +// SetGoToSocialManualApproval sets the "manualApproval" property. +func (this *GoToSocialCanReply) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { + this.GoToSocialManualApproval = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialCanReply) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialCanReply) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialCanReply) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go new file mode 100644 index 000000000..1e13f6ef7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeinteractionpolicy contains the implementation for the +// InteractionPolicy 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 typeinteractionpolicy diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go new file mode 100644 index 000000000..c52acaf33 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go @@ -0,0 +1,62 @@ +// Code generated by astool. DO NOT EDIT. + +package typeinteractionpolicy + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeCanAnnouncePropertyGoToSocial returns the deserialization + // method for the "GoToSocialCanAnnounceProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeCanAnnouncePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanAnnounceProperty, error) + // DeserializeCanLikePropertyGoToSocial returns the deserialization method + // for the "GoToSocialCanLikeProperty" non-functional property in the + // vocabulary "GoToSocial" + DeserializeCanLikePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanLikeProperty, error) + // DeserializeCanQuotePropertyGoToSocial returns the deserialization + // method for the "GoToSocialCanQuoteProperty" non-functional property + // in the vocabulary "GoToSocial" + DeserializeCanQuotePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuoteProperty, error) + // DeserializeCanReplyPropertyGoToSocial returns the deserialization + // method for the "GoToSocialCanReplyProperty" non-functional property + // in the vocabulary "GoToSocial" + DeserializeCanReplyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanReplyProperty, 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) +} + +// 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go new file mode 100644 index 000000000..838c0b0f8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go @@ -0,0 +1,374 @@ +// Code generated by astool. DO NOT EDIT. + +package typeinteractionpolicy + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +// InteractionPolicy for an ActivityStreams Object. +type GoToSocialInteractionPolicy struct { + GoToSocialCanAnnounce vocab.GoToSocialCanAnnounceProperty + GoToSocialCanLike vocab.GoToSocialCanLikeProperty + GoToSocialCanQuote vocab.GoToSocialCanQuoteProperty + GoToSocialCanReply vocab.GoToSocialCanReplyProperty + JSONLDId vocab.JSONLDIdProperty + alias string + unknown map[string]interface{} +} + +// DeserializeInteractionPolicy creates a InteractionPolicy from a map +// representation that has been unmarshalled from a text or binary format. +func DeserializeInteractionPolicy(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialInteractionPolicy, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + this := &GoToSocialInteractionPolicy{ + alias: alias, + unknown: make(map[string]interface{}), + } + + // Begin: Known property deserialization + if p, err := mgr.DeserializeCanAnnouncePropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialCanAnnounce = p + } + if p, err := mgr.DeserializeCanLikePropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialCanLike = p + } + if p, err := mgr.DeserializeCanQuotePropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialCanQuote = p + } + if p, err := mgr.DeserializeCanReplyPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialCanReply = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "canAnnounce" { + continue + } else if k == "canLike" { + continue + } else if k == "canQuote" { + continue + } else if k == "canReply" { + continue + } else if k == "id" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// GoToSocialInteractionPolicyExtends returns true if the InteractionPolicy type +// extends from the other type. +func GoToSocialInteractionPolicyExtends(other vocab.Type) bool { + // Shortcut implementation: this does not extend anything. + return false +} + +// InteractionPolicyIsDisjointWith returns true if the other provided type is +// disjoint with the InteractionPolicy type. +func InteractionPolicyIsDisjointWith(other vocab.Type) bool { + // Shortcut implementation: is not disjoint with anything. + return false +} + +// InteractionPolicyIsExtendedBy returns true if the other provided type extends +// from the InteractionPolicy type. Note that it returns false if the types +// are the same; see the "IsOrExtendsInteractionPolicy" variant instead. +func InteractionPolicyIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// IsOrExtendsInteractionPolicy returns true if the other provided type is the +// InteractionPolicy type or extends from the InteractionPolicy type. +func IsOrExtendsInteractionPolicy(other vocab.Type) bool { + if other.GetTypeName() == "InteractionPolicy" { + return true + } + return InteractionPolicyIsExtendedBy(other) +} + +// NewGoToSocialInteractionPolicy creates a new InteractionPolicy type +func NewGoToSocialInteractionPolicy() *GoToSocialInteractionPolicy { + return &GoToSocialInteractionPolicy{ + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetGoToSocialCanAnnounce returns the "canAnnounce" property if it exists, and +// nil otherwise. +func (this GoToSocialInteractionPolicy) GetGoToSocialCanAnnounce() vocab.GoToSocialCanAnnounceProperty { + return this.GoToSocialCanAnnounce +} + +// GetGoToSocialCanLike returns the "canLike" property if it exists, and nil +// otherwise. +func (this GoToSocialInteractionPolicy) GetGoToSocialCanLike() vocab.GoToSocialCanLikeProperty { + return this.GoToSocialCanLike +} + +// GetGoToSocialCanQuote returns the "canQuote" property if it exists, and nil +// otherwise. +func (this GoToSocialInteractionPolicy) GetGoToSocialCanQuote() vocab.GoToSocialCanQuoteProperty { + return this.GoToSocialCanQuote +} + +// GetGoToSocialCanReply returns the "canReply" property if it exists, and nil +// otherwise. +func (this GoToSocialInteractionPolicy) GetGoToSocialCanReply() vocab.GoToSocialCanReplyProperty { + return this.GoToSocialCanReply +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialInteractionPolicy) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetTypeName returns the name of this type. +func (this GoToSocialInteractionPolicy) GetTypeName() string { + return "InteractionPolicy" +} + +// GetUnknownProperties returns the unknown properties for the InteractionPolicy +// 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 GoToSocialInteractionPolicy) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the InteractionPolicy type extends from the other +// type. +func (this GoToSocialInteractionPolicy) IsExtending(other vocab.Type) bool { + return GoToSocialInteractionPolicyExtends(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 GoToSocialInteractionPolicy) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.GoToSocialCanAnnounce, m) + m = this.helperJSONLDContext(this.GoToSocialCanLike, m) + m = this.helperJSONLDContext(this.GoToSocialCanQuote, m) + m = this.helperJSONLDContext(this.GoToSocialCanReply, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + + return m +} + +// LessThan computes if this InteractionPolicy is lesser, with an arbitrary but +// stable determination. +func (this GoToSocialInteractionPolicy) LessThan(o vocab.GoToSocialInteractionPolicy) bool { + // Begin: Compare known properties + // Compare property "canAnnounce" + if lhs, rhs := this.GoToSocialCanAnnounce, o.GetGoToSocialCanAnnounce(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "canLike" + if lhs, rhs := this.GoToSocialCanLike, o.GetGoToSocialCanLike(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "canQuote" + if lhs, rhs := this.GoToSocialCanQuote, o.GetGoToSocialCanQuote(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "canReply" + if lhs, rhs := this.GoToSocialCanReply, o.GetGoToSocialCanReply(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 + // 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 GoToSocialInteractionPolicy) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + // Begin: Serialize known properties + // Maybe serialize property "canAnnounce" + if this.GoToSocialCanAnnounce != nil { + if i, err := this.GoToSocialCanAnnounce.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialCanAnnounce.Name()] = i + } + } + // Maybe serialize property "canLike" + if this.GoToSocialCanLike != nil { + if i, err := this.GoToSocialCanLike.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialCanLike.Name()] = i + } + } + // Maybe serialize property "canQuote" + if this.GoToSocialCanQuote != nil { + if i, err := this.GoToSocialCanQuote.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialCanQuote.Name()] = i + } + } + // Maybe serialize property "canReply" + if this.GoToSocialCanReply != nil { + if i, err := this.GoToSocialCanReply.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialCanReply.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 + } + } + // 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 +} + +// SetGoToSocialCanAnnounce sets the "canAnnounce" property. +func (this *GoToSocialInteractionPolicy) SetGoToSocialCanAnnounce(i vocab.GoToSocialCanAnnounceProperty) { + this.GoToSocialCanAnnounce = i +} + +// SetGoToSocialCanLike sets the "canLike" property. +func (this *GoToSocialInteractionPolicy) SetGoToSocialCanLike(i vocab.GoToSocialCanLikeProperty) { + this.GoToSocialCanLike = i +} + +// SetGoToSocialCanQuote sets the "canQuote" property. +func (this *GoToSocialInteractionPolicy) SetGoToSocialCanQuote(i vocab.GoToSocialCanQuoteProperty) { + this.GoToSocialCanQuote = i +} + +// SetGoToSocialCanReply sets the "canReply" property. +func (this *GoToSocialInteractionPolicy) SetGoToSocialCanReply(i vocab.GoToSocialCanReplyProperty) { + this.GoToSocialCanReply = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialInteractionPolicy) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialInteractionPolicy) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialInteractionPolicy) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go new file mode 100644 index 000000000..ba2aa3d93 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typelikeapproval contains the implementation for the LikeApproval 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 typelikeapproval diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go new file mode 100644 index 000000000..beffac0cf --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typelikeapproval + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go new file mode 100644 index 000000000..e0da25bfb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go @@ -0,0 +1,1640 @@ +// Code generated by astool. DO NOT EDIT. + +package typelikeapproval + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// DEPRECATED: Use `LikeAuthorization` instead. +type GoToSocialLikeApproval 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeLikeApproval creates a LikeApproval from a map representation that +// has been unmarshalled from a text or binary format. +func DeserializeLikeApproval(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialLikeApproval, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialLikeApproval{ + 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 != "LikeApproval" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "LikeApproval", 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) == "LikeApproval" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "LikeApproval") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GoToSocialLikeApprovalExtends returns true if the LikeApproval type extends +// from the other type. +func GoToSocialLikeApprovalExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsLikeApproval returns true if the other provided type is the +// LikeApproval type or extends from the LikeApproval type. +func IsOrExtendsLikeApproval(other vocab.Type) bool { + if other.GetTypeName() == "LikeApproval" { + return true + } + return LikeApprovalIsExtendedBy(other) +} + +// LikeApprovalIsDisjointWith returns true if the other provided type is disjoint +// with the LikeApproval type. +func LikeApprovalIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// LikeApprovalIsExtendedBy returns true if the other provided type extends from +// the LikeApproval type. Note that it returns false if the types are the +// same; see the "IsOrExtendsLikeApproval" variant instead. +func LikeApprovalIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// NewGoToSocialLikeApproval creates a new LikeApproval type +func NewGoToSocialLikeApproval() *GoToSocialLikeApproval { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("LikeApproval") + return &GoToSocialLikeApproval{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeApproval) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialLikeApproval) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialLikeApproval) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialLikeApproval) GetTypeName() string { + return "LikeApproval" +} + +// GetUnknownProperties returns the unknown properties for the LikeApproval 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 GoToSocialLikeApproval) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the LikeApproval type extends from the other type. +func (this GoToSocialLikeApproval) IsExtending(other vocab.Type) bool { + return GoToSocialLikeApprovalExtends(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 GoToSocialLikeApproval) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 LikeApproval is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialLikeApproval) LessThan(o vocab.GoToSocialLikeApproval) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 GoToSocialLikeApproval) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "LikeApproval" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "LikeApproval" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialLikeApproval) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialLikeApproval) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialLikeApproval) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialLikeApproval) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialLikeApproval) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialLikeApproval) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go new file mode 100644 index 000000000..b40a8815a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typelikeauthorization contains the implementation for the +// LikeAuthorization 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 typelikeauthorization diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go new file mode 100644 index 000000000..7e75770f4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go @@ -0,0 +1,189 @@ +// Code generated by astool. DO NOT EDIT. + +package typelikeauthorization + +import vocab "code.superseriousbusiness.org/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) + // DeserializeInteractingObjectPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractingObjectProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) + // DeserializeInteractionTargetPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionTargetProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go new file mode 100644 index 000000000..57701074a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go @@ -0,0 +1,1724 @@ +// Code generated by astool. DO NOT EDIT. + +package typelikeauthorization + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialLikeAuthorization 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 + GoToSocialInteractingObject vocab.GoToSocialInteractingObjectProperty + GoToSocialInteractionTarget vocab.GoToSocialInteractionTargetProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeLikeAuthorization creates a LikeAuthorization from a map +// representation that has been unmarshalled from a text or binary format. +func DeserializeLikeAuthorization(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialLikeAuthorization, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialLikeAuthorization{ + 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 != "LikeAuthorization" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "LikeAuthorization", 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) == "LikeAuthorization" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "LikeAuthorization") + } + // 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.DeserializeInteractingObjectPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractingObject = p + } + if p, err := mgr.DeserializeInteractionTargetPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionTarget = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "interactingObject" { + continue + } else if k == "interactionTarget" { + 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GoToSocialLikeAuthorizationExtends returns true if the LikeAuthorization type +// extends from the other type. +func GoToSocialLikeAuthorizationExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsLikeAuthorization returns true if the other provided type is the +// LikeAuthorization type or extends from the LikeAuthorization type. +func IsOrExtendsLikeAuthorization(other vocab.Type) bool { + if other.GetTypeName() == "LikeAuthorization" { + return true + } + return LikeAuthorizationIsExtendedBy(other) +} + +// LikeAuthorizationIsDisjointWith returns true if the other provided type is +// disjoint with the LikeAuthorization type. +func LikeAuthorizationIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// LikeAuthorizationIsExtendedBy returns true if the other provided type extends +// from the LikeAuthorization type. Note that it returns false if the types +// are the same; see the "IsOrExtendsLikeAuthorization" variant instead. +func LikeAuthorizationIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// NewGoToSocialLikeAuthorization creates a new LikeAuthorization type +func NewGoToSocialLikeAuthorization() *GoToSocialLikeAuthorization { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("LikeAuthorization") + return &GoToSocialLikeAuthorization{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeAuthorization) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetGoToSocialInteractingObject returns the "interactingObject" property if it +// exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetGoToSocialInteractingObject() vocab.GoToSocialInteractingObjectProperty { + return this.GoToSocialInteractingObject +} + +// GetGoToSocialInteractionTarget returns the "interactionTarget" property if it +// exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetGoToSocialInteractionTarget() vocab.GoToSocialInteractionTargetProperty { + return this.GoToSocialInteractionTarget +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialLikeAuthorization) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialLikeAuthorization) GetTypeName() string { + return "LikeAuthorization" +} + +// GetUnknownProperties returns the unknown properties for the LikeAuthorization +// 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 GoToSocialLikeAuthorization) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the LikeAuthorization type extends from the other +// type. +func (this GoToSocialLikeAuthorization) IsExtending(other vocab.Type) bool { + return GoToSocialLikeAuthorizationExtends(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 GoToSocialLikeAuthorization) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.GoToSocialInteractingObject, m) + m = this.helperJSONLDContext(this.GoToSocialInteractionTarget, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 LikeAuthorization is lesser, with an arbitrary but +// stable determination. +func (this GoToSocialLikeAuthorization) LessThan(o vocab.GoToSocialLikeAuthorization) 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 "interactingObject" + if lhs, rhs := this.GoToSocialInteractingObject, o.GetGoToSocialInteractingObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "interactionTarget" + if lhs, rhs := this.GoToSocialInteractionTarget, o.GetGoToSocialInteractionTarget(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 GoToSocialLikeAuthorization) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "LikeAuthorization" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "LikeAuthorization" + } + 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 "interactingObject" + if this.GoToSocialInteractingObject != nil { + if i, err := this.GoToSocialInteractingObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractingObject.Name()] = i + } + } + // Maybe serialize property "interactionTarget" + if this.GoToSocialInteractionTarget != nil { + if i, err := this.GoToSocialInteractionTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionTarget.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialLikeAuthorization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialLikeAuthorization) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetGoToSocialInteractingObject sets the "interactingObject" property. +func (this *GoToSocialLikeAuthorization) SetGoToSocialInteractingObject(i vocab.GoToSocialInteractingObjectProperty) { + this.GoToSocialInteractingObject = i +} + +// SetGoToSocialInteractionTarget sets the "interactionTarget" property. +func (this *GoToSocialLikeAuthorization) SetGoToSocialInteractionTarget(i vocab.GoToSocialInteractionTargetProperty) { + this.GoToSocialInteractionTarget = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialLikeAuthorization) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialLikeAuthorization) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialLikeAuthorization) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialLikeAuthorization) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go new file mode 100644 index 000000000..c646e390d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typelikerequest contains the implementation for the LikeRequest 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 typelikerequest diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go new file mode 100644 index 000000000..fae49e187 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typelikerequest + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go new file mode 100644 index 000000000..cfef76bd2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go @@ -0,0 +1,1849 @@ +// Code generated by astool. DO NOT EDIT. + +package typelikerequest + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialLikeRequest 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeLikeRequest creates a LikeRequest from a map representation that has +// been unmarshalled from a text or binary format. +func DeserializeLikeRequest(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialLikeRequest, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialLikeRequest{ + 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 != "LikeRequest" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "LikeRequest", 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) == "LikeRequest" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "LikeRequest") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GoToSocialLikeRequestExtends returns true if the LikeRequest type extends from +// the other type. +func GoToSocialLikeRequestExtends(other vocab.Type) bool { + extensions := []string{"Activity", "Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsLikeRequest returns true if the other provided type is the +// LikeRequest type or extends from the LikeRequest type. +func IsOrExtendsLikeRequest(other vocab.Type) bool { + if other.GetTypeName() == "LikeRequest" { + return true + } + return LikeRequestIsExtendedBy(other) +} + +// LikeRequestIsDisjointWith returns true if the other provided type is disjoint +// with the LikeRequest type. +func LikeRequestIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// LikeRequestIsExtendedBy returns true if the other provided type extends from +// the LikeRequest type. Note that it returns false if the types are the same; +// see the "IsOrExtendsLikeRequest" variant instead. +func LikeRequestIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// NewGoToSocialLikeRequest creates a new LikeRequest type +func NewGoToSocialLikeRequest() *GoToSocialLikeRequest { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("LikeRequest") + return &GoToSocialLikeRequest{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsActor returns the "actor" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { + return this.ActivityStreamsActor +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsInstrument returns the "instrument" property if it exists, +// and nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { + return this.ActivityStreamsInstrument +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { + return this.ActivityStreamsOrigin +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsResult returns the "result" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { + return this.ActivityStreamsResult +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTarget returns the "target" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { + return this.ActivityStreamsTarget +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialLikeRequest) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialLikeRequest) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialLikeRequest) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialLikeRequest) GetTypeName() string { + return "LikeRequest" +} + +// GetUnknownProperties returns the unknown properties for the LikeRequest 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 GoToSocialLikeRequest) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the LikeRequest type extends from the other type. +func (this GoToSocialLikeRequest) IsExtending(other vocab.Type) bool { + return GoToSocialLikeRequestExtends(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 GoToSocialLikeRequest) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsActor, m) + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsResult, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 LikeRequest is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialLikeRequest) LessThan(o vocab.GoToSocialLikeRequest) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 GoToSocialLikeRequest) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "LikeRequest" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "LikeRequest" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialLikeRequest) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { + this.ActivityStreamsActor = i +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsInstrument sets the "instrument" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { + this.ActivityStreamsInstrument = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsOrigin sets the "origin" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { + this.ActivityStreamsOrigin = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsResult sets the "result" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { + this.ActivityStreamsResult = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTarget sets the "target" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { + this.ActivityStreamsTarget = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialLikeRequest) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialLikeRequest) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialLikeRequest) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialLikeRequest) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialLikeRequest) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go new file mode 100644 index 000000000..1fcd77550 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typereplyapproval contains the implementation for the ReplyApproval +// 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 typereplyapproval diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go new file mode 100644 index 000000000..0f2bc86b4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typereplyapproval + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go new file mode 100644 index 000000000..0677156c4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go @@ -0,0 +1,1640 @@ +// Code generated by astool. DO NOT EDIT. + +package typereplyapproval + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// DEPRECATED: Use `ReplyAuthorization` instead. +type GoToSocialReplyApproval 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeReplyApproval creates a ReplyApproval from a map representation that +// has been unmarshalled from a text or binary format. +func DeserializeReplyApproval(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialReplyApproval, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialReplyApproval{ + 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 != "ReplyApproval" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "ReplyApproval", 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) == "ReplyApproval" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "ReplyApproval") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GoToSocialReplyApprovalExtends returns true if the ReplyApproval type extends +// from the other type. +func GoToSocialReplyApprovalExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsReplyApproval returns true if the other provided type is the +// ReplyApproval type or extends from the ReplyApproval type. +func IsOrExtendsReplyApproval(other vocab.Type) bool { + if other.GetTypeName() == "ReplyApproval" { + return true + } + return ReplyApprovalIsExtendedBy(other) +} + +// NewGoToSocialReplyApproval creates a new ReplyApproval type +func NewGoToSocialReplyApproval() *GoToSocialReplyApproval { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("ReplyApproval") + return &GoToSocialReplyApproval{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// ReplyApprovalIsDisjointWith returns true if the other provided type is disjoint +// with the ReplyApproval type. +func ReplyApprovalIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// ReplyApprovalIsExtendedBy returns true if the other provided type extends from +// the ReplyApproval type. Note that it returns false if the types are the +// same; see the "IsOrExtendsReplyApproval" variant instead. +func ReplyApprovalIsExtendedBy(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 GoToSocialReplyApproval) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyApproval) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialReplyApproval) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialReplyApproval) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialReplyApproval) GetTypeName() string { + return "ReplyApproval" +} + +// GetUnknownProperties returns the unknown properties for the ReplyApproval 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 GoToSocialReplyApproval) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the ReplyApproval type extends from the other type. +func (this GoToSocialReplyApproval) IsExtending(other vocab.Type) bool { + return GoToSocialReplyApprovalExtends(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 GoToSocialReplyApproval) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 ReplyApproval is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialReplyApproval) LessThan(o vocab.GoToSocialReplyApproval) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 GoToSocialReplyApproval) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "ReplyApproval" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "ReplyApproval" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialReplyApproval) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialReplyApproval) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialReplyApproval) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialReplyApproval) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialReplyApproval) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialReplyApproval) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go new file mode 100644 index 000000000..c25dc7ae7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typereplyauthorization contains the implementation for the +// ReplyAuthorization 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 typereplyauthorization diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go new file mode 100644 index 000000000..1a30ea117 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go @@ -0,0 +1,189 @@ +// Code generated by astool. DO NOT EDIT. + +package typereplyauthorization + +import vocab "code.superseriousbusiness.org/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) + // DeserializeInteractingObjectPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractingObjectProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) + // DeserializeInteractionTargetPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialInteractionTargetProperty" non-functional property in + // the vocabulary "GoToSocial" + DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, 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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go new file mode 100644 index 000000000..c47392963 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go @@ -0,0 +1,1724 @@ +// Code generated by astool. DO NOT EDIT. + +package typereplyauthorization + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialReplyAuthorization 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 + GoToSocialInteractingObject vocab.GoToSocialInteractingObjectProperty + GoToSocialInteractionTarget vocab.GoToSocialInteractionTargetProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeReplyAuthorization creates a ReplyAuthorization from a map +// representation that has been unmarshalled from a text or binary format. +func DeserializeReplyAuthorization(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialReplyAuthorization, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialReplyAuthorization{ + 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 != "ReplyAuthorization" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "ReplyAuthorization", 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) == "ReplyAuthorization" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "ReplyAuthorization") + } + // 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.DeserializeInteractingObjectPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractingObject = p + } + if p, err := mgr.DeserializeInteractionTargetPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialInteractionTarget = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "interactingObject" { + continue + } else if k == "interactionTarget" { + 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GoToSocialReplyAuthorizationExtends returns true if the ReplyAuthorization type +// extends from the other type. +func GoToSocialReplyAuthorizationExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsReplyAuthorization returns true if the other provided type is the +// ReplyAuthorization type or extends from the ReplyAuthorization type. +func IsOrExtendsReplyAuthorization(other vocab.Type) bool { + if other.GetTypeName() == "ReplyAuthorization" { + return true + } + return ReplyAuthorizationIsExtendedBy(other) +} + +// NewGoToSocialReplyAuthorization creates a new ReplyAuthorization type +func NewGoToSocialReplyAuthorization() *GoToSocialReplyAuthorization { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("ReplyAuthorization") + return &GoToSocialReplyAuthorization{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// ReplyAuthorizationIsDisjointWith returns true if the other provided type is +// disjoint with the ReplyAuthorization type. +func ReplyAuthorizationIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// ReplyAuthorizationIsExtendedBy returns true if the other provided type extends +// from the ReplyAuthorization type. Note that it returns false if the types +// are the same; see the "IsOrExtendsReplyAuthorization" variant instead. +func ReplyAuthorizationIsExtendedBy(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 GoToSocialReplyAuthorization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyAuthorization) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetGoToSocialInteractingObject returns the "interactingObject" property if it +// exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetGoToSocialInteractingObject() vocab.GoToSocialInteractingObjectProperty { + return this.GoToSocialInteractingObject +} + +// GetGoToSocialInteractionTarget returns the "interactionTarget" property if it +// exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetGoToSocialInteractionTarget() vocab.GoToSocialInteractionTargetProperty { + return this.GoToSocialInteractionTarget +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialReplyAuthorization) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialReplyAuthorization) GetTypeName() string { + return "ReplyAuthorization" +} + +// GetUnknownProperties returns the unknown properties for the ReplyAuthorization +// 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 GoToSocialReplyAuthorization) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the ReplyAuthorization type extends from the other +// type. +func (this GoToSocialReplyAuthorization) IsExtending(other vocab.Type) bool { + return GoToSocialReplyAuthorizationExtends(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 GoToSocialReplyAuthorization) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.GoToSocialInteractingObject, m) + m = this.helperJSONLDContext(this.GoToSocialInteractionTarget, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 ReplyAuthorization is lesser, with an arbitrary but +// stable determination. +func (this GoToSocialReplyAuthorization) LessThan(o vocab.GoToSocialReplyAuthorization) 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 "interactingObject" + if lhs, rhs := this.GoToSocialInteractingObject, o.GetGoToSocialInteractingObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "interactionTarget" + if lhs, rhs := this.GoToSocialInteractionTarget, o.GetGoToSocialInteractionTarget(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 GoToSocialReplyAuthorization) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "ReplyAuthorization" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "ReplyAuthorization" + } + 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 "interactingObject" + if this.GoToSocialInteractingObject != nil { + if i, err := this.GoToSocialInteractingObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractingObject.Name()] = i + } + } + // Maybe serialize property "interactionTarget" + if this.GoToSocialInteractionTarget != nil { + if i, err := this.GoToSocialInteractionTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialInteractionTarget.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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialReplyAuthorization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialReplyAuthorization) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetGoToSocialInteractingObject sets the "interactingObject" property. +func (this *GoToSocialReplyAuthorization) SetGoToSocialInteractingObject(i vocab.GoToSocialInteractingObjectProperty) { + this.GoToSocialInteractingObject = i +} + +// SetGoToSocialInteractionTarget sets the "interactionTarget" property. +func (this *GoToSocialReplyAuthorization) SetGoToSocialInteractionTarget(i vocab.GoToSocialInteractionTargetProperty) { + this.GoToSocialInteractionTarget = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialReplyAuthorization) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialReplyAuthorization) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialReplyAuthorization) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialReplyAuthorization) 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go new file mode 100644 index 000000000..1e20e43be --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typereplyrequest contains the implementation for the ReplyRequest 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 typereplyrequest diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go new file mode 100644 index 000000000..a55874b08 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typereplyrequest + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go new file mode 100644 index 000000000..b12700896 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go @@ -0,0 +1,1849 @@ +// Code generated by astool. DO NOT EDIT. + +package typereplyrequest + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +type GoToSocialReplyRequest 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeReplyRequest creates a ReplyRequest from a map representation that +// has been unmarshalled from a text or binary format. +func DeserializeReplyRequest(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialReplyRequest, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &GoToSocialReplyRequest{ + 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 != "ReplyRequest" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "ReplyRequest", 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) == "ReplyRequest" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "ReplyRequest") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + 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 +} + +// GoToSocialReplyRequestExtends returns true if the ReplyRequest type extends +// from the other type. +func GoToSocialReplyRequestExtends(other vocab.Type) bool { + extensions := []string{"Activity", "Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsReplyRequest returns true if the other provided type is the +// ReplyRequest type or extends from the ReplyRequest type. +func IsOrExtendsReplyRequest(other vocab.Type) bool { + if other.GetTypeName() == "ReplyRequest" { + return true + } + return ReplyRequestIsExtendedBy(other) +} + +// NewGoToSocialReplyRequest creates a new ReplyRequest type +func NewGoToSocialReplyRequest() *GoToSocialReplyRequest { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("ReplyRequest") + return &GoToSocialReplyRequest{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// ReplyRequestIsDisjointWith returns true if the other provided type is disjoint +// with the ReplyRequest type. +func ReplyRequestIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// ReplyRequestIsExtendedBy returns true if the other provided type extends from +// the ReplyRequest type. Note that it returns false if the types are the +// same; see the "IsOrExtendsReplyRequest" variant instead. +func ReplyRequestIsExtendedBy(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 GoToSocialReplyRequest) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { + return this.ActivityStreamsActor +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsInstrument returns the "instrument" property if it exists, +// and nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { + return this.ActivityStreamsInstrument +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { + return this.ActivityStreamsOrigin +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsResult returns the "result" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { + return this.ActivityStreamsResult +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTarget returns the "target" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { + return this.ActivityStreamsTarget +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this GoToSocialReplyRequest) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this GoToSocialReplyRequest) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this GoToSocialReplyRequest) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this GoToSocialReplyRequest) GetTypeName() string { + return "ReplyRequest" +} + +// GetUnknownProperties returns the unknown properties for the ReplyRequest 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 GoToSocialReplyRequest) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the ReplyRequest type extends from the other type. +func (this GoToSocialReplyRequest) IsExtending(other vocab.Type) bool { + return GoToSocialReplyRequestExtends(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 GoToSocialReplyRequest) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsActor, m) + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsResult, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 ReplyRequest is lesser, with an arbitrary but stable +// determination. +func (this GoToSocialReplyRequest) LessThan(o vocab.GoToSocialReplyRequest) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 GoToSocialReplyRequest) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "ReplyRequest" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "ReplyRequest" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialReplyRequest) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { + this.ActivityStreamsActor = i +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsInstrument sets the "instrument" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { + this.ActivityStreamsInstrument = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsOrigin sets the "origin" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { + this.ActivityStreamsOrigin = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsResult sets the "result" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { + this.ActivityStreamsResult = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTarget sets the "target" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { + this.ActivityStreamsTarget = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *GoToSocialReplyRequest) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *GoToSocialReplyRequest) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *GoToSocialReplyRequest) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this GoToSocialReplyRequest) VocabularyURI() string { + return "https://gotosocial.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this GoToSocialReplyRequest) 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/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_doc.go new file mode 100644 index 000000000..cbf49e1ed --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyid contains the implementation for the id property. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyid diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_pkg.go new file mode 100644 index 000000000..9ced09401 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyid + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go new file mode 100644 index 000000000..ffae5fb43 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyid + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// JSONLDIdProperty is the functional property "id". It is permitted to be a +// single nilable value type. +type JSONLDIdProperty struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string +} + +// DeserializeIdProperty creates a "id" property from an interface representation +// that has been unmarshalled from a text or binary format. +func DeserializeIdProperty(m map[string]interface{}, aliasMap map[string]string) (*JSONLDIdProperty, error) { + alias := "" + + propName := "id" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "id") + } + i, ok := m[propName] + + if ok { + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &JSONLDIdProperty{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &JSONLDIdProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewJSONLDIdProperty creates a new id property. +func NewJSONLDIdProperty() *JSONLDIdProperty { + return &JSONLDIdProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *JSONLDIdProperty) Clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this JSONLDIdProperty) Get() *url.URL { + return this.xmlschemaAnyURIMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this JSONLDIdProperty) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this JSONLDIdProperty) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this JSONLDIdProperty) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this JSONLDIdProperty) IsXMLSchemaAnyURI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this JSONLDIdProperty) JSONLDContext() map[string]string { + var m map[string]string + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this JSONLDIdProperty) KindIndex() int { + if this.IsXMLSchemaAnyURI() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this JSONLDIdProperty) LessThan(o vocab.JSONLDIdProperty) bool { + if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return anyuri.LessAnyURI(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "id". +func (this JSONLDIdProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "id" + } else { + return "id" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this JSONLDIdProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *JSONLDIdProperty) Set(v *url.URL) { + this.Clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *JSONLDIdProperty) SetIRI(v *url.URL) { + this.Clear() + this.Set(v) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_doc.go new file mode 100644 index 000000000..64bb97ac5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertytype contains the implementation for the type property. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertytype diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_pkg.go new file mode 100644 index 000000000..2dd73489a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertytype + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go new file mode 100644 index 000000000..805eec2e0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go @@ -0,0 +1,596 @@ +// Code generated by astool. DO NOT EDIT. + +package propertytype + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// JSONLDTypePropertyIterator is an iterator for a property. It is permitted to be +// one of multiple value types. At most, one type of value can be present, or +// none at all. Setting a value will clear the other types of values so that +// only one of the 'Is' methods will return true. It is possible to clear all +// values, so that this property is empty. +type JSONLDTypePropertyIterator struct { + xmlschemaAnyURIMember *url.URL + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + alias string + myIdx int + parent vocab.JSONLDTypeProperty +} + +// NewJSONLDTypePropertyIterator creates a new JSONLDType property. +func NewJSONLDTypePropertyIterator() *JSONLDTypePropertyIterator { + return &JSONLDTypePropertyIterator{alias: ""} +} + +// deserializeJSONLDTypePropertyIterator creates an iterator from an element that +// has been unmarshalled from a text or binary format. +func deserializeJSONLDTypePropertyIterator(i interface{}, aliasMap map[string]string) (*JSONLDTypePropertyIterator, error) { + alias := "" + + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &JSONLDTypePropertyIterator{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } else if v, err := string1.DeserializeString(i); err == nil { + this := &JSONLDTypePropertyIterator{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &JSONLDTypePropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this JSONLDTypePropertyIterator) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// GetXMLSchemaAnyURI returns the value of this property. When IsXMLSchemaAnyURI +// returns false, GetXMLSchemaAnyURI will return an arbitrary value. +func (this JSONLDTypePropertyIterator) GetXMLSchemaAnyURI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString +// returns false, GetXMLSchemaString will return an arbitrary value. +func (this JSONLDTypePropertyIterator) GetXMLSchemaString() string { + return this.xmlschemaStringMember +} + +// HasAny returns true if any of the different values is set. +func (this JSONLDTypePropertyIterator) HasAny() bool { + return this.IsXMLSchemaAnyURI() || + this.IsXMLSchemaString() +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this JSONLDTypePropertyIterator) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". When +// true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI methods to access +// and set this property. +func (this JSONLDTypePropertyIterator) IsXMLSchemaAnyURI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaString returns true if this property has a type of "string". When +// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access +// and set this property. +func (this JSONLDTypePropertyIterator) IsXMLSchemaString() bool { + return this.hasStringMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this JSONLDTypePropertyIterator) JSONLDContext() map[string]string { + var m map[string]string + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this JSONLDTypePropertyIterator) KindIndex() int { + if this.IsXMLSchemaAnyURI() { + return 0 + } + if this.IsXMLSchemaString() { + return 1 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this JSONLDTypePropertyIterator) LessThan(o vocab.JSONLDTypePropertyIterator) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsXMLSchemaAnyURI() { + return anyuri.LessAnyURI(this.GetXMLSchemaAnyURI(), o.GetXMLSchemaAnyURI()) + } else if this.IsXMLSchemaString() { + return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString()) + } + return false +} + +// Name returns the name of this property: "JSONLDType". +func (this JSONLDTypePropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "JSONLDType" + } else { + return "JSONLDType" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this JSONLDTypePropertyIterator) Next() vocab.JSONLDTypePropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this JSONLDTypePropertyIterator) Prev() vocab.JSONLDTypePropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *JSONLDTypePropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.SetXMLSchemaAnyURI(v) +} + +// SetXMLSchemaAnyURI sets the value of this property. Calling IsXMLSchemaAnyURI +// afterwards returns true. +func (this *JSONLDTypePropertyIterator) SetXMLSchemaAnyURI(v *url.URL) { + this.clear() + this.xmlschemaAnyURIMember = v +} + +// SetXMLSchemaString sets the value of this property. Calling IsXMLSchemaString +// afterwards returns true. +func (this *JSONLDTypePropertyIterator) SetXMLSchemaString(v string) { + this.clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *JSONLDTypePropertyIterator) clear() { + this.xmlschemaAnyURIMember = nil + this.hasStringMember = false + this.unknown = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this JSONLDTypePropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.GetXMLSchemaAnyURI()) + } else if this.IsXMLSchemaString() { + return string1.SerializeString(this.GetXMLSchemaString()) + } + return this.unknown, nil +} + +// JSONLDTypeProperty is the non-functional property "type". It is permitted to +// have one or more values, and of different value types. +type JSONLDTypeProperty struct { + properties []*JSONLDTypePropertyIterator + alias string +} + +// DeserializeTypeProperty creates a "type" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeTypeProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDTypeProperty, error) { + alias := "" + + propName := "type" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "type") + } + i, ok := m[propName] + + if ok { + this := &JSONLDTypeProperty{ + alias: alias, + properties: []*JSONLDTypePropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeJSONLDTypePropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeJSONLDTypePropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewJSONLDTypeProperty creates a new type property. +func NewJSONLDTypeProperty() *JSONLDTypeProperty { + return &JSONLDTypeProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property "type" +func (this *JSONLDTypeProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &JSONLDTypePropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the +// property "type". Invalidates iterators that are traversing using Prev. +func (this *JSONLDTypeProperty) AppendXMLSchemaAnyURI(v *url.URL) { + this.properties = append(this.properties, &JSONLDTypePropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + xmlschemaAnyURIMember: v, + }) +} + +// AppendXMLSchemaString appends a string value to the back of a list of the +// property "type". Invalidates iterators that are traversing using Prev. +func (this *JSONLDTypeProperty) AppendXMLSchemaString(v string) { + this.properties = append(this.properties, &JSONLDTypePropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: this.Len(), + parent: this, + xmlschemaStringMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this JSONLDTypeProperty) At(index int) vocab.JSONLDTypePropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this JSONLDTypeProperty) Begin() vocab.JSONLDTypePropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this JSONLDTypeProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this JSONLDTypeProperty) End() vocab.JSONLDTypePropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property "type". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *JSONLDTypeProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &JSONLDTypePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a +// property "type". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *JSONLDTypeProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &JSONLDTypePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaString inserts a string value at the specified index for a +// property "type". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *JSONLDTypeProperty) InsertXMLSchemaString(idx int, v string) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &JSONLDTypePropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: idx, + parent: this, + xmlschemaStringMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this JSONLDTypeProperty) JSONLDContext() map[string]string { + var m map[string]string + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this JSONLDTypeProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "type" property. +func (this JSONLDTypeProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this JSONLDTypeProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].GetXMLSchemaAnyURI() + rhs := this.properties[j].GetXMLSchemaAnyURI() + return anyuri.LessAnyURI(lhs, rhs) + } else if idx1 == 1 { + lhs := this.properties[i].GetXMLSchemaString() + rhs := this.properties[j].GetXMLSchemaString() + return string1.LessString(lhs, rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this JSONLDTypeProperty) LessThan(o vocab.JSONLDTypeProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("type") with any alias. +func (this JSONLDTypeProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "type" + } else { + return "type" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property "type". +func (this *JSONLDTypeProperty) PrependIRI(v *url.URL) { + this.properties = append([]*JSONLDTypePropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the +// property "type". Invalidates all iterators. +func (this *JSONLDTypeProperty) PrependXMLSchemaAnyURI(v *url.URL) { + this.properties = append([]*JSONLDTypePropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + xmlschemaAnyURIMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaString prepends a string value to the front of a list of the +// property "type". Invalidates all iterators. +func (this *JSONLDTypeProperty) PrependXMLSchemaString(v string) { + this.properties = append([]*JSONLDTypePropertyIterator{{ + alias: this.alias, + hasStringMember: true, + myIdx: 0, + parent: this, + xmlschemaStringMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Remove deletes an element at the specified index from a list of the property +// "type", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *JSONLDTypeProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &JSONLDTypePropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this JSONLDTypeProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// SetIRI sets an IRI value to be at the specified index for the property "type". +// Panics if the index is out of bounds. +func (this *JSONLDTypeProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &JSONLDTypePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for the +// property "type". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *JSONLDTypeProperty) SetXMLSchemaAnyURI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &JSONLDTypePropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + xmlschemaAnyURIMember: v, + } +} + +// SetXMLSchemaString sets a string value to be at the specified index for the +// property "type". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *JSONLDTypeProperty) SetXMLSchemaString(idx int, v string) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &JSONLDTypePropertyIterator{ + alias: this.alias, + hasStringMember: true, + myIdx: idx, + parent: this, + xmlschemaStringMember: v, + } +} + +// Swap swaps the location of values at two indices for the "type" property. +func (this JSONLDTypeProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_doc.go new file mode 100644 index 000000000..b46eed547 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyvalue contains the implementation for the value 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 propertyvalue diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_pkg.go new file mode 100644 index 000000000..ebfb05bf0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyvalue + +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/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_property_schema_value.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_property_schema_value.go new file mode 100644 index 000000000..fa870db8f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/property_value/gen_property_schema_value.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyvalue + +import ( + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// SchemaValueProperty is the functional property "value". It is permitted to be a +// single default-valued value type. +type SchemaValueProperty struct { + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeValueProperty creates a "value" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeValueProperty(m map[string]interface{}, aliasMap map[string]string) (*SchemaValueProperty, error) { + alias := "" + if a, ok := aliasMap["http://schema.org"]; ok { + alias = a + } + propName := "value" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "value") + } + 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 := &SchemaValueProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := string1.DeserializeString(i); err == nil { + this := &SchemaValueProperty{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &SchemaValueProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewSchemaValueProperty creates a new value property. +func NewSchemaValueProperty() *SchemaValueProperty { + return &SchemaValueProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaString +// afterwards will return false. +func (this *SchemaValueProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasStringMember = false +} + +// Get returns the value of this property. When IsXMLSchemaString returns false, +// Get will return any arbitrary value. +func (this SchemaValueProperty) Get() string { + return this.xmlschemaStringMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this SchemaValueProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this SchemaValueProperty) HasAny() bool { + return this.IsXMLSchemaString() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this SchemaValueProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaString returns true if this property is set and not an IRI. +func (this SchemaValueProperty) 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 SchemaValueProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://schema.org": 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 SchemaValueProperty) KindIndex() int { + if this.IsXMLSchemaString() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this SchemaValueProperty) LessThan(o vocab.SchemaValueProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return string1.LessString(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "value". +func (this SchemaValueProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "value" + } else { + return "value" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need 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 SchemaValueProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaString() { + return string1.SerializeString(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaString afterwards will +// return true. +func (this *SchemaValueProperty) Set(v string) { + this.Clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *SchemaValueProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_doc.go new file mode 100644 index 000000000..f657a11e6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typepropertyvalue contains the implementation for the PropertyValue +// 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 typepropertyvalue diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go new file mode 100644 index 000000000..c7d813fb4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go @@ -0,0 +1,183 @@ +// Code generated by astool. DO NOT EDIT. + +package typepropertyvalue + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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) + // DeserializeValuePropertySchema returns the deserialization method for + // the "SchemaValueProperty" non-functional property in the vocabulary + // "Schema" + DeserializeValuePropertySchema() func(map[string]interface{}, map[string]string) (vocab.SchemaValueProperty, 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/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go new file mode 100644 index 000000000..24e641376 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go @@ -0,0 +1,1682 @@ +// Code generated by astool. DO NOT EDIT. + +package typepropertyvalue + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// A property-value pair, e.g. representing a feature of a product or place. Use +// the 'name' property for the name of the property. +type SchemaPropertyValue 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 + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + SchemaValue vocab.SchemaValueProperty + alias string + unknown map[string]interface{} +} + +// DeserializePropertyValue creates a PropertyValue from a map representation that +// has been unmarshalled from a text or binary format. +func DeserializePropertyValue(m map[string]interface{}, aliasMap map[string]string) (*SchemaPropertyValue, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["http://schema.org"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &SchemaPropertyValue{ + 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 != "PropertyValue" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "PropertyValue", 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) == "PropertyValue" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "PropertyValue") + } + // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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.DeserializeValuePropertySchema()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.SchemaValue = 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 == "sensitive" { + 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 == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } else if k == "value" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// IsOrExtendsPropertyValue returns true if the other provided type is the +// PropertyValue type or extends from the PropertyValue type. +func IsOrExtendsPropertyValue(other vocab.Type) bool { + if other.GetTypeName() == "PropertyValue" { + return true + } + return PropertyValueIsExtendedBy(other) +} + +// NewSchemaPropertyValue creates a new PropertyValue type +func NewSchemaPropertyValue() *SchemaPropertyValue { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("PropertyValue") + return &SchemaPropertyValue{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// PropertyValueIsDisjointWith returns true if the other provided type is disjoint +// with the PropertyValue type. +func PropertyValueIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// PropertyValueIsExtendedBy returns true if the other provided type extends from +// the PropertyValue type. Note that it returns false if the types are the +// same; see the "IsOrExtendsPropertyValue" variant instead. +func PropertyValueIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// SchemaPropertyValueExtends returns true if the PropertyValue type extends from +// the other type. +func SchemaPropertyValueExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this SchemaPropertyValue) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this SchemaPropertyValue) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this SchemaPropertyValue) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this SchemaPropertyValue) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetSchemaValue returns the "value" property if it exists, and nil otherwise. +func (this SchemaPropertyValue) GetSchemaValue() vocab.SchemaValueProperty { + return this.SchemaValue +} + +// GetTypeName returns the name of this type. +func (this SchemaPropertyValue) GetTypeName() string { + return "PropertyValue" +} + +// GetUnknownProperties returns the unknown properties for the PropertyValue 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 SchemaPropertyValue) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the PropertyValue type extends from the other type. +func (this SchemaPropertyValue) IsExtending(other vocab.Type) bool { + return SchemaPropertyValueExtends(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 SchemaPropertyValue) JSONLDContext() map[string]string { + m := map[string]string{"http://schema.org": 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + m = this.helperJSONLDContext(this.SchemaValue, m) + + return m +} + +// LessThan computes if this PropertyValue is lesser, with an arbitrary but stable +// determination. +func (this SchemaPropertyValue) LessThan(o vocab.SchemaPropertyValue) 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 "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "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 "value" + if lhs, rhs := this.SchemaValue, o.GetSchemaValue(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is 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 SchemaPropertyValue) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "PropertyValue" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "PropertyValue" + } + 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 "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "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 "value" + if this.SchemaValue != nil { + if i, err := this.SchemaValue.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.SchemaValue.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 *SchemaPropertyValue) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *SchemaPropertyValue) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *SchemaPropertyValue) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *SchemaPropertyValue) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *SchemaPropertyValue) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *SchemaPropertyValue) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *SchemaPropertyValue) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *SchemaPropertyValue) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *SchemaPropertyValue) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *SchemaPropertyValue) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *SchemaPropertyValue) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *SchemaPropertyValue) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *SchemaPropertyValue) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *SchemaPropertyValue) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *SchemaPropertyValue) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *SchemaPropertyValue) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *SchemaPropertyValue) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *SchemaPropertyValue) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *SchemaPropertyValue) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *SchemaPropertyValue) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *SchemaPropertyValue) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *SchemaPropertyValue) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *SchemaPropertyValue) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *SchemaPropertyValue) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *SchemaPropertyValue) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *SchemaPropertyValue) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *SchemaPropertyValue) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *SchemaPropertyValue) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *SchemaPropertyValue) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *SchemaPropertyValue) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *SchemaPropertyValue) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *SchemaPropertyValue) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *SchemaPropertyValue) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *SchemaPropertyValue) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// SetSchemaValue sets the "value" property. +func (this *SchemaPropertyValue) SetSchemaValue(i vocab.SchemaValueProperty) { + this.SchemaValue = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this SchemaPropertyValue) VocabularyURI() string { + return "http://schema.org" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this SchemaPropertyValue) 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/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_doc.go new file mode 100644 index 000000000..bb9d0432c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyblurhash contains the implementation for the blurhash property. +// All applications are strongly encouraged to use the interface instead of +// this concrete definition. The interfaces allow applications to consume only +// the types and properties needed and be independent of the go-fed +// implementation if another alternative implementation is created. This +// package is code-generated and subject to the same license as the go-fed +// tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyblurhash diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_pkg.go new file mode 100644 index 000000000..1eac1c4e8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyblurhash + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go new file mode 100644 index 000000000..4025f996d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyblurhash + +import ( + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// TootBlurhashProperty is the functional property "blurhash". It is permitted to +// be a single default-valued value type. +type TootBlurhashProperty struct { + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeBlurhashProperty creates a "blurhash" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeBlurhashProperty(m map[string]interface{}, aliasMap map[string]string) (*TootBlurhashProperty, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + propName := "blurhash" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "blurhash") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &TootBlurhashProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := string1.DeserializeString(i); err == nil { + this := &TootBlurhashProperty{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &TootBlurhashProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewTootBlurhashProperty creates a new blurhash property. +func NewTootBlurhashProperty() *TootBlurhashProperty { + return &TootBlurhashProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaString +// afterwards will return false. +func (this *TootBlurhashProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasStringMember = false +} + +// Get returns the value of this property. When IsXMLSchemaString returns false, +// Get will return any arbitrary value. +func (this TootBlurhashProperty) Get() string { + return this.xmlschemaStringMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this TootBlurhashProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this TootBlurhashProperty) HasAny() bool { + return this.IsXMLSchemaString() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this TootBlurhashProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaString returns true if this property is set and not an IRI. +func (this TootBlurhashProperty) IsXMLSchemaString() bool { + return this.hasStringMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this TootBlurhashProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this TootBlurhashProperty) KindIndex() int { + if this.IsXMLSchemaString() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this TootBlurhashProperty) LessThan(o vocab.TootBlurhashProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return string1.LessString(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "blurhash". +func (this TootBlurhashProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "blurhash" + } else { + return "blurhash" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this TootBlurhashProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaString() { + return string1.SerializeString(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaString afterwards will +// return true. +func (this *TootBlurhashProperty) Set(v string) { + this.Clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *TootBlurhashProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_doc.go new file mode 100644 index 000000000..768104ece --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertydiscoverable contains the implementation for the discoverable +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertydiscoverable diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_pkg.go new file mode 100644 index 000000000..bb9361723 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydiscoverable + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go new file mode 100644 index 000000000..16ea4cde4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertydiscoverable + +import ( + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// TootDiscoverableProperty is the functional property "discoverable". It is +// permitted to be a single default-valued value type. +type TootDiscoverableProperty struct { + xmlschemaBooleanMember bool + hasBooleanMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeDiscoverableProperty creates a "discoverable" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeDiscoverableProperty(m map[string]interface{}, aliasMap map[string]string) (*TootDiscoverableProperty, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + propName := "discoverable" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "discoverable") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &TootDiscoverableProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := boolean.DeserializeBoolean(i); err == nil { + this := &TootDiscoverableProperty{ + alias: alias, + hasBooleanMember: true, + xmlschemaBooleanMember: v, + } + return this, nil + } + this := &TootDiscoverableProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewTootDiscoverableProperty creates a new discoverable property. +func NewTootDiscoverableProperty() *TootDiscoverableProperty { + return &TootDiscoverableProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean +// afterwards will return false. +func (this *TootDiscoverableProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasBooleanMember = false +} + +// Get returns the value of this property. When IsXMLSchemaBoolean returns false, +// Get will return any arbitrary value. +func (this TootDiscoverableProperty) Get() bool { + return this.xmlschemaBooleanMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this TootDiscoverableProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this TootDiscoverableProperty) HasAny() bool { + return this.IsXMLSchemaBoolean() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this TootDiscoverableProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaBoolean returns true if this property is set and not an IRI. +func (this TootDiscoverableProperty) IsXMLSchemaBoolean() bool { + return this.hasBooleanMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this TootDiscoverableProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this TootDiscoverableProperty) KindIndex() int { + if this.IsXMLSchemaBoolean() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this TootDiscoverableProperty) LessThan(o vocab.TootDiscoverableProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return boolean.LessBoolean(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "discoverable". +func (this TootDiscoverableProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "discoverable" + } else { + return "discoverable" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this TootDiscoverableProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaBoolean() { + return boolean.SerializeBoolean(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will +// return true. +func (this *TootDiscoverableProperty) Set(v bool) { + this.Clear() + this.xmlschemaBooleanMember = v + this.hasBooleanMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *TootDiscoverableProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_doc.go new file mode 100644 index 000000000..a1465f0c9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyfeatured contains the implementation for the featured property. +// All applications are strongly encouraged to use the interface instead of +// this concrete definition. The interfaces allow applications to consume only +// the types and properties needed and be independent of the go-fed +// implementation if another alternative implementation is created. This +// package is code-generated and subject to the same license as the go-fed +// tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyfeatured diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_pkg.go new file mode 100644 index 000000000..655bc7967 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_pkg.go @@ -0,0 +1,27 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfeatured + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go new file mode 100644 index 000000000..19bb8eb70 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go @@ -0,0 +1,268 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfeatured + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// TootFeaturedProperty is the functional property "featured". It is permitted to +// be one of multiple value types. At most, one type of value can be present, +// or none at all. Setting a value will clear the other types of values so +// that only one of the 'Is' methods will return true. It is possible to clear +// all values, so that this property is empty. +type TootFeaturedProperty struct { + activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection + activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeFeaturedProperty creates a "featured" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeFeaturedProperty(m map[string]interface{}, aliasMap map[string]string) (*TootFeaturedProperty, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + propName := "featured" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "featured") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &TootFeaturedProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { + this := &TootFeaturedProperty{ + activitystreamsOrderedCollectionMember: v, + alias: alias, + } + return this, nil + } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { + this := &TootFeaturedProperty{ + activitystreamsOrderedCollectionPageMember: v, + alias: alias, + } + return this, nil + } + } + this := &TootFeaturedProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewTootFeaturedProperty creates a new featured property. +func NewTootFeaturedProperty() *TootFeaturedProperty { + return &TootFeaturedProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling HasAny or any of the +// 'Is' methods afterwards will return false. +func (this *TootFeaturedProperty) Clear() { + this.activitystreamsOrderedCollectionMember = nil + this.activitystreamsOrderedCollectionPageMember = nil + this.unknown = nil + this.iri = nil +} + +// GetActivityStreamsOrderedCollection returns the value of this property. When +// IsActivityStreamsOrderedCollection returns false, +// GetActivityStreamsOrderedCollection will return an arbitrary value. +func (this TootFeaturedProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { + return this.activitystreamsOrderedCollectionMember +} + +// GetActivityStreamsOrderedCollectionPage returns the value of this property. +// When IsActivityStreamsOrderedCollectionPage returns false, +// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. +func (this TootFeaturedProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { + return this.activitystreamsOrderedCollectionPageMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return an arbitrary value. +func (this TootFeaturedProperty) GetIRI() *url.URL { + return this.iri +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this TootFeaturedProperty) GetType() vocab.Type { + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection() + } + if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage() + } + + return nil +} + +// HasAny returns true if any of the different values is set. +func (this TootFeaturedProperty) HasAny() bool { + return this.IsActivityStreamsOrderedCollection() || + this.IsActivityStreamsOrderedCollectionPage() || + this.iri != nil +} + +// IsActivityStreamsOrderedCollection returns true if this property has a type of +// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection +// and SetActivityStreamsOrderedCollection methods to access and set this +// property. +func (this TootFeaturedProperty) IsActivityStreamsOrderedCollection() bool { + return this.activitystreamsOrderedCollectionMember != nil +} + +// IsActivityStreamsOrderedCollectionPage returns true if this property has a type +// of "OrderedCollectionPage". When true, use the +// GetActivityStreamsOrderedCollectionPage and +// SetActivityStreamsOrderedCollectionPage methods to access and set this +// property. +func (this TootFeaturedProperty) IsActivityStreamsOrderedCollectionPage() bool { + return this.activitystreamsOrderedCollectionPageMember != nil +} + +// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI +// to access and set this property +func (this TootFeaturedProperty) IsIRI() bool { + return this.iri != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this TootFeaturedProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + var child map[string]string + if this.IsActivityStreamsOrderedCollection() { + child = this.GetActivityStreamsOrderedCollection().JSONLDContext() + } else if this.IsActivityStreamsOrderedCollectionPage() { + child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this TootFeaturedProperty) KindIndex() int { + if this.IsActivityStreamsOrderedCollection() { + return 0 + } + if this.IsActivityStreamsOrderedCollectionPage() { + return 1 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this TootFeaturedProperty) LessThan(o vocab.TootFeaturedProperty) bool { + idx1 := this.KindIndex() + idx2 := o.KindIndex() + if idx1 < idx2 { + return true + } else if idx1 > idx2 { + return false + } else if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) + } else if this.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } + return false +} + +// Name returns the name of this property: "featured". +func (this TootFeaturedProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "featured" + } else { + return "featured" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this TootFeaturedProperty) Serialize() (interface{}, error) { + if this.IsActivityStreamsOrderedCollection() { + return this.GetActivityStreamsOrderedCollection().Serialize() + } else if this.IsActivityStreamsOrderedCollectionPage() { + return this.GetActivityStreamsOrderedCollectionPage().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// SetActivityStreamsOrderedCollection sets the value of this property. Calling +// IsActivityStreamsOrderedCollection afterwards returns true. +func (this *TootFeaturedProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { + this.Clear() + this.activitystreamsOrderedCollectionMember = v +} + +// SetActivityStreamsOrderedCollectionPage sets the value of this property. +// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. +func (this *TootFeaturedProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { + this.Clear() + this.activitystreamsOrderedCollectionPageMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. +func (this *TootFeaturedProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *TootFeaturedProperty) SetType(t vocab.Type) error { + if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { + this.SetActivityStreamsOrderedCollection(v) + return nil + } + if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { + this.SetActivityStreamsOrderedCollectionPage(v) + return nil + } + + return fmt.Errorf("illegal type to set on featured property: %T", t) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_doc.go new file mode 100644 index 000000000..150fd5c77 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyfocalpoint contains the implementation for the focalPoint +// 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 propertyfocalpoint diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_pkg.go new file mode 100644 index 000000000..2bebe7347 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfocalpoint + +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/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go new file mode 100644 index 000000000..f197a6875 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go @@ -0,0 +1,531 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyfocalpoint + +import ( + float "code.superseriousbusiness.org/activity/streams/values/float" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// TootFocalPointPropertyIterator is an iterator for a property. It is permitted +// to be a single default-valued value type. +type TootFocalPointPropertyIterator struct { + xmlschemaFloatMember float64 + hasFloatMember bool + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.TootFocalPointProperty +} + +// NewTootFocalPointPropertyIterator creates a new TootFocalPoint property. +func NewTootFocalPointPropertyIterator() *TootFocalPointPropertyIterator { + return &TootFocalPointPropertyIterator{alias: ""} +} + +// deserializeTootFocalPointPropertyIterator creates an iterator from an element +// that has been unmarshalled from a text or binary format. +func deserializeTootFocalPointPropertyIterator(i interface{}, aliasMap map[string]string) (*TootFocalPointPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &TootFocalPointPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := float.DeserializeFloat(i); err == nil { + this := &TootFocalPointPropertyIterator{ + alias: alias, + hasFloatMember: true, + xmlschemaFloatMember: v, + } + return this, nil + } + this := &TootFocalPointPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsXMLSchemaFloat returns false, +// Get will return any arbitrary value. +func (this TootFocalPointPropertyIterator) Get() float64 { + return this.xmlschemaFloatMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this TootFocalPointPropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this TootFocalPointPropertyIterator) HasAny() bool { + return this.IsXMLSchemaFloat() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this TootFocalPointPropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaFloat returns true if this property is set and not an IRI. +func (this TootFocalPointPropertyIterator) 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 TootFocalPointPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this TootFocalPointPropertyIterator) 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 TootFocalPointPropertyIterator) LessThan(o vocab.TootFocalPointPropertyIterator) 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: "TootFocalPoint". +func (this TootFocalPointPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "TootFocalPoint" + } else { + return "TootFocalPoint" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this TootFocalPointPropertyIterator) Next() vocab.TootFocalPointPropertyIterator { + 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 TootFocalPointPropertyIterator) Prev() vocab.TootFocalPointPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will +// return true. +func (this *TootFocalPointPropertyIterator) 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 *TootFocalPointPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// clear ensures no value of this property is set. Calling IsXMLSchemaFloat +// afterwards will return false. +func (this *TootFocalPointPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.hasFloatMember = 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 TootFocalPointPropertyIterator) serialize() (interface{}, error) { + if this.IsXMLSchemaFloat() { + return float.SerializeFloat(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// TootFocalPointProperty is the non-functional property "focalPoint". It is +// permitted to have one or more values, and of different value types. +type TootFocalPointProperty struct { + properties []*TootFocalPointPropertyIterator + alias string +} + +// DeserializeFocalPointProperty creates a "focalPoint" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeFocalPointProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.TootFocalPointProperty, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + propName := "focalPoint" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "focalPoint") + } + i, ok := m[propName] + + if ok { + this := &TootFocalPointProperty{ + alias: alias, + properties: []*TootFocalPointPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeTootFocalPointPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeTootFocalPointPropertyIterator(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 +} + +// NewTootFocalPointProperty creates a new focalPoint property. +func NewTootFocalPointProperty() *TootFocalPointProperty { + return &TootFocalPointProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property +// "focalPoint" +func (this *TootFocalPointProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &TootFocalPointPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendXMLSchemaFloat appends a float value to the back of a list of the +// property "focalPoint". Invalidates iterators that are traversing using Prev. +func (this *TootFocalPointProperty) AppendXMLSchemaFloat(v float64) { + this.properties = append(this.properties, &TootFocalPointPropertyIterator{ + alias: this.alias, + hasFloatMember: true, + myIdx: this.Len(), + parent: this, + xmlschemaFloatMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this TootFocalPointProperty) At(index int) vocab.TootFocalPointPropertyIterator { + 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 TootFocalPointProperty) Begin() vocab.TootFocalPointPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this TootFocalPointProperty) 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 TootFocalPointProperty) End() vocab.TootFocalPointPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property "focalPoint". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *TootFocalPointProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &TootFocalPointPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertXMLSchemaFloat inserts a float value at the specified index for a +// property "focalPoint". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *TootFocalPointProperty) InsertXMLSchemaFloat(idx int, v float64) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &TootFocalPointPropertyIterator{ + alias: this.alias, + hasFloatMember: true, + myIdx: idx, + parent: this, + xmlschemaFloatMember: 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 TootFocalPointProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this TootFocalPointProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "focalPoint" property. +func (this TootFocalPointProperty) 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 TootFocalPointProperty) 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 float.LessFloat(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 TootFocalPointProperty) LessThan(o vocab.TootFocalPointProperty) 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 ("focalPoint") with any alias. +func (this TootFocalPointProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "focalPoint" + } else { + return "focalPoint" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "focalPoint". +func (this *TootFocalPointProperty) PrependIRI(v *url.URL) { + this.properties = append([]*TootFocalPointPropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependXMLSchemaFloat prepends a float value to the front of a list of the +// property "focalPoint". Invalidates all iterators. +func (this *TootFocalPointProperty) PrependXMLSchemaFloat(v float64) { + this.properties = append([]*TootFocalPointPropertyIterator{{ + alias: this.alias, + hasFloatMember: true, + myIdx: 0, + parent: this, + xmlschemaFloatMember: 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 +// "focalPoint", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *TootFocalPointProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &TootFocalPointPropertyIterator{} + 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 TootFocalPointProperty) 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 float value to be at the specified index for the property +// "focalPoint". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *TootFocalPointProperty) Set(idx int, v float64) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &TootFocalPointPropertyIterator{ + alias: this.alias, + hasFloatMember: true, + myIdx: idx, + parent: this, + xmlschemaFloatMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "focalPoint". Panics if the index is out of bounds. +func (this *TootFocalPointProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &TootFocalPointPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// Swap swaps the location of values at two indices for the "focalPoint" property. +func (this TootFocalPointProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_doc.go new file mode 100644 index 000000000..256409d37 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyindexable contains the implementation for the indexable +// 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 propertyindexable diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_pkg.go new file mode 100644 index 000000000..9952e364b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyindexable + +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/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go new file mode 100644 index 000000000..4f16b0396 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go @@ -0,0 +1,203 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyindexable + +import ( + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// TootIndexableProperty is the functional property "indexable". It is permitted +// to be a single default-valued value type. +type TootIndexableProperty struct { + xmlschemaBooleanMember bool + hasBooleanMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeIndexableProperty creates a "indexable" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeIndexableProperty(m map[string]interface{}, aliasMap map[string]string) (*TootIndexableProperty, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + propName := "indexable" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "indexable") + } + 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 := &TootIndexableProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := boolean.DeserializeBoolean(i); err == nil { + this := &TootIndexableProperty{ + alias: alias, + hasBooleanMember: true, + xmlschemaBooleanMember: v, + } + return this, nil + } + this := &TootIndexableProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewTootIndexableProperty creates a new indexable property. +func NewTootIndexableProperty() *TootIndexableProperty { + return &TootIndexableProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean +// afterwards will return false. +func (this *TootIndexableProperty) 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 TootIndexableProperty) Get() bool { + return this.xmlschemaBooleanMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this TootIndexableProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this TootIndexableProperty) HasAny() bool { + return this.IsXMLSchemaBoolean() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this TootIndexableProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaBoolean returns true if this property is set and not an IRI. +func (this TootIndexableProperty) 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 TootIndexableProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this TootIndexableProperty) 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 TootIndexableProperty) LessThan(o vocab.TootIndexableProperty) 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: "indexable". +func (this TootIndexableProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "indexable" + } else { + return "indexable" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need 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 TootIndexableProperty) 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 *TootIndexableProperty) 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 *TootIndexableProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go new file mode 100644 index 000000000..d2293a47e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertysignaturealgorithm contains the implementation for the +// signatureAlgorithm property. All applications are strongly encouraged to +// use the interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertysignaturealgorithm diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go new file mode 100644 index 000000000..2ed0e281b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysignaturealgorithm + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go new file mode 100644 index 000000000..f09e38fab --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysignaturealgorithm + +import ( + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// TootSignatureAlgorithmProperty is the functional property "signatureAlgorithm". +// It is permitted to be a single default-valued value type. +type TootSignatureAlgorithmProperty struct { + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeSignatureAlgorithmProperty creates a "signatureAlgorithm" property +// from an interface representation that has been unmarshalled from a text or +// binary format. +func DeserializeSignatureAlgorithmProperty(m map[string]interface{}, aliasMap map[string]string) (*TootSignatureAlgorithmProperty, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + propName := "signatureAlgorithm" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "signatureAlgorithm") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &TootSignatureAlgorithmProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := string1.DeserializeString(i); err == nil { + this := &TootSignatureAlgorithmProperty{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &TootSignatureAlgorithmProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewTootSignatureAlgorithmProperty creates a new signatureAlgorithm property. +func NewTootSignatureAlgorithmProperty() *TootSignatureAlgorithmProperty { + return &TootSignatureAlgorithmProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaString +// afterwards will return false. +func (this *TootSignatureAlgorithmProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasStringMember = false +} + +// Get returns the value of this property. When IsXMLSchemaString returns false, +// Get will return any arbitrary value. +func (this TootSignatureAlgorithmProperty) Get() string { + return this.xmlschemaStringMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this TootSignatureAlgorithmProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this TootSignatureAlgorithmProperty) HasAny() bool { + return this.IsXMLSchemaString() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this TootSignatureAlgorithmProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaString returns true if this property is set and not an IRI. +func (this TootSignatureAlgorithmProperty) IsXMLSchemaString() bool { + return this.hasStringMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this TootSignatureAlgorithmProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this TootSignatureAlgorithmProperty) KindIndex() int { + if this.IsXMLSchemaString() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this TootSignatureAlgorithmProperty) LessThan(o vocab.TootSignatureAlgorithmProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return string1.LessString(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "signatureAlgorithm". +func (this TootSignatureAlgorithmProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "signatureAlgorithm" + } else { + return "signatureAlgorithm" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this TootSignatureAlgorithmProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaString() { + return string1.SerializeString(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaString afterwards will +// return true. +func (this *TootSignatureAlgorithmProperty) Set(v string) { + this.Clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *TootSignatureAlgorithmProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_doc.go new file mode 100644 index 000000000..668c4e8f3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertysignaturevalue contains the implementation for the +// signatureValue property. All applications are strongly encouraged to use +// the interface instead of this concrete definition. The interfaces allow +// applications to consume only the types and properties needed and be +// independent of the go-fed implementation if another alternative +// implementation is created. This package is code-generated and subject to +// the same license as the go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertysignaturevalue diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go new file mode 100644 index 000000000..540b6f1aa --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysignaturevalue + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go new file mode 100644 index 000000000..c1c624939 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertysignaturevalue + +import ( + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// TootSignatureValueProperty is the functional property "signatureValue". It is +// permitted to be a single default-valued value type. +type TootSignatureValueProperty struct { + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeSignatureValueProperty creates a "signatureValue" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeSignatureValueProperty(m map[string]interface{}, aliasMap map[string]string) (*TootSignatureValueProperty, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + propName := "signatureValue" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "signatureValue") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &TootSignatureValueProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := string1.DeserializeString(i); err == nil { + this := &TootSignatureValueProperty{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &TootSignatureValueProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewTootSignatureValueProperty creates a new signatureValue property. +func NewTootSignatureValueProperty() *TootSignatureValueProperty { + return &TootSignatureValueProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaString +// afterwards will return false. +func (this *TootSignatureValueProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasStringMember = false +} + +// Get returns the value of this property. When IsXMLSchemaString returns false, +// Get will return any arbitrary value. +func (this TootSignatureValueProperty) Get() string { + return this.xmlschemaStringMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this TootSignatureValueProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this TootSignatureValueProperty) HasAny() bool { + return this.IsXMLSchemaString() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this TootSignatureValueProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaString returns true if this property is set and not an IRI. +func (this TootSignatureValueProperty) IsXMLSchemaString() bool { + return this.hasStringMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this TootSignatureValueProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this TootSignatureValueProperty) KindIndex() int { + if this.IsXMLSchemaString() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this TootSignatureValueProperty) LessThan(o vocab.TootSignatureValueProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return string1.LessString(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "signatureValue". +func (this TootSignatureValueProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "signatureValue" + } else { + return "signatureValue" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this TootSignatureValueProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaString() { + return string1.SerializeString(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaString afterwards will +// return true. +func (this *TootSignatureValueProperty) Set(v string) { + this.Clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *TootSignatureValueProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_doc.go new file mode 100644 index 000000000..e2d1296b2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyvoterscount contains the implementation for the votersCount +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyvoterscount diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_pkg.go new file mode 100644 index 000000000..668695c06 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyvoterscount + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go new file mode 100644 index 000000000..af68413a3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go @@ -0,0 +1,205 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyvoterscount + +import ( + nonnegativeinteger "code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// TootVotersCountProperty is the functional property "votersCount". It is +// permitted to be a single default-valued value type. +type TootVotersCountProperty struct { + xmlschemaNonNegativeIntegerMember int + hasNonNegativeIntegerMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeVotersCountProperty creates a "votersCount" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeVotersCountProperty(m map[string]interface{}, aliasMap map[string]string) (*TootVotersCountProperty, error) { + alias := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + } + propName := "votersCount" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "votersCount") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &TootVotersCountProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil { + this := &TootVotersCountProperty{ + alias: alias, + hasNonNegativeIntegerMember: true, + xmlschemaNonNegativeIntegerMember: v, + } + return this, nil + } + this := &TootVotersCountProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewTootVotersCountProperty creates a new votersCount property. +func NewTootVotersCountProperty() *TootVotersCountProperty { + return &TootVotersCountProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling +// IsXMLSchemaNonNegativeInteger afterwards will return false. +func (this *TootVotersCountProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasNonNegativeIntegerMember = false +} + +// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger +// returns false, Get will return any arbitrary value. +func (this TootVotersCountProperty) Get() int { + return this.xmlschemaNonNegativeIntegerMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this TootVotersCountProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this TootVotersCountProperty) HasAny() bool { + return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this TootVotersCountProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an +// IRI. +func (this TootVotersCountProperty) IsXMLSchemaNonNegativeInteger() bool { + return this.hasNonNegativeIntegerMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this TootVotersCountProperty) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this TootVotersCountProperty) KindIndex() int { + if this.IsXMLSchemaNonNegativeInteger() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this TootVotersCountProperty) LessThan(o vocab.TootVotersCountProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "votersCount". +func (this TootVotersCountProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "votersCount" + } else { + return "votersCount" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this TootVotersCountProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaNonNegativeInteger() { + return nonnegativeinteger.SerializeNonNegativeInteger(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger +// afterwards will return true. +func (this *TootVotersCountProperty) Set(v int) { + this.Clear() + this.xmlschemaNonNegativeIntegerMember = v + this.hasNonNegativeIntegerMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *TootVotersCountProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_doc.go new file mode 100644 index 000000000..1fadb2fe0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeemoji contains the implementation for the Emoji type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typeemoji diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_pkg.go new file mode 100644 index 000000000..1cde7cb62 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typeemoji + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go new file mode 100644 index 000000000..a9e6c897b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go @@ -0,0 +1,1655 @@ +// Code generated by astool. DO NOT EDIT. + +package typeemoji + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// { +// "content": "Hello world :Kappa:", +// "id": "https://example.com/@alice/hello-world", +// "tag": [ +// { +// "icon": { +// "mediaType": "image/png", +// "type": "Image", +// "url": "https://example.com/files/kappa.png" +// }, +// "id": "https://example.com/emoji/123", +// "name": ":Kappa:", +// "type": "Emoji" +// } +// ], +// "type": "Note" +// } +type TootEmoji struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeEmoji creates a Emoji from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeEmoji(m map[string]interface{}, aliasMap map[string]string) (*TootEmoji, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &TootEmoji{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "Emoji" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Emoji", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Emoji" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Emoji") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + 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 == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// EmojiIsDisjointWith returns true if the other provided type is disjoint with +// the Emoji type. +func EmojiIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// EmojiIsExtendedBy returns true if the other provided type extends from the +// Emoji type. Note that it returns false if the types are the same; see the +// "IsOrExtendsEmoji" variant instead. +func EmojiIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// IsOrExtendsEmoji returns true if the other provided type is the Emoji type or +// extends from the Emoji type. +func IsOrExtendsEmoji(other vocab.Type) bool { + if other.GetTypeName() == "Emoji" { + return true + } + return EmojiIsExtendedBy(other) +} + +// NewTootEmoji creates a new Emoji type +func NewTootEmoji() *TootEmoji { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Emoji") + return &TootEmoji{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// TootEmojiExtends returns true if the Emoji type extends from the other type. +func TootEmojiExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this TootEmoji) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this TootEmoji) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this TootEmoji) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this TootEmoji) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this TootEmoji) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this TootEmoji) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this TootEmoji) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this TootEmoji) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this TootEmoji) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this TootEmoji) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this TootEmoji) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this TootEmoji) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this TootEmoji) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this TootEmoji) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this TootEmoji) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this TootEmoji) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this TootEmoji) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this TootEmoji) GetTypeName() string { + return "Emoji" +} + +// GetUnknownProperties returns the unknown properties for the Emoji type. Note +// that this should not be used by app developers. It is only used to help +// determine which implementation is LessThan the other. Developers who are +// creating a different implementation of this type's interface can use this +// method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this TootEmoji) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Emoji type extends from the other type. +func (this TootEmoji) IsExtending(other vocab.Type) bool { + return TootEmojiExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this TootEmoji) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this Emoji is lesser, with an arbitrary but stable +// determination. +func (this TootEmoji) LessThan(o vocab.TootEmoji) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than 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 "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 "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this TootEmoji) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Emoji" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Emoji" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.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 "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 "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *TootEmoji) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *TootEmoji) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *TootEmoji) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *TootEmoji) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *TootEmoji) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *TootEmoji) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *TootEmoji) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *TootEmoji) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *TootEmoji) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *TootEmoji) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *TootEmoji) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *TootEmoji) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *TootEmoji) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *TootEmoji) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *TootEmoji) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *TootEmoji) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *TootEmoji) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *TootEmoji) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *TootEmoji) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *TootEmoji) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *TootEmoji) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *TootEmoji) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *TootEmoji) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *TootEmoji) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *TootEmoji) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *TootEmoji) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *TootEmoji) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *TootEmoji) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *TootEmoji) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *TootEmoji) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *TootEmoji) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *TootEmoji) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *TootEmoji) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *TootEmoji) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this TootEmoji) VocabularyURI() string { + return "http://joinmastodon.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this TootEmoji) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_doc.go new file mode 100644 index 000000000..ec71c25bc --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typehashtag contains the implementation for the Hashtag 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 typehashtag diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_pkg.go new file mode 100644 index 000000000..b83fcb4af --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_pkg.go @@ -0,0 +1,91 @@ +// Code generated by astool. DO NOT EDIT. + +package typehashtag + +import vocab "code.superseriousbusiness.org/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/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go new file mode 100644 index 000000000..80221b0d4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go @@ -0,0 +1,726 @@ +// Code generated by astool. DO NOT EDIT. + +package typehashtag + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// { +// "content": "example", +// "id": "https://example.com/@alice/hello-world", +// "tag": [ +// { +// "href": "https://example.com/hashtag/example", +// "name": "#example", +// "type": "Hashtag" +// } +// ], +// "type": "Note" +// } +type TootHashtag 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{} +} + +// DeserializeHashtag creates a Hashtag from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeHashtag(m map[string]interface{}, aliasMap map[string]string) (*TootHashtag, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &TootHashtag{ + 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 != "Hashtag" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Hashtag", 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) == "Hashtag" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Hashtag") + } + // 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 +} + +// HashtagIsDisjointWith returns true if the other provided type is disjoint with +// the Hashtag type. +func HashtagIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// HashtagIsExtendedBy returns true if the other provided type extends from the +// Hashtag type. Note that it returns false if the types are the same; see the +// "IsOrExtendsHashtag" variant instead. +func HashtagIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// IsOrExtendsHashtag returns true if the other provided type is the Hashtag type +// or extends from the Hashtag type. +func IsOrExtendsHashtag(other vocab.Type) bool { + if other.GetTypeName() == "Hashtag" { + return true + } + return HashtagIsExtendedBy(other) +} + +// NewTootHashtag creates a new Hashtag type +func NewTootHashtag() *TootHashtag { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Hashtag") + return &TootHashtag{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// TootHashtagExtends returns true if the Hashtag type extends from the other type. +func TootHashtagExtends(other vocab.Type) bool { + extensions := []string{"Link"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this TootHashtag) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsHeight returns the "height" property if it exists, and nil +// otherwise. +func (this TootHashtag) GetActivityStreamsHeight() vocab.ActivityStreamsHeightProperty { + return this.ActivityStreamsHeight +} + +// GetActivityStreamsHref returns the "href" property if it exists, and nil +// otherwise. +func (this TootHashtag) GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty { + return this.ActivityStreamsHref +} + +// GetActivityStreamsHreflang returns the "hreflang" property if it exists, and +// nil otherwise. +func (this TootHashtag) GetActivityStreamsHreflang() vocab.ActivityStreamsHreflangProperty { + return this.ActivityStreamsHreflang +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this TootHashtag) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this TootHashtag) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this TootHashtag) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsRel returns the "rel" property if it exists, and nil +// otherwise. +func (this TootHashtag) GetActivityStreamsRel() vocab.ActivityStreamsRelProperty { + return this.ActivityStreamsRel +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this TootHashtag) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsWidth returns the "width" property if it exists, and nil +// otherwise. +func (this TootHashtag) GetActivityStreamsWidth() vocab.ActivityStreamsWidthProperty { + return this.ActivityStreamsWidth +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this TootHashtag) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this TootHashtag) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this TootHashtag) GetTypeName() string { + return "Hashtag" +} + +// GetUnknownProperties returns the unknown properties for the Hashtag 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 TootHashtag) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Hashtag type extends from the other type. +func (this TootHashtag) IsExtending(other vocab.Type) bool { + return TootHashtagExtends(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 TootHashtag) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": 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 Hashtag is lesser, with an arbitrary but stable +// determination. +func (this TootHashtag) LessThan(o vocab.TootHashtag) 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 TootHashtag) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Hashtag" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Hashtag" + } + 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 *TootHashtag) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsHeight sets the "height" property. +func (this *TootHashtag) SetActivityStreamsHeight(i vocab.ActivityStreamsHeightProperty) { + this.ActivityStreamsHeight = i +} + +// SetActivityStreamsHref sets the "href" property. +func (this *TootHashtag) SetActivityStreamsHref(i vocab.ActivityStreamsHrefProperty) { + this.ActivityStreamsHref = i +} + +// SetActivityStreamsHreflang sets the "hreflang" property. +func (this *TootHashtag) SetActivityStreamsHreflang(i vocab.ActivityStreamsHreflangProperty) { + this.ActivityStreamsHreflang = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *TootHashtag) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *TootHashtag) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *TootHashtag) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsRel sets the "rel" property. +func (this *TootHashtag) SetActivityStreamsRel(i vocab.ActivityStreamsRelProperty) { + this.ActivityStreamsRel = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *TootHashtag) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsWidth sets the "width" property. +func (this *TootHashtag) SetActivityStreamsWidth(i vocab.ActivityStreamsWidthProperty) { + this.ActivityStreamsWidth = i +} + +// SetJSONLDId sets the "id" property. +func (this *TootHashtag) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *TootHashtag) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this TootHashtag) VocabularyURI() string { + return "http://joinmastodon.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this TootHashtag) 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/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_doc.go new file mode 100644 index 000000000..a785de594 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeidentityproof contains the implementation for the IdentityProof +// type. All applications are strongly encouraged to use the interface instead +// of this concrete definition. The interfaces allow applications to consume +// only the types and properties needed and be independent of the go-fed +// implementation if another alternative implementation is created. This +// package is code-generated and subject to the same license as the go-fed +// tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typeidentityproof diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_pkg.go new file mode 100644 index 000000000..f75ed9b4a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_pkg.go @@ -0,0 +1,187 @@ +// Code generated by astool. DO NOT EDIT. + +package typeidentityproof + +import vocab "code.superseriousbusiness.org/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) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSignatureAlgorithmPropertyToot returns the deserialization + // method for the "TootSignatureAlgorithmProperty" non-functional + // property in the vocabulary "Toot" + DeserializeSignatureAlgorithmPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureAlgorithmProperty, error) + // DeserializeSignatureValuePropertyToot returns the deserialization + // method for the "TootSignatureValueProperty" non-functional property + // in the vocabulary "Toot" + DeserializeSignatureValuePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureValueProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // 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) + // 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/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go new file mode 100644 index 000000000..31fd97e4d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go @@ -0,0 +1,1724 @@ +// Code generated by astool. DO NOT EDIT. + +package typeidentityproof + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// null +type TootIdentityProof struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + TootSignatureAlgorithm vocab.TootSignatureAlgorithmProperty + TootSignatureValue vocab.TootSignatureValueProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeIdentityProof creates a IdentityProof from a map representation that +// has been unmarshalled from a text or binary format. +func DeserializeIdentityProof(m map[string]interface{}, aliasMap map[string]string) (*TootIdentityProof, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &TootIdentityProof{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "IdentityProof" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "IdentityProof", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "IdentityProof" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "IdentityProof") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSignatureAlgorithmPropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootSignatureAlgorithm = p + } + if p, err := mgr.DeserializeSignatureValuePropertyToot()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.TootSignatureValue = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = 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 == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "signatureAlgorithm" { + continue + } else if k == "signatureValue" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// IdentityProofIsDisjointWith returns true if the other provided type is disjoint +// with the IdentityProof type. +func IdentityProofIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// IdentityProofIsExtendedBy returns true if the other provided type extends from +// the IdentityProof type. Note that it returns false if the types are the +// same; see the "IsOrExtendsIdentityProof" variant instead. +func IdentityProofIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// IsOrExtendsIdentityProof returns true if the other provided type is the +// IdentityProof type or extends from the IdentityProof type. +func IsOrExtendsIdentityProof(other vocab.Type) bool { + if other.GetTypeName() == "IdentityProof" { + return true + } + return IdentityProofIsExtendedBy(other) +} + +// NewTootIdentityProof creates a new IdentityProof type +func NewTootIdentityProof() *TootIdentityProof { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("IdentityProof") + return &TootIdentityProof{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// TootIdentityProofExtends returns true if the IdentityProof type extends from +// the other type. +func TootIdentityProofExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this TootIdentityProof) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this TootIdentityProof) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this TootIdentityProof) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this TootIdentityProof) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this TootIdentityProof) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this TootIdentityProof) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this TootIdentityProof) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTootSignatureAlgorithm returns the "signatureAlgorithm" property if it +// exists, and nil otherwise. +func (this TootIdentityProof) GetTootSignatureAlgorithm() vocab.TootSignatureAlgorithmProperty { + return this.TootSignatureAlgorithm +} + +// GetTootSignatureValue returns the "signatureValue" property if it exists, and +// nil otherwise. +func (this TootIdentityProof) GetTootSignatureValue() vocab.TootSignatureValueProperty { + return this.TootSignatureValue +} + +// GetTypeName returns the name of this type. +func (this TootIdentityProof) GetTypeName() string { + return "IdentityProof" +} + +// GetUnknownProperties returns the unknown properties for the IdentityProof type. +// Note that this should not be used by app developers. It is only used to +// help determine which implementation is LessThan the other. Developers who +// are creating a different implementation of this type's interface can use +// this method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this TootIdentityProof) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the IdentityProof type extends from the other type. +func (this TootIdentityProof) IsExtending(other vocab.Type) bool { + return TootIdentityProofExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this TootIdentityProof) JSONLDContext() map[string]string { + m := map[string]string{"http://joinmastodon.org/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.TootSignatureAlgorithm, m) + m = this.helperJSONLDContext(this.TootSignatureValue, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this IdentityProof is lesser, with an arbitrary but stable +// determination. +func (this TootIdentityProof) LessThan(o vocab.TootIdentityProof) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "signatureAlgorithm" + if lhs, rhs := this.TootSignatureAlgorithm, o.GetTootSignatureAlgorithm(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "signatureValue" + if lhs, rhs := this.TootSignatureValue, o.GetTootSignatureValue(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "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 "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this TootIdentityProof) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "IdentityProof" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "IdentityProof" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "signatureAlgorithm" + if this.TootSignatureAlgorithm != nil { + if i, err := this.TootSignatureAlgorithm.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootSignatureAlgorithm.Name()] = i + } + } + // Maybe serialize property "signatureValue" + if this.TootSignatureValue != nil { + if i, err := this.TootSignatureValue.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.TootSignatureValue.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "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 "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *TootIdentityProof) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *TootIdentityProof) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *TootIdentityProof) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *TootIdentityProof) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *TootIdentityProof) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *TootIdentityProof) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *TootIdentityProof) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *TootIdentityProof) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *TootIdentityProof) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *TootIdentityProof) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *TootIdentityProof) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *TootIdentityProof) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *TootIdentityProof) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *TootIdentityProof) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *TootIdentityProof) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *TootIdentityProof) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *TootIdentityProof) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *TootIdentityProof) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *TootIdentityProof) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *TootIdentityProof) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *TootIdentityProof) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *TootIdentityProof) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *TootIdentityProof) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *TootIdentityProof) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *TootIdentityProof) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *TootIdentityProof) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *TootIdentityProof) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *TootIdentityProof) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *TootIdentityProof) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *TootIdentityProof) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *TootIdentityProof) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *TootIdentityProof) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *TootIdentityProof) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *TootIdentityProof) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// SetTootSignatureAlgorithm sets the "signatureAlgorithm" property. +func (this *TootIdentityProof) SetTootSignatureAlgorithm(i vocab.TootSignatureAlgorithmProperty) { + this.TootSignatureAlgorithm = i +} + +// SetTootSignatureValue sets the "signatureValue" property. +func (this *TootIdentityProof) SetTootSignatureValue(i vocab.TootSignatureValueProperty) { + this.TootSignatureValue = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this TootIdentityProof) VocabularyURI() string { + return "http://joinmastodon.org/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this TootIdentityProof) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go new file mode 100644 index 000000000..1c77bcd7f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyowner contains the implementation for the owner property. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertyowner diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go new file mode 100644 index 000000000..3a38a9b85 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyowner + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go new file mode 100644 index 000000000..7afd81442 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go @@ -0,0 +1,181 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyowner + +import ( + anyuri "code.superseriousbusiness.org/activity/streams/values/anyURI" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// W3IDSecurityV1OwnerProperty is the functional property "owner". It is permitted +// to be a single nilable value type. +type W3IDSecurityV1OwnerProperty struct { + xmlschemaAnyURIMember *url.URL + unknown interface{} + alias string +} + +// DeserializeOwnerProperty creates a "owner" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializeOwnerProperty(m map[string]interface{}, aliasMap map[string]string) (*W3IDSecurityV1OwnerProperty, error) { + alias := "" + if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { + alias = a + } + propName := "owner" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "owner") + } + i, ok := m[propName] + + if ok { + if v, err := anyuri.DeserializeAnyURI(i); err == nil { + this := &W3IDSecurityV1OwnerProperty{ + alias: alias, + xmlschemaAnyURIMember: v, + } + return this, nil + } + this := &W3IDSecurityV1OwnerProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewW3IDSecurityV1OwnerProperty creates a new owner property. +func NewW3IDSecurityV1OwnerProperty() *W3IDSecurityV1OwnerProperty { + return &W3IDSecurityV1OwnerProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI +// afterwards will return false. +func (this *W3IDSecurityV1OwnerProperty) Clear() { + this.unknown = nil + this.xmlschemaAnyURIMember = nil +} + +// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, +// Get will return any arbitrary value. +func (this W3IDSecurityV1OwnerProperty) Get() *url.URL { + return this.xmlschemaAnyURIMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this W3IDSecurityV1OwnerProperty) GetIRI() *url.URL { + return this.xmlschemaAnyURIMember +} + +// HasAny returns true if the value or IRI is set. +func (this W3IDSecurityV1OwnerProperty) HasAny() bool { + return this.IsXMLSchemaAnyURI() +} + +// IsIRI returns true if this property is an IRI. +func (this W3IDSecurityV1OwnerProperty) IsIRI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. +func (this W3IDSecurityV1OwnerProperty) IsXMLSchemaAnyURI() bool { + return this.xmlschemaAnyURIMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this W3IDSecurityV1OwnerProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://w3id.org/security/v1": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this W3IDSecurityV1OwnerProperty) KindIndex() int { + if this.IsXMLSchemaAnyURI() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this W3IDSecurityV1OwnerProperty) LessThan(o vocab.W3IDSecurityV1OwnerProperty) bool { + if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return anyuri.LessAnyURI(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "owner". +func (this W3IDSecurityV1OwnerProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "owner" + } else { + return "owner" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this W3IDSecurityV1OwnerProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaAnyURI() { + return anyuri.SerializeAnyURI(this.Get()) + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will +// return true. +func (this *W3IDSecurityV1OwnerProperty) Set(v *url.URL) { + this.Clear() + this.xmlschemaAnyURIMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *W3IDSecurityV1OwnerProperty) SetIRI(v *url.URL) { + this.Clear() + this.Set(v) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go new file mode 100644 index 000000000..59947096d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertypublickey contains the implementation for the publicKey +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertypublickey diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go new file mode 100644 index 000000000..b9b450194 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go @@ -0,0 +1,22 @@ +// Code generated by astool. DO NOT EDIT. + +package propertypublickey + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializePublicKeyW3IDSecurityV1 returns the deserialization method + // for the "W3IDSecurityV1PublicKey" non-functional property in the + // vocabulary "W3IDSecurityV1" + DeserializePublicKeyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKey, error) +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go new file mode 100644 index 000000000..ab387d3ce --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go @@ -0,0 +1,621 @@ +// Code generated by astool. DO NOT EDIT. + +package propertypublickey + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// W3IDSecurityV1PublicKeyPropertyIterator is an iterator for a property. It is +// permitted to be a single nilable value type. +type W3IDSecurityV1PublicKeyPropertyIterator struct { + w3idsecurityv1PublicKeyMember vocab.W3IDSecurityV1PublicKey + unknown interface{} + iri *url.URL + alias string + myIdx int + parent vocab.W3IDSecurityV1PublicKeyProperty +} + +// NewW3IDSecurityV1PublicKeyPropertyIterator creates a new +// W3IDSecurityV1PublicKey property. +func NewW3IDSecurityV1PublicKeyPropertyIterator() *W3IDSecurityV1PublicKeyPropertyIterator { + return &W3IDSecurityV1PublicKeyPropertyIterator{alias: ""} +} + +// deserializeW3IDSecurityV1PublicKeyPropertyIterator creates an iterator from an +// element that has been unmarshalled from a text or binary format. +func deserializeW3IDSecurityV1PublicKeyPropertyIterator(i interface{}, aliasMap map[string]string) (*W3IDSecurityV1PublicKeyPropertyIterator, error) { + alias := "" + if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { + alias = a + } + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: alias, + iri: u, + } + return this, nil + } + } + if m, ok := i.(map[string]interface{}); ok { + if v, err := mgr.DeserializePublicKeyW3IDSecurityV1()(m, aliasMap); err == nil { + this := &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: alias, + w3idsecurityv1PublicKeyMember: v, + } + return this, nil + } + } + this := &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: alias, + unknown: i, + } + return this, nil +} + +// Get returns the value of this property. When IsW3IDSecurityV1PublicKey returns +// false, Get will return any arbitrary value. +func (this W3IDSecurityV1PublicKeyPropertyIterator) Get() vocab.W3IDSecurityV1PublicKey { + return this.w3idsecurityv1PublicKeyMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this W3IDSecurityV1PublicKeyPropertyIterator) GetIRI() *url.URL { + return this.iri +} + +// GetType returns the value in this property as a Type. Returns nil if the value +// is not an ActivityStreams type, such as an IRI or another value. +func (this W3IDSecurityV1PublicKeyPropertyIterator) GetType() vocab.Type { + if this.IsW3IDSecurityV1PublicKey() { + return this.Get() + } + + return nil +} + +// HasAny returns true if the value or IRI is set. +func (this W3IDSecurityV1PublicKeyPropertyIterator) HasAny() bool { + return this.IsW3IDSecurityV1PublicKey() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this W3IDSecurityV1PublicKeyPropertyIterator) IsIRI() bool { + return this.iri != nil +} + +// IsW3IDSecurityV1PublicKey returns true if this property is set and not an IRI. +func (this W3IDSecurityV1PublicKeyPropertyIterator) IsW3IDSecurityV1PublicKey() bool { + return this.w3idsecurityv1PublicKeyMember != nil +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this W3IDSecurityV1PublicKeyPropertyIterator) JSONLDContext() map[string]string { + m := map[string]string{"https://w3id.org/security/v1": this.alias} + var child map[string]string + if this.IsW3IDSecurityV1PublicKey() { + child = this.Get().JSONLDContext() + } + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this W3IDSecurityV1PublicKeyPropertyIterator) KindIndex() int { + if this.IsW3IDSecurityV1PublicKey() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this W3IDSecurityV1PublicKeyPropertyIterator) LessThan(o vocab.W3IDSecurityV1PublicKeyPropertyIterator) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsW3IDSecurityV1PublicKey() && !o.IsW3IDSecurityV1PublicKey() { + // Both are unknowns. + return false + } else if this.IsW3IDSecurityV1PublicKey() && !o.IsW3IDSecurityV1PublicKey() { + // Values are always greater than unknown values. + return false + } else if !this.IsW3IDSecurityV1PublicKey() && o.IsW3IDSecurityV1PublicKey() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return this.Get().LessThan(o.Get()) + } +} + +// Name returns the name of this property: "W3IDSecurityV1PublicKey". +func (this W3IDSecurityV1PublicKeyPropertyIterator) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "W3IDSecurityV1PublicKey" + } else { + return "W3IDSecurityV1PublicKey" + } +} + +// Next returns the next iterator, or nil if there is no next iterator. +func (this W3IDSecurityV1PublicKeyPropertyIterator) Next() vocab.W3IDSecurityV1PublicKeyPropertyIterator { + if this.myIdx+1 >= this.parent.Len() { + return nil + } else { + return this.parent.At(this.myIdx + 1) + } +} + +// Prev returns the previous iterator, or nil if there is no previous iterator. +func (this W3IDSecurityV1PublicKeyPropertyIterator) Prev() vocab.W3IDSecurityV1PublicKeyPropertyIterator { + if this.myIdx-1 < 0 { + return nil + } else { + return this.parent.At(this.myIdx - 1) + } +} + +// Set sets the value of this property. Calling IsW3IDSecurityV1PublicKey +// afterwards will return true. +func (this *W3IDSecurityV1PublicKeyPropertyIterator) Set(v vocab.W3IDSecurityV1PublicKey) { + this.clear() + this.w3idsecurityv1PublicKeyMember = v +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *W3IDSecurityV1PublicKeyPropertyIterator) SetIRI(v *url.URL) { + this.clear() + this.iri = v +} + +// SetType attempts to set the property for the arbitrary type. Returns an error +// if it is not a valid type to set on this property. +func (this *W3IDSecurityV1PublicKeyPropertyIterator) SetType(t vocab.Type) error { + if v, ok := t.(vocab.W3IDSecurityV1PublicKey); ok { + this.Set(v) + return nil + } + + return fmt.Errorf("illegal type to set on W3IDSecurityV1PublicKey property: %T", t) +} + +// clear ensures no value of this property is set. Calling +// IsW3IDSecurityV1PublicKey afterwards will return false. +func (this *W3IDSecurityV1PublicKeyPropertyIterator) clear() { + this.unknown = nil + this.iri = nil + this.w3idsecurityv1PublicKeyMember = nil +} + +// serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this W3IDSecurityV1PublicKeyPropertyIterator) serialize() (interface{}, error) { + if this.IsW3IDSecurityV1PublicKey() { + return this.Get().Serialize() + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// W3IDSecurityV1PublicKeyProperty is the non-functional property "publicKey". It +// is permitted to have one or more values, and of different value types. +type W3IDSecurityV1PublicKeyProperty struct { + properties []*W3IDSecurityV1PublicKeyPropertyIterator + alias string +} + +// DeserializePublicKeyProperty creates a "publicKey" property from an interface +// representation that has been unmarshalled from a text or binary format. +func DeserializePublicKeyProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) { + alias := "" + if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { + alias = a + } + propName := "publicKey" + if len(alias) > 0 { + propName = fmt.Sprintf("%s:%s", alias, "publicKey") + } + i, ok := m[propName] + + if ok { + this := &W3IDSecurityV1PublicKeyProperty{ + alias: alias, + properties: []*W3IDSecurityV1PublicKeyPropertyIterator{}, + } + if list, ok := i.([]interface{}); ok { + for _, iterator := range list { + if p, err := deserializeW3IDSecurityV1PublicKeyPropertyIterator(iterator, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + } else { + if p, err := deserializeW3IDSecurityV1PublicKeyPropertyIterator(i, aliasMap); err != nil { + return this, err + } else if p != nil { + this.properties = append(this.properties, p) + } + } + // Set up the properties for iteration. + for idx, ele := range this.properties { + ele.parent = this + ele.myIdx = idx + } + return this, nil + } + return nil, nil +} + +// NewW3IDSecurityV1PublicKeyProperty creates a new publicKey property. +func NewW3IDSecurityV1PublicKeyProperty() *W3IDSecurityV1PublicKeyProperty { + return &W3IDSecurityV1PublicKeyProperty{alias: ""} +} + +// AppendIRI appends an IRI value to the back of a list of the property "publicKey" +func (this *W3IDSecurityV1PublicKeyProperty) AppendIRI(v *url.URL) { + this.properties = append(this.properties, &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: this.Len(), + parent: this, + }) +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "publicKey". Invalidates iterators that are traversing using Prev. +// Returns an error if the type is not a valid one to set for this property. +func (this *W3IDSecurityV1PublicKeyProperty) AppendType(t vocab.Type) error { + n := &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, n) + return nil +} + +// AppendW3IDSecurityV1PublicKey appends a PublicKey value to the back of a list +// of the property "publicKey". Invalidates iterators that are traversing +// using Prev. +func (this *W3IDSecurityV1PublicKeyProperty) AppendW3IDSecurityV1PublicKey(v vocab.W3IDSecurityV1PublicKey) { + this.properties = append(this.properties, &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: this.alias, + myIdx: this.Len(), + parent: this, + w3idsecurityv1PublicKeyMember: v, + }) +} + +// At returns the property value for the specified index. Panics if the index is +// out of bounds. +func (this W3IDSecurityV1PublicKeyProperty) At(index int) vocab.W3IDSecurityV1PublicKeyPropertyIterator { + return this.properties[index] +} + +// Begin returns the first iterator, or nil if empty. Can be used with the +// iterator's Next method and this property's End method to iterate from front +// to back through all values. +func (this W3IDSecurityV1PublicKeyProperty) Begin() vocab.W3IDSecurityV1PublicKeyPropertyIterator { + if this.Empty() { + return nil + } else { + return this.properties[0] + } +} + +// Empty returns returns true if there are no elements. +func (this W3IDSecurityV1PublicKeyProperty) Empty() bool { + return this.Len() == 0 +} + +// End returns beyond-the-last iterator, which is nil. Can be used with the +// iterator's Next method and this property's Begin method to iterate from +// front to back through all values. +func (this W3IDSecurityV1PublicKeyProperty) End() vocab.W3IDSecurityV1PublicKeyPropertyIterator { + return nil +} + +// Insert inserts an IRI value at the specified index for a property "publicKey". +// Existing elements at that index and higher are shifted back once. +// Invalidates all iterators. +func (this *W3IDSecurityV1PublicKeyProperty) InsertIRI(idx int, v *url.URL) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "publicKey". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *W3IDSecurityV1PublicKeyProperty) InsertType(idx int, t vocab.Type) error { + n := &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = n + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// InsertW3IDSecurityV1PublicKey inserts a PublicKey value at the specified index +// for a property "publicKey". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *W3IDSecurityV1PublicKeyProperty) InsertW3IDSecurityV1PublicKey(idx int, v vocab.W3IDSecurityV1PublicKey) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + w3idsecurityv1PublicKeyMember: v, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this W3IDSecurityV1PublicKeyProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://w3id.org/security/v1": this.alias} + for _, elem := range this.properties { + child := elem.JSONLDContext() + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API method specifically needed only for alternate implementations +// for go-fed. Applications should not use this method. Panics if the index is +// out of bounds. +func (this W3IDSecurityV1PublicKeyProperty) KindIndex(idx int) int { + return this.properties[idx].KindIndex() +} + +// Len returns the number of values that exist for the "publicKey" property. +func (this W3IDSecurityV1PublicKeyProperty) Len() (length int) { + return len(this.properties) +} + +// Less computes whether another property is less than this one. Mixing types +// results in a consistent but arbitrary ordering +func (this W3IDSecurityV1PublicKeyProperty) Less(i, j int) bool { + idx1 := this.KindIndex(i) + idx2 := this.KindIndex(j) + if idx1 < idx2 { + return true + } else if idx1 == idx2 { + if idx1 == 0 { + lhs := this.properties[i].Get() + rhs := this.properties[j].Get() + return lhs.LessThan(rhs) + } else if idx1 == -2 { + lhs := this.properties[i].GetIRI() + rhs := this.properties[j].GetIRI() + return lhs.String() < rhs.String() + } + } + return false +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this W3IDSecurityV1PublicKeyProperty) LessThan(o vocab.W3IDSecurityV1PublicKeyProperty) bool { + l1 := this.Len() + l2 := o.Len() + l := l1 + if l2 < l1 { + l = l2 + } + for i := 0; i < l; i++ { + if this.properties[i].LessThan(o.At(i)) { + return true + } else if o.At(i).LessThan(this.properties[i]) { + return false + } + } + return l1 < l2 +} + +// Name returns the name of this property ("publicKey") with any alias. +func (this W3IDSecurityV1PublicKeyProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "publicKey" + } else { + return "publicKey" + } +} + +// PrependIRI prepends an IRI value to the front of a list of the property +// "publicKey". +func (this *W3IDSecurityV1PublicKeyProperty) PrependIRI(v *url.URL) { + this.properties = append([]*W3IDSecurityV1PublicKeyPropertyIterator{{ + alias: this.alias, + iri: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependType prepends an arbitrary type value to the front of a list of the +// property "publicKey". Invalidates all iterators. Returns an error if the +// type is not a valid one to set for this property. +func (this *W3IDSecurityV1PublicKeyProperty) PrependType(t vocab.Type) error { + n := &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: this.alias, + myIdx: 0, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + this.properties = append([]*W3IDSecurityV1PublicKeyPropertyIterator{n}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } + return nil +} + +// PrependW3IDSecurityV1PublicKey prepends a PublicKey value to the front of a +// list of the property "publicKey". Invalidates all iterators. +func (this *W3IDSecurityV1PublicKeyProperty) PrependW3IDSecurityV1PublicKey(v vocab.W3IDSecurityV1PublicKey) { + this.properties = append([]*W3IDSecurityV1PublicKeyPropertyIterator{{ + alias: this.alias, + myIdx: 0, + parent: this, + w3idsecurityv1PublicKeyMember: v, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Remove deletes an element at the specified index from a list of the property +// "publicKey", regardless of its type. Panics if the index is out of bounds. +// Invalidates all iterators. +func (this *W3IDSecurityV1PublicKeyProperty) Remove(idx int) { + (this.properties)[idx].parent = nil + copy((this.properties)[idx:], (this.properties)[idx+1:]) + (this.properties)[len(this.properties)-1] = &W3IDSecurityV1PublicKeyPropertyIterator{} + this.properties = (this.properties)[:len(this.properties)-1] + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this W3IDSecurityV1PublicKeyProperty) Serialize() (interface{}, error) { + s := make([]interface{}, 0, len(this.properties)) + for _, iterator := range this.properties { + if b, err := iterator.serialize(); err != nil { + return s, err + } else { + s = append(s, b) + } + } + // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. + if len(s) == 1 { + return s[0], nil + } + return s, nil +} + +// Set sets a PublicKey value to be at the specified index for the property +// "publicKey". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *W3IDSecurityV1PublicKeyProperty) Set(idx int, v vocab.W3IDSecurityV1PublicKey) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + w3idsecurityv1PublicKeyMember: v, + } +} + +// SetIRI sets an IRI value to be at the specified index for the property +// "publicKey". Panics if the index is out of bounds. +func (this *W3IDSecurityV1PublicKeyProperty) SetIRI(idx int, v *url.URL) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: this.alias, + iri: v, + myIdx: idx, + parent: this, + } +} + +// SetType sets an arbitrary type value to the specified index of the property +// "publicKey". Invalidates all iterators. Returns an error if the type is not +// a valid one to set for this property. Panics if the index is out of bounds. +func (this *W3IDSecurityV1PublicKeyProperty) SetType(idx int, t vocab.Type) error { + n := &W3IDSecurityV1PublicKeyPropertyIterator{ + alias: this.alias, + myIdx: idx, + parent: this, + } + if err := n.SetType(t); err != nil { + return err + } + (this.properties)[idx] = n + return nil +} + +// Swap swaps the location of values at two indices for the "publicKey" property. +func (this W3IDSecurityV1PublicKeyProperty) Swap(i, j int) { + this.properties[i], this.properties[j] = this.properties[j], this.properties[i] +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go new file mode 100644 index 000000000..e1282c8f3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertypublickeypem contains the implementation for the publicKeyPem +// property. All applications are strongly encouraged to use the interface +// instead of this concrete definition. The interfaces allow applications to +// consume only the types and properties needed and be independent of the +// go-fed implementation if another alternative implementation is created. +// This package is code-generated and subject to the same license as the +// go-fed tool used to generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package propertypublickeypem diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go new file mode 100644 index 000000000..764de7fa5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertypublickeypem + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go new file mode 100644 index 000000000..78997643f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go @@ -0,0 +1,204 @@ +// Code generated by astool. DO NOT EDIT. + +package propertypublickeypem + +import ( + string1 "code.superseriousbusiness.org/activity/streams/values/string" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// W3IDSecurityV1PublicKeyPemProperty is the functional property "publicKeyPem". +// It is permitted to be a single default-valued value type. +type W3IDSecurityV1PublicKeyPemProperty struct { + xmlschemaStringMember string + hasStringMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializePublicKeyPemProperty creates a "publicKeyPem" property from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializePublicKeyPemProperty(m map[string]interface{}, aliasMap map[string]string) (*W3IDSecurityV1PublicKeyPemProperty, error) { + alias := "" + if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { + alias = a + } + propName := "publicKeyPem" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "publicKeyPem") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &W3IDSecurityV1PublicKeyPemProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := string1.DeserializeString(i); err == nil { + this := &W3IDSecurityV1PublicKeyPemProperty{ + alias: alias, + hasStringMember: true, + xmlschemaStringMember: v, + } + return this, nil + } + this := &W3IDSecurityV1PublicKeyPemProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewW3IDSecurityV1PublicKeyPemProperty creates a new publicKeyPem property. +func NewW3IDSecurityV1PublicKeyPemProperty() *W3IDSecurityV1PublicKeyPemProperty { + return &W3IDSecurityV1PublicKeyPemProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaString +// afterwards will return false. +func (this *W3IDSecurityV1PublicKeyPemProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasStringMember = false +} + +// Get returns the value of this property. When IsXMLSchemaString returns false, +// Get will return any arbitrary value. +func (this W3IDSecurityV1PublicKeyPemProperty) Get() string { + return this.xmlschemaStringMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this W3IDSecurityV1PublicKeyPemProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this W3IDSecurityV1PublicKeyPemProperty) HasAny() bool { + return this.IsXMLSchemaString() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this W3IDSecurityV1PublicKeyPemProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaString returns true if this property is set and not an IRI. +func (this W3IDSecurityV1PublicKeyPemProperty) IsXMLSchemaString() bool { + return this.hasStringMember +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// property and the specific values that are set. The value in the map is the +// alias used to import the property's value or values. +func (this W3IDSecurityV1PublicKeyPemProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://w3id.org/security/v1": this.alias} + var child map[string]string + + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this W3IDSecurityV1PublicKeyPemProperty) KindIndex() int { + if this.IsXMLSchemaString() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this W3IDSecurityV1PublicKeyPemProperty) LessThan(o vocab.W3IDSecurityV1PublicKeyPemProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return string1.LessString(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "publicKeyPem". +func (this W3IDSecurityV1PublicKeyPemProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "publicKeyPem" + } else { + return "publicKeyPem" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this W3IDSecurityV1PublicKeyPemProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaString() { + return string1.SerializeString(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaString afterwards will +// return true. +func (this *W3IDSecurityV1PublicKeyPemProperty) Set(v string) { + this.Clear() + this.xmlschemaStringMember = v + this.hasStringMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *W3IDSecurityV1PublicKeyPemProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go new file mode 100644 index 000000000..c353f6f2f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typepublickey contains the implementation for the PublicKey type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typepublickey diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go new file mode 100644 index 000000000..6ad16433b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go @@ -0,0 +1,54 @@ +// Code generated by astool. DO NOT EDIT. + +package typepublickey + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeOwnerPropertyW3IDSecurityV1 returns the deserialization + // method for the "W3IDSecurityV1OwnerProperty" non-functional + // property in the vocabulary "W3IDSecurityV1" + DeserializeOwnerPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) + // DeserializePublicKeyPemPropertyW3IDSecurityV1 returns the + // deserialization method for the "W3IDSecurityV1PublicKeyPemProperty" + // non-functional property in the vocabulary "W3IDSecurityV1" + DeserializePublicKeyPemPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go new file mode 100644 index 000000000..727c23770 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go @@ -0,0 +1,289 @@ +// Code generated by astool. DO NOT EDIT. + +package typepublickey + +import vocab "code.superseriousbusiness.org/activity/streams/vocab" + +// A public key represents a public cryptographical key for a user +type W3IDSecurityV1PublicKey struct { + JSONLDId vocab.JSONLDIdProperty + W3IDSecurityV1Owner vocab.W3IDSecurityV1OwnerProperty + W3IDSecurityV1PublicKeyPem vocab.W3IDSecurityV1PublicKeyPemProperty + alias string + unknown map[string]interface{} +} + +// DeserializePublicKey creates a PublicKey from a map representation that has +// been unmarshalled from a text or binary format. +func DeserializePublicKey(m map[string]interface{}, aliasMap map[string]string) (*W3IDSecurityV1PublicKey, error) { + alias := "" + if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { + alias = a + } + this := &W3IDSecurityV1PublicKey{ + alias: alias, + unknown: make(map[string]interface{}), + } + + // Begin: Known property deserialization + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeOwnerPropertyW3IDSecurityV1()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.W3IDSecurityV1Owner = p + } + if p, err := mgr.DeserializePublicKeyPemPropertyW3IDSecurityV1()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.W3IDSecurityV1PublicKeyPem = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "id" { + continue + } else if k == "owner" { + continue + } else if k == "publicKeyPem" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// IsOrExtendsPublicKey returns true if the other provided type is the PublicKey +// type or extends from the PublicKey type. +func IsOrExtendsPublicKey(other vocab.Type) bool { + if other.GetTypeName() == "PublicKey" { + return true + } + return PublicKeyIsExtendedBy(other) +} + +// NewW3IDSecurityV1PublicKey creates a new PublicKey type +func NewW3IDSecurityV1PublicKey() *W3IDSecurityV1PublicKey { + return &W3IDSecurityV1PublicKey{ + alias: "", + unknown: make(map[string]interface{}), + } +} + +// PublicKeyIsDisjointWith returns true if the other provided type is disjoint +// with the PublicKey type. +func PublicKeyIsDisjointWith(other vocab.Type) bool { + // Shortcut implementation: is not disjoint with anything. + return false +} + +// PublicKeyIsExtendedBy returns true if the other provided type extends from the +// PublicKey type. Note that it returns false if the types are the same; see +// the "IsOrExtendsPublicKey" variant instead. +func PublicKeyIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// W3IDSecurityV1PublicKeyExtends returns true if the PublicKey type extends from +// the other type. +func W3IDSecurityV1PublicKeyExtends(other vocab.Type) bool { + // Shortcut implementation: this does not extend anything. + return false +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this W3IDSecurityV1PublicKey) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetTypeName returns the name of this type. +func (this W3IDSecurityV1PublicKey) GetTypeName() string { + return "PublicKey" +} + +// GetUnknownProperties returns the unknown properties for the PublicKey type. +// Note that this should not be used by app developers. It is only used to +// help determine which implementation is LessThan the other. Developers who +// are creating a different implementation of this type's interface can use +// this method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this W3IDSecurityV1PublicKey) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// GetW3IDSecurityV1Owner returns the "owner" property if it exists, and nil +// otherwise. +func (this W3IDSecurityV1PublicKey) GetW3IDSecurityV1Owner() vocab.W3IDSecurityV1OwnerProperty { + return this.W3IDSecurityV1Owner +} + +// GetW3IDSecurityV1PublicKeyPem returns the "publicKeyPem" property if it exists, +// and nil otherwise. +func (this W3IDSecurityV1PublicKey) GetW3IDSecurityV1PublicKeyPem() vocab.W3IDSecurityV1PublicKeyPemProperty { + return this.W3IDSecurityV1PublicKeyPem +} + +// IsExtending returns true if the PublicKey type extends from the other type. +func (this W3IDSecurityV1PublicKey) IsExtending(other vocab.Type) bool { + return W3IDSecurityV1PublicKeyExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this W3IDSecurityV1PublicKey) JSONLDContext() map[string]string { + m := map[string]string{"https://w3id.org/security/v1": this.alias} + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.W3IDSecurityV1Owner, m) + m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKeyPem, m) + + return m +} + +// LessThan computes if this PublicKey is lesser, with an arbitrary but stable +// determination. +func (this W3IDSecurityV1PublicKey) LessThan(o vocab.W3IDSecurityV1PublicKey) bool { + // Begin: Compare known properties + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "owner" + if lhs, rhs := this.W3IDSecurityV1Owner, o.GetW3IDSecurityV1Owner(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "publicKeyPem" + if lhs, rhs := this.W3IDSecurityV1PublicKeyPem, o.GetW3IDSecurityV1PublicKeyPem(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this W3IDSecurityV1PublicKey) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + // Begin: Serialize known properties + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "owner" + if this.W3IDSecurityV1Owner != nil { + if i, err := this.W3IDSecurityV1Owner.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.W3IDSecurityV1Owner.Name()] = i + } + } + // Maybe serialize property "publicKeyPem" + if this.W3IDSecurityV1PublicKeyPem != nil { + if i, err := this.W3IDSecurityV1PublicKeyPem.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.W3IDSecurityV1PublicKeyPem.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetJSONLDId sets the "id" property. +func (this *W3IDSecurityV1PublicKey) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetW3IDSecurityV1Owner sets the "owner" property. +func (this *W3IDSecurityV1PublicKey) SetW3IDSecurityV1Owner(i vocab.W3IDSecurityV1OwnerProperty) { + this.W3IDSecurityV1Owner = i +} + +// SetW3IDSecurityV1PublicKeyPem sets the "publicKeyPem" property. +func (this *W3IDSecurityV1PublicKey) SetW3IDSecurityV1PublicKeyPem(i vocab.W3IDSecurityV1PublicKeyPemProperty) { + this.W3IDSecurityV1PublicKeyPem = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this W3IDSecurityV1PublicKey) VocabularyURI() string { + return "https://w3id.org/security/v1" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this W3IDSecurityV1PublicKey) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/util.go b/vendor/code.superseriousbusiness.org/activity/streams/util.go new file mode 100644 index 000000000..def40c6ec --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/util.go @@ -0,0 +1,222 @@ +package streams + +import ( + "maps" + "slices" + + "code.superseriousbusiness.org/activity/streams/vocab" +) + +const ( + // jsonLDContext is the key for the JSON-LD specification's context + // value. It contains the definitions of the types contained within the + // rest of the payload. Important for linked-data representations, but + // only applicable to go-fed at code-generation time. + jsonLDContext = "@context" + + asNS = "https://www.w3.org/ns/activitystreams" + tootNS = "http://joinmastodon.org/ns" + schemaNS = "http://schema.org" +) + +// Map of inlines @context entries that may need to be added +// when vocabs include "https://www.w3.org/ns/activitystreams". +var asInlines = map[string]any{ + "Hashtag": "as:Hashtag", + "alsoKnownAs": "as:alsoKnownAs", + "manuallyApprovesFollowers": "as:manuallyApprovesFollowers", + "sensitive": "as:sensitive", + + "movedTo": map[string]string{ + "@id": "as:movedTo", + "@type": "@id", + }, +} + +// Map of inlines @context entries that may need to be +// added when vocabs include "http://joinmastodon.org/ns". +var tootInlines = map[string]any{ + "Emoji": "toot:Emoji", + "blurhash": "toot:blurhash", + "discoverable": "toot:discoverable", + "indexable": "toot:indexable", + "memorial": "toot:memorial", + "suspended": "toot:suspended", + "votersCount": "toot:votersCount", + + "featured": map[string]string{ + "@id": "toot:featured", + "@type": "@id", + }, + + "featuredTags": map[string]string{ + "@id": "toot:featuredTags", + "@type": "@id", + }, + + "focalPoint": map[string]string{ + "@container": "@list", + "@id": "toot:focalPoint", + }, +} + +// Map of inlines @context entries that may need to +// be added when vocabs include "http://schema.org". +var schemaInlines = map[string]any{ + "PropertyValue": "schema:PropertyValue", + "value": "schema:value", +} + +// getLookup returns a lookup map of all interesting field names +// + type names on the given "in" map that may need to be inlined. +func getLookup(in map[string]any) map[string]struct{} { + out := make(map[string]struct{}) + + for k, v := range in { + // Pull out keys from any nested maps. + if nested, ok := v.(map[string]any); ok { + maps.Copy(out, getLookup(nested)) + continue + } + + // Pull out keys from any + // arrays of nested maps. + if nestedIs, ok := v.([]any); ok { + for _, nestedI := range nestedIs { + if nested, ok := nestedI.(map[string]any); ok { + maps.Copy(out, getLookup(nested)) + continue + } + } + } + + // For types, we actually care about + // the *value*, ie., the name of the + // type, not the type key itself. + if k == "type" { + out[v.(string)] = struct{}{} + continue + } + + out[k] = struct{}{} + } + + return out +} + +func copyInlines( + src map[string]any, + dst map[string]any, + lookup map[string]struct{}, +) { + for k, v := range src { + _, ok := lookup[k] + if ok { + dst[k] = v + } + } +} + +// Serialize adds the context vocabularies contained within the type +// into the JSON-LD @context field, and aliases them appropriately. +func Serialize(a vocab.Type) (m map[string]any, e error) { + m, e = a.Serialize() + if e != nil { + return + } + + var ( + // Slice of vocab URIs + // used in this vocab.Type. + vocabs = a.JSONLDContext() + + // Slice of vocab URIs to add + // to the base @context slice. + includeVocabs []string + + // Object to inline as an extra + // entry in the @context slice. + inlinedContext = make(map[string]any) + ) + + // Get a lookup of all field and + // type names we need to care about. + lookup := getLookup(m) + + // Go through each used vocab and see + // if we need to special case it. + for vocab := range vocabs { + + switch vocab { + + case asNS: + // ActivityStreams vocab. + // + // The namespace URI already points to + // a proper @context document but we + // need to add some extra inlines. + includeVocabs = append(includeVocabs, asNS) + copyInlines(asInlines, inlinedContext, lookup) + + case schemaNS: + // Schema vocab. + // + // The URI doesn't point to a @context + // document so we need to inline everything. + inlinedContext["schema"] = schemaNS + "#" + copyInlines(schemaInlines, inlinedContext, lookup) + + case tootNS: + // Toot/Mastodon vocab. + // + // The URI doesn't point to a @context + // document so we need to inline everything. + inlinedContext["toot"] = tootNS + "#" + copyInlines(tootInlines, inlinedContext, lookup) + + default: + // No special case. + includeVocabs = append(includeVocabs, vocab) + } + } + + // Sort used vocab entries alphabetically + // to make their ordering predictable. + slices.Sort(includeVocabs) + + // Create final slice of @context + // entries we'll need to include. + contextEntries := make([]any, 0, len(includeVocabs)+1) + + // Append each included vocab to the slice. + for _, vocab := range includeVocabs { + contextEntries = append(contextEntries, vocab) + } + + // Append any inlinedContext to the slice. + if len(inlinedContext) != 0 { + contextEntries = append(contextEntries, inlinedContext) + } + + // Include @context on the final output, + // using an array if there's more than + // one entry, just a property otherwise. + if len(contextEntries) != 1 { + m[jsonLDContext] = contextEntries + } else { + m[jsonLDContext] = contextEntries[0] + } + + // Delete any existing `@context` in child maps. + var cleanFnRecur func(map[string]interface{}) + cleanFnRecur = func(r map[string]interface{}) { + for _, v := range r { + if n, ok := v.(map[string]interface{}); ok { + delete(n, jsonLDContext) + cleanFnRecur(n) + } + } + } + cleanFnRecur(m) + return +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/anyURI/gen_anyURI.go b/vendor/code.superseriousbusiness.org/activity/streams/values/anyURI/gen_anyURI.go new file mode 100644 index 000000000..a1ac814af --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/anyURI/gen_anyURI.go @@ -0,0 +1,37 @@ +// Code generated by astool. DO NOT EDIT. + +package anyuri + +import ( + "fmt" + "net/url" +) + +// SerializeAnyURI converts a anyURI value to an interface representation suitable +// for marshalling into a text or binary format. +func SerializeAnyURI(this *url.URL) (interface{}, error) { + return this.String(), nil +} + +// DeserializeAnyURI creates anyURI value from an interface representation that +// has been unmarshalled from a text or binary format. +func DeserializeAnyURI(this interface{}) (*url.URL, error) { + var u *url.URL + var err error + if s, ok := this.(string); ok { + u, err = url.Parse(s) + if err != nil { + err = fmt.Errorf("%v cannot be interpreted as a xsd:anyURI: %s", this, err) + } else if len(u.Scheme) == 0 { + err = fmt.Errorf("%v cannot be interpreted as a xsd:anyURI: no scheme", this) + } + } else { + err = fmt.Errorf("%v cannot be interpreted as a string for xsd:anyURI", this) + } + return u, err +} + +// LessAnyURI returns true if the left anyURI value is less than the right value. +func LessAnyURI(lhs, rhs *url.URL) bool { + return lhs.String() < rhs.String() +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/bcp47/gen_bcp47.go b/vendor/code.superseriousbusiness.org/activity/streams/values/bcp47/gen_bcp47.go new file mode 100644 index 000000000..0e0f70485 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/bcp47/gen_bcp47.go @@ -0,0 +1,26 @@ +// Code generated by astool. DO NOT EDIT. + +package bcp47 + +import "fmt" + +// SerializeBcp47 converts a bcp47 value to an interface representation suitable +// for marshalling into a text or binary format. +func SerializeBcp47(this string) (interface{}, error) { + return this, nil +} + +// DeserializeBcp47 creates bcp47 value from an interface representation that has +// been unmarshalled from a text or binary format. +func DeserializeBcp47(this interface{}) (string, error) { + if s, ok := this.(string); ok { + return s, nil + } else { + return "", fmt.Errorf("%v cannot be interpreted as a string for bcp47 languagetag", this) + } +} + +// LessBcp47 returns true if the left bcp47 value is less than the right value. +func LessBcp47(lhs, rhs string) bool { + return lhs < rhs +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/boolean/gen_boolean.go b/vendor/code.superseriousbusiness.org/activity/streams/values/boolean/gen_boolean.go new file mode 100644 index 000000000..1c75e485d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/boolean/gen_boolean.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package boolean + +import "fmt" + +// SerializeBoolean converts a boolean value to an interface representation +// suitable for marshalling into a text or binary format. +func SerializeBoolean(this bool) (interface{}, error) { + return this, nil +} + +// DeserializeBoolean creates boolean value from an interface representation that +// has been unmarshalled from a text or binary format. +func DeserializeBoolean(this interface{}) (bool, error) { + if b, ok := this.(bool); ok { + return b, nil + } else if f, ok := this.(float64); ok { + if f == 0 { + return false, nil + } else if f == 1 { + return true, nil + } else { + return false, fmt.Errorf("%v cannot be interpreted as a bool float64 for xsd:boolean", this) + } + } else { + return false, fmt.Errorf("%v cannot be interpreted as a bool for xsd:boolean", this) + } +} + +// LessBoolean returns true if the left boolean value is less than the right value. +func LessBoolean(lhs, rhs bool) bool { + // Booleans don't have a natural ordering, so we pick that truth is greater than falsehood. + return !lhs && rhs +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/dateTime/gen_dateTime.go b/vendor/code.superseriousbusiness.org/activity/streams/values/dateTime/gen_dateTime.go new file mode 100644 index 000000000..327152fdb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/dateTime/gen_dateTime.go @@ -0,0 +1,39 @@ +// Code generated by astool. DO NOT EDIT. + +package datetime + +import ( + "fmt" + "time" +) + +// SerializeDateTime converts a dateTime value to an interface representation +// suitable for marshalling into a text or binary format. +func SerializeDateTime(this time.Time) (interface{}, error) { + return this.Format(time.RFC3339), nil +} + +// DeserializeDateTime creates dateTime value from an interface representation +// that has been unmarshalled from a text or binary format. +func DeserializeDateTime(this interface{}) (time.Time, error) { + var tmp time.Time + var err error + if s, ok := this.(string); ok { + tmp, err = time.Parse(time.RFC3339, s) + if err != nil { + tmp, err = time.Parse("2006-01-02T15:04Z07:00", s) + if err != nil { + err = fmt.Errorf("%v cannot be interpreted as xsd:datetime", this) + } + } + } else { + err = fmt.Errorf("%v cannot be interpreted as a string for xsd:datetime", this) + } + return tmp, err +} + +// LessDateTime returns true if the left dateTime value is less than the right +// value. +func LessDateTime(lhs, rhs time.Time) bool { + return lhs.Before(rhs) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/duration/gen_duration.go b/vendor/code.superseriousbusiness.org/activity/streams/values/duration/gen_duration.go new file mode 100644 index 000000000..8125a6822 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/duration/gen_duration.go @@ -0,0 +1,146 @@ +// Code generated by astool. DO NOT EDIT. + +package duration + +import ( + "fmt" + "math" + "regexp" + "strconv" + "time" +) + +// SerializeDuration converts a duration value to an interface representation +// suitable for marshalling into a text or binary format. +func SerializeDuration(this time.Duration) (interface{}, error) { + // Seriously questioning my life choices. + s := "P" + if this < 0 { + s = "-P" + this = -1 * this + } + var tally time.Duration + // Assume 8760 Hours per 365 days, cannot account for leap years in xsd:duration. :( + if years := this.Hours() / 8760.0; years >= 1 { + nYears := int64(math.Floor(years)) + tally += time.Duration(nYears) * 8760 * time.Hour + s = fmt.Sprintf("%s%dY", s, nYears) + } + // Assume 30 days per month, cannot account for months lasting 31, 30, 29, or 28 days in xsd:duration. :( + if months := (this.Hours() - tally.Hours()) / 720.0; months >= 1 { + nMonths := int64(math.Floor(months)) + tally += time.Duration(nMonths) * 720 * time.Hour + s = fmt.Sprintf("%s%dM", s, nMonths) + } + if days := (this.Hours() - tally.Hours()) / 24.0; days >= 1 { + nDays := int64(math.Floor(days)) + tally += time.Duration(nDays) * 24 * time.Hour + s = fmt.Sprintf("%s%dD", s, nDays) + } + if tally < this { + s = fmt.Sprintf("%sT", s) + if hours := this.Hours() - tally.Hours(); hours >= 1 { + nHours := int64(math.Floor(hours)) + tally += time.Duration(nHours) * time.Hour + s = fmt.Sprintf("%s%dH", s, nHours) + } + if minutes := this.Minutes() - tally.Minutes(); minutes >= 1 { + nMinutes := int64(math.Floor(minutes)) + tally += time.Duration(nMinutes) * time.Minute + s = fmt.Sprintf("%s%dM", s, nMinutes) + } + if seconds := this.Seconds() - tally.Seconds(); seconds >= 1 { + nSeconds := int64(math.Floor(seconds)) + tally += time.Duration(nSeconds) * time.Second + s = fmt.Sprintf("%s%dS", s, nSeconds) + } + } + return s, nil +} + +// DeserializeDuration creates duration value from an interface representation +// that has been unmarshalled from a text or binary format. +func DeserializeDuration(this interface{}) (time.Duration, error) { + // Maybe this time it will be easier. + if s, ok := this.(string); ok { + isNeg := false + if s[0] == '-' { + isNeg = true + s = s[1:] + } + if s[0] != 'P' { + return 0, fmt.Errorf("%s malformed: missing 'P' for xsd:duration", s) + } + re := regexp.MustCompile(`P(\d*Y)?(\d*M)?(\d*D)?(T(\d*H)?(\d*M)?(\d*S)?)?`) + res := re.FindStringSubmatch(s) + var dur time.Duration + nYear := res[1] + if len(nYear) > 0 { + nYear = nYear[:len(nYear)-1] + vYear, err := strconv.ParseInt(nYear, 10, 64) + if err != nil { + return 0, err + } + // Assume 8760 Hours per 365 days, cannot account for leap years in xsd:duration. :( + dur += time.Duration(vYear) * time.Hour * 8760 + } + nMonth := res[2] + if len(nMonth) > 0 { + nMonth = nMonth[:len(nMonth)-1] + vMonth, err := strconv.ParseInt(nMonth, 10, 64) + if err != nil { + return 0, err + } + // Assume 30 days per month, cannot account for months lasting 31, 30, 29, or 28 days in xsd:duration. :( + dur += time.Duration(vMonth) * time.Hour * 720 + } + nDay := res[3] + if len(nDay) > 0 { + nDay = nDay[:len(nDay)-1] + vDay, err := strconv.ParseInt(nDay, 10, 64) + if err != nil { + return 0, err + } + dur += time.Duration(vDay) * time.Hour * 24 + } + nHour := res[5] + if len(nHour) > 0 { + nHour = nHour[:len(nHour)-1] + vHour, err := strconv.ParseInt(nHour, 10, 64) + if err != nil { + return 0, err + } + dur += time.Duration(vHour) * time.Hour + } + nMinute := res[6] + if len(nMinute) > 0 { + nMinute = nMinute[:len(nMinute)-1] + vMinute, err := strconv.ParseInt(nMinute, 10, 64) + if err != nil { + return 0, err + } + dur += time.Duration(vMinute) * time.Minute + } + nSecond := res[7] + if len(nSecond) > 0 { + nSecond = nSecond[:len(nSecond)-1] + vSecond, err := strconv.ParseInt(nSecond, 10, 64) + if err != nil { + return 0, err + } + dur += time.Duration(vSecond) * time.Second + } + if isNeg { + dur *= -1 + } + return dur, nil + } else { + return 0, fmt.Errorf("%v cannot be interpreted as a string for xsd:duration", this) + } +} + +// LessDuration returns true if the left duration value is less than the right +// value. +func LessDuration(lhs, rhs time.Duration) bool { + return lhs < rhs +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/float/gen_float.go b/vendor/code.superseriousbusiness.org/activity/streams/values/float/gen_float.go new file mode 100644 index 000000000..7b88a6e66 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/float/gen_float.go @@ -0,0 +1,26 @@ +// Code generated by astool. DO NOT EDIT. + +package float + +import "fmt" + +// SerializeFloat converts a float value to an interface representation suitable +// for marshalling into a text or binary format. +func SerializeFloat(this float64) (interface{}, error) { + return this, nil +} + +// DeserializeFloat creates float value from an interface representation that has +// been unmarshalled from a text or binary format. +func DeserializeFloat(this interface{}) (float64, error) { + if f, ok := this.(float64); ok { + return f, nil + } else { + return 0, fmt.Errorf("%v cannot be interpreted as a float64 for xsd:float", this) + } +} + +// LessFloat returns true if the left float value is less than the right value. +func LessFloat(lhs, rhs float64) bool { + return lhs < rhs +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/langString/gen_langString.go b/vendor/code.superseriousbusiness.org/activity/streams/values/langString/gen_langString.go new file mode 100644 index 000000000..12dabf187 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/langString/gen_langString.go @@ -0,0 +1,63 @@ +// Code generated by astool. DO NOT EDIT. + +package langstring + +import ( + "fmt" + "sort" +) + +// SerializeLangString converts a langString value to an interface representation +// suitable for marshalling into a text or binary format. +func SerializeLangString(this map[string]string) (interface{}, error) { + return this, nil +} + +// DeserializeLangString creates langString value from an interface representation +// that has been unmarshalled from a text or binary format. +func DeserializeLangString(this interface{}) (map[string]string, error) { + if m, ok := this.(map[string]interface{}); ok { + r := make(map[string]string) + for k, v := range m { + if s, ok := v.(string); ok { + r[k] = s + } else { + return nil, fmt.Errorf("value %v cannot be interpreted as a string for rdf:langString", v) + } + } + return r, nil + } else { + return nil, fmt.Errorf("%v cannot be interpreted as a map[string]interface{} for rdf:langString", this) + } +} + +// LessLangString returns true if the left langString value is less than the right +// value. +func LessLangString(lhs, rhs map[string]string) bool { + var lk []string + var rk []string + for k := range lhs { + lk = append(lk, k) + } + for k := range rhs { + rk = append(rk, k) + } + sort.Strings(lk) + sort.Strings(rk) + for i := 0; i < len(lk) && i < len(rk); i++ { + if lk[i] < rk[i] { + return true + } else if rk[i] < lk[i] { + return false + } else if lhs[lk[i]] < rhs[rk[i]] { + return true + } else if rhs[rk[i]] < lhs[lk[i]] { + return false + } + } + if len(lk) < len(rk) { + return true + } else { + return false + } +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go b/vendor/code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go new file mode 100644 index 000000000..020c68bab --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go @@ -0,0 +1,33 @@ +// Code generated by astool. DO NOT EDIT. + +package nonnegativeinteger + +import "fmt" + +// SerializeNonNegativeInteger converts a nonNegativeInteger value to an interface +// representation suitable for marshalling into a text or binary format. +func SerializeNonNegativeInteger(this int) (interface{}, error) { + return this, nil +} + +// DeserializeNonNegativeInteger creates nonNegativeInteger value from an +// interface representation that has been unmarshalled from a text or binary +// format. +func DeserializeNonNegativeInteger(this interface{}) (int, error) { + if i, ok := this.(float64); ok { + n := int(i) + if n >= 0 { + return n, nil + } else { + return 0, fmt.Errorf("%v is a negative integer for xsd:nonNegativeInteger", this) + } + } else { + return 0, fmt.Errorf("%v cannot be interpreted as a float for xsd:nonNegativeInteger", this) + } +} + +// LessNonNegativeInteger returns true if the left nonNegativeInteger value is +// less than the right value. +func LessNonNegativeInteger(lhs, rhs int) bool { + return lhs < rhs +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/rfc2045/gen_rfc2045.go b/vendor/code.superseriousbusiness.org/activity/streams/values/rfc2045/gen_rfc2045.go new file mode 100644 index 000000000..cc28892c0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/rfc2045/gen_rfc2045.go @@ -0,0 +1,26 @@ +// Code generated by astool. DO NOT EDIT. + +package rfc2045 + +import "fmt" + +// SerializeRfc2045 converts a rfc2045 value to an interface representation +// suitable for marshalling into a text or binary format. +func SerializeRfc2045(this string) (interface{}, error) { + return this, nil +} + +// DeserializeRfc2045 creates rfc2045 value from an interface representation that +// has been unmarshalled from a text or binary format. +func DeserializeRfc2045(this interface{}) (string, error) { + if s, ok := this.(string); ok { + return s, nil + } else { + return "", fmt.Errorf("%v cannot be interpreted as a string for MIME media type", this) + } +} + +// LessRfc2045 returns true if the left rfc2045 value is less than the right value. +func LessRfc2045(lhs, rhs string) bool { + return lhs < rhs +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/rfc5988/gen_rfc5988.go b/vendor/code.superseriousbusiness.org/activity/streams/values/rfc5988/gen_rfc5988.go new file mode 100644 index 000000000..eac2bc247 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/rfc5988/gen_rfc5988.go @@ -0,0 +1,26 @@ +// Code generated by astool. DO NOT EDIT. + +package rfc5988 + +import "fmt" + +// SerializeRfc5988 converts a rfc5988 value to an interface representation +// suitable for marshalling into a text or binary format. +func SerializeRfc5988(this string) (interface{}, error) { + return this, nil +} + +// DeserializeRfc5988 creates rfc5988 value from an interface representation that +// has been unmarshalled from a text or binary format. +func DeserializeRfc5988(this interface{}) (string, error) { + if s, ok := this.(string); ok { + return s, nil + } else { + return "", fmt.Errorf("%v cannot be interpreted as a string for rel", this) + } +} + +// LessRfc5988 returns true if the left rfc5988 value is less than the right value. +func LessRfc5988(lhs, rhs string) bool { + return lhs < rhs +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/values/string/gen_string.go b/vendor/code.superseriousbusiness.org/activity/streams/values/string/gen_string.go new file mode 100644 index 000000000..23aee678f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/values/string/gen_string.go @@ -0,0 +1,26 @@ +// Code generated by astool. DO NOT EDIT. + +package string + +import "fmt" + +// SerializeString converts a string value to an interface representation suitable +// for marshalling into a text or binary format. +func SerializeString(this string) (interface{}, error) { + return this, nil +} + +// DeserializeString creates string value from an interface representation that +// has been unmarshalled from a text or binary format. +func DeserializeString(this interface{}) (string, error) { + if s, ok := this.(string); ok { + return s, nil + } else { + return "", fmt.Errorf("%v cannot be interpreted as a string for xsd:string", this) + } +} + +// LessString returns true if the left string value is less than the right value. +func LessString(lhs, rhs string) bool { + return lhs < rhs +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_doc.go new file mode 100644 index 000000000..c9faf499f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_doc.go @@ -0,0 +1,61 @@ +// Code generated by astool. DO NOT EDIT. + +// Package vocab contains the interfaces for the JSONLD vocabulary. All +// applications are strongly encouraged to use these interface types instead +// of the concrete definitions contained in the implementation subpackage. +// These interfaces allow applications to consume only the types and +// properties needed and be independent of the go-fed implementation if +// another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// Type interfaces contain "Get" and "Set" methods for its properties. Types +// also have a "Serialize" method to convert the type into an interface map +// for use with the json package. There is a convenience "IsExtending" method +// on each types which helps with the ActivityStreams hierarchy, which is not +// the same as object oriented inheritance. While types also have a "LessThan" +// method, it is an arbitrary sort. Do not use it if needing to sort on +// specific properties, such as publish time. It is best used for normalizing +// the type. Lastly, do not use the "GetUnknownProperties" method in an +// application. Instead, use the go-fed tool to code generate the property +// needed. +// +// Properties come in two flavors: functional and non-functional. Functional +// means that a property can have at most one value, while non-functional +// means a property could have zero, one, or more values. Any property value +// may also be an IRI, in which case the application will need to make a HTTP +// request to fetch the property value. +// +// Functional properties have "Get", "Is", and "Set" methods for determining +// what kind of value the property is, fetching that value, or setting that +// value. There is also a "Serialize" method which converts the property into +// an interface type, but applications should not typically use a property's +// "Serialize" and instead should use a type's "Serialize" instead. Like +// types, properties have an arbitrary "LessThan" comparison function that +// should not be used if needing to sort on specific values. Finally, +// applications should not use the "KindIndex" method as it is a comparison +// mechanism only for those looking to write an alternate implementation. +// +// Non-functional properties can have more than one value, so it has "Len" +// for getting its length, "At" for getting an iterator pointing to an +// element, "Append" and "Prepend" for adding values, "Remove" for removing a +// value, "Set" for overwriting a value, and "Swap" for swapping two values' +// indices. Note that a non-functional property satisfies the sort interface, +// but it results in an arbitrary but stable ordering best used as a +// normalized form. A non-functional property's iterator looks like a +// functional property with "Next" and "Previous" methods. Applications should +// not use the "KindIndex" methods as it is a comparison mechanism only for +// those looking to write an alternate implementation of this library. +// +// Types and properties have a "JSONLDContext" method that returns a mapping +// of vocabulary URIs to aliases that are required in the JSON-LD @context +// when serializing this value. The aliases used by this library when +// serializing objects is done at code-generation time, unless a different +// alias was used to deserialize the type or property. +// +// Types, functional properties, and non-functional properties are not +// designed for concurrent usage by two or more goroutines. Also, certain +// methods on a non-functional property will invalidate iterators and possibly +// cause unexpected behaviors. To avoid this, re-obtain an iterator after +// modifying a non-functional property. +package vocab diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_pkg.go new file mode 100644 index 000000000..1dd72c0d6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_pkg.go @@ -0,0 +1,23 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Type represents an ActivityStreams type. +type Type interface { + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetTypeName returns the ActivityStreams type name. + GetTypeName() string + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetJSONLDId sets the "id" property. + SetJSONLDId(JSONLDIdProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go new file mode 100644 index 000000000..4935d52a0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go @@ -0,0 +1,63 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Indicates the accuracy of position coordinates on a Place objects. Expressed in +// properties of percentage. e.g. "94.0" means "94.0% accurate". +// +// Example 112 (https://www.w3.org/TR/activitystreams-vocabulary/#ex127-jsonld): +// +// { +// "accuracy": 94.5, +// "latitude": 36.75, +// "longitude": 119.7667, +// "name": "Liu Gu Lu Cun, Pingdu, Qingdao, Shandong, China", +// "type": "Place" +// } +type ActivityStreamsAccuracyProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaFloat afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaFloat returns + // false, Get will return any arbitrary value. + Get() float64 + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaFloat returns true if this property is set and not an IRI. + IsXMLSchemaFloat() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAccuracyProperty) bool + // Name returns the name of this property: "accuracy". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaFloat + // afterwards will return true. + Set(v float64) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_actor_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_actor_interface.go new file mode 100644 index 000000000..95aa23eac --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_actor_interface.go @@ -0,0 +1,2063 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsActorPropertyIterator represents a single value for the "actor" +// property. +type ActivityStreamsActorPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsActorPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsActor". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsActorPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsActorPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Describes one or more entities that either performed or are expected to perform +// the activity. Any single activity can have multiple actors. The actor MAY +// be specified using an indirect Link. +// +// Example 63 (https://www.w3.org/TR/activitystreams-vocabulary/#ex59-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": "http://example.org/foo", +// "summary": "Sally offered the Foo object", +// "type": "Offer" +// } +// +// Example 64 (https://www.w3.org/TR/activitystreams-vocabulary/#ex60-jsonld): +// +// { +// "actor": { +// "id": "http://sally.example.org", +// "summary": "Sally", +// "type": "Person" +// }, +// "object": "http://example.org/foo", +// "summary": "Sally offered the Foo object", +// "type": "Offer" +// } +// +// Example 65 (https://www.w3.org/TR/activitystreams-vocabulary/#ex61-jsonld): +// +// { +// "actor": [ +// "http://joe.example.org", +// { +// "id": "http://sally.example.org", +// "name": "Sally", +// "type": "Person" +// } +// ], +// "object": "http://example.org/foo", +// "summary": "Sally and Joe offered the Foo object", +// "type": "Offer" +// } +type ActivityStreamsActorProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "actor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "actor". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "actor". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "actor". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "actor". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "actor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "actor". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "actor". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "actor". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "actor". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "actor". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "actor". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "actor". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "actor". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "actor". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "actor". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "actor" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "actor". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "actor". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "actor". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsActorPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsActorPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsActorPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "actor". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "actor". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "actor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "actor". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "actor". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "actor". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "actor". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "actor". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "actor". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "actor". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "actor". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "actor". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "actor". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "actor". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "actor" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsActorProperty) bool + // Name returns the name of this property ("actor") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "actor". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "actor". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "actor". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "actor". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "actor". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "actor". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "actor". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "actor". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "actor". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "actor". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "actor". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "actor". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "actor". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "actor". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "actor". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "actor". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "actor". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "actor". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "actor". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "actor". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "actor". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "actor". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "actor". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "actor". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "actor". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "actor", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "actor". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "actor". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "actor". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "actor". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "actor". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "actor". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "actor". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "actor". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "actor". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "actor". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "actor". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "actor". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "actor". Panics if the index is out of bounds. Invalidates + // all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "actor". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "actor". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "actor" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go new file mode 100644 index 000000000..b263a43d0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go @@ -0,0 +1,131 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsAlsoKnownAsPropertyIterator represents a single value for the +// "alsoKnownAs" property. +type ActivityStreamsAlsoKnownAsPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAlsoKnownAsPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsAlsoKnownAs". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsAlsoKnownAsPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsAlsoKnownAsPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// List of other URIs/AP IDs by which this actor is also known (eg., URIs of 'alt' +// account, previous account, new account, etc). +type ActivityStreamsAlsoKnownAsProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "alsoKnownAs" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "alsoKnownAs". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsAlsoKnownAsPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsAlsoKnownAsPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsAlsoKnownAsPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "alsoKnownAs". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "alsoKnownAs". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "alsoKnownAs" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAlsoKnownAsProperty) bool + // Name returns the name of this property ("alsoKnownAs") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "alsoKnownAs". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "alsoKnownAs". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "alsoKnownAs", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "alsoKnownAs". Panics if the index is out of bounds. Invalidates + // all iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "alsoKnownAs". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the "alsoKnownAs" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go new file mode 100644 index 000000000..6a0ed0330 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go @@ -0,0 +1,65 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Indicates the altitude of a place. The measurement units is indicated using the +// units property. If units is not specified, the default is assumed to be "m" +// indicating meters. +// +// Example 113 (https://www.w3.org/TR/activitystreams-vocabulary/#ex129-jsonld): +// +// { +// "altitude": 15, +// "latitude": 36.75, +// "longitude": 119.7667, +// "name": "Fresno Area", +// "type": "Place", +// "units": "miles" +// } +type ActivityStreamsAltitudeProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaFloat afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaFloat returns + // false, Get will return any arbitrary value. + Get() float64 + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaFloat returns true if this property is set and not an IRI. + IsXMLSchemaFloat() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAltitudeProperty) bool + // Name returns the name of this property: "altitude". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaFloat + // afterwards will return true. + Set(v float64) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go new file mode 100644 index 000000000..2a3847f3b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go @@ -0,0 +1,2042 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsAnyOfPropertyIterator represents a single value for the "anyOf" +// property. +type ActivityStreamsAnyOfPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAnyOfPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsAnyOf". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsAnyOfPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsAnyOfPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies an inclusive option for a Question. Use of anyOf implies that the +// Question can have multiple answers. To indicate that a Question can have +// only one answer, use oneOf. +// +// Example 92 (https://www.w3.org/TR/activitystreams-vocabulary/#ex94-jsonld): +// +// { +// "anyOf": [ +// { +// "name": "Option A", +// "type": "Note" +// }, +// { +// "name": "Option B", +// "type": "Note" +// } +// ], +// "name": "What is the answer?", +// "type": "Question" +// } +type ActivityStreamsAnyOfProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "anyOf". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "anyOf". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "anyOf". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "anyOf". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "anyOf". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "anyOf". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "anyOf". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "anyOf". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "anyOf". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "anyOf". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "anyOf". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "anyOf". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "anyOf". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "anyOf". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "anyOf". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "anyOf". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "anyOf" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "anyOf". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "anyOf". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "anyOf". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsAnyOfPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsAnyOfPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsAnyOfPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "anyOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "anyOf". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "anyOf". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "anyOf". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "anyOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "anyOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "anyOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "anyOf". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "anyOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "anyOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "anyOf". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "anyOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "anyOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "anyOf". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "anyOf" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAnyOfProperty) bool + // Name returns the name of this property ("anyOf") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "anyOf". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "anyOf". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "anyOf". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "anyOf". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "anyOf". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "anyOf". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "anyOf". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "anyOf". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "anyOf". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "anyOf". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "anyOf". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "anyOf". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "anyOf". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "anyOf". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "anyOf". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "anyOf". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "anyOf". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "anyOf", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "anyOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "anyOf". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "anyOf". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "anyOf". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "anyOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "anyOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "anyOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "anyOf". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "anyOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "anyOf". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "anyOf". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "anyOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "anyOf". Panics if the index is out of bounds. Invalidates + // all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "anyOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "anyOf". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "anyOf" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go new file mode 100644 index 000000000..6f255aeab --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go @@ -0,0 +1,2056 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsAttachmentPropertyIterator represents a single value for the +// "attachment" property. +type ActivityStreamsAttachmentPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAttachmentPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsAttachment". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsAttachmentPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsAttachmentPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies a resource attached or related to an object that potentially +// requires special handling. The intent is to provide a model that is at +// least semantically similar to attachments in email. +// +// Example 66 (https://www.w3.org/TR/activitystreams-vocabulary/#ex64-jsonld): +// +// { +// "attachment": { +// "content": "This is what he looks like.", +// "type": "Image", +// "url": "http://example.org/cat.jpeg" +// }, +// "name": "Have you seen my cat?", +// "type": "Note" +// } +type ActivityStreamsAttachmentProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "attachment". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "attachment". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "attachment". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "attachment". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "attachment". + // Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "attachment". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "attachment". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "attachment". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "attachment". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "attachment". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "attachment". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "attachment". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "attachment". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "attachment". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "attachment". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "attachment". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "attachment". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "attachment". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "attachment". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "attachment". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "attachment" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "attachment". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "attachment". Invalidates iterators that are traversing + // using Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsAttachmentPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsAttachmentPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsAttachmentPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "attachment". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "attachment". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "attachment". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "attachment". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "attachment". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "attachment". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "attachment". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "attachment". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "attachment". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "attachment". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "attachment". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "attachment". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "attachment". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "attachment". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "attachment" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAttachmentProperty) bool + // Name returns the name of this property ("attachment") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "attachment". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "attachment". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "attachment". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "attachment". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "attachment". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "attachment". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "attachment". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "attachment". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "attachment". Invalidates + // all iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "attachment". Invalidates + // all iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "attachment". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "attachment". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "attachment". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "attachment". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "attachment". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "attachment". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "attachment". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "attachment". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "attachment". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "attachment". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "attachment". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "attachment". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "attachment". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "attachment". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "attachment". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "attachment". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "attachment". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "attachment". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "attachment", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "attachment". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "attachment". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "attachment". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "attachment". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "attachment". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "attachment". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "attachment". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "attachment". Panics + // if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "attachment". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "attachment". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "attachment". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "attachment". Panics if the index + // is out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "attachment". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "attachment" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go new file mode 100644 index 000000000..8817b523a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go @@ -0,0 +1,2073 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsAttributedToPropertyIterator represents a single value for the +// "attributedTo" property. +type ActivityStreamsAttributedToPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAttributedToPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsAttributedTo". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsAttributedToPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsAttributedToPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies one or more entities to which this object is attributed. The +// attributed entities might not be Actors. For instance, an object might be +// attributed to the completion of another activity. +// +// Example 67 (https://www.w3.org/TR/activitystreams-vocabulary/#ex65-jsonld): +// +// { +// "attributedTo": { +// "name": "Sally", +// "type": "Person" +// }, +// "name": "My cat taking a nap", +// "type": "Image", +// "url": "http://example.org/cat.jpeg" +// } +// +// Example 68 (https://www.w3.org/TR/activitystreams-vocabulary/#ex66-jsonld): +// +// { +// "attributedTo": [ +// "http://joe.example.org", +// { +// "name": "Sally", +// "type": "Person" +// } +// ], +// "name": "My cat taking a nap", +// "type": "Image", +// "url": "http://example.org/cat.jpeg" +// } +type ActivityStreamsAttributedToProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "attributedTo". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "attributedTo". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "attributedTo". + // Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "attributedTo". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "attributedTo". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "attributedTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "attributedTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "attributedTo". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "attributedTo". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "attributedTo". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "attributedTo". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "attributedTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "attributedTo". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "attributedTo" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "attributedTo". Invalidates iterators that + // are traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "attributedTo". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "attributedTo". Invalidates iterators that are traversing + // using Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsAttributedToPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsAttributedToPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsAttributedToPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "attributedTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "attributedTo". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "attributedTo". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "attributedTo". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "attributedTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "attributedTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "attributedTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "attributedTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "attributedTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "attributedTo". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "attributedTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "attributedTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "attributedTo". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "attributedTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "attributedTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "attributedTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "attributedTo". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "attributedTo". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "attributedTo" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAttributedToProperty) bool + // Name returns the name of this property ("attributedTo") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "attributedTo". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "attributedTo". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "attributedTo". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "attributedTo". Invalidates + // all iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "attributedTo". Invalidates + // all iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "attributedTo". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "attributedTo". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "attributedTo". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "attributedTo". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "attributedTo". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "attributedTo". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "attributedTo". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "attributedTo". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "attributedTo". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "attributedTo". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "attributedTo". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "attributedTo". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "attributedTo". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "attributedTo", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "attributedTo". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "attributedTo". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "attributedTo". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "attributedTo". + // Panics if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "attributedTo". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "attributedTo". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "attributedTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "attributedTo". Panics if the index is out + // of bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "attributedTo". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + // Panics if the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "attributedTo" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_audience_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_audience_interface.go new file mode 100644 index 000000000..d5ee18c79 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_audience_interface.go @@ -0,0 +1,2057 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsAudiencePropertyIterator represents a single value for the +// "audience" property. +type ActivityStreamsAudiencePropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAudiencePropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsAudience". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsAudiencePropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsAudiencePropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies one or more entities that represent the total population of entities +// for which the object can considered to be relevant. +// +// Example 69 (https://www.w3.org/TR/activitystreams-vocabulary/#ex113-jsonld): +// +// { +// "audience": { +// "name": "ExampleCo LLC", +// "type": "http://example.org/Organization" +// }, +// "content": "Thursday will be a company-wide holiday. Enjoy your day +// +// off!", +// +// "name": "Holiday announcement", +// "type": "Note" +// } +type ActivityStreamsAudienceProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "audience". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "audience". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "audience". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "audience". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "audience". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "audience". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "audience". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "audience". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "audience". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "audience". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "audience". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "audience". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "audience". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "audience" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "audience". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "audience". Invalidates iterators that are traversing + // using Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "audience". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsAudiencePropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsAudiencePropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsAudiencePropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "audience". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "audience". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "audience". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "audience". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "audience". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "audience". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "audience". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "audience". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "audience". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "audience". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "audience". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "audience". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "audience". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "audience". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "audience". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "audience" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsAudienceProperty) bool + // Name returns the name of this property ("audience") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "audience". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "audience". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "audience". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "audience". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "audience". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "audience". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "audience". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "audience". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "audience". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "audience". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "audience". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "audience". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "audience". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "audience". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "audience". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "audience". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "audience". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "audience". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "audience". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "audience". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "audience". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "audience". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "audience". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "audience". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "audience". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "audience". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "audience". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "audience". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "audience". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "audience". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "audience". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "audience". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "audience", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "audience". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "audience". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "audience". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "audience". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "audience". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "audience". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "audience". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "audience". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "audience". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "audience". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "audience". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "audience". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "audience". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "audience". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "audience" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go new file mode 100644 index 000000000..4a607704e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go @@ -0,0 +1,2029 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsBccPropertyIterator represents a single value for the "bcc" +// property. +type ActivityStreamsBccPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsBccPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsBcc". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsBccPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsBccPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies one or more Objects that are part of the private secondary audience +// of this Object. +// +// Example 70 (https://www.w3.org/TR/activitystreams-vocabulary/#ex68-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "bcc": "http://joe.example.org", +// "object": "http://example.org/posts/1", +// "summary": "Sally offered a post to John", +// "target": "http://john.example.org", +// "type": "Offer" +// } +type ActivityStreamsBccProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "bcc". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "bcc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "bcc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "bcc". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "bcc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "bcc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "bcc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "bcc". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "bcc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "bcc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "bcc". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "bcc". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "bcc". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "bcc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "bcc". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "bcc". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "bcc". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "bcc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "bcc". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "bcc". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "bcc". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "bcc". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "bcc". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "bcc" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "bcc". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. Returns an error if the type is not a valid one to set for + // this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsBccPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsBccPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsBccPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "bcc". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "bcc". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "bcc". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "bcc". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "bcc". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "bcc". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "bcc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "bcc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "bcc". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "bcc" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsBccProperty) bool + // Name returns the name of this property ("bcc") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "bcc". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "bcc". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "bcc". Invalidates all + // iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "bcc". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "bcc". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "bcc". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "bcc". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "bcc". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "bcc". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "bcc". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "bcc". Invalidates all + // iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "bcc". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "bcc". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "bcc". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "bcc". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "bcc". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "bcc". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "bcc". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "bcc". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "bcc". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "bcc". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "bcc". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "bcc". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "bcc". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "bcc", regardless of its type. Panics if the index is out + // of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "bcc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "bcc". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "bcc". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "bcc". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "bcc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "bcc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "bcc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "bcc". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "bcc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "bcc". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "bcc". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "bcc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "bcc". Panics if the index is out of bounds. Invalidates + // all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "bcc". Invalidates all iterators. Returns an error if the + // type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "bcc" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bto_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bto_interface.go new file mode 100644 index 000000000..2c7a956fd --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_bto_interface.go @@ -0,0 +1,2029 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsBtoPropertyIterator represents a single value for the "bto" +// property. +type ActivityStreamsBtoPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsBtoPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsBto". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsBtoPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsBtoPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies an Object that is part of the private primary audience of this +// Object. +// +// Example 71 (https://www.w3.org/TR/activitystreams-vocabulary/#ex69-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "bto": "http://joe.example.org", +// "object": "http://example.org/posts/1", +// "summary": "Sally offered a post to John", +// "target": "http://john.example.org", +// "type": "Offer" +// } +type ActivityStreamsBtoProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "bto". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "bto". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "bto". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "bto". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "bto". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "bto". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "bto". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "bto". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "bto". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "bto". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "bto". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "bto". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "bto". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "bto". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "bto". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "bto". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "bto". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "bto". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "bto". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "bto". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "bto". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "bto". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "bto". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "bto". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "bto". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "bto" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "bto". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "bto". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "bto". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. Returns an error if the type is not a valid one to set for + // this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsBtoPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsBtoPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsBtoPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "bto". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "bto". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "bto". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "bto". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "bto". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "bto". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "bto". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "bto". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "bto". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "bto" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsBtoProperty) bool + // Name returns the name of this property ("bto") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "bto". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "bto". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "bto". Invalidates all + // iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "bto". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "bto". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "bto". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "bto". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "bto". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "bto". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "bto". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "bto". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "bto". Invalidates all + // iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "bto". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "bto". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "bto". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "bto". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "bto". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "bto". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "bto". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "bto". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "bto". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "bto". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "bto". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "bto". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "bto". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "bto", regardless of its type. Panics if the index is out + // of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "bto". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "bto". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "bto". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "bto". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "bto". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "bto". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "bto". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "bto". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "bto". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "bto". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "bto". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "bto". Panics if the index is out + // of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "bto". Panics if the index is out of bounds. Invalidates + // all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "bto". Invalidates all iterators. Returns an error if the + // type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "bto" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_cc_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_cc_interface.go new file mode 100644 index 000000000..31f5eae4f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_cc_interface.go @@ -0,0 +1,2022 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsCcPropertyIterator represents a single value for the "cc" +// property. +type ActivityStreamsCcPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsCcPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsCc". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsCcPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsCcPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies an Object that is part of the public secondary audience of this +// Object. +// +// Example 72 (https://www.w3.org/TR/activitystreams-vocabulary/#ex70-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "cc": "http://joe.example.org", +// "object": "http://example.org/posts/1", +// "summary": "Sally offered a post to John", +// "target": "http://john.example.org", +// "type": "Offer" +// } +type ActivityStreamsCcProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "cc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "cc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "cc". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "cc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "cc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "cc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "cc". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "cc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "cc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "cc". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "cc". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "cc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "cc". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "cc". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "cc". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "cc". Invalidates iterators that are traversing using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "cc". Invalidates iterators that are traversing using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "cc". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "cc". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "cc". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "cc". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "cc" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "cc". Invalidates iterators that are traversing using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "cc". Invalidates iterators that are traversing using Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "cc". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. Returns an error if the type is not a valid one to set for + // this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsCcPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsCcPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsCcPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "cc". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "cc". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "cc". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "cc". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "cc". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property "cc". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "cc". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "cc". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "cc". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "cc" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsCcProperty) bool + // Name returns the name of this property ("cc") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "cc". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "cc". Invalidates all + // iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "cc". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "cc". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "cc". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "cc". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "cc". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "cc". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "cc". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "cc". Invalidates all iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "cc". Invalidates all + // iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "cc". Invalidates all iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "cc". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "cc". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "cc". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "cc". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "cc". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "cc". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "cc". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "cc". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "cc". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "cc". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "cc". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "cc". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "cc", regardless of its type. Panics if the index is out + // of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "cc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "cc". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "cc". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "cc". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "cc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "cc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "cc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "cc". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "cc". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "cc". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "cc". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "cc". Panics if the index is out + // of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "cc". Panics if the index is out of bounds. Invalidates + // all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "cc". Invalidates all iterators. Returns an error if the + // type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "cc" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_closed_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_closed_interface.go new file mode 100644 index 000000000..bcad48671 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_closed_interface.go @@ -0,0 +1,2086 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import ( + "net/url" + "time" +) + +// ActivityStreamsClosedPropertyIterator represents a single value for the +// "closed" property. +type ActivityStreamsClosedPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // GetXMLSchemaBoolean returns the value of this property. When + // IsXMLSchemaBoolean returns false, GetXMLSchemaBoolean will return + // an arbitrary value. + GetXMLSchemaBoolean() bool + // GetXMLSchemaDateTime returns the value of this property. When + // IsXMLSchemaDateTime returns false, GetXMLSchemaDateTime will return + // an arbitrary value. + GetXMLSchemaDateTime() time.Time + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // IsXMLSchemaBoolean returns true if this property has a type of + // "boolean". When true, use the GetXMLSchemaBoolean and + // SetXMLSchemaBoolean methods to access and set this property. + IsXMLSchemaBoolean() bool + // IsXMLSchemaDateTime returns true if this property has a type of + // "dateTime". When true, use the GetXMLSchemaDateTime and + // SetXMLSchemaDateTime methods to access and set this property. + IsXMLSchemaDateTime() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsClosedPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsClosed". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsClosedPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsClosedPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error + // SetXMLSchemaBoolean sets the value of this property. Calling + // IsXMLSchemaBoolean afterwards returns true. + SetXMLSchemaBoolean(v bool) + // SetXMLSchemaDateTime sets the value of this property. Calling + // IsXMLSchemaDateTime afterwards returns true. + SetXMLSchemaDateTime(v time.Time) +} + +// Indicates that a question has been closed, and answers are no longer accepted. +// +// Example 93 (https://www.w3.org/TR/activitystreams-vocabulary/#ex94b-jsonld): +// +// { +// "closed": "2016-05-10T00:00:00Z", +// "name": "What is the answer?", +// "type": "Question" +// } +type ActivityStreamsClosedProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "closed". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "closed". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "closed". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "closed". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "closed". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "closed". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "closed". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "closed". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "closed". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "closed". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "closed". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "closed". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "closed". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "closed". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "closed". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "closed". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "closed" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "closed". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "closed". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "closed". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // AppendXMLSchemaBoolean appends a boolean value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaBoolean(v bool) + // AppendXMLSchemaDateTime appends a dateTime value to the back of a list + // of the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaDateTime(v time.Time) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsClosedPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsClosedPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsClosedPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "closed". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "closed". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "closed". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "closed". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "closed". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "closed". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "closed". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "closed". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "closed". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "closed". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "closed". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "closed". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "closed". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "closed". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // InsertXMLSchemaBoolean inserts a boolean value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertXMLSchemaBoolean(idx int, v bool) + // InsertXMLSchemaDateTime inserts a dateTime value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertXMLSchemaDateTime(idx int, v time.Time) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "closed" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsClosedProperty) bool + // Name returns the name of this property ("closed") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "closed". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "closed". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "closed". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "closed". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "closed". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "closed". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "closed". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "closed". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "closed". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "closed". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "closed". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "closed". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "closed". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "closed". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "closed". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "closed". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "closed". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "closed". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "closed". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "closed". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "closed". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "closed". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "closed". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "closed". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // PrependXMLSchemaBoolean prepends a boolean value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependXMLSchemaBoolean(v bool) + // PrependXMLSchemaDateTime prepends a dateTime value to the front of a + // list of the property "closed". Invalidates all iterators. + PrependXMLSchemaDateTime(v time.Time) + // Remove deletes an element at the specified index from a list of the + // property "closed", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "closed". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "closed". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "closed". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "closed". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "closed". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "closed". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "closed". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "closed". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "closed". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "closed". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "closed". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "closed". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "closed". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "closed". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // SetXMLSchemaBoolean sets a boolean value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetXMLSchemaBoolean(idx int, v bool) + // SetXMLSchemaDateTime sets a dateTime value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetXMLSchemaDateTime(idx int, v time.Time) + // Swap swaps the location of values at two indices for the "closed" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_content_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_content_interface.go new file mode 100644 index 000000000..a7b803c72 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_content_interface.go @@ -0,0 +1,211 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsContentPropertyIterator represents a single value for the +// "content" property. +type ActivityStreamsContentPropertyIterator interface { + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetLanguage returns the value for the specified BCP47 language code, or + // an empty string if it is either not a language map or no value is + // present. + GetLanguage(bcp47 string) string + // GetRDFLangString returns the value of this property. When + // IsRDFLangString returns false, GetRDFLangString will return an + // arbitrary value. + GetRDFLangString() map[string]string + // GetXMLSchemaString returns the value of this property. When + // IsXMLSchemaString returns false, GetXMLSchemaString will return an + // arbitrary value. + GetXMLSchemaString() string + // HasAny returns true if any of the values are set, except for the + // natural language map. When true, the specific has, getter, and + // setter methods may be used to determine what kind of value there is + // to access and set this property. To determine if the property was + // set as a natural language map, use the IsRDFLangString method + // instead. + HasAny() bool + // HasLanguage returns true if the natural language map has an entry for + // the specified BCP47 language code. + HasLanguage(bcp47 string) bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsRDFLangString returns true if this property has a type of + // "langString". When true, use the GetRDFLangString and + // SetRDFLangString methods to access and set this property.. To + // determine if the property was set as a natural language map, use + // the IsRDFLangString method instead. + IsRDFLangString() bool + // IsXMLSchemaString returns true if this property has a type of "string". + // When true, use the GetXMLSchemaString and SetXMLSchemaString + // methods to access and set this property.. To determine if the + // property was set as a natural language map, use the IsRDFLangString + // method instead. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsContentPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsContent". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsContentPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsContentPropertyIterator + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetLanguage sets the value for the specified BCP47 language code. + SetLanguage(bcp47, value string) + // SetRDFLangString sets the value of this property and clears the natural + // language map. Calling IsRDFLangString afterwards will return true. + // Calling IsRDFLangString afterwards returns false. + SetRDFLangString(v map[string]string) + // SetXMLSchemaString sets the value of this property and clears the + // natural language map. Calling IsXMLSchemaString afterwards will + // return true. Calling IsRDFLangString afterwards returns false. + SetXMLSchemaString(v string) +} + +// The content or textual representation of the Object encoded as a JSON string. +// By default, the value of content is HTML. The mediaType property can be +// used in the object to indicate a different content type. The content MAY be +// expressed using multiple language-tagged values. +// +// Example 114 (https://www.w3.org/TR/activitystreams-vocabulary/#ex130-jsonld): +// +// { +// "content": "A \u003cem\u003esimple\u003c/em\u003e note", +// "summary": "A simple note", +// "type": "Note" +// } +// +// Example 115 (https://www.w3.org/TR/activitystreams-vocabulary/#ex131-jsonld): +// +// { +// "contentMap": { +// "en": "A \u003cem\u003esimple\u003c/em\u003e note", +// "es": "Una nota \u003cem\u003esencilla\u003c/em\u003e", +// "zh-hans": "一段\u003cem\u003e简单的\u003c/em\u003e笔记" +// }, +// "summary": "A simple note", +// "type": "Note" +// } +// +// Example 116 (https://www.w3.org/TR/activitystreams-vocabulary/#ex130b-jsonld): +// +// { +// "content": "## A simple note\nA simple markdown `note`", +// "mediaType": "text/markdown", +// "summary": "A simple note", +// "type": "Note" +// } +type ActivityStreamsContentProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "content" + AppendIRI(v *url.URL) + // AppendRDFLangString appends a langString value to the back of a list of + // the property "content". Invalidates iterators that are traversing + // using Prev. + AppendRDFLangString(v map[string]string) + // AppendXMLSchemaString appends a string value to the back of a list of + // the property "content". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaString(v string) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsContentPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsContentPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsContentPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "content". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertRDFLangString inserts a langString value at the specified index + // for a property "content". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertRDFLangString(idx int, v map[string]string) + // InsertXMLSchemaString inserts a string value at the specified index for + // a property "content". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertXMLSchemaString(idx int, v string) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "content" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsContentProperty) bool + // Name returns the name of this property ("content") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "content". + PrependIRI(v *url.URL) + // PrependRDFLangString prepends a langString value to the front of a list + // of the property "content". Invalidates all iterators. + PrependRDFLangString(v map[string]string) + // PrependXMLSchemaString prepends a string value to the front of a list + // of the property "content". Invalidates all iterators. + PrependXMLSchemaString(v string) + // Remove deletes an element at the specified index from a list of the + // property "content", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetIRI sets an IRI value to be at the specified index for the property + // "content". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetRDFLangString sets a langString value to be at the specified index + // for the property "content". Panics if the index is out of bounds. + // Invalidates all iterators. + SetRDFLangString(idx int, v map[string]string) + // SetXMLSchemaString sets a string value to be at the specified index for + // the property "content". Panics if the index is out of bounds. + // Invalidates all iterators. + SetXMLSchemaString(idx int, v string) + // Swap swaps the location of values at two indices for the "content" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_context_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_context_interface.go new file mode 100644 index 000000000..086d48327 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_context_interface.go @@ -0,0 +1,2056 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsContextPropertyIterator represents a single value for the +// "context" property. +type ActivityStreamsContextPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsContextPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsContext". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsContextPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsContextPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies the context within which the object exists or an activity was +// performed. The notion of "context" used is intentionally vague. The +// intended function is to serve as a means of grouping objects and activities +// that share a common originating context or purpose. An example could be all +// activities relating to a common project or event. +// +// Example 73 (https://www.w3.org/TR/activitystreams-vocabulary/#ex171-jsonld): +// +// { +// "items": [ +// { +// "actor": "http://sally.example.org", +// "context": "http://example.org/contexts/1", +// "object": "http://example.org/posts/1", +// "target": "http://john.example.org", +// "type": "Offer" +// }, +// { +// "actor": "http://joe.example.org", +// "context": "http://example.org/contexts/1", +// "object": "http://example.org/posts/2", +// "type": "Like" +// } +// ], +// "summary": "Activities in context 1", +// "type": "Collection" +// } +type ActivityStreamsContextProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "context". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "context". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "context". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "context". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "context". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "context". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "context". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "context". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "context" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "context". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "context". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "context". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsContextPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsContextPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsContextPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "context". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "context". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "context". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "context". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "context". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "context". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "context". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "context". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "context". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "context". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "context". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "context". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "context". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "context". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "context". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "context". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "context". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "context". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "context". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "context" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsContextProperty) bool + // Name returns the name of this property ("context") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "context". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "context". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "context". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "context". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "context". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "context". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "context". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "context". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "context". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "context". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "context". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "context". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "context". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "context". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "context". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "context". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "context". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "context". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "context". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "context". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "context". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "context". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "context". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "context". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "context". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "context". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "context". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "context". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "context". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "context". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "context". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "context". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "context". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "context". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "context". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "context", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "context". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "context". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "context". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "context". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "context". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "context". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "context". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "context". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "context". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "context". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "context". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "context". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "context". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "context". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "context" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_current_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_current_interface.go new file mode 100644 index 000000000..4befc78be --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_current_interface.go @@ -0,0 +1,145 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// In a paged Collection, indicates the page that contains the most recently +// updated member items. +// +// Example 74 (https://www.w3.org/TR/activitystreams-vocabulary/#ex71-jsonld): +// +// { +// "current": "http://example.org/collection", +// "items": [ +// "http://example.org/posts/1", +// "http://example.org/posts/2", +// "http://example.org/posts/3" +// ], +// "summary": "Sally's blog posts", +// "totalItems": 3, +// "type": "Collection" +// } +// +// Example 75 (https://www.w3.org/TR/activitystreams-vocabulary/#ex72-jsonld): +// +// { +// "current": { +// "summary": "Most Recent Items", +// "type": "owl:Class", +// "url": "http://example.org/collection" +// }, +// "items": [ +// "http://example.org/posts/1", +// "http://example.org/posts/2", +// "http://example.org/posts/3" +// ], +// "summary": "Sally's blog posts", +// "totalItems": 3, +// "type": "Collection" +// } +type ActivityStreamsCurrentProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsCurrentProperty) bool + // Name returns the name of this property: "current". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go new file mode 100644 index 000000000..56a602e42 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go @@ -0,0 +1,64 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import ( + "net/url" + "time" +) + +// On a Tombstone object, the deleted property is a timestamp for when the object +// was deleted. +// +// Example 143 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185c-jsonld): +// +// { +// "deleted": "2016-05-03T00:00:00Z", +// "summary": "This image has been deleted", +// "type": "Tombstone" +// } +type ActivityStreamsDeletedProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaDateTime afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaDateTime + // returns false, Get will return any arbitrary value. + Get() time.Time + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaDateTime returns true if this property is set and not an IRI. + IsXMLSchemaDateTime() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsDeletedProperty) bool + // Name returns the name of this property: "deleted". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaDateTime + // afterwards will return true. + Set(v time.Time) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_describes_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_describes_interface.go new file mode 100644 index 000000000..ea11c6032 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_describes_interface.go @@ -0,0 +1,838 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// On a Profile object, the describes property identifies the object described by +// the Profile. +// +// Example 141 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185-jsonld): +// +// { +// "describes": { +// "name": "Sally", +// "type": "Person" +// }, +// "summary": "Sally's profile", +// "type": "Profile", +// "url": "http://sally.example.org" +// } +type ActivityStreamsDescribesProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsDescribesProperty) bool + // Name returns the name of this property: "describes". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_duration_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_duration_interface.go new file mode 100644 index 000000000..98e6b5cb7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_duration_interface.go @@ -0,0 +1,68 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import ( + "net/url" + "time" +) + +// When the object describes a time-bound resource, such as an audio or video, a +// meeting, etc, the duration property indicates the object's approximate +// duration. The value MUST be expressed as an xsd:duration as defined by +// [xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented +// as "PT5S"). +// +// Example 119 (https://www.w3.org/TR/activitystreams-vocabulary/#ex134-jsonld): +// +// { +// "duration": "PT2H", +// "name": "Birds Flying", +// "type": "Video", +// "url": "http://example.org/video.mkv" +// } +type ActivityStreamsDurationProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaDuration afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaDuration + // returns false, Get will return any arbitrary value. + Get() time.Duration + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaDuration returns true if this property is set and not an IRI. + IsXMLSchemaDuration() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsDurationProperty) bool + // Name returns the name of this property: "duration". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaDuration + // afterwards will return true. + Set(v time.Duration) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go new file mode 100644 index 000000000..7e74cd4b4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go @@ -0,0 +1,66 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import ( + "net/url" + "time" +) + +// The date and time describing the actual or expected ending time of the object. +// When used with an Activity object, for instance, the endTime property +// specifies the moment the activity concluded or is expected to conclude. +// +// Example 127 (https://www.w3.org/TR/activitystreams-vocabulary/#ex144-jsonld): +// +// { +// "endTime": "2015-01-01T06:00:00-08:00", +// "name": "Going-Away Party for Jim", +// "startTime": "2014-12-31T23:00:00-08:00", +// "type": "Event" +// } +type ActivityStreamsEndTimeProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaDateTime afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaDateTime + // returns false, Get will return any arbitrary value. + Get() time.Time + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaDateTime returns true if this property is set and not an IRI. + IsXMLSchemaDateTime() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsEndTimeProperty) bool + // Name returns the name of this property: "endTime". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaDateTime + // afterwards will return true. + Set(v time.Time) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go new file mode 100644 index 000000000..4142e7d58 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go @@ -0,0 +1,159 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsEndpointsPropertyIterator represents a single value for the +// "endpoints" property. +type ActivityStreamsEndpointsPropertyIterator interface { + // Get returns the value of this property. When IsActivityStreamsEndpoints + // returns false, Get will return any arbitrary value. + Get() ActivityStreamsEndpoints + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsActivityStreamsEndpoints returns true if this property is set and not + // an IRI. + IsActivityStreamsEndpoints() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsEndpointsPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsEndpoints". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsEndpointsPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsEndpointsPropertyIterator + // Set sets the value of this property. Calling IsActivityStreamsEndpoints + // afterwards will return true. + Set(v ActivityStreamsEndpoints) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Endpoints for an ActivityStreams actor. +// +// null +type ActivityStreamsEndpointsProperty interface { + // AppendActivityStreamsEndpoints appends a Endpoints value to the back of + // a list of the property "endpoints". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEndpoints(v ActivityStreamsEndpoints) + // AppendIRI appends an IRI value to the back of a list of the property + // "endpoints" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "endpoints". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsEndpointsPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsEndpointsPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsEndpointsPropertyIterator + // InsertActivityStreamsEndpoints inserts a Endpoints value at the + // specified index for a property "endpoints". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsEndpoints(idx int, v ActivityStreamsEndpoints) + // Insert inserts an IRI value at the specified index for a property + // "endpoints". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "endpoints". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "endpoints" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsEndpointsProperty) bool + // Name returns the name of this property ("endpoints") with any alias. + Name() string + // PrependActivityStreamsEndpoints prepends a Endpoints value to the front + // of a list of the property "endpoints". Invalidates all iterators. + PrependActivityStreamsEndpoints(v ActivityStreamsEndpoints) + // PrependIRI prepends an IRI value to the front of a list of the property + // "endpoints". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "endpoints". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "endpoints", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a Endpoints value to be at the specified index for the + // property "endpoints". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v ActivityStreamsEndpoints) + // SetIRI sets an IRI value to be at the specified index for the property + // "endpoints". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "endpoints". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "endpoints" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_first_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_first_interface.go new file mode 100644 index 000000000..e11b0fdb1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_first_interface.go @@ -0,0 +1,135 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// In a paged Collection, indicates the furthest preceeding page of items in the +// collection. +// +// Example 76 (https://www.w3.org/TR/activitystreams-vocabulary/#ex73-jsonld): +// +// { +// "first": "http://example.org/collection?page=0", +// "summary": "Sally's blog posts", +// "totalItems": 3, +// "type": "Collection" +// } +// +// Example 77 (https://www.w3.org/TR/activitystreams-vocabulary/#ex74-jsonld): +// +// { +// "first": { +// "summary": "First Page", +// "type": "owl:Class", +// "url": "http://example.org/collection?page=0" +// }, +// "summary": "Sally's blog posts", +// "totalItems": 3, +// "type": "Collection" +// } +type ActivityStreamsFirstProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsFirstProperty) bool + // Name returns the name of this property: "first". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_followers_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_followers_interface.go new file mode 100644 index 000000000..073f694d6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_followers_interface.go @@ -0,0 +1,129 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// A link to an ActivityStreams collection of the actors that follow this actor +// +// Example 9 (https://www.w3.org/TR/activitypub/#example9): +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// { +// "@language": "ja" +// } +// ], +// "followers": "https://kenzoishii.example.com/followers.json", +// "following": "https://kenzoishii.example.com/following.json", +// "icon": [ +// "https://kenzoishii.example.com/image/165987aklre4" +// ], +// "id": "https://kenzoishii.example.com/", +// "inbox": "https://kenzoishii.example.com/inbox.json", +// "liked": "https://kenzoishii.example.com/liked.json", +// "name": "石井健蔵", +// "outbox": "https://kenzoishii.example.com/feed.json", +// "preferredUsername": "kenzoishii", +// "summary": "この方はただの例です", +// "type": "Person" +// } +type ActivityStreamsFollowersProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsFollowersProperty) bool + // Name returns the name of this property: "followers". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_following_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_following_interface.go new file mode 100644 index 000000000..625daa6bb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_following_interface.go @@ -0,0 +1,130 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// A link to an ActivityStreams collection of the actors that this actor is +// following +// +// Example 9 (https://www.w3.org/TR/activitypub/#example9): +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// { +// "@language": "ja" +// } +// ], +// "followers": "https://kenzoishii.example.com/followers.json", +// "following": "https://kenzoishii.example.com/following.json", +// "icon": [ +// "https://kenzoishii.example.com/image/165987aklre4" +// ], +// "id": "https://kenzoishii.example.com/", +// "inbox": "https://kenzoishii.example.com/inbox.json", +// "liked": "https://kenzoishii.example.com/liked.json", +// "name": "石井健蔵", +// "outbox": "https://kenzoishii.example.com/feed.json", +// "preferredUsername": "kenzoishii", +// "summary": "この方はただの例です", +// "type": "Person" +// } +type ActivityStreamsFollowingProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsFollowingProperty) bool + // Name returns the name of this property: "following". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go new file mode 100644 index 000000000..d31f1a72d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go @@ -0,0 +1,2001 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsFormerTypePropertyIterator represents a single value for the +// "formerType" property. +type ActivityStreamsFormerTypePropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // GetXMLSchemaString returns the value of this property. When + // IsXMLSchemaString returns false, GetXMLSchemaString will return an + // arbitrary value. + GetXMLSchemaString() string + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // IsXMLSchemaString returns true if this property has a type of "string". + // When true, use the GetXMLSchemaString and SetXMLSchemaString + // methods to access and set this property. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsFormerTypePropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsFormerType". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsFormerTypePropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsFormerTypePropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error + // SetXMLSchemaString sets the value of this property. Calling + // IsXMLSchemaString afterwards returns true. + SetXMLSchemaString(v string) +} + +// On a Tombstone object, the formerType property identifies the type of the +// object that was deleted. +// +// Example 142 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185b-jsonld): +// +// { +// "formerType": "/Image", +// "summary": "This image has been deleted", +// "type": "Tombstone", +// "url": "http://example.org/image/2" +// } +type ActivityStreamsFormerTypeProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "formerType". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "formerType". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "formerType". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "formerType". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "formerType". + // Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "formerType". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "formerType". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "formerType". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "formerType". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "formerType". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "formerType". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "formerType". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "formerType". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "formerType". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "formerType". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "formerType". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "formerType". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "formerType". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "formerType". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "formerType". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "formerType" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "formerType". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // AppendXMLSchemaString appends a string value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaString(v string) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsFormerTypePropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsFormerTypePropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsFormerTypePropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "formerType". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "formerType". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "formerType". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "formerType". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "formerType". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "formerType". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "formerType". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "formerType". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "formerType". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "formerType". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "formerType". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "formerType". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "formerType". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "formerType". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // InsertXMLSchemaString inserts a string value at the specified index for + // a property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertXMLSchemaString(idx int, v string) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "formerType" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsFormerTypeProperty) bool + // Name returns the name of this property ("formerType") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "formerType". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "formerType". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "formerType". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "formerType". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "formerType". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "formerType". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "formerType". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "formerType". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "formerType". Invalidates + // all iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "formerType". Invalidates + // all iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "formerType". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "formerType". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "formerType". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "formerType". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "formerType". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "formerType". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "formerType". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "formerType". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "formerType". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "formerType". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "formerType". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "formerType". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "formerType". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "formerType". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "formerType". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "formerType". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "formerType". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // PrependXMLSchemaString prepends a string value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependXMLSchemaString(v string) + // Remove deletes an element at the specified index from a list of the + // property "formerType", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "formerType". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "formerType". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "formerType". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "formerType". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "formerType". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "formerType". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "formerType". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "formerType". Panics + // if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "formerType". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "formerType". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "formerType". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "formerType". Panics if the index + // is out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "formerType". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // SetXMLSchemaString sets a string value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetXMLSchemaString(idx int, v string) + // Swap swaps the location of values at two indices for the "formerType" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_generator_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_generator_interface.go new file mode 100644 index 000000000..380de7732 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_generator_interface.go @@ -0,0 +1,2054 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsGeneratorPropertyIterator represents a single value for the +// "generator" property. +type ActivityStreamsGeneratorPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsGeneratorPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsGenerator". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsGeneratorPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsGeneratorPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies the entity (e.g. an application) that generated the object. +// +// Example 78 (https://www.w3.org/TR/activitystreams-vocabulary/#ex75-jsonld): +// +// { +// "content": "This is all there is.", +// "generator": { +// "name": "Exampletron 3000", +// "type": "Application" +// }, +// "summary": "A simple note", +// "type": "Note" +// } +type ActivityStreamsGeneratorProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "generator". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "generator". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "generator". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "generator". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "generator". + // Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "generator". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "generator". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "generator". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "generator". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "generator". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "generator". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "generator". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "generator". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "generator". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "generator". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "generator". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "generator". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "generator". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "generator". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "generator". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "generator" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "generator". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "generator". Invalidates iterators that are traversing + // using Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "generator". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsGeneratorPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsGeneratorPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsGeneratorPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "generator". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "generator". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "generator". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "generator". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "generator". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "generator". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "generator". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "generator". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "generator". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "generator". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "generator". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "generator". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "generator". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "generator". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "generator" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsGeneratorProperty) bool + // Name returns the name of this property ("generator") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "generator". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "generator". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "generator". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "generator". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "generator". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "generator". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "generator". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "generator". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "generator". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "generator". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "generator". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "generator". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "generator". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "generator". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "generator". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "generator". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "generator". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "generator". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "generator". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "generator". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "generator". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "generator". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "generator". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "generator". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "generator". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "generator". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "generator". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "generator". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "generator". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "generator". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "generator". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "generator". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "generator", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "generator". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "generator". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "generator". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "generator". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "generator". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "generator". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "generator". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "generator". Panics + // if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "generator". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "generator". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "generator". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "generator". Panics if the index + // is out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "generator". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "generator". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "generator" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_height_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_height_interface.go new file mode 100644 index 000000000..1f55478ff --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_height_interface.go @@ -0,0 +1,64 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// On a Link, specifies a hint as to the rendering height in device-independent +// pixels of the linked resource. +// +// Example 120 (https://www.w3.org/TR/activitystreams-vocabulary/#ex136-jsonld): +// +// { +// "height": 100, +// "type": "Link", +// "url": "http://example.org/image.png", +// "width": 100 +// } +type ActivityStreamsHeightProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaNonNegativeInteger afterwards will return false. + Clear() + // Get returns the value of this property. When + // IsXMLSchemaNonNegativeInteger returns false, Get will return any + // arbitrary value. + Get() int + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaNonNegativeInteger returns true if this property is set and + // not an IRI. + IsXMLSchemaNonNegativeInteger() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsHeightProperty) bool + // Name returns the name of this property: "height". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling + // IsXMLSchemaNonNegativeInteger afterwards will return true. + Set(v int) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_href_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_href_interface.go new file mode 100644 index 000000000..1a66dbd9a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_href_interface.go @@ -0,0 +1,61 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// The target resource pointed to by a Link. +// +// Example 121 (https://www.w3.org/TR/activitystreams-vocabulary/#ex137-jsonld): +// +// { +// "mediaType": "text/html", +// "name": "Previous", +// "type": "Link", +// "url": "http://example.org/abc" +// } +type ActivityStreamsHrefProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaAnyURI afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsHrefProperty) bool + // Name returns the name of this property: "href". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go new file mode 100644 index 000000000..5a095a15f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go @@ -0,0 +1,63 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Hints as to the language used by the target resource. Value MUST be a [BCP47] +// Language-Tag. +// +// Example 122 (https://www.w3.org/TR/activitystreams-vocabulary/#ex138-jsonld): +// +// { +// "hreflang": "en", +// "mediaType": "text/html", +// "name": "Previous", +// "type": "Link", +// "url": "http://example.org/abc" +// } +type ActivityStreamsHreflangProperty interface { + // Clear ensures no value of this property is set. Calling IsRFCBcp47 + // afterwards will return false. + Clear() + // Get returns the value of this property. When IsRFCBcp47 returns false, + // Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsRFCBcp47 returns true if this property is set and not an IRI. + IsRFCBcp47() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsHreflangProperty) bool + // Name returns the name of this property: "hreflang". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsRFCBcp47 afterwards will + // return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_icon_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_icon_interface.go new file mode 100644 index 000000000..4fff82b39 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_icon_interface.go @@ -0,0 +1,276 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsIconPropertyIterator represents a single value for the "icon" +// property. +type ActivityStreamsIconPropertyIterator interface { + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsIconPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsIcon". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsIconPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsIconPropertyIterator + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Indicates an entity that describes an icon for this object. The image should +// have an aspect ratio of one (horizontal) to one (vertical) and should be +// suitable for presentation at a small size. +// +// Example 79 (https://www.w3.org/TR/activitystreams-vocabulary/#ex77-jsonld): +// +// { +// "content": "This is all there is.", +// "icon": { +// "height": 16, +// "name": "Note icon", +// "type": "Image", +// "url": "http://example.org/note.png", +// "width": 16 +// }, +// "summary": "A simple note", +// "type": "Note" +// } +// +// Example 80 (https://www.w3.org/TR/activitystreams-vocabulary/#ex78-jsonld): +// +// { +// "content": "A simple note", +// "icon": [ +// { +// "height": 16, +// "summary": "Note (16x16)", +// "type": "Image", +// "url": "http://example.org/note1.png", +// "width": 16 +// }, +// { +// "height": 32, +// "summary": "Note (32x32)", +// "type": "Image", +// "url": "http://example.org/note2.png", +// "width": 32 +// } +// ], +// "summary": "A simple note", +// "type": "Note" +// } +type ActivityStreamsIconProperty interface { + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "icon". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "icon". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "icon". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendIRI appends an IRI value to the back of a list of the property + // "icon" + AppendIRI(v *url.URL) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "icon". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "icon". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsIconPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsIconPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsIconPropertyIterator + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "icon". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "icon". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "icon". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // Insert inserts an IRI value at the specified index for a property + // "icon". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "icon". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "icon". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "icon" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsIconProperty) bool + // Name returns the name of this property ("icon") with any alias. + Name() string + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "icon". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "icon". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "icon". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependIRI prepends an IRI value to the front of a list of the property + // "icon". + PrependIRI(v *url.URL) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "icon". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "icon". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "icon", regardless of its type. Panics if the index is out + // of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "icon". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "icon". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "icon". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetIRI sets an IRI value to be at the specified index for the property + // "icon". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "icon". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetType sets an arbitrary type value to the specified index of the + // property "icon". Invalidates all iterators. Returns an error if the + // type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "icon" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_image_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_image_interface.go new file mode 100644 index 000000000..7e8879b49 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_image_interface.go @@ -0,0 +1,269 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsImagePropertyIterator represents a single value for the "image" +// property. +type ActivityStreamsImagePropertyIterator interface { + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsImagePropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsImage". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsImagePropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsImagePropertyIterator + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Indicates an entity that describes an image for this object. Unlike the icon +// property, there are no aspect ratio or display size limitations assumed. +// +// Example 81 (https://www.w3.org/TR/activitystreams-vocabulary/#ex80-jsonld): +// +// { +// "content": "This is all there is.", +// "image": { +// "name": "A Cat", +// "type": "Image", +// "url": "http://example.org/cat.png" +// }, +// "name": "A simple note", +// "type": "Note" +// } +// +// Example 82 (https://www.w3.org/TR/activitystreams-vocabulary/#ex81-jsonld): +// +// { +// "content": "This is all there is.", +// "image": [ +// { +// "name": "Cat 1", +// "type": "Image", +// "url": "http://example.org/cat1.png" +// }, +// { +// "name": "Cat 2", +// "type": "Image", +// "url": "http://example.org/cat2.png" +// } +// ], +// "name": "A simple note", +// "type": "Note" +// } +type ActivityStreamsImageProperty interface { + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "image". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "image". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "image". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendIRI appends an IRI value to the back of a list of the property + // "image" + AppendIRI(v *url.URL) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "image". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "image". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsImagePropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsImagePropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsImagePropertyIterator + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "image". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "image". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "image". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // Insert inserts an IRI value at the specified index for a property + // "image". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "image". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "image". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "image" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsImageProperty) bool + // Name returns the name of this property ("image") with any alias. + Name() string + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "image". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "image". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "image". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependIRI prepends an IRI value to the front of a list of the property + // "image". + PrependIRI(v *url.URL) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "image". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "image". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "image", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "image". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "image". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "image". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetIRI sets an IRI value to be at the specified index for the property + // "image". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "image". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetType sets an arbitrary type value to the specified index of the + // property "image". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "image" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go new file mode 100644 index 000000000..fcf1d5710 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go @@ -0,0 +1,2064 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsInReplyToPropertyIterator represents a single value for the +// "inReplyTo" property. +type ActivityStreamsInReplyToPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsInReplyToPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsInReplyTo". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsInReplyToPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsInReplyToPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Indicates one or more entities for which this object is considered a response. +// +// Example 83 (https://www.w3.org/TR/activitystreams-vocabulary/#ex83-jsonld): +// +// { +// "content": "This is all there is.", +// "inReplyTo": { +// "content": "What else is there?", +// "summary": "Previous note", +// "type": "Note" +// }, +// "summary": "A simple note", +// "type": "Note" +// } +// +// Example 84 (https://www.w3.org/TR/activitystreams-vocabulary/#ex84-jsonld): +// +// { +// "content": "This is all there is.", +// "inReplyTo": "http://example.org/posts/1", +// "summary": "A simple note", +// "type": "Note" +// } +type ActivityStreamsInReplyToProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "inReplyTo". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "inReplyTo". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "inReplyTo". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "inReplyTo". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "inReplyTo". + // Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "inReplyTo". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "inReplyTo". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "inReplyTo". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "inReplyTo". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "inReplyTo". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "inReplyTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "inReplyTo". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "inReplyTo". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "inReplyTo". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "inReplyTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "inReplyTo". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "inReplyTo". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "inReplyTo". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "inReplyTo" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "inReplyTo". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsInReplyToPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsInReplyToPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsInReplyToPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "inReplyTo". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "inReplyTo". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "inReplyTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "inReplyTo". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "inReplyTo". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "inReplyTo". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "inReplyTo". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "inReplyTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "inReplyTo". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "inReplyTo". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "inReplyTo". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "inReplyTo". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "inReplyTo". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "inReplyTo". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "inReplyTo" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsInReplyToProperty) bool + // Name returns the name of this property ("inReplyTo") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "inReplyTo". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "inReplyTo". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "inReplyTo". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "inReplyTo". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "inReplyTo". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "inReplyTo". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "inReplyTo". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "inReplyTo". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "inReplyTo". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "inReplyTo". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "inReplyTo". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "inReplyTo". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "inReplyTo". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "inReplyTo". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "inReplyTo", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "inReplyTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "inReplyTo". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "inReplyTo". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "inReplyTo". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "inReplyTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "inReplyTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "inReplyTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "inReplyTo". Panics + // if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "inReplyTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "inReplyTo". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "inReplyTo". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "inReplyTo". Panics if the index + // is out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "inReplyTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "inReplyTo". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "inReplyTo" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go new file mode 100644 index 000000000..cedb30e1b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go @@ -0,0 +1,105 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// A reference to an ActivityStreams OrderedCollection comprised of all the +// messages received by the actor. +// +// Example 9 (https://www.w3.org/TR/activitypub/#example9): +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// { +// "@language": "ja" +// } +// ], +// "followers": "https://kenzoishii.example.com/followers.json", +// "following": "https://kenzoishii.example.com/following.json", +// "icon": [ +// "https://kenzoishii.example.com/image/165987aklre4" +// ], +// "id": "https://kenzoishii.example.com/", +// "inbox": "https://kenzoishii.example.com/inbox.json", +// "liked": "https://kenzoishii.example.com/liked.json", +// "name": "石井健蔵", +// "outbox": "https://kenzoishii.example.com/feed.json", +// "preferredUsername": "kenzoishii", +// "summary": "この方はただの例です", +// "type": "Person" +// } +type ActivityStreamsInboxProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsInboxProperty) bool + // Name returns the name of this property: "inbox". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go new file mode 100644 index 000000000..7df49d1e1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go @@ -0,0 +1,2062 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsInstrumentPropertyIterator represents a single value for the +// "instrument" property. +type ActivityStreamsInstrumentPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsInstrumentPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsInstrument". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsInstrumentPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsInstrumentPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies one or more objects used (or to be used) in the completion of an +// Activity. +// +// Example 85 (https://www.w3.org/TR/activitystreams-vocabulary/#ex101-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "instrument": { +// "name": "Acme Music Service", +// "type": "Service" +// }, +// "object": "http://example.org/foo.mp3", +// "summary": "Sally listened to a piece of music on the Acme Music +// +// Service", +// +// "type": "Listen" +// } +type ActivityStreamsInstrumentProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "instrument". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "instrument". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "instrument". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "instrument". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "instrument". + // Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "instrument". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "instrument". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "instrument". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "instrument". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "instrument". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "instrument". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "instrument". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "instrument". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "instrument". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "instrument". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "instrument". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "instrument". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "instrument". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "instrument". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "instrument". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "instrument" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "instrument". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "instrument". Invalidates iterators that are traversing + // using Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsInstrumentPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsInstrumentPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsInstrumentPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "instrument". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "instrument". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "instrument". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "instrument". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "instrument". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "instrument". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "instrument". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "instrument". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "instrument". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "instrument". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "instrument". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "instrument". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "instrument". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "instrument". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "instrument" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsInstrumentProperty) bool + // Name returns the name of this property ("instrument") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "instrument". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "instrument". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "instrument". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "instrument". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "instrument". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "instrument". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "instrument". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "instrument". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "instrument". Invalidates + // all iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "instrument". Invalidates + // all iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "instrument". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "instrument". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "instrument". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "instrument". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "instrument". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "instrument". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "instrument". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "instrument". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "instrument". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "instrument". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "instrument". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "instrument". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "instrument". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "instrument". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "instrument". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "instrument". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "instrument". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "instrument". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "instrument", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "instrument". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "instrument". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "instrument". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "instrument". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "instrument". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "instrument". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "instrument". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "instrument". Panics + // if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "instrument". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "instrument". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "instrument". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "instrument". Panics if the index + // is out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "instrument". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "instrument" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_items_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_items_interface.go new file mode 100644 index 000000000..3e554b3e4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_items_interface.go @@ -0,0 +1,2042 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsItemsPropertyIterator represents a single value for the "items" +// property. +type ActivityStreamsItemsPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsItemsPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsItems". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsItemsPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsItemsPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies the items contained in a collection. The items might be ordered or +// unordered. +// +// Example 89 (https://www.w3.org/TR/activitystreams-vocabulary/#ex91-jsonld): +// +// { +// "items": [ +// { +// "name": "Reminder for Going-Away Party", +// "type": "Note" +// }, +// { +// "name": "Meeting 2016-11-17", +// "type": "Note" +// } +// ], +// "summary": "Sally's notes", +// "totalItems": 2, +// "type": "Collection" +// } +type ActivityStreamsItemsProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "items". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "items". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "items". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "items". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "items". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "items". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "items". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "items". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "items". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "items". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "items". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "items". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "items". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "items". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "items". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "items". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "items" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "items". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "items". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "items". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsItemsPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsItemsPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsItemsPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "items". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "items". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "items". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "items". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "items". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "items". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "items". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "items". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "items". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "items". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "items". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "items". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "items". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "items". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "items" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsItemsProperty) bool + // Name returns the name of this property ("items") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "items". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "items". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "items". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "items". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "items". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "items". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "items". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "items". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "items". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "items". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "items". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "items". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "items". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "items". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "items". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "items". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "items". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "items". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "items". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "items". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "items". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "items". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "items". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "items". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "items". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "items". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "items". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "items". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "items". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "items". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "items". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "items". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "items". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "items". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "items". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "items". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "items". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "items". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "items". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "items". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "items". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "items", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "items". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "items". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "items". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "items". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "items". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "items". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "items". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "items". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "items". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "items". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "items". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "items". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "items". Panics if the index is out of bounds. Invalidates + // all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "items". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "items". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "items" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_last_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_last_interface.go new file mode 100644 index 000000000..c68eef3b9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_last_interface.go @@ -0,0 +1,134 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// In a paged Collection, indicates the furthest proceeding page of the collection. +// +// Example 86 (https://www.w3.org/TR/activitystreams-vocabulary/#ex87-jsonld): +// +// { +// "last": "http://example.org/collection?page=1", +// "summary": "A collection", +// "totalItems": 3, +// "type": "Collection" +// } +// +// Example 87 (https://www.w3.org/TR/activitystreams-vocabulary/#ex88-jsonld): +// +// { +// "last": { +// "summary": "Last Page", +// "type": "owl:Class", +// "url": "http://example.org/collection?page=1" +// }, +// "summary": "A collection", +// "totalItems": 5, +// "type": "Collection" +// } +type ActivityStreamsLastProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsLastProperty) bool + // Name returns the name of this property: "last". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go new file mode 100644 index 000000000..e3bc1d14e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go @@ -0,0 +1,63 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// The latitude of a place +// +// Example 124 (https://www.w3.org/TR/activitystreams-vocabulary/#ex140-jsonld): +// +// { +// "latitude": 36.75, +// "longitude": 119.7667, +// "name": "Fresno Area", +// "radius": 15, +// "type": "Place", +// "units": "miles" +// } +type ActivityStreamsLatitudeProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaFloat afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaFloat returns + // false, Get will return any arbitrary value. + Get() float64 + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaFloat returns true if this property is set and not an IRI. + IsXMLSchemaFloat() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsLatitudeProperty) bool + // Name returns the name of this property: "latitude". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaFloat + // afterwards will return true. + Set(v float64) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_liked_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_liked_interface.go new file mode 100644 index 000000000..5e48afe10 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_liked_interface.go @@ -0,0 +1,129 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// A link to an ActivityStreams collection of objects this actor has liked +// +// Example 9 (https://www.w3.org/TR/activitypub/#example9): +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// { +// "@language": "ja" +// } +// ], +// "followers": "https://kenzoishii.example.com/followers.json", +// "following": "https://kenzoishii.example.com/following.json", +// "icon": [ +// "https://kenzoishii.example.com/image/165987aklre4" +// ], +// "id": "https://kenzoishii.example.com/", +// "inbox": "https://kenzoishii.example.com/inbox.json", +// "liked": "https://kenzoishii.example.com/liked.json", +// "name": "石井健蔵", +// "outbox": "https://kenzoishii.example.com/feed.json", +// "preferredUsername": "kenzoishii", +// "summary": "この方はただの例です", +// "type": "Person" +// } +type ActivityStreamsLikedProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsLikedProperty) bool + // Name returns the name of this property: "liked". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_likes_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_likes_interface.go new file mode 100644 index 000000000..fac33a4e0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_likes_interface.go @@ -0,0 +1,105 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// This is a list of all Like activities with this object as the object property +type ActivityStreamsLikesProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsLikesProperty) bool + // Name returns the name of this property: "likes". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_location_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_location_interface.go new file mode 100644 index 000000000..2401bbaea --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_location_interface.go @@ -0,0 +1,2059 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsLocationPropertyIterator represents a single value for the +// "location" property. +type ActivityStreamsLocationPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsLocationPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsLocation". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsLocationPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsLocationPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Indicates one or more physical or logical locations associated with the object. +// +// Example 88 (https://www.w3.org/TR/activitystreams-vocabulary/#ex89-jsonld): +// +// { +// "location": { +// "altitude": 90, +// "latitude": 56.78, +// "longitude": 12.34, +// "name": "Over the Arabian Sea, east of Socotra Island Nature +// +// Sanctuary", +// +// "type": "Place", +// "units": "m" +// }, +// "name": "Sally", +// "type": "Person" +// } +type ActivityStreamsLocationProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "location". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "location". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "location". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "location". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "location". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "location". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "location". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "location". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "location". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "location". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "location". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "location". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "location". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "location" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "location". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "location". Invalidates iterators that are traversing + // using Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "location". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsLocationPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsLocationPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsLocationPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "location". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "location". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "location". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "location". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "location". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "location". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "location". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "location". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "location". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "location". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "location". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "location". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "location". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "location". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "location". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "location" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsLocationProperty) bool + // Name returns the name of this property ("location") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "location". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "location". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "location". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "location". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "location". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "location". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "location". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "location". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "location". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "location". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "location". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "location". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "location". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "location". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "location". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "location". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "location". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "location". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "location". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "location". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "location". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "location". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "location". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "location". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "location". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "location". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "location". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "location". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "location". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "location". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "location". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "location". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "location". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "location". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "location". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "location", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "location". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "location". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "location". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "location". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "location". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "location". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "location". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "location". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "location". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "location". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "location". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "location". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "location". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "location". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "location" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go new file mode 100644 index 000000000..c523b7c42 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go @@ -0,0 +1,63 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// The longitude of a place +// +// Example 125 (https://www.w3.org/TR/activitystreams-vocabulary/#ex141-jsonld): +// +// { +// "latitude": 36.75, +// "longitude": 119.7667, +// "name": "Fresno Area", +// "radius": 15, +// "type": "Place", +// "units": "miles" +// } +type ActivityStreamsLongitudeProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaFloat afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaFloat returns + // false, Get will return any arbitrary value. + Get() float64 + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaFloat returns true if this property is set and not an IRI. + IsXMLSchemaFloat() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsLongitudeProperty) bool + // Name returns the name of this property: "longitude". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaFloat + // afterwards will return true. + Set(v float64) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go new file mode 100644 index 000000000..c66ff0ae1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go @@ -0,0 +1,53 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Indicates that the actor manually approves Follow activities and that an +// automatic Accept should not be expected. +type ActivityStreamsManuallyApprovesFollowersProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaBoolean afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaBoolean returns + // false, Get will return any arbitrary value. + Get() bool + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaBoolean returns true if this property is set and not an IRI. + IsXMLSchemaBoolean() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsManuallyApprovesFollowersProperty) bool + // Name returns the name of this property: "manuallyApprovesFollowers". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaBoolean + // afterwards will return true. + Set(v bool) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go new file mode 100644 index 000000000..6ba878ad2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go @@ -0,0 +1,65 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// When used on a Link, identifies the MIME media type of the referenced resource. +// When used on an Object, identifies the MIME media type of the value of the +// content property. If not specified, the content property is assumed to +// contain text/html content. +// +// Example 126 (https://www.w3.org/TR/activitystreams-vocabulary/#ex142-jsonld): +// +// { +// "hreflang": "en", +// "mediaType": "text/html", +// "name": "Next", +// "type": "Link", +// "url": "http://example.org/abc" +// } +type ActivityStreamsMediaTypeProperty interface { + // Clear ensures no value of this property is set. Calling IsRFCRfc2045 + // afterwards will return false. + Clear() + // Get returns the value of this property. When IsRFCRfc2045 returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsRFCRfc2045 returns true if this property is set and not an IRI. + IsRFCRfc2045() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsMediaTypeProperty) bool + // Name returns the name of this property: "mediaType". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsRFCRfc2045 afterwards + // will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go new file mode 100644 index 000000000..ddba614ec --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go @@ -0,0 +1,54 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// URI/ID to which this Actor has moved. A set value indicates that the Actor is +// now active at the target URI, and is no longer active on the Actor model on +// which this property is set. +type ActivityStreamsMovedToProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaAnyURI afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsMovedToProperty) bool + // Name returns the name of this property: "movedTo". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_name_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_name_interface.go new file mode 100644 index 000000000..f46111dd1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_name_interface.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsNamePropertyIterator represents a single value for the "name" +// property. +type ActivityStreamsNamePropertyIterator interface { + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetLanguage returns the value for the specified BCP47 language code, or + // an empty string if it is either not a language map or no value is + // present. + GetLanguage(bcp47 string) string + // GetRDFLangString returns the value of this property. When + // IsRDFLangString returns false, GetRDFLangString will return an + // arbitrary value. + GetRDFLangString() map[string]string + // GetXMLSchemaString returns the value of this property. When + // IsXMLSchemaString returns false, GetXMLSchemaString will return an + // arbitrary value. + GetXMLSchemaString() string + // HasAny returns true if any of the values are set, except for the + // natural language map. When true, the specific has, getter, and + // setter methods may be used to determine what kind of value there is + // to access and set this property. To determine if the property was + // set as a natural language map, use the IsRDFLangString method + // instead. + HasAny() bool + // HasLanguage returns true if the natural language map has an entry for + // the specified BCP47 language code. + HasLanguage(bcp47 string) bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsRDFLangString returns true if this property has a type of + // "langString". When true, use the GetRDFLangString and + // SetRDFLangString methods to access and set this property.. To + // determine if the property was set as a natural language map, use + // the IsRDFLangString method instead. + IsRDFLangString() bool + // IsXMLSchemaString returns true if this property has a type of "string". + // When true, use the GetXMLSchemaString and SetXMLSchemaString + // methods to access and set this property.. To determine if the + // property was set as a natural language map, use the IsRDFLangString + // method instead. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsNamePropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsName". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsNamePropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsNamePropertyIterator + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetLanguage sets the value for the specified BCP47 language code. + SetLanguage(bcp47, value string) + // SetRDFLangString sets the value of this property and clears the natural + // language map. Calling IsRDFLangString afterwards will return true. + // Calling IsRDFLangString afterwards returns false. + SetRDFLangString(v map[string]string) + // SetXMLSchemaString sets the value of this property and clears the + // natural language map. Calling IsXMLSchemaString afterwards will + // return true. Calling IsRDFLangString afterwards returns false. + SetXMLSchemaString(v string) +} + +// A simple, human-readable, plain-text name for the object. HTML markup MUST NOT +// be included. The name MAY be expressed using multiple language-tagged +// values. +// +// Example 117 (https://www.w3.org/TR/activitystreams-vocabulary/#ex132-jsonld): +// +// { +// "name": "A simple note", +// "type": "Note" +// } +// +// Example 118 (https://www.w3.org/TR/activitystreams-vocabulary/#ex133-jsonld): +// +// { +// "nameMap": { +// "en": "A simple note", +// "es": "Una nota sencilla", +// "zh-hans": "一段简单的笔记" +// }, +// "type": "Note" +// } +type ActivityStreamsNameProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "name" + AppendIRI(v *url.URL) + // AppendRDFLangString appends a langString value to the back of a list of + // the property "name". Invalidates iterators that are traversing + // using Prev. + AppendRDFLangString(v map[string]string) + // AppendXMLSchemaString appends a string value to the back of a list of + // the property "name". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaString(v string) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsNamePropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsNamePropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsNamePropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "name". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertRDFLangString inserts a langString value at the specified index + // for a property "name". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertRDFLangString(idx int, v map[string]string) + // InsertXMLSchemaString inserts a string value at the specified index for + // a property "name". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertXMLSchemaString(idx int, v string) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "name" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsNameProperty) bool + // Name returns the name of this property ("name") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "name". + PrependIRI(v *url.URL) + // PrependRDFLangString prepends a langString value to the front of a list + // of the property "name". Invalidates all iterators. + PrependRDFLangString(v map[string]string) + // PrependXMLSchemaString prepends a string value to the front of a list + // of the property "name". Invalidates all iterators. + PrependXMLSchemaString(v string) + // Remove deletes an element at the specified index from a list of the + // property "name", regardless of its type. Panics if the index is out + // of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetIRI sets an IRI value to be at the specified index for the property + // "name". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetRDFLangString sets a langString value to be at the specified index + // for the property "name". Panics if the index is out of bounds. + // Invalidates all iterators. + SetRDFLangString(idx int, v map[string]string) + // SetXMLSchemaString sets a string value to be at the specified index for + // the property "name". Panics if the index is out of bounds. + // Invalidates all iterators. + SetXMLSchemaString(idx int, v string) + // Swap swaps the location of values at two indices for the "name" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_next_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_next_interface.go new file mode 100644 index 000000000..7386ecbe3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_next_interface.go @@ -0,0 +1,142 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// In a paged Collection, indicates the next page of items. +// +// Example 95 (https://www.w3.org/TR/activitystreams-vocabulary/#ex96-jsonld): +// +// { +// "items": [ +// "http://example.org/posts/1", +// "http://example.org/posts/2", +// "http://example.org/posts/3" +// ], +// "next": "http://example.org/collection?page=2", +// "summary": "Page 2 of Sally's blog posts", +// "type": "CollectionPage" +// } +// +// Example 96 (https://www.w3.org/TR/activitystreams-vocabulary/#ex97-jsonld): +// +// { +// "items": [ +// "http://example.org/posts/1", +// "http://example.org/posts/2", +// "http://example.org/posts/3" +// ], +// "next": { +// "name": "Next Page", +// "type": "owl:Class", +// "url": "http://example.org/collection?page=2" +// }, +// "summary": "Page 2 of Sally's blog posts", +// "type": "CollectionPage" +// } +type ActivityStreamsNextProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsNextProperty) bool + // Name returns the name of this property: "next". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_object_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_object_interface.go new file mode 100644 index 000000000..5ecc9b010 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_object_interface.go @@ -0,0 +1,2062 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsObjectPropertyIterator represents a single value for the +// "object" property. +type ActivityStreamsObjectPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsObjectPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsObject". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsObjectPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsObjectPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// When used within an Activity, describes the direct object of the activity. For +// instance, in the activity "John added a movie to his wishlist", the object +// of the activity is the movie added. When used within a Relationship +// describes the entity to which the subject is related. +// +// Example 97 (https://www.w3.org/TR/activitystreams-vocabulary/#ex98-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": "http://example.org/posts/1", +// "summary": "Sally liked a post", +// "type": "Like" +// } +// +// Example 98 (https://www.w3.org/TR/activitystreams-vocabulary/#ex99-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": { +// "content": "A simple note", +// "type": "Note" +// }, +// "type": "Like" +// } +// +// Example 99 (https://www.w3.org/TR/activitystreams-vocabulary/#ex100-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": [ +// "http://example.org/posts/1", +// { +// "content": "That is a tree.", +// "summary": "A simple note", +// "type": "Note" +// } +// ], +// "summary": "Sally liked a note", +// "type": "Like" +// } +type ActivityStreamsObjectProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "object". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "object". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "object". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "object". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "object". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "object". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "object". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "object". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "object". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "object". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "object". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "object". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "object". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "object". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "object". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "object". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "object" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "object". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "object". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "object". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsObjectPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsObjectPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsObjectPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "object". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "object". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "object". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "object". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "object". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "object". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "object". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "object". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "object". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "object". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "object". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "object". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "object". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "object". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "object" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsObjectProperty) bool + // Name returns the name of this property ("object") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "object". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "object". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "object". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "object". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "object". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "object". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "object". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "object". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "object". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "object". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "object". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "object". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "object". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "object". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "object". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "object". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "object". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "object". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "object". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "object". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "object". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "object". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "object". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "object". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "object". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "object". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "object". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "object". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "object". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "object". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "object". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "object". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "object". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "object". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "object". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "object". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "object". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "object". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "object". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "object". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "object". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "object", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "object". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "object". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "object". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "object". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "object". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "object". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "object". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "object". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "object". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "object". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "object". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "object". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "object". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "object". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "object" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go new file mode 100644 index 000000000..bde8a7953 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go @@ -0,0 +1,2042 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsOneOfPropertyIterator represents a single value for the "oneOf" +// property. +type ActivityStreamsOneOfPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsOneOfPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsOneOf". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsOneOfPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsOneOfPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies an exclusive option for a Question. Use of oneOf implies that the +// Question can have only a single answer. To indicate that a Question can +// have multiple answers, use anyOf. +// +// Example 91 (https://www.w3.org/TR/activitystreams-vocabulary/#ex93-jsonld): +// +// { +// "name": "What is the answer?", +// "oneOf": [ +// { +// "name": "Option A", +// "type": "Note" +// }, +// { +// "name": "Option B", +// "type": "Note" +// } +// ], +// "type": "Question" +// } +type ActivityStreamsOneOfProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "oneOf". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "oneOf". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "oneOf". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "oneOf". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "oneOf". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "oneOf". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "oneOf". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "oneOf". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "oneOf". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "oneOf". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "oneOf". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "oneOf". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "oneOf". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "oneOf". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "oneOf". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "oneOf". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "oneOf" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "oneOf". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "oneOf". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "oneOf". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsOneOfPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsOneOfPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsOneOfPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "oneOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "oneOf". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "oneOf". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "oneOf". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "oneOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "oneOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "oneOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "oneOf". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "oneOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "oneOf". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "oneOf". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "oneOf". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "oneOf". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "oneOf". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "oneOf" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsOneOfProperty) bool + // Name returns the name of this property ("oneOf") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "oneOf". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "oneOf". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "oneOf". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "oneOf". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "oneOf". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "oneOf". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "oneOf". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "oneOf". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "oneOf". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "oneOf". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "oneOf". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "oneOf". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "oneOf". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "oneOf". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "oneOf". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "oneOf". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "oneOf". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "oneOf", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "oneOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "oneOf". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "oneOf". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "oneOf". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "oneOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "oneOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "oneOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "oneOf". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "oneOf". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "oneOf". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "oneOf". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "oneOf". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "oneOf". Panics if the index is out of bounds. Invalidates + // all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "oneOf". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "oneOf". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "oneOf" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go new file mode 100644 index 000000000..0af6120f8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go @@ -0,0 +1,2062 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsOrderedItemsPropertyIterator represents a single value for the +// "orderedItems" property. +type ActivityStreamsOrderedItemsPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsOrderedItemsPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsOrderedItems". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsOrderedItemsPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsOrderedItemsPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies the items contained in an ordered collection. The items are ordered. +// +// Example 90 (https://www.w3.org/TR/activitystreams-vocabulary/#ex92-jsonld): +// +// { +// "orderedItems": [ +// { +// "name": "Meeting 2016-11-17", +// "type": "Note" +// }, +// { +// "name": "Reminder for Going-Away Party", +// "type": "Note" +// } +// ], +// "summary": "Sally's notes", +// "totalItems": 2, +// "type": "OrderedCollection" +// } +type ActivityStreamsOrderedItemsProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "orderedItems". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "orderedItems". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "orderedItems". + // Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "orderedItems". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "orderedItems". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "orderedItems". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "orderedItems". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "orderedItems". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "orderedItems". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "orderedItems". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "orderedItems". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "orderedItems". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "orderedItems". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "orderedItems" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "orderedItems". Invalidates iterators that + // are traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "orderedItems". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "orderedItems". Invalidates iterators that are traversing + // using Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsOrderedItemsPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsOrderedItemsPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsOrderedItemsPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "orderedItems". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "orderedItems". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "orderedItems". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "orderedItems". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "orderedItems". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "orderedItems". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "orderedItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "orderedItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "orderedItems". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "orderedItems". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "orderedItems". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "orderedItems". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "orderedItems". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "orderedItems". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "orderedItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "orderedItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "orderedItems". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "orderedItems". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "orderedItems" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsOrderedItemsProperty) bool + // Name returns the name of this property ("orderedItems") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "orderedItems". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "orderedItems". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "orderedItems". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "orderedItems". Invalidates + // all iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "orderedItems". Invalidates + // all iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "orderedItems". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "orderedItems". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "orderedItems". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "orderedItems". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "orderedItems". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "orderedItems". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "orderedItems". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "orderedItems". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "orderedItems". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "orderedItems". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "orderedItems". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "orderedItems". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "orderedItems". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "orderedItems", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "orderedItems". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "orderedItems". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "orderedItems". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "orderedItems". + // Panics if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "orderedItems". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "orderedItems". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "orderedItems". Panics if the + // index is out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "orderedItems". Panics if the index is out + // of bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "orderedItems". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + // Panics if the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "orderedItems" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_origin_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_origin_interface.go new file mode 100644 index 000000000..43afc1b56 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_origin_interface.go @@ -0,0 +1,2043 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsOriginPropertyIterator represents a single value for the +// "origin" property. +type ActivityStreamsOriginPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsOriginPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsOrigin". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsOriginPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsOriginPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Describes an indirect object of the activity from which the activity is +// directed. The precise meaning of the origin is the object of the English +// preposition "from". For instance, in the activity "John moved an item to +// List B from List A", the origin of the activity is "List A". +// +// Example 94 (https://www.w3.org/TR/activitystreams-vocabulary/#ex166-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": "http://example.org/posts/1", +// "origin": { +// "name": "List A", +// "type": "Collection" +// }, +// "summary": "Sally moved a post from List A to List B", +// "target": { +// "name": "List B", +// "type": "Collection" +// }, +// "type": "Move" +// } +type ActivityStreamsOriginProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "origin". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "origin". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "origin". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "origin". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "origin". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "origin". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "origin". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "origin". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "origin". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "origin". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "origin". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "origin". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "origin". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "origin". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "origin". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "origin". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "origin" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "origin". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "origin". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "origin". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsOriginPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsOriginPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsOriginPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "origin". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "origin". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "origin". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "origin". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "origin". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "origin". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "origin". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "origin". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "origin". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "origin". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "origin". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "origin". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "origin". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "origin". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "origin" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsOriginProperty) bool + // Name returns the name of this property ("origin") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "origin". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "origin". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "origin". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "origin". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "origin". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "origin". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "origin". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "origin". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "origin". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "origin". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "origin". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "origin". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "origin". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "origin". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "origin". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "origin". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "origin". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "origin". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "origin". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "origin". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "origin". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "origin". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "origin". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "origin". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "origin". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "origin", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "origin". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "origin". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "origin". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "origin". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "origin". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "origin". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "origin". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "origin". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "origin". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "origin". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "origin". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "origin". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "origin". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "origin". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "origin" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go new file mode 100644 index 000000000..9a4eb0635 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go @@ -0,0 +1,105 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// An ActivityStreams OrderedCollection comprised of all the messages produced by +// the actor +// +// Example 9 (https://www.w3.org/TR/activitypub/#example9): +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// { +// "@language": "ja" +// } +// ], +// "followers": "https://kenzoishii.example.com/followers.json", +// "following": "https://kenzoishii.example.com/following.json", +// "icon": [ +// "https://kenzoishii.example.com/image/165987aklre4" +// ], +// "id": "https://kenzoishii.example.com/", +// "inbox": "https://kenzoishii.example.com/inbox.json", +// "liked": "https://kenzoishii.example.com/liked.json", +// "name": "石井健蔵", +// "outbox": "https://kenzoishii.example.com/feed.json", +// "preferredUsername": "kenzoishii", +// "summary": "この方はただの例です", +// "type": "Person" +// } +type ActivityStreamsOutboxProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsOutboxProperty) bool + // Name returns the name of this property: "outbox". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go new file mode 100644 index 000000000..a9cbd7115 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go @@ -0,0 +1,156 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Identifies the Collection to which a CollectionPage objects items belong. +// +// Example 123 (https://www.w3.org/TR/activitystreams-vocabulary/#ex139-jsonld): +// +// { +// "id": "http://example.org/collection?page=1", +// "items": [ +// { +// "name": "Pizza Toppings to Try", +// "type": "Note" +// }, +// { +// "name": "Thought about California", +// "type": "Note" +// } +// ], +// "partOf": "http://example.org/collection", +// "summary": "Page 1 of Sally's notes", +// "type": "CollectionPage" +// } +type ActivityStreamsPartOfProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsPartOfProperty) bool + // Name returns the name of this property: "partOf". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go new file mode 100644 index 000000000..3cc09f68d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go @@ -0,0 +1,89 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// A short username which may be used to refer to the actor, with no uniqueness +// guarantees +type ActivityStreamsPreferredUsernameProperty interface { + // Clear ensures no value and no language map for this property is set. + // Calling HasAny or any of the 'Is' methods afterwards will return + // false. + Clear() + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetLanguage returns the value for the specified BCP47 language code, or + // an empty string if it is either not a language map or no value is + // present. + GetLanguage(bcp47 string) string + // GetRDFLangString returns the value of this property. When + // IsRDFLangString returns false, GetRDFLangString will return an + // arbitrary value. + GetRDFLangString() map[string]string + // GetXMLSchemaString returns the value of this property. When + // IsXMLSchemaString returns false, GetXMLSchemaString will return an + // arbitrary value. + GetXMLSchemaString() string + // HasAny returns true if any of the values are set, except for the + // natural language map. When true, the specific has, getter, and + // setter methods may be used to determine what kind of value there is + // to access and set this property. To determine if the property was + // set as a natural language map, use the IsRDFLangString method + // instead. + HasAny() bool + // HasLanguage returns true if the natural language map has an entry for + // the specified BCP47 language code. + HasLanguage(bcp47 string) bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsRDFLangString returns true if this property has a type of + // "langString". When true, use the GetRDFLangString and + // SetRDFLangString methods to access and set this property.. To + // determine if the property was set as a natural language map, use + // the IsRDFLangString method instead. + IsRDFLangString() bool + // IsXMLSchemaString returns true if this property has a type of "string". + // When true, use the GetXMLSchemaString and SetXMLSchemaString + // methods to access and set this property.. To determine if the + // property was set as a natural language map, use the IsRDFLangString + // method instead. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsPreferredUsernameProperty) bool + // Name returns the name of this property: "preferredUsername". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetLanguage sets the value for the specified BCP47 language code. + SetLanguage(bcp47, value string) + // SetRDFLangString sets the value of this property and clears the natural + // language map. Calling IsRDFLangString afterwards will return true. + // Calling IsRDFLangString afterwards returns false. + SetRDFLangString(v map[string]string) + // SetXMLSchemaString sets the value of this property and clears the + // natural language map. Calling IsXMLSchemaString afterwards will + // return true. Calling IsRDFLangString afterwards returns false. + SetXMLSchemaString(v string) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_prev_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_prev_interface.go new file mode 100644 index 000000000..f2e8e610e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_prev_interface.go @@ -0,0 +1,142 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// In a paged Collection, identifies the previous page of items. +// +// Example 100 (https://www.w3.org/TR/activitystreams-vocabulary/#ex104-jsonld): +// +// { +// "items": [ +// "http://example.org/posts/1", +// "http://example.org/posts/2", +// "http://example.org/posts/3" +// ], +// "prev": "http://example.org/collection?page=1", +// "summary": "Page 1 of Sally's blog posts", +// "type": "CollectionPage" +// } +// +// Example 101 (https://www.w3.org/TR/activitystreams-vocabulary/#ex105-jsonld): +// +// { +// "items": [ +// "http://example.org/posts/1", +// "http://example.org/posts/2", +// "http://example.org/posts/3" +// ], +// "prev": { +// "name": "Previous Page", +// "type": "owl:Class", +// "url": "http://example.org/collection?page=1" +// }, +// "summary": "Page 1 of Sally's blog posts", +// "type": "CollectionPage" +// } +type ActivityStreamsPrevProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsPrevProperty) bool + // Name returns the name of this property: "prev". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preview_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preview_interface.go new file mode 100644 index 000000000..210f801f0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_preview_interface.go @@ -0,0 +1,2047 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsPreviewPropertyIterator represents a single value for the +// "preview" property. +type ActivityStreamsPreviewPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsPreviewPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsPreview". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsPreviewPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsPreviewPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies an entity that provides a preview of this object. +// +// Example 102 (https://www.w3.org/TR/activitystreams-vocabulary/#ex106-jsonld): +// +// { +// "duration": "PT2H30M", +// "name": "Cool New Movie", +// "preview": { +// "duration": "PT1M", +// "name": "Trailer", +// "type": "Video", +// "url": { +// "mediaType": "video/mkv", +// "url": "http://example.org/trailer.mkv" +// } +// }, +// "type": "Video" +// } +type ActivityStreamsPreviewProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "preview". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "preview". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "preview". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "preview". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "preview". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "preview". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "preview". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "preview". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "preview" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "preview". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "preview". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "preview". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsPreviewPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsPreviewPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsPreviewPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "preview". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "preview". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "preview". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "preview". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "preview". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "preview". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "preview". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "preview". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "preview". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "preview". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "preview". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "preview". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "preview". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "preview". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "preview". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "preview". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "preview". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "preview". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "preview". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "preview" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsPreviewProperty) bool + // Name returns the name of this property ("preview") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "preview". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "preview". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "preview". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "preview". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "preview". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "preview". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "preview". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "preview". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "preview". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "preview". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "preview". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "preview". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "preview". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "preview". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "preview". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "preview". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "preview". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "preview". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "preview". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "preview". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "preview". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "preview". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "preview". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "preview". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "preview". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "preview". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "preview". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "preview". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "preview". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "preview". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "preview". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "preview". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "preview", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "preview". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "preview". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "preview". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "preview". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "preview". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "preview". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "preview". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "preview". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "preview". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "preview". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "preview". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "preview". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "preview". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "preview". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "preview" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_published_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_published_interface.go new file mode 100644 index 000000000..78bf3822c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_published_interface.go @@ -0,0 +1,64 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import ( + "net/url" + "time" +) + +// The date and time at which the object was published +// +// Example 128 (https://www.w3.org/TR/activitystreams-vocabulary/#ex145-jsonld): +// +// { +// "content": "Fish swim.", +// "published": "2014-12-12T12:12:12Z", +// "summary": "A simple note", +// "type": "Note" +// } +type ActivityStreamsPublishedProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaDateTime afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaDateTime + // returns false, Get will return any arbitrary value. + Get() time.Time + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaDateTime returns true if this property is set and not an IRI. + IsXMLSchemaDateTime() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsPublishedProperty) bool + // Name returns the name of this property: "published". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaDateTime + // afterwards will return true. + Set(v time.Time) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_radius_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_radius_interface.go new file mode 100644 index 000000000..e9f478770 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_radius_interface.go @@ -0,0 +1,65 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// The radius from the given latitude and longitude for a Place. The units is +// expressed by the units property. If units is not specified, the default is +// assumed to be "m" indicating "meters". +// +// Example 130 (https://www.w3.org/TR/activitystreams-vocabulary/#ex147-jsonld): +// +// { +// "latitude": 36.75, +// "longitude": 119.7667, +// "name": "Fresno Area", +// "radius": 15, +// "type": "Place", +// "units": "miles" +// } +type ActivityStreamsRadiusProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaFloat afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaFloat returns + // false, Get will return any arbitrary value. + Get() float64 + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaFloat returns true if this property is set and not an IRI. + IsXMLSchemaFloat() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsRadiusProperty) bool + // Name returns the name of this property: "radius". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaFloat + // afterwards will return true. + Set(v float64) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_rel_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_rel_interface.go new file mode 100644 index 000000000..edcf757b6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_rel_interface.go @@ -0,0 +1,146 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsRelPropertyIterator represents a single value for the "rel" +// property. +type ActivityStreamsRelPropertyIterator interface { + // Get returns the value of this property. When IsRFCRfc5988 returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsRFCRfc5988 returns true if this property is set and not an IRI. + IsRFCRfc5988() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsRelPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsRel". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsRelPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsRelPropertyIterator + // Set sets the value of this property. Calling IsRFCRfc5988 afterwards + // will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// A link relation associated with a Link. The value MUST conform to both the +// [HTML5] and [RFC5988] "link relation" definitions. In the [HTML5], any +// string not containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A), +// "FF" (U+000C), "CR" (U+000D) or "," (U+002C) characters can be used as a +// valid link relation. +// +// Example 131 (https://www.w3.org/TR/activitystreams-vocabulary/#ex149-jsonld): +// +// { +// "hreflang": "en", +// "mediaType": "text/html", +// "name": "Preview", +// "rel": [ +// "canonical", +// "preview" +// ], +// "type": "Link", +// "url": "http://example.org/abc" +// } +type ActivityStreamsRelProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "rel" + AppendIRI(v *url.URL) + // AppendRFCRfc5988 appends a rfc5988 value to the back of a list of the + // property "rel". Invalidates iterators that are traversing using + // Prev. + AppendRFCRfc5988(v string) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsRelPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsRelPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsRelPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "rel". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertRFCRfc5988 inserts a rfc5988 value at the specified index for a + // property "rel". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertRFCRfc5988(idx int, v string) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "rel" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsRelProperty) bool + // Name returns the name of this property ("rel") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "rel". + PrependIRI(v *url.URL) + // PrependRFCRfc5988 prepends a rfc5988 value to the front of a list of + // the property "rel". Invalidates all iterators. + PrependRFCRfc5988(v string) + // Remove deletes an element at the specified index from a list of the + // property "rel", regardless of its type. Panics if the index is out + // of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a rfc5988 value to be at the specified index for the property + // "rel". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v string) + // SetIRI sets an IRI value to be at the specified index for the property + // "rel". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the "rel" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go new file mode 100644 index 000000000..c355348ed --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go @@ -0,0 +1,1984 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsRelationshipPropertyIterator represents a single value for the +// "relationship" property. +type ActivityStreamsRelationshipPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsRelationshipPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsRelationship". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsRelationshipPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsRelationshipPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// On a Relationship object, the relationship property identifies the kind of +// relationship that exists between subject and object. +// +// Example 140 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22c-jsonld): +// +// { +// "object": { +// "name": "John", +// "type": "Person" +// }, +// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf", +// "subject": { +// "name": "Sally", +// "type": "Person" +// }, +// "summary": "Sally is an acquaintance of John's", +// "type": "Relationship" +// } +type ActivityStreamsRelationshipProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "relationship". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "relationship". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "relationship". + // Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "relationship". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "relationship". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "relationship". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "relationship". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "relationship". + // Invalidates iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "relationship". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "relationship". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "relationship". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "relationship". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "relationship". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "relationship" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "relationship". Invalidates iterators that + // are traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "relationship". Invalidates iterators that are traversing + // using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsRelationshipPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsRelationshipPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsRelationshipPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "relationship". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "relationship". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "relationship". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "relationship". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "relationship". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "relationship". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "relationship". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "relationship". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "relationship". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "relationship". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "relationship". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "relationship". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "relationship". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "relationship". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "relationship". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "relationship". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "relationship". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "relationship" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsRelationshipProperty) bool + // Name returns the name of this property ("relationship") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "relationship". Invalidates all + // iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "relationship". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "relationship". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "relationship". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "relationship". + // Invalidates all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "relationship". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "relationship". Invalidates all + // iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "relationship". Invalidates all + // iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "relationship". Invalidates + // all iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "relationship". Invalidates + // all iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "relationship". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "relationship". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "relationship". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "relationship". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "relationship". + // Invalidates all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "relationship". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "relationship". Invalidates all + // iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "relationship". Invalidates + // all iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "relationship". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "relationship". Invalidates all + // iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "relationship". Invalidates + // all iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "relationship". Invalidates all + // iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "relationship". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "relationship". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "relationship". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "relationship". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "relationship". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "relationship", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "relationship". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "relationship". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "relationship". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "relationship". + // Panics if the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "relationship". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "relationship". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "relationship". Panics if the + // index is out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "relationship". Panics if the index is out + // of bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "relationship". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + // Panics if the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "relationship" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_replies_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_replies_interface.go new file mode 100644 index 000000000..ecf57b8e8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_replies_interface.go @@ -0,0 +1,125 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Identifies a Collection containing objects considered to be responses to this +// object. +// +// Example 104 (https://www.w3.org/TR/activitystreams-vocabulary/#ex112-jsonld): +// +// { +// "content": "I am fine.", +// "id": "http://www.test.example/notes/1", +// "replies": { +// "items": { +// "content": "I am glad to hear it.", +// "inReplyTo": "http://www.test.example/notes/1", +// "summary": "A response to the note", +// "type": "Note" +// }, +// "totalItems": 1, +// "type": "Collection" +// }, +// "summary": "A simple note", +// "type": "Note" +// } +type ActivityStreamsRepliesProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsRepliesProperty) bool + // Name returns the name of this property: "replies". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_result_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_result_interface.go new file mode 100644 index 000000000..d81de3303 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_result_interface.go @@ -0,0 +1,2041 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsResultPropertyIterator represents a single value for the +// "result" property. +type ActivityStreamsResultPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsResultPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsResult". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsResultPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsResultPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Describes the result of the activity. For instance, if a particular action +// results in the creation of a new resource, the result property can be used +// to describe that new resource. +// +// Example 103 (https://www.w3.org/TR/activitystreams-vocabulary/#ex108-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": "http://example.org/flights/1", +// "result": { +// "name": "On Time", +// "type": "http://www.types.example/flightstatus" +// }, +// "summary": "Sally checked that her flight was on time", +// "type": [ +// "Activity", +// "http://www.verbs.example/Check" +// ] +// } +type ActivityStreamsResultProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "result". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "result". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "result". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "result". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "result". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "result". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "result". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "result". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "result". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "result". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "result". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "result". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "result". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "result". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "result". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "result". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "result" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "result". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "result". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "result". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsResultPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsResultPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsResultPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "result". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "result". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "result". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "result". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "result". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "result". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "result". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "result". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "result". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "result". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "result". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "result". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "result". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "result". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "result" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsResultProperty) bool + // Name returns the name of this property ("result") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "result". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "result". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "result". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "result". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "result". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "result". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "result". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "result". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "result". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "result". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "result". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "result". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "result". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "result". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "result". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "result". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "result". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "result". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "result". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "result". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "result". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "result". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "result". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "result". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "result". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "result". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "result". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "result". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "result". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "result". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "result". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "result". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "result". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "result". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "result". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "result". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "result". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "result". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "result". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "result". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "result". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "result", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "result". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "result". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "result". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "result". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "result". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "result". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "result". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "result". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "result". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "result". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "result". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "result". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "result". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "result". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "result" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go new file mode 100644 index 000000000..30a6563b6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go @@ -0,0 +1,132 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsSensitivePropertyIterator represents a single value for the +// "sensitive" property. +type ActivityStreamsSensitivePropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaBoolean returns + // false, Get will return any arbitrary value. + Get() bool + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaBoolean returns true if this property is set and not an IRI. + IsXMLSchemaBoolean() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsSensitivePropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsSensitive". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsSensitivePropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsSensitivePropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaBoolean + // afterwards will return true. + Set(v bool) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// Indicates that some users may wish to apply discretion about viewing this +// object's content, whether due to nudity, violence, or any other likely +// aspects that viewers may be sensitive to. +type ActivityStreamsSensitiveProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "sensitive" + AppendIRI(v *url.URL) + // AppendXMLSchemaBoolean appends a boolean value to the back of a list of + // the property "sensitive". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaBoolean(v bool) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsSensitivePropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsSensitivePropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsSensitivePropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "sensitive". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaBoolean inserts a boolean value at the specified index + // for a property "sensitive". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaBoolean(idx int, v bool) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "sensitive" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsSensitiveProperty) bool + // Name returns the name of this property ("sensitive") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "sensitive". + PrependIRI(v *url.URL) + // PrependXMLSchemaBoolean prepends a boolean value to the front of a list + // of the property "sensitive". Invalidates all iterators. + PrependXMLSchemaBoolean(v bool) + // Remove deletes an element at the specified index from a list of the + // property "sensitive", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a boolean value to be at the specified index for the property + // "sensitive". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v bool) + // SetIRI sets an IRI value to be at the specified index for the property + // "sensitive". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the "sensitive" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go new file mode 100644 index 000000000..67e4757f9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go @@ -0,0 +1,56 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// An optional endpoint used for wide delivery of publicly addressed activities +// and activities sent to followers. sharedInbox endpoints SHOULD also be +// publicly readable OrderedCollection objects containing objects addressed to +// the Public special collection. Reading from the sharedInbox endpoint MUST +// NOT present objects which are not addressed to the Public endpoint. +type ActivityStreamsSharedInboxProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaAnyURI afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsSharedInboxProperty) bool + // Name returns the name of this property: "sharedInbox". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_shares_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_shares_interface.go new file mode 100644 index 000000000..f0eafd3e9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_shares_interface.go @@ -0,0 +1,106 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// This is a list of all Announce activities with this object as the object +// property +type ActivityStreamsSharesProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsSharesProperty) bool + // Name returns the name of this property: "shares". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_source_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_source_interface.go new file mode 100644 index 000000000..9bb00e4b8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_source_interface.go @@ -0,0 +1,880 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// The source property is intended to convey some sort of source from which the +// content markup was derived, as a form of provenance, or to support future +// editing by clients. +// +// Example 8 (https://www.w3.org/TR/activitypub/#source-property): +// +// { +// "@context": [ +// "https://www.w3.org/ns/activitystreams", +// { +// "@language": "en" +// } +// ], +// "content": "\u003cp\u003eI \u003cem\u003ereally\u003c/em\u003e like +// +// strawberries!\u003c/p\u003e", +// +// "id": "http://postparty.example/p/2415", +// "source": { +// "content": "I *really* like strawberries!", +// "mediaType": "text/markdown" +// }, +// "type": "Note" +// } +type ActivityStreamsSourceProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsSourceProperty) bool + // Name returns the name of this property: "source". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go new file mode 100644 index 000000000..5dca404ad --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go @@ -0,0 +1,73 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// A non-negative integer value identifying the relative position within the +// logical view of a strictly ordered collection. +// +// Example 132 (https://www.w3.org/TR/activitystreams-vocabulary/#ex150-jsonld): +// +// { +// "orderedItems": [ +// { +// "name": "Density of Water", +// "type": "Note" +// }, +// { +// "name": "Air Mattress Idea", +// "type": "Note" +// } +// ], +// "startIndex": 0, +// "summary": "Page 1 of Sally's notes", +// "type": "OrderedCollectionPage" +// } +type ActivityStreamsStartIndexProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaNonNegativeInteger afterwards will return false. + Clear() + // Get returns the value of this property. When + // IsXMLSchemaNonNegativeInteger returns false, Get will return any + // arbitrary value. + Get() int + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaNonNegativeInteger returns true if this property is set and + // not an IRI. + IsXMLSchemaNonNegativeInteger() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsStartIndexProperty) bool + // Name returns the name of this property: "startIndex". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling + // IsXMLSchemaNonNegativeInteger afterwards will return true. + Set(v int) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go new file mode 100644 index 000000000..bae64843d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go @@ -0,0 +1,66 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import ( + "net/url" + "time" +) + +// The date and time describing the actual or expected starting time of the +// object. When used with an Activity object, for instance, the startTime +// property specifies the moment the activity began or is scheduled to begin. +// +// Example 129 (https://www.w3.org/TR/activitystreams-vocabulary/#ex146-jsonld): +// +// { +// "endTime": "2015-01-01T06:00:00-08:00", +// "name": "Going-Away Party for Jim", +// "startTime": "2014-12-31T23:00:00-08:00", +// "type": "Event" +// } +type ActivityStreamsStartTimeProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaDateTime afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaDateTime + // returns false, Get will return any arbitrary value. + Get() time.Time + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaDateTime returns true if this property is set and not an IRI. + IsXMLSchemaDateTime() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsStartTimeProperty) bool + // Name returns the name of this property: "startTime". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaDateTime + // afterwards will return true. + Set(v time.Time) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_streams_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_streams_interface.go new file mode 100644 index 000000000..1a1814f3a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_streams_interface.go @@ -0,0 +1,252 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsStreamsPropertyIterator represents a single value for the +// "streams" property. +type ActivityStreamsStreamsPropertyIterator interface { + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsStreamsPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsStreams". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsStreamsPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsStreamsPropertyIterator + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// A list of supplementary Collections which may be of interest +type ActivityStreamsStreamsProperty interface { + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "streams". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "streams". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "streams". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "streams". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendIRI appends an IRI value to the back of a list of the property + // "streams" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "streams". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsStreamsPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsStreamsPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsStreamsPropertyIterator + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "streams". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "streams". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "streams". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "streams". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // Insert inserts an IRI value at the specified index for a property + // "streams". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "streams". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "streams" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsStreamsProperty) bool + // Name returns the name of this property ("streams") with any alias. + Name() string + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "streams". Invalidates all + // iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "streams". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "streams". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "streams". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependIRI prepends an IRI value to the front of a list of the property + // "streams". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "streams". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "streams", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "streams". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "streams". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "streams". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "streams". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetIRI sets an IRI value to be at the specified index for the property + // "streams". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "streams". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "streams" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_subject_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_subject_interface.go new file mode 100644 index 000000000..55ab81707 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_subject_interface.go @@ -0,0 +1,875 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// On a Relationship object, the subject property identifies one of the connected +// individuals. For instance, for a Relationship object describing "John is +// related to Sally", subject would refer to John. +// +// Example 139 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22a-jsonld): +// +// { +// "object": { +// "name": "John", +// "type": "Person" +// }, +// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf", +// "subject": { +// "name": "Sally", +// "type": "Person" +// }, +// "summary": "Sally is an acquaintance of John's", +// "type": "Relationship" +// } +type ActivityStreamsSubjectProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsSubjectProperty) bool + // Name returns the name of this property: "subject". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_summary_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_summary_interface.go new file mode 100644 index 000000000..373abeda2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_summary_interface.go @@ -0,0 +1,200 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsSummaryPropertyIterator represents a single value for the +// "summary" property. +type ActivityStreamsSummaryPropertyIterator interface { + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetLanguage returns the value for the specified BCP47 language code, or + // an empty string if it is either not a language map or no value is + // present. + GetLanguage(bcp47 string) string + // GetRDFLangString returns the value of this property. When + // IsRDFLangString returns false, GetRDFLangString will return an + // arbitrary value. + GetRDFLangString() map[string]string + // GetXMLSchemaString returns the value of this property. When + // IsXMLSchemaString returns false, GetXMLSchemaString will return an + // arbitrary value. + GetXMLSchemaString() string + // HasAny returns true if any of the values are set, except for the + // natural language map. When true, the specific has, getter, and + // setter methods may be used to determine what kind of value there is + // to access and set this property. To determine if the property was + // set as a natural language map, use the IsRDFLangString method + // instead. + HasAny() bool + // HasLanguage returns true if the natural language map has an entry for + // the specified BCP47 language code. + HasLanguage(bcp47 string) bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsRDFLangString returns true if this property has a type of + // "langString". When true, use the GetRDFLangString and + // SetRDFLangString methods to access and set this property.. To + // determine if the property was set as a natural language map, use + // the IsRDFLangString method instead. + IsRDFLangString() bool + // IsXMLSchemaString returns true if this property has a type of "string". + // When true, use the GetXMLSchemaString and SetXMLSchemaString + // methods to access and set this property.. To determine if the + // property was set as a natural language map, use the IsRDFLangString + // method instead. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsSummaryPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsSummary". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsSummaryPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsSummaryPropertyIterator + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetLanguage sets the value for the specified BCP47 language code. + SetLanguage(bcp47, value string) + // SetRDFLangString sets the value of this property and clears the natural + // language map. Calling IsRDFLangString afterwards will return true. + // Calling IsRDFLangString afterwards returns false. + SetRDFLangString(v map[string]string) + // SetXMLSchemaString sets the value of this property and clears the + // natural language map. Calling IsXMLSchemaString afterwards will + // return true. Calling IsRDFLangString afterwards returns false. + SetXMLSchemaString(v string) +} + +// A natural language summarization of the object encoded as HTML. Multiple +// language tagged summaries MAY be provided. +// +// Example 133 (https://www.w3.org/TR/activitystreams-vocabulary/#ex152-jsonld): +// +// { +// "name": "Cane Sugar Processing", +// "summary": "A simple \u003cem\u003enote\u003c/em\u003e", +// "type": "Note" +// } +// +// Example 134 (https://www.w3.org/TR/activitystreams-vocabulary/#ex153-jsonld): +// +// { +// "name": "Cane Sugar Processing", +// "summaryMap": { +// "en": "A simple \u003cem\u003enote\u003c/em\u003e", +// "es": "Una \u003cem\u003enota\u003c/em\u003e sencilla", +// "zh-hans": "一段\u003cem\u003e简单的\u003c/em\u003e笔记" +// }, +// "type": "Note" +// } +type ActivityStreamsSummaryProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "summary" + AppendIRI(v *url.URL) + // AppendRDFLangString appends a langString value to the back of a list of + // the property "summary". Invalidates iterators that are traversing + // using Prev. + AppendRDFLangString(v map[string]string) + // AppendXMLSchemaString appends a string value to the back of a list of + // the property "summary". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaString(v string) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsSummaryPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsSummaryPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsSummaryPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "summary". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertRDFLangString inserts a langString value at the specified index + // for a property "summary". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertRDFLangString(idx int, v map[string]string) + // InsertXMLSchemaString inserts a string value at the specified index for + // a property "summary". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertXMLSchemaString(idx int, v string) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "summary" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsSummaryProperty) bool + // Name returns the name of this property ("summary") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "summary". + PrependIRI(v *url.URL) + // PrependRDFLangString prepends a langString value to the front of a list + // of the property "summary". Invalidates all iterators. + PrependRDFLangString(v map[string]string) + // PrependXMLSchemaString prepends a string value to the front of a list + // of the property "summary". Invalidates all iterators. + PrependXMLSchemaString(v string) + // Remove deletes an element at the specified index from a list of the + // property "summary", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetIRI sets an IRI value to be at the specified index for the property + // "summary". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetRDFLangString sets a langString value to be at the specified index + // for the property "summary". Panics if the index is out of bounds. + // Invalidates all iterators. + SetRDFLangString(idx int, v map[string]string) + // SetXMLSchemaString sets a string value to be at the specified index for + // the property "summary". Panics if the index is out of bounds. + // Invalidates all iterators. + SetXMLSchemaString(idx int, v string) + // Swap swaps the location of values at two indices for the "summary" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_tag_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_tag_interface.go new file mode 100644 index 000000000..9e6e6df5e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_tag_interface.go @@ -0,0 +1,2033 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsTagPropertyIterator represents a single value for the "tag" +// property. +type ActivityStreamsTagPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsTagPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsTag". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsTagPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsTagPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// One or more "tags" that have been associated with an objects. A tag can be any +// kind of Object. The key difference between attachment and tag is that the +// former implies association by inclusion, while the latter implies +// associated by reference. +// +// Example 105 (https://www.w3.org/TR/activitystreams-vocabulary/#ex118-jsonld): +// +// { +// "summary": "Picture of Sally", +// "tag": { +// "id": "http://sally.example.org", +// "name": "Sally", +// "type": "Person" +// }, +// "type": "Image", +// "url": "http://example.org/sally.jpg" +// } +type ActivityStreamsTagProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "tag". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "tag". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "tag". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "tag". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "tag". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "tag". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "tag". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "tag". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "tag". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "tag". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "tag". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "tag". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "tag". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "tag". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "tag". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "tag". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "tag". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "tag". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "tag". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "tag". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "tag". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "tag". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "tag". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "tag". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "tag". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "tag" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "tag". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "tag". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "tag". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. Returns an error if the type is not a valid one to set for + // this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsTagPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsTagPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsTagPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "tag". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "tag". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "tag". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "tag". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "tag". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "tag". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "tag". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "tag". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "tag". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "tag" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsTagProperty) bool + // Name returns the name of this property ("tag") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "tag". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "tag". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "tag". Invalidates all + // iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "tag". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "tag". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "tag". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "tag". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "tag". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "tag". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "tag". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "tag". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "tag". Invalidates all + // iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "tag". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "tag". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "tag". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "tag". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "tag". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "tag". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "tag". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "tag". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "tag". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "tag". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "tag". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "tag". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "tag". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "tag", regardless of its type. Panics if the index is out + // of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "tag". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "tag". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "tag". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "tag". Panics + // if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "tag". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "tag". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "tag". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "tag". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "tag". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "tag". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "tag". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "tag". Panics if the index is out + // of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "tag". Panics if the index is out of bounds. Invalidates + // all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "tag". Invalidates all iterators. Returns an error if the + // type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "tag" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_target_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_target_interface.go new file mode 100644 index 000000000..e94c4138e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_target_interface.go @@ -0,0 +1,2050 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsTargetPropertyIterator represents a single value for the +// "target" property. +type ActivityStreamsTargetPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsTargetPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsTarget". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsTargetPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsTargetPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Describes the indirect object, or target, of the activity. The precise meaning +// of the target is largely dependent on the type of action being described +// but will often be the object of the English preposition "to". For instance, +// in the activity "John added a movie to his wishlist", the target of the +// activity is John's wishlist. An activity can have more than one target. +// +// Example 106 (https://www.w3.org/TR/activitystreams-vocabulary/#ex120-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": "http://example.org/posts/1", +// "summary": "Sally offered the post to John", +// "target": "http://john.example.org", +// "type": "Offer" +// } +// +// Example 107 (https://www.w3.org/TR/activitystreams-vocabulary/#ex121-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": "http://example.org/posts/1", +// "summary": "Sally offered the post to John", +// "target": { +// "name": "John", +// "type": "Person" +// }, +// "type": "Offer" +// } +type ActivityStreamsTargetProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "target". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "target". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "target". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "target". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "target". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "target". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "target". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "target". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "target". Invalidates iterators + // that are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "target". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "target". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "target". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "target". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "target". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "target". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "target". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "target" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "target". Invalidates iterators that are traversing using + // Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "target". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "target". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsTargetPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsTargetPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsTargetPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "target". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "target". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "target". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "target". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "target". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "target". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "target". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "target". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "target". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "target". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property + // "target". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "target". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "target". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "target". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "target" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsTargetProperty) bool + // Name returns the name of this property ("target") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "target". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "target". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "target". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "target". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "target". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "target". Invalidates all + // iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "target". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "target". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "target". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "target". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "target". Invalidates + // all iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "target". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "target". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "target". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "target". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "target". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "target". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "target". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "target". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "target". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "target". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "target". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "target". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "target". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "target". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "target". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "target". Invalidates all + // iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "target". Invalidates + // all iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "target". Invalidates all + // iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "target". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "target". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "target". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "target". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "target". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "target". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "target". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "target". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "target". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "target". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "target". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "target". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "target", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "target". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "target". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "target". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "target". + // Panics if the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "target". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "target". Panics if the index + // is out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "target". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "target". Panics if + // the index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "target". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "target". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "target". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "target". Panics if the index is + // out of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "target". Panics if the index is out of + // bounds. Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "target". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "target" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_to_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_to_interface.go new file mode 100644 index 000000000..c625fff15 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_to_interface.go @@ -0,0 +1,2022 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsToPropertyIterator represents a single value for the "to" +// property. +type ActivityStreamsToPropertyIterator interface { + // GetActivityStreamsAccept returns the value of this property. When + // IsActivityStreamsAccept returns false, GetActivityStreamsAccept + // will return an arbitrary value. + GetActivityStreamsAccept() ActivityStreamsAccept + // GetActivityStreamsActivity returns the value of this property. When + // IsActivityStreamsActivity returns false, GetActivityStreamsActivity + // will return an arbitrary value. + GetActivityStreamsActivity() ActivityStreamsActivity + // GetActivityStreamsAdd returns the value of this property. When + // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will + // return an arbitrary value. + GetActivityStreamsAdd() ActivityStreamsAdd + // GetActivityStreamsAnnounce returns the value of this property. When + // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce + // will return an arbitrary value. + GetActivityStreamsAnnounce() ActivityStreamsAnnounce + // GetActivityStreamsApplication returns the value of this property. When + // IsActivityStreamsApplication returns false, + // GetActivityStreamsApplication will return an arbitrary value. + GetActivityStreamsApplication() ActivityStreamsApplication + // GetActivityStreamsArrive returns the value of this property. When + // IsActivityStreamsArrive returns false, GetActivityStreamsArrive + // will return an arbitrary value. + GetActivityStreamsArrive() ActivityStreamsArrive + // GetActivityStreamsArticle returns the value of this property. When + // IsActivityStreamsArticle returns false, GetActivityStreamsArticle + // will return an arbitrary value. + GetActivityStreamsArticle() ActivityStreamsArticle + // GetActivityStreamsAudio returns the value of this property. When + // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will + // return an arbitrary value. + GetActivityStreamsAudio() ActivityStreamsAudio + // GetActivityStreamsBlock returns the value of this property. When + // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will + // return an arbitrary value. + GetActivityStreamsBlock() ActivityStreamsBlock + // GetActivityStreamsCollection returns the value of this property. When + // IsActivityStreamsCollection returns false, + // GetActivityStreamsCollection will return an arbitrary value. + GetActivityStreamsCollection() ActivityStreamsCollection + // GetActivityStreamsCollectionPage returns the value of this property. + // When IsActivityStreamsCollectionPage returns false, + // GetActivityStreamsCollectionPage will return an arbitrary value. + GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage + // GetActivityStreamsCreate returns the value of this property. When + // IsActivityStreamsCreate returns false, GetActivityStreamsCreate + // will return an arbitrary value. + GetActivityStreamsCreate() ActivityStreamsCreate + // GetActivityStreamsDelete returns the value of this property. When + // IsActivityStreamsDelete returns false, GetActivityStreamsDelete + // will return an arbitrary value. + GetActivityStreamsDelete() ActivityStreamsDelete + // GetActivityStreamsDislike returns the value of this property. When + // IsActivityStreamsDislike returns false, GetActivityStreamsDislike + // will return an arbitrary value. + GetActivityStreamsDislike() ActivityStreamsDislike + // GetActivityStreamsDocument returns the value of this property. When + // IsActivityStreamsDocument returns false, GetActivityStreamsDocument + // will return an arbitrary value. + GetActivityStreamsDocument() ActivityStreamsDocument + // GetActivityStreamsEvent returns the value of this property. When + // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will + // return an arbitrary value. + GetActivityStreamsEvent() ActivityStreamsEvent + // GetActivityStreamsFlag returns the value of this property. When + // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will + // return an arbitrary value. + GetActivityStreamsFlag() ActivityStreamsFlag + // GetActivityStreamsFollow returns the value of this property. When + // IsActivityStreamsFollow returns false, GetActivityStreamsFollow + // will return an arbitrary value. + GetActivityStreamsFollow() ActivityStreamsFollow + // GetActivityStreamsGroup returns the value of this property. When + // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will + // return an arbitrary value. + GetActivityStreamsGroup() ActivityStreamsGroup + // GetActivityStreamsIgnore returns the value of this property. When + // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore + // will return an arbitrary value. + GetActivityStreamsIgnore() ActivityStreamsIgnore + // GetActivityStreamsImage returns the value of this property. When + // IsActivityStreamsImage returns false, GetActivityStreamsImage will + // return an arbitrary value. + GetActivityStreamsImage() ActivityStreamsImage + // GetActivityStreamsIntransitiveActivity returns the value of this + // property. When IsActivityStreamsIntransitiveActivity returns false, + // GetActivityStreamsIntransitiveActivity will return an arbitrary + // value. + GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity + // GetActivityStreamsInvite returns the value of this property. When + // IsActivityStreamsInvite returns false, GetActivityStreamsInvite + // will return an arbitrary value. + GetActivityStreamsInvite() ActivityStreamsInvite + // GetActivityStreamsJoin returns the value of this property. When + // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will + // return an arbitrary value. + GetActivityStreamsJoin() ActivityStreamsJoin + // GetActivityStreamsLeave returns the value of this property. When + // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will + // return an arbitrary value. + GetActivityStreamsLeave() ActivityStreamsLeave + // GetActivityStreamsLike returns the value of this property. When + // IsActivityStreamsLike returns false, GetActivityStreamsLike will + // return an arbitrary value. + GetActivityStreamsLike() ActivityStreamsLike + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsListen returns the value of this property. When + // IsActivityStreamsListen returns false, GetActivityStreamsListen + // will return an arbitrary value. + GetActivityStreamsListen() ActivityStreamsListen + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetActivityStreamsMove returns the value of this property. When + // IsActivityStreamsMove returns false, GetActivityStreamsMove will + // return an arbitrary value. + GetActivityStreamsMove() ActivityStreamsMove + // GetActivityStreamsNote returns the value of this property. When + // IsActivityStreamsNote returns false, GetActivityStreamsNote will + // return an arbitrary value. + GetActivityStreamsNote() ActivityStreamsNote + // GetActivityStreamsObject returns the value of this property. When + // IsActivityStreamsObject returns false, GetActivityStreamsObject + // will return an arbitrary value. + GetActivityStreamsObject() ActivityStreamsObject + // GetActivityStreamsOffer returns the value of this property. When + // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will + // return an arbitrary value. + GetActivityStreamsOffer() ActivityStreamsOffer + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetActivityStreamsOrganization returns the value of this property. When + // IsActivityStreamsOrganization returns false, + // GetActivityStreamsOrganization will return an arbitrary value. + GetActivityStreamsOrganization() ActivityStreamsOrganization + // GetActivityStreamsPage returns the value of this property. When + // IsActivityStreamsPage returns false, GetActivityStreamsPage will + // return an arbitrary value. + GetActivityStreamsPage() ActivityStreamsPage + // GetActivityStreamsPerson returns the value of this property. When + // IsActivityStreamsPerson returns false, GetActivityStreamsPerson + // will return an arbitrary value. + GetActivityStreamsPerson() ActivityStreamsPerson + // GetActivityStreamsPlace returns the value of this property. When + // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will + // return an arbitrary value. + GetActivityStreamsPlace() ActivityStreamsPlace + // GetActivityStreamsProfile returns the value of this property. When + // IsActivityStreamsProfile returns false, GetActivityStreamsProfile + // will return an arbitrary value. + GetActivityStreamsProfile() ActivityStreamsProfile + // GetActivityStreamsQuestion returns the value of this property. When + // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion + // will return an arbitrary value. + GetActivityStreamsQuestion() ActivityStreamsQuestion + // GetActivityStreamsRead returns the value of this property. When + // IsActivityStreamsRead returns false, GetActivityStreamsRead will + // return an arbitrary value. + GetActivityStreamsRead() ActivityStreamsRead + // GetActivityStreamsReject returns the value of this property. When + // IsActivityStreamsReject returns false, GetActivityStreamsReject + // will return an arbitrary value. + GetActivityStreamsReject() ActivityStreamsReject + // GetActivityStreamsRelationship returns the value of this property. When + // IsActivityStreamsRelationship returns false, + // GetActivityStreamsRelationship will return an arbitrary value. + GetActivityStreamsRelationship() ActivityStreamsRelationship + // GetActivityStreamsRemove returns the value of this property. When + // IsActivityStreamsRemove returns false, GetActivityStreamsRemove + // will return an arbitrary value. + GetActivityStreamsRemove() ActivityStreamsRemove + // GetActivityStreamsService returns the value of this property. When + // IsActivityStreamsService returns false, GetActivityStreamsService + // will return an arbitrary value. + GetActivityStreamsService() ActivityStreamsService + // GetActivityStreamsTentativeAccept returns the value of this property. + // When IsActivityStreamsTentativeAccept returns false, + // GetActivityStreamsTentativeAccept will return an arbitrary value. + GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept + // GetActivityStreamsTentativeReject returns the value of this property. + // When IsActivityStreamsTentativeReject returns false, + // GetActivityStreamsTentativeReject will return an arbitrary value. + GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject + // GetActivityStreamsTombstone returns the value of this property. When + // IsActivityStreamsTombstone returns false, + // GetActivityStreamsTombstone will return an arbitrary value. + GetActivityStreamsTombstone() ActivityStreamsTombstone + // GetActivityStreamsTravel returns the value of this property. When + // IsActivityStreamsTravel returns false, GetActivityStreamsTravel + // will return an arbitrary value. + GetActivityStreamsTravel() ActivityStreamsTravel + // GetActivityStreamsUndo returns the value of this property. When + // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will + // return an arbitrary value. + GetActivityStreamsUndo() ActivityStreamsUndo + // GetActivityStreamsUpdate returns the value of this property. When + // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate + // will return an arbitrary value. + GetActivityStreamsUpdate() ActivityStreamsUpdate + // GetActivityStreamsVideo returns the value of this property. When + // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will + // return an arbitrary value. + GetActivityStreamsVideo() ActivityStreamsVideo + // GetActivityStreamsView returns the value of this property. When + // IsActivityStreamsView returns false, GetActivityStreamsView will + // return an arbitrary value. + GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack + // GetGoToSocialAnnounceApproval returns the value of this property. When + // IsGoToSocialAnnounceApproval returns false, + // GetGoToSocialAnnounceApproval will return an arbitrary value. + GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval + // GetGoToSocialAnnounceAuthorization returns the value of this property. + // When IsGoToSocialAnnounceAuthorization returns false, + // GetGoToSocialAnnounceAuthorization will return an arbitrary value. + GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization + // GetGoToSocialAnnounceRequest returns the value of this property. When + // IsGoToSocialAnnounceRequest returns false, + // GetGoToSocialAnnounceRequest will return an arbitrary value. + GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest + // GetGoToSocialLikeApproval returns the value of this property. When + // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval + // will return an arbitrary value. + GetGoToSocialLikeApproval() GoToSocialLikeApproval + // GetGoToSocialLikeAuthorization returns the value of this property. When + // IsGoToSocialLikeAuthorization returns false, + // GetGoToSocialLikeAuthorization will return an arbitrary value. + GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization + // GetGoToSocialLikeRequest returns the value of this property. When + // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest + // will return an arbitrary value. + GetGoToSocialLikeRequest() GoToSocialLikeRequest + // GetGoToSocialReplyApproval returns the value of this property. When + // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval + // will return an arbitrary value. + GetGoToSocialReplyApproval() GoToSocialReplyApproval + // GetGoToSocialReplyAuthorization returns the value of this property. + // When IsGoToSocialReplyAuthorization returns false, + // GetGoToSocialReplyAuthorization will return an arbitrary value. + GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization + // GetGoToSocialReplyRequest returns the value of this property. When + // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest + // will return an arbitrary value. + GetGoToSocialReplyRequest() GoToSocialReplyRequest + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetSchemaPropertyValue returns the value of this property. When + // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will + // return an arbitrary value. + GetSchemaPropertyValue() SchemaPropertyValue + // GetTootEmoji returns the value of this property. When IsTootEmoji + // returns false, GetTootEmoji will return an arbitrary value. + GetTootEmoji() TootEmoji + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetTootIdentityProof returns the value of this property. When + // IsTootIdentityProof returns false, GetTootIdentityProof will return + // an arbitrary value. + GetTootIdentityProof() TootIdentityProof + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsAccept returns true if this property has a type of + // "Accept". When true, use the GetActivityStreamsAccept and + // SetActivityStreamsAccept methods to access and set this property. + IsActivityStreamsAccept() bool + // IsActivityStreamsActivity returns true if this property has a type of + // "Activity". When true, use the GetActivityStreamsActivity and + // SetActivityStreamsActivity methods to access and set this property. + IsActivityStreamsActivity() bool + // IsActivityStreamsAdd returns true if this property has a type of "Add". + // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd + // methods to access and set this property. + IsActivityStreamsAdd() bool + // IsActivityStreamsAnnounce returns true if this property has a type of + // "Announce". When true, use the GetActivityStreamsAnnounce and + // SetActivityStreamsAnnounce methods to access and set this property. + IsActivityStreamsAnnounce() bool + // IsActivityStreamsApplication returns true if this property has a type + // of "Application". When true, use the GetActivityStreamsApplication + // and SetActivityStreamsApplication methods to access and set this + // property. + IsActivityStreamsApplication() bool + // IsActivityStreamsArrive returns true if this property has a type of + // "Arrive". When true, use the GetActivityStreamsArrive and + // SetActivityStreamsArrive methods to access and set this property. + IsActivityStreamsArrive() bool + // IsActivityStreamsArticle returns true if this property has a type of + // "Article". When true, use the GetActivityStreamsArticle and + // SetActivityStreamsArticle methods to access and set this property. + IsActivityStreamsArticle() bool + // IsActivityStreamsAudio returns true if this property has a type of + // "Audio". When true, use the GetActivityStreamsAudio and + // SetActivityStreamsAudio methods to access and set this property. + IsActivityStreamsAudio() bool + // IsActivityStreamsBlock returns true if this property has a type of + // "Block". When true, use the GetActivityStreamsBlock and + // SetActivityStreamsBlock methods to access and set this property. + IsActivityStreamsBlock() bool + // IsActivityStreamsCollection returns true if this property has a type of + // "Collection". When true, use the GetActivityStreamsCollection and + // SetActivityStreamsCollection methods to access and set this + // property. + IsActivityStreamsCollection() bool + // IsActivityStreamsCollectionPage returns true if this property has a + // type of "CollectionPage". When true, use the + // GetActivityStreamsCollectionPage and + // SetActivityStreamsCollectionPage methods to access and set this + // property. + IsActivityStreamsCollectionPage() bool + // IsActivityStreamsCreate returns true if this property has a type of + // "Create". When true, use the GetActivityStreamsCreate and + // SetActivityStreamsCreate methods to access and set this property. + IsActivityStreamsCreate() bool + // IsActivityStreamsDelete returns true if this property has a type of + // "Delete". When true, use the GetActivityStreamsDelete and + // SetActivityStreamsDelete methods to access and set this property. + IsActivityStreamsDelete() bool + // IsActivityStreamsDislike returns true if this property has a type of + // "Dislike". When true, use the GetActivityStreamsDislike and + // SetActivityStreamsDislike methods to access and set this property. + IsActivityStreamsDislike() bool + // IsActivityStreamsDocument returns true if this property has a type of + // "Document". When true, use the GetActivityStreamsDocument and + // SetActivityStreamsDocument methods to access and set this property. + IsActivityStreamsDocument() bool + // IsActivityStreamsEvent returns true if this property has a type of + // "Event". When true, use the GetActivityStreamsEvent and + // SetActivityStreamsEvent methods to access and set this property. + IsActivityStreamsEvent() bool + // IsActivityStreamsFlag returns true if this property has a type of + // "Flag". When true, use the GetActivityStreamsFlag and + // SetActivityStreamsFlag methods to access and set this property. + IsActivityStreamsFlag() bool + // IsActivityStreamsFollow returns true if this property has a type of + // "Follow". When true, use the GetActivityStreamsFollow and + // SetActivityStreamsFollow methods to access and set this property. + IsActivityStreamsFollow() bool + // IsActivityStreamsGroup returns true if this property has a type of + // "Group". When true, use the GetActivityStreamsGroup and + // SetActivityStreamsGroup methods to access and set this property. + IsActivityStreamsGroup() bool + // IsActivityStreamsIgnore returns true if this property has a type of + // "Ignore". When true, use the GetActivityStreamsIgnore and + // SetActivityStreamsIgnore methods to access and set this property. + IsActivityStreamsIgnore() bool + // IsActivityStreamsImage returns true if this property has a type of + // "Image". When true, use the GetActivityStreamsImage and + // SetActivityStreamsImage methods to access and set this property. + IsActivityStreamsImage() bool + // IsActivityStreamsIntransitiveActivity returns true if this property has + // a type of "IntransitiveActivity". When true, use the + // GetActivityStreamsIntransitiveActivity and + // SetActivityStreamsIntransitiveActivity methods to access and set + // this property. + IsActivityStreamsIntransitiveActivity() bool + // IsActivityStreamsInvite returns true if this property has a type of + // "Invite". When true, use the GetActivityStreamsInvite and + // SetActivityStreamsInvite methods to access and set this property. + IsActivityStreamsInvite() bool + // IsActivityStreamsJoin returns true if this property has a type of + // "Join". When true, use the GetActivityStreamsJoin and + // SetActivityStreamsJoin methods to access and set this property. + IsActivityStreamsJoin() bool + // IsActivityStreamsLeave returns true if this property has a type of + // "Leave". When true, use the GetActivityStreamsLeave and + // SetActivityStreamsLeave methods to access and set this property. + IsActivityStreamsLeave() bool + // IsActivityStreamsLike returns true if this property has a type of + // "Like". When true, use the GetActivityStreamsLike and + // SetActivityStreamsLike methods to access and set this property. + IsActivityStreamsLike() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsListen returns true if this property has a type of + // "Listen". When true, use the GetActivityStreamsListen and + // SetActivityStreamsListen methods to access and set this property. + IsActivityStreamsListen() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsActivityStreamsMove returns true if this property has a type of + // "Move". When true, use the GetActivityStreamsMove and + // SetActivityStreamsMove methods to access and set this property. + IsActivityStreamsMove() bool + // IsActivityStreamsNote returns true if this property has a type of + // "Note". When true, use the GetActivityStreamsNote and + // SetActivityStreamsNote methods to access and set this property. + IsActivityStreamsNote() bool + // IsActivityStreamsObject returns true if this property has a type of + // "Object". When true, use the GetActivityStreamsObject and + // SetActivityStreamsObject methods to access and set this property. + IsActivityStreamsObject() bool + // IsActivityStreamsOffer returns true if this property has a type of + // "Offer". When true, use the GetActivityStreamsOffer and + // SetActivityStreamsOffer methods to access and set this property. + IsActivityStreamsOffer() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsActivityStreamsOrganization returns true if this property has a type + // of "Organization". When true, use the + // GetActivityStreamsOrganization and SetActivityStreamsOrganization + // methods to access and set this property. + IsActivityStreamsOrganization() bool + // IsActivityStreamsPage returns true if this property has a type of + // "Page". When true, use the GetActivityStreamsPage and + // SetActivityStreamsPage methods to access and set this property. + IsActivityStreamsPage() bool + // IsActivityStreamsPerson returns true if this property has a type of + // "Person". When true, use the GetActivityStreamsPerson and + // SetActivityStreamsPerson methods to access and set this property. + IsActivityStreamsPerson() bool + // IsActivityStreamsPlace returns true if this property has a type of + // "Place". When true, use the GetActivityStreamsPlace and + // SetActivityStreamsPlace methods to access and set this property. + IsActivityStreamsPlace() bool + // IsActivityStreamsProfile returns true if this property has a type of + // "Profile". When true, use the GetActivityStreamsProfile and + // SetActivityStreamsProfile methods to access and set this property. + IsActivityStreamsProfile() bool + // IsActivityStreamsQuestion returns true if this property has a type of + // "Question". When true, use the GetActivityStreamsQuestion and + // SetActivityStreamsQuestion methods to access and set this property. + IsActivityStreamsQuestion() bool + // IsActivityStreamsRead returns true if this property has a type of + // "Read". When true, use the GetActivityStreamsRead and + // SetActivityStreamsRead methods to access and set this property. + IsActivityStreamsRead() bool + // IsActivityStreamsReject returns true if this property has a type of + // "Reject". When true, use the GetActivityStreamsReject and + // SetActivityStreamsReject methods to access and set this property. + IsActivityStreamsReject() bool + // IsActivityStreamsRelationship returns true if this property has a type + // of "Relationship". When true, use the + // GetActivityStreamsRelationship and SetActivityStreamsRelationship + // methods to access and set this property. + IsActivityStreamsRelationship() bool + // IsActivityStreamsRemove returns true if this property has a type of + // "Remove". When true, use the GetActivityStreamsRemove and + // SetActivityStreamsRemove methods to access and set this property. + IsActivityStreamsRemove() bool + // IsActivityStreamsService returns true if this property has a type of + // "Service". When true, use the GetActivityStreamsService and + // SetActivityStreamsService methods to access and set this property. + IsActivityStreamsService() bool + // IsActivityStreamsTentativeAccept returns true if this property has a + // type of "TentativeAccept". When true, use the + // GetActivityStreamsTentativeAccept and + // SetActivityStreamsTentativeAccept methods to access and set this + // property. + IsActivityStreamsTentativeAccept() bool + // IsActivityStreamsTentativeReject returns true if this property has a + // type of "TentativeReject". When true, use the + // GetActivityStreamsTentativeReject and + // SetActivityStreamsTentativeReject methods to access and set this + // property. + IsActivityStreamsTentativeReject() bool + // IsActivityStreamsTombstone returns true if this property has a type of + // "Tombstone". When true, use the GetActivityStreamsTombstone and + // SetActivityStreamsTombstone methods to access and set this property. + IsActivityStreamsTombstone() bool + // IsActivityStreamsTravel returns true if this property has a type of + // "Travel". When true, use the GetActivityStreamsTravel and + // SetActivityStreamsTravel methods to access and set this property. + IsActivityStreamsTravel() bool + // IsActivityStreamsUndo returns true if this property has a type of + // "Undo". When true, use the GetActivityStreamsUndo and + // SetActivityStreamsUndo methods to access and set this property. + IsActivityStreamsUndo() bool + // IsActivityStreamsUpdate returns true if this property has a type of + // "Update". When true, use the GetActivityStreamsUpdate and + // SetActivityStreamsUpdate methods to access and set this property. + IsActivityStreamsUpdate() bool + // IsActivityStreamsVideo returns true if this property has a type of + // "Video". When true, use the GetActivityStreamsVideo and + // SetActivityStreamsVideo methods to access and set this property. + IsActivityStreamsVideo() bool + // IsActivityStreamsView returns true if this property has a type of + // "View". When true, use the GetActivityStreamsView and + // SetActivityStreamsView methods to access and set this property. + IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool + // IsGoToSocialAnnounceApproval returns true if this property has a type + // of "AnnounceApproval". When true, use the + // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval + // methods to access and set this property. + IsGoToSocialAnnounceApproval() bool + // IsGoToSocialAnnounceAuthorization returns true if this property has a + // type of "AnnounceAuthorization". When true, use the + // GetGoToSocialAnnounceAuthorization and + // SetGoToSocialAnnounceAuthorization methods to access and set this + // property. + IsGoToSocialAnnounceAuthorization() bool + // IsGoToSocialAnnounceRequest returns true if this property has a type of + // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest + // and SetGoToSocialAnnounceRequest methods to access and set this + // property. + IsGoToSocialAnnounceRequest() bool + // IsGoToSocialLikeApproval returns true if this property has a type of + // "LikeApproval". When true, use the GetGoToSocialLikeApproval and + // SetGoToSocialLikeApproval methods to access and set this property. + IsGoToSocialLikeApproval() bool + // IsGoToSocialLikeAuthorization returns true if this property has a type + // of "LikeAuthorization". When true, use the + // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization + // methods to access and set this property. + IsGoToSocialLikeAuthorization() bool + // IsGoToSocialLikeRequest returns true if this property has a type of + // "LikeRequest". When true, use the GetGoToSocialLikeRequest and + // SetGoToSocialLikeRequest methods to access and set this property. + IsGoToSocialLikeRequest() bool + // IsGoToSocialReplyApproval returns true if this property has a type of + // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and + // SetGoToSocialReplyApproval methods to access and set this property. + IsGoToSocialReplyApproval() bool + // IsGoToSocialReplyAuthorization returns true if this property has a type + // of "ReplyAuthorization". When true, use the + // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization + // methods to access and set this property. + IsGoToSocialReplyAuthorization() bool + // IsGoToSocialReplyRequest returns true if this property has a type of + // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and + // SetGoToSocialReplyRequest methods to access and set this property. + IsGoToSocialReplyRequest() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsSchemaPropertyValue returns true if this property has a type of + // "PropertyValue". When true, use the GetSchemaPropertyValue and + // SetSchemaPropertyValue methods to access and set this property. + IsSchemaPropertyValue() bool + // IsTootEmoji returns true if this property has a type of "Emoji". When + // true, use the GetTootEmoji and SetTootEmoji methods to access and + // set this property. + IsTootEmoji() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsTootIdentityProof returns true if this property has a type of + // "IdentityProof". When true, use the GetTootIdentityProof and + // SetTootIdentityProof methods to access and set this property. + IsTootIdentityProof() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsToPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsTo". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsToPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsToPropertyIterator + // SetActivityStreamsAccept sets the value of this property. Calling + // IsActivityStreamsAccept afterwards returns true. + SetActivityStreamsAccept(v ActivityStreamsAccept) + // SetActivityStreamsActivity sets the value of this property. Calling + // IsActivityStreamsActivity afterwards returns true. + SetActivityStreamsActivity(v ActivityStreamsActivity) + // SetActivityStreamsAdd sets the value of this property. Calling + // IsActivityStreamsAdd afterwards returns true. + SetActivityStreamsAdd(v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets the value of this property. Calling + // IsActivityStreamsAnnounce afterwards returns true. + SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets the value of this property. Calling + // IsActivityStreamsApplication afterwards returns true. + SetActivityStreamsApplication(v ActivityStreamsApplication) + // SetActivityStreamsArrive sets the value of this property. Calling + // IsActivityStreamsArrive afterwards returns true. + SetActivityStreamsArrive(v ActivityStreamsArrive) + // SetActivityStreamsArticle sets the value of this property. Calling + // IsActivityStreamsArticle afterwards returns true. + SetActivityStreamsArticle(v ActivityStreamsArticle) + // SetActivityStreamsAudio sets the value of this property. Calling + // IsActivityStreamsAudio afterwards returns true. + SetActivityStreamsAudio(v ActivityStreamsAudio) + // SetActivityStreamsBlock sets the value of this property. Calling + // IsActivityStreamsBlock afterwards returns true. + SetActivityStreamsBlock(v ActivityStreamsBlock) + // SetActivityStreamsCollection sets the value of this property. Calling + // IsActivityStreamsCollection afterwards returns true. + SetActivityStreamsCollection(v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets the value of this property. + // Calling IsActivityStreamsCollectionPage afterwards returns true. + SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets the value of this property. Calling + // IsActivityStreamsCreate afterwards returns true. + SetActivityStreamsCreate(v ActivityStreamsCreate) + // SetActivityStreamsDelete sets the value of this property. Calling + // IsActivityStreamsDelete afterwards returns true. + SetActivityStreamsDelete(v ActivityStreamsDelete) + // SetActivityStreamsDislike sets the value of this property. Calling + // IsActivityStreamsDislike afterwards returns true. + SetActivityStreamsDislike(v ActivityStreamsDislike) + // SetActivityStreamsDocument sets the value of this property. Calling + // IsActivityStreamsDocument afterwards returns true. + SetActivityStreamsDocument(v ActivityStreamsDocument) + // SetActivityStreamsEvent sets the value of this property. Calling + // IsActivityStreamsEvent afterwards returns true. + SetActivityStreamsEvent(v ActivityStreamsEvent) + // SetActivityStreamsFlag sets the value of this property. Calling + // IsActivityStreamsFlag afterwards returns true. + SetActivityStreamsFlag(v ActivityStreamsFlag) + // SetActivityStreamsFollow sets the value of this property. Calling + // IsActivityStreamsFollow afterwards returns true. + SetActivityStreamsFollow(v ActivityStreamsFollow) + // SetActivityStreamsGroup sets the value of this property. Calling + // IsActivityStreamsGroup afterwards returns true. + SetActivityStreamsGroup(v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets the value of this property. Calling + // IsActivityStreamsIgnore afterwards returns true. + SetActivityStreamsIgnore(v ActivityStreamsIgnore) + // SetActivityStreamsImage sets the value of this property. Calling + // IsActivityStreamsImage afterwards returns true. + SetActivityStreamsImage(v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets the value of this property. + // Calling IsActivityStreamsIntransitiveActivity afterwards returns + // true. + SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets the value of this property. Calling + // IsActivityStreamsInvite afterwards returns true. + SetActivityStreamsInvite(v ActivityStreamsInvite) + // SetActivityStreamsJoin sets the value of this property. Calling + // IsActivityStreamsJoin afterwards returns true. + SetActivityStreamsJoin(v ActivityStreamsJoin) + // SetActivityStreamsLeave sets the value of this property. Calling + // IsActivityStreamsLeave afterwards returns true. + SetActivityStreamsLeave(v ActivityStreamsLeave) + // SetActivityStreamsLike sets the value of this property. Calling + // IsActivityStreamsLike afterwards returns true. + SetActivityStreamsLike(v ActivityStreamsLike) + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsListen sets the value of this property. Calling + // IsActivityStreamsListen afterwards returns true. + SetActivityStreamsListen(v ActivityStreamsListen) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetActivityStreamsMove sets the value of this property. Calling + // IsActivityStreamsMove afterwards returns true. + SetActivityStreamsMove(v ActivityStreamsMove) + // SetActivityStreamsNote sets the value of this property. Calling + // IsActivityStreamsNote afterwards returns true. + SetActivityStreamsNote(v ActivityStreamsNote) + // SetActivityStreamsObject sets the value of this property. Calling + // IsActivityStreamsObject afterwards returns true. + SetActivityStreamsObject(v ActivityStreamsObject) + // SetActivityStreamsOffer sets the value of this property. Calling + // IsActivityStreamsOffer afterwards returns true. + SetActivityStreamsOffer(v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets the value of this property. Calling + // IsActivityStreamsOrganization afterwards returns true. + SetActivityStreamsOrganization(v ActivityStreamsOrganization) + // SetActivityStreamsPage sets the value of this property. Calling + // IsActivityStreamsPage afterwards returns true. + SetActivityStreamsPage(v ActivityStreamsPage) + // SetActivityStreamsPerson sets the value of this property. Calling + // IsActivityStreamsPerson afterwards returns true. + SetActivityStreamsPerson(v ActivityStreamsPerson) + // SetActivityStreamsPlace sets the value of this property. Calling + // IsActivityStreamsPlace afterwards returns true. + SetActivityStreamsPlace(v ActivityStreamsPlace) + // SetActivityStreamsProfile sets the value of this property. Calling + // IsActivityStreamsProfile afterwards returns true. + SetActivityStreamsProfile(v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets the value of this property. Calling + // IsActivityStreamsQuestion afterwards returns true. + SetActivityStreamsQuestion(v ActivityStreamsQuestion) + // SetActivityStreamsRead sets the value of this property. Calling + // IsActivityStreamsRead afterwards returns true. + SetActivityStreamsRead(v ActivityStreamsRead) + // SetActivityStreamsReject sets the value of this property. Calling + // IsActivityStreamsReject afterwards returns true. + SetActivityStreamsReject(v ActivityStreamsReject) + // SetActivityStreamsRelationship sets the value of this property. Calling + // IsActivityStreamsRelationship afterwards returns true. + SetActivityStreamsRelationship(v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets the value of this property. Calling + // IsActivityStreamsRemove afterwards returns true. + SetActivityStreamsRemove(v ActivityStreamsRemove) + // SetActivityStreamsService sets the value of this property. Calling + // IsActivityStreamsService afterwards returns true. + SetActivityStreamsService(v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets the value of this property. + // Calling IsActivityStreamsTentativeAccept afterwards returns true. + SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets the value of this property. + // Calling IsActivityStreamsTentativeReject afterwards returns true. + SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets the value of this property. Calling + // IsActivityStreamsTombstone afterwards returns true. + SetActivityStreamsTombstone(v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets the value of this property. Calling + // IsActivityStreamsTravel afterwards returns true. + SetActivityStreamsTravel(v ActivityStreamsTravel) + // SetActivityStreamsUndo sets the value of this property. Calling + // IsActivityStreamsUndo afterwards returns true. + SetActivityStreamsUndo(v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets the value of this property. Calling + // IsActivityStreamsUpdate afterwards returns true. + SetActivityStreamsUpdate(v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets the value of this property. Calling + // IsActivityStreamsVideo afterwards returns true. + SetActivityStreamsVideo(v ActivityStreamsVideo) + // SetActivityStreamsView sets the value of this property. Calling + // IsActivityStreamsView afterwards returns true. + SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets the value of this property. Calling + // IsGoToSocialAnnounceApproval afterwards returns true. + SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets the value of this property. + // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. + SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets the value of this property. Calling + // IsGoToSocialAnnounceRequest afterwards returns true. + SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets the value of this property. Calling + // IsGoToSocialLikeApproval afterwards returns true. + SetGoToSocialLikeApproval(v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets the value of this property. Calling + // IsGoToSocialLikeAuthorization afterwards returns true. + SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets the value of this property. Calling + // IsGoToSocialLikeRequest afterwards returns true. + SetGoToSocialLikeRequest(v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets the value of this property. Calling + // IsGoToSocialReplyApproval afterwards returns true. + SetGoToSocialReplyApproval(v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets the value of this property. + // Calling IsGoToSocialReplyAuthorization afterwards returns true. + SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets the value of this property. Calling + // IsGoToSocialReplyRequest afterwards returns true. + SetGoToSocialReplyRequest(v GoToSocialReplyRequest) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetSchemaPropertyValue sets the value of this property. Calling + // IsSchemaPropertyValue afterwards returns true. + SetSchemaPropertyValue(v SchemaPropertyValue) + // SetTootEmoji sets the value of this property. Calling IsTootEmoji + // afterwards returns true. + SetTootEmoji(v TootEmoji) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetTootIdentityProof sets the value of this property. Calling + // IsTootIdentityProof afterwards returns true. + SetTootIdentityProof(v TootIdentityProof) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Identifies an entity considered to be part of the public primary audience of an +// Object +// +// Example 108 (https://www.w3.org/TR/activitystreams-vocabulary/#ex123-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": "http://example.org/posts/1", +// "summary": "Sally offered the post to John", +// "target": "http://john.example.org", +// "to": "http://joe.example.org", +// "type": "Offer" +// } +type ActivityStreamsToProperty interface { + // AppendActivityStreamsAccept appends a Accept value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAccept(v ActivityStreamsAccept) + // AppendActivityStreamsActivity appends a Activity value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsActivity(v ActivityStreamsActivity) + // AppendActivityStreamsAdd appends a Add value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsAdd(v ActivityStreamsAdd) + // AppendActivityStreamsAnnounce appends a Announce value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // AppendActivityStreamsApplication appends a Application value to the + // back of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsApplication(v ActivityStreamsApplication) + // AppendActivityStreamsArrive appends a Arrive value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArrive(v ActivityStreamsArrive) + // AppendActivityStreamsArticle appends a Article value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsArticle(v ActivityStreamsArticle) + // AppendActivityStreamsAudio appends a Audio value to the back of a list + // of the property "to". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsAudio(v ActivityStreamsAudio) + // AppendActivityStreamsBlock appends a Block value to the back of a list + // of the property "to". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsBlock(v ActivityStreamsBlock) + // AppendActivityStreamsCollection appends a Collection value to the back + // of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCollection(v ActivityStreamsCollection) + // AppendActivityStreamsCollectionPage appends a CollectionPage value to + // the back of a list of the property "to". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // AppendActivityStreamsCreate appends a Create value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsCreate(v ActivityStreamsCreate) + // AppendActivityStreamsDelete appends a Delete value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDelete(v ActivityStreamsDelete) + // AppendActivityStreamsDislike appends a Dislike value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDislike(v ActivityStreamsDislike) + // AppendActivityStreamsDocument appends a Document value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsDocument(v ActivityStreamsDocument) + // AppendActivityStreamsEvent appends a Event value to the back of a list + // of the property "to". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsEvent(v ActivityStreamsEvent) + // AppendActivityStreamsFlag appends a Flag value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsFlag(v ActivityStreamsFlag) + // AppendActivityStreamsFollow appends a Follow value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsFollow(v ActivityStreamsFollow) + // AppendActivityStreamsGroup appends a Group value to the back of a list + // of the property "to". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsGroup(v ActivityStreamsGroup) + // AppendActivityStreamsIgnore appends a Ignore value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsIgnore(v ActivityStreamsIgnore) + // AppendActivityStreamsImage appends a Image value to the back of a list + // of the property "to". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsImage(v ActivityStreamsImage) + // AppendActivityStreamsIntransitiveActivity appends a + // IntransitiveActivity value to the back of a list of the property + // "to". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // AppendActivityStreamsInvite appends a Invite value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsInvite(v ActivityStreamsInvite) + // AppendActivityStreamsJoin appends a Join value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsJoin(v ActivityStreamsJoin) + // AppendActivityStreamsLeave appends a Leave value to the back of a list + // of the property "to". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsLeave(v ActivityStreamsLeave) + // AppendActivityStreamsLike appends a Like value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLike(v ActivityStreamsLike) + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsListen appends a Listen value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsListen(v ActivityStreamsListen) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendActivityStreamsMove appends a Move value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsMove(v ActivityStreamsMove) + // AppendActivityStreamsNote appends a Note value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsNote(v ActivityStreamsNote) + // AppendActivityStreamsObject appends a Object value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsObject(v ActivityStreamsObject) + // AppendActivityStreamsOffer appends a Offer value to the back of a list + // of the property "to". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsOffer(v ActivityStreamsOffer) + // AppendActivityStreamsOrderedCollection appends a OrderedCollection + // value to the back of a list of the property "to". Invalidates + // iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // AppendActivityStreamsOrderedCollectionPage appends a + // OrderedCollectionPage value to the back of a list of the property + // "to". Invalidates iterators that are traversing using Prev. + AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // AppendActivityStreamsOrganization appends a Organization value to the + // back of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsOrganization(v ActivityStreamsOrganization) + // AppendActivityStreamsPage appends a Page value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsPage(v ActivityStreamsPage) + // AppendActivityStreamsPerson appends a Person value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsPerson(v ActivityStreamsPerson) + // AppendActivityStreamsPlace appends a Place value to the back of a list + // of the property "to". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsPlace(v ActivityStreamsPlace) + // AppendActivityStreamsProfile appends a Profile value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsProfile(v ActivityStreamsProfile) + // AppendActivityStreamsQuestion appends a Question value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsQuestion(v ActivityStreamsQuestion) + // AppendActivityStreamsRead appends a Read value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsRead(v ActivityStreamsRead) + // AppendActivityStreamsReject appends a Reject value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsReject(v ActivityStreamsReject) + // AppendActivityStreamsRelationship appends a Relationship value to the + // back of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRelationship(v ActivityStreamsRelationship) + // AppendActivityStreamsRemove appends a Remove value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsRemove(v ActivityStreamsRemove) + // AppendActivityStreamsService appends a Service value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsService(v ActivityStreamsService) + // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to + // the back of a list of the property "to". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // AppendActivityStreamsTentativeReject appends a TentativeReject value to + // the back of a list of the property "to". Invalidates iterators that + // are traversing using Prev. + AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // AppendActivityStreamsTombstone appends a Tombstone value to the back of + // a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTombstone(v ActivityStreamsTombstone) + // AppendActivityStreamsTravel appends a Travel value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsTravel(v ActivityStreamsTravel) + // AppendActivityStreamsUndo appends a Undo value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsUndo(v ActivityStreamsUndo) + // AppendActivityStreamsUpdate appends a Update value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsUpdate(v ActivityStreamsUpdate) + // AppendActivityStreamsVideo appends a Video value to the back of a list + // of the property "to". Invalidates iterators that are traversing + // using Prev. + AppendActivityStreamsVideo(v ActivityStreamsVideo) + // AppendActivityStreamsView appends a View value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "to". Invalidates iterators that are traversing using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "to". Invalidates iterators that are traversing using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to + // the back of a list of the property "to". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization + // value to the back of a list of the property "to". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the + // back of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // AppendGoToSocialLikeApproval appends a LikeApproval value to the back + // of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) + // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to + // the back of a list of the property "to". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of + // a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) + // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back + // of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) + // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value + // to the back of a list of the property "to". Invalidates iterators + // that are traversing using Prev. + AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back + // of a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) + // AppendIRI appends an IRI value to the back of a list of the property + // "to" + AppendIRI(v *url.URL) + // AppendSchemaPropertyValue appends a PropertyValue value to the back of + // a list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendSchemaPropertyValue(v SchemaPropertyValue) + // AppendTootEmoji appends a Emoji value to the back of a list of the + // property "to". Invalidates iterators that are traversing using Prev. + AppendTootEmoji(v TootEmoji) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "to". Invalidates iterators that are traversing using Prev. + AppendTootHashtag(v TootHashtag) + // AppendTootIdentityProof appends a IdentityProof value to the back of a + // list of the property "to". Invalidates iterators that are + // traversing using Prev. + AppendTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. Returns an error if the type is not a valid one to set for + // this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsToPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsToPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsToPropertyIterator + // InsertActivityStreamsAccept inserts a Accept value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // InsertActivityStreamsActivity inserts a Activity value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // InsertActivityStreamsAdd inserts a Add value at the specified index for + // a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // InsertActivityStreamsAnnounce inserts a Announce value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // InsertActivityStreamsApplication inserts a Application value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // InsertActivityStreamsArrive inserts a Arrive value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // InsertActivityStreamsArticle inserts a Article value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // InsertActivityStreamsAudio inserts a Audio value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // InsertActivityStreamsBlock inserts a Block value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // InsertActivityStreamsCollection inserts a Collection value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // InsertActivityStreamsCollectionPage inserts a CollectionPage value at + // the specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // InsertActivityStreamsCreate inserts a Create value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // InsertActivityStreamsDelete inserts a Delete value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // InsertActivityStreamsDislike inserts a Dislike value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // InsertActivityStreamsDocument inserts a Document value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // InsertActivityStreamsEvent inserts a Event value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // InsertActivityStreamsFlag inserts a Flag value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // InsertActivityStreamsFollow inserts a Follow value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // InsertActivityStreamsGroup inserts a Group value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // InsertActivityStreamsIgnore inserts a Ignore value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // InsertActivityStreamsImage inserts a Image value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsImage(idx int, v ActivityStreamsImage) + // InsertActivityStreamsIntransitiveActivity inserts a + // IntransitiveActivity value at the specified index for a property + // "to". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // InsertActivityStreamsInvite inserts a Invite value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // InsertActivityStreamsJoin inserts a Join value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // InsertActivityStreamsLeave inserts a Leave value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // InsertActivityStreamsLike inserts a Like value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsLike(idx int, v ActivityStreamsLike) + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsListen inserts a Listen value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsListen(idx int, v ActivityStreamsListen) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // InsertActivityStreamsMove inserts a Move value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsMove(idx int, v ActivityStreamsMove) + // InsertActivityStreamsNote inserts a Note value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsNote(idx int, v ActivityStreamsNote) + // InsertActivityStreamsObject inserts a Object value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsObject(idx int, v ActivityStreamsObject) + // InsertActivityStreamsOffer inserts a Offer value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // InsertActivityStreamsOrderedCollection inserts a OrderedCollection + // value at the specified index for a property "to". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // InsertActivityStreamsOrderedCollectionPage inserts a + // OrderedCollectionPage value at the specified index for a property + // "to". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // InsertActivityStreamsOrganization inserts a Organization value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // InsertActivityStreamsPage inserts a Page value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsPage(idx int, v ActivityStreamsPage) + // InsertActivityStreamsPerson inserts a Person value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // InsertActivityStreamsPlace inserts a Place value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // InsertActivityStreamsProfile inserts a Profile value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // InsertActivityStreamsQuestion inserts a Question value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // InsertActivityStreamsRead inserts a Read value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsRead(idx int, v ActivityStreamsRead) + // InsertActivityStreamsReject inserts a Reject value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsReject(idx int, v ActivityStreamsReject) + // InsertActivityStreamsRelationship inserts a Relationship value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // InsertActivityStreamsRemove inserts a Remove value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // InsertActivityStreamsService inserts a Service value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsService(idx int, v ActivityStreamsService) + // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at + // the specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // InsertActivityStreamsTentativeReject inserts a TentativeReject value at + // the specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // InsertActivityStreamsTombstone inserts a Tombstone value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // InsertActivityStreamsTravel inserts a Travel value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // InsertActivityStreamsUndo inserts a Undo value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // InsertActivityStreamsUpdate inserts a Update value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // InsertActivityStreamsVideo inserts a Video value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // InsertActivityStreamsView inserts a View value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at + // the specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization + // value at the specified index for a property "to". Existing elements + // at that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // InsertGoToSocialLikeApproval inserts a LikeApproval value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at + // the specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // InsertGoToSocialLikeRequest inserts a LikeRequest value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value + // at the specified index for a property "to". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // Insert inserts an IRI value at the specified index for a property "to". + // Existing elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertSchemaPropertyValue inserts a PropertyValue value at the + // specified index for a property "to". Existing elements at that + // index and higher are shifted back once. Invalidates all iterators. + InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) + // InsertTootEmoji inserts a Emoji value at the specified index for a + // property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootEmoji(idx int, v TootEmoji) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // InsertTootIdentityProof inserts a IdentityProof value at the specified + // index for a property "to". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertTootIdentityProof(idx int, v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "to". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "to" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsToProperty) bool + // Name returns the name of this property ("to") with any alias. + Name() string + // PrependActivityStreamsAccept prepends a Accept value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsAccept(v ActivityStreamsAccept) + // PrependActivityStreamsActivity prepends a Activity value to the front + // of a list of the property "to". Invalidates all iterators. + PrependActivityStreamsActivity(v ActivityStreamsActivity) + // PrependActivityStreamsAdd prepends a Add value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsAdd(v ActivityStreamsAdd) + // PrependActivityStreamsAnnounce prepends a Announce value to the front + // of a list of the property "to". Invalidates all iterators. + PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) + // PrependActivityStreamsApplication prepends a Application value to the + // front of a list of the property "to". Invalidates all iterators. + PrependActivityStreamsApplication(v ActivityStreamsApplication) + // PrependActivityStreamsArrive prepends a Arrive value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsArrive(v ActivityStreamsArrive) + // PrependActivityStreamsArticle prepends a Article value to the front of + // a list of the property "to". Invalidates all iterators. + PrependActivityStreamsArticle(v ActivityStreamsArticle) + // PrependActivityStreamsAudio prepends a Audio value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsAudio(v ActivityStreamsAudio) + // PrependActivityStreamsBlock prepends a Block value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsBlock(v ActivityStreamsBlock) + // PrependActivityStreamsCollection prepends a Collection value to the + // front of a list of the property "to". Invalidates all iterators. + PrependActivityStreamsCollection(v ActivityStreamsCollection) + // PrependActivityStreamsCollectionPage prepends a CollectionPage value to + // the front of a list of the property "to". Invalidates all iterators. + PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) + // PrependActivityStreamsCreate prepends a Create value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsCreate(v ActivityStreamsCreate) + // PrependActivityStreamsDelete prepends a Delete value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsDelete(v ActivityStreamsDelete) + // PrependActivityStreamsDislike prepends a Dislike value to the front of + // a list of the property "to". Invalidates all iterators. + PrependActivityStreamsDislike(v ActivityStreamsDislike) + // PrependActivityStreamsDocument prepends a Document value to the front + // of a list of the property "to". Invalidates all iterators. + PrependActivityStreamsDocument(v ActivityStreamsDocument) + // PrependActivityStreamsEvent prepends a Event value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsEvent(v ActivityStreamsEvent) + // PrependActivityStreamsFlag prepends a Flag value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsFlag(v ActivityStreamsFlag) + // PrependActivityStreamsFollow prepends a Follow value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsFollow(v ActivityStreamsFollow) + // PrependActivityStreamsGroup prepends a Group value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsGroup(v ActivityStreamsGroup) + // PrependActivityStreamsIgnore prepends a Ignore value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsIgnore(v ActivityStreamsIgnore) + // PrependActivityStreamsImage prepends a Image value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsImage(v ActivityStreamsImage) + // PrependActivityStreamsIntransitiveActivity prepends a + // IntransitiveActivity value to the front of a list of the property + // "to". Invalidates all iterators. + PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) + // PrependActivityStreamsInvite prepends a Invite value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsInvite(v ActivityStreamsInvite) + // PrependActivityStreamsJoin prepends a Join value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsJoin(v ActivityStreamsJoin) + // PrependActivityStreamsLeave prepends a Leave value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsLeave(v ActivityStreamsLeave) + // PrependActivityStreamsLike prepends a Like value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsLike(v ActivityStreamsLike) + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsListen prepends a Listen value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsListen(v ActivityStreamsListen) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "to". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependActivityStreamsMove prepends a Move value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsMove(v ActivityStreamsMove) + // PrependActivityStreamsNote prepends a Note value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsNote(v ActivityStreamsNote) + // PrependActivityStreamsObject prepends a Object value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsObject(v ActivityStreamsObject) + // PrependActivityStreamsOffer prepends a Offer value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsOffer(v ActivityStreamsOffer) + // PrependActivityStreamsOrderedCollection prepends a OrderedCollection + // value to the front of a list of the property "to". Invalidates all + // iterators. + PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // PrependActivityStreamsOrderedCollectionPage prepends a + // OrderedCollectionPage value to the front of a list of the property + // "to". Invalidates all iterators. + PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // PrependActivityStreamsOrganization prepends a Organization value to the + // front of a list of the property "to". Invalidates all iterators. + PrependActivityStreamsOrganization(v ActivityStreamsOrganization) + // PrependActivityStreamsPage prepends a Page value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsPage(v ActivityStreamsPage) + // PrependActivityStreamsPerson prepends a Person value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsPerson(v ActivityStreamsPerson) + // PrependActivityStreamsPlace prepends a Place value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsPlace(v ActivityStreamsPlace) + // PrependActivityStreamsProfile prepends a Profile value to the front of + // a list of the property "to". Invalidates all iterators. + PrependActivityStreamsProfile(v ActivityStreamsProfile) + // PrependActivityStreamsQuestion prepends a Question value to the front + // of a list of the property "to". Invalidates all iterators. + PrependActivityStreamsQuestion(v ActivityStreamsQuestion) + // PrependActivityStreamsRead prepends a Read value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsRead(v ActivityStreamsRead) + // PrependActivityStreamsReject prepends a Reject value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsReject(v ActivityStreamsReject) + // PrependActivityStreamsRelationship prepends a Relationship value to the + // front of a list of the property "to". Invalidates all iterators. + PrependActivityStreamsRelationship(v ActivityStreamsRelationship) + // PrependActivityStreamsRemove prepends a Remove value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsRemove(v ActivityStreamsRemove) + // PrependActivityStreamsService prepends a Service value to the front of + // a list of the property "to". Invalidates all iterators. + PrependActivityStreamsService(v ActivityStreamsService) + // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value + // to the front of a list of the property "to". Invalidates all + // iterators. + PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) + // PrependActivityStreamsTentativeReject prepends a TentativeReject value + // to the front of a list of the property "to". Invalidates all + // iterators. + PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) + // PrependActivityStreamsTombstone prepends a Tombstone value to the front + // of a list of the property "to". Invalidates all iterators. + PrependActivityStreamsTombstone(v ActivityStreamsTombstone) + // PrependActivityStreamsTravel prepends a Travel value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsTravel(v ActivityStreamsTravel) + // PrependActivityStreamsUndo prepends a Undo value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsUndo(v ActivityStreamsUndo) + // PrependActivityStreamsUpdate prepends a Update value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsUpdate(v ActivityStreamsUpdate) + // PrependActivityStreamsVideo prepends a Video value to the front of a + // list of the property "to". Invalidates all iterators. + PrependActivityStreamsVideo(v ActivityStreamsVideo) + // PrependActivityStreamsView prepends a View value to the front of a list + // of the property "to". Invalidates all iterators. + PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "to". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "to". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "to". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "to". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to + // the front of a list of the property "to". Invalidates all iterators. + PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) + // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization + // value to the front of a list of the property "to". Invalidates all + // iterators. + PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) + // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to + // the front of a list of the property "to". Invalidates all iterators. + PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) + // PrependGoToSocialLikeApproval prepends a LikeApproval value to the + // front of a list of the property "to". Invalidates all iterators. + PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) + // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value + // to the front of a list of the property "to". Invalidates all + // iterators. + PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) + // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front + // of a list of the property "to". Invalidates all iterators. + PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) + // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the + // front of a list of the property "to". Invalidates all iterators. + PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) + // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value + // to the front of a list of the property "to". Invalidates all + // iterators. + PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) + // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the + // front of a list of the property "to". Invalidates all iterators. + PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) + // PrependIRI prepends an IRI value to the front of a list of the property + // "to". + PrependIRI(v *url.URL) + // PrependSchemaPropertyValue prepends a PropertyValue value to the front + // of a list of the property "to". Invalidates all iterators. + PrependSchemaPropertyValue(v SchemaPropertyValue) + // PrependTootEmoji prepends a Emoji value to the front of a list of the + // property "to". Invalidates all iterators. + PrependTootEmoji(v TootEmoji) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "to". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependTootIdentityProof prepends a IdentityProof value to the front of + // a list of the property "to". Invalidates all iterators. + PrependTootIdentityProof(v TootIdentityProof) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "to". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "to", regardless of its type. Panics if the index is out + // of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsAccept sets a Accept value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) + // SetActivityStreamsActivity sets a Activity value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) + // SetActivityStreamsAdd sets a Add value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) + // SetActivityStreamsAnnounce sets a Announce value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) + // SetActivityStreamsApplication sets a Application value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) + // SetActivityStreamsArrive sets a Arrive value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) + // SetActivityStreamsArticle sets a Article value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) + // SetActivityStreamsAudio sets a Audio value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) + // SetActivityStreamsBlock sets a Block value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) + // SetActivityStreamsCollection sets a Collection value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) + // SetActivityStreamsCollectionPage sets a CollectionPage value to be at + // the specified index for the property "to". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) + // SetActivityStreamsCreate sets a Create value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) + // SetActivityStreamsDelete sets a Delete value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) + // SetActivityStreamsDislike sets a Dislike value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) + // SetActivityStreamsDocument sets a Document value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) + // SetActivityStreamsEvent sets a Event value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) + // SetActivityStreamsFlag sets a Flag value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) + // SetActivityStreamsFollow sets a Follow value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) + // SetActivityStreamsGroup sets a Group value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) + // SetActivityStreamsIgnore sets a Ignore value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) + // SetActivityStreamsImage sets a Image value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsImage(idx int, v ActivityStreamsImage) + // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity + // value to be at the specified index for the property "to". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) + // SetActivityStreamsInvite sets a Invite value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) + // SetActivityStreamsJoin sets a Join value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) + // SetActivityStreamsLeave sets a Leave value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) + // SetActivityStreamsLike sets a Like value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLike(idx int, v ActivityStreamsLike) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsListen sets a Listen value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsListen(idx int, v ActivityStreamsListen) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetActivityStreamsMove sets a Move value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMove(idx int, v ActivityStreamsMove) + // SetActivityStreamsNote sets a Note value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsNote(idx int, v ActivityStreamsNote) + // SetActivityStreamsObject sets a Object value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsObject(idx int, v ActivityStreamsObject) + // SetActivityStreamsOffer sets a Offer value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) + // SetActivityStreamsOrderedCollection sets a OrderedCollection value to + // be at the specified index for the property "to". Panics if the + // index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage + // value to be at the specified index for the property "to". Panics if + // the index is out of bounds. Invalidates all iterators. + SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) + // SetActivityStreamsOrganization sets a Organization value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) + // SetActivityStreamsPage sets a Page value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPage(idx int, v ActivityStreamsPage) + // SetActivityStreamsPerson sets a Person value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) + // SetActivityStreamsPlace sets a Place value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) + // SetActivityStreamsProfile sets a Profile value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) + // SetActivityStreamsQuestion sets a Question value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) + // SetActivityStreamsRead sets a Read value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRead(idx int, v ActivityStreamsRead) + // SetActivityStreamsReject sets a Reject value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsReject(idx int, v ActivityStreamsReject) + // SetActivityStreamsRelationship sets a Relationship value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) + // SetActivityStreamsRemove sets a Remove value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) + // SetActivityStreamsService sets a Service value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsService(idx int, v ActivityStreamsService) + // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at + // the specified index for the property "to". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) + // SetActivityStreamsTentativeReject sets a TentativeReject value to be at + // the specified index for the property "to". Panics if the index is + // out of bounds. Invalidates all iterators. + SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) + // SetActivityStreamsTombstone sets a Tombstone value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) + // SetActivityStreamsTravel sets a Travel value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) + // SetActivityStreamsUndo sets a Undo value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) + // SetActivityStreamsUpdate sets a Update value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) + // SetActivityStreamsVideo sets a Video value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) + // SetActivityStreamsView sets a View value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at + // the specified index for the property "to". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) + // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value + // to be at the specified index for the property "to". Panics if the + // index is out of bounds. Invalidates all iterators. + SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) + // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) + // SetGoToSocialLikeApproval sets a LikeApproval value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) + // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at + // the specified index for the property "to". Panics if the index is + // out of bounds. Invalidates all iterators. + SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) + // SetGoToSocialLikeRequest sets a LikeRequest value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) + // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) + // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be + // at the specified index for the property "to". Panics if the index + // is out of bounds. Invalidates all iterators. + SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) + // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) + // SetIRI sets an IRI value to be at the specified index for the property + // "to". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetSchemaPropertyValue sets a PropertyValue value to be at the + // specified index for the property "to". Panics if the index is out + // of bounds. Invalidates all iterators. + SetSchemaPropertyValue(idx int, v SchemaPropertyValue) + // SetTootEmoji sets a Emoji value to be at the specified index for the + // property "to". Panics if the index is out of bounds. Invalidates + // all iterators. + SetTootEmoji(idx int, v TootEmoji) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetTootIdentityProof sets a IdentityProof value to be at the specified + // index for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootIdentityProof(idx int, v TootIdentityProof) + // SetType sets an arbitrary type value to the specified index of the + // property "to". Invalidates all iterators. Returns an error if the + // type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "to" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go new file mode 100644 index 000000000..2c90fb2d8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go @@ -0,0 +1,74 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// A non-negative integer specifying the total number of objects contained by the +// logical view of the collection. This number might not reflect the actual +// number of items serialized within the Collection object instance. +// +// Example 135 (https://www.w3.org/TR/activitystreams-vocabulary/#ex156-jsonld): +// +// { +// "items": [ +// { +// "name": "Which Staircase Should I Use", +// "type": "Note" +// }, +// { +// "name": "Something to Remember", +// "type": "Note" +// } +// ], +// "summary": "Sally's notes", +// "totalItems": 2, +// "type": "Collection" +// } +type ActivityStreamsTotalItemsProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaNonNegativeInteger afterwards will return false. + Clear() + // Get returns the value of this property. When + // IsXMLSchemaNonNegativeInteger returns false, Get will return any + // arbitrary value. + Get() int + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaNonNegativeInteger returns true if this property is set and + // not an IRI. + IsXMLSchemaNonNegativeInteger() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsTotalItemsProperty) bool + // Name returns the name of this property: "totalItems". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling + // IsXMLSchemaNonNegativeInteger afterwards will return true. + Set(v int) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_units_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_units_interface.go new file mode 100644 index 000000000..9d48828be --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_units_interface.go @@ -0,0 +1,80 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Specifies the measurement units for the radius and altitude properties on a +// Place object. If not specified, the default is assumed to be "m" for +// "meters". +// +// Example 136 (https://www.w3.org/TR/activitystreams-vocabulary/#ex157-jsonld): +// +// { +// "latitude": 36.75, +// "longitude": 119.7667, +// "name": "Fresno Area", +// "radius": 15, +// "type": "Place", +// "units": "miles" +// } +type ActivityStreamsUnitsProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetXMLSchemaAnyURI returns the value of this property. When + // IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an + // arbitrary value. + GetXMLSchemaAnyURI() *url.URL + // GetXMLSchemaString returns the value of this property. When + // IsXMLSchemaString returns false, GetXMLSchemaString will return an + // arbitrary value. + GetXMLSchemaString() string + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". + // When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI + // methods to access and set this property. + IsXMLSchemaAnyURI() bool + // IsXMLSchemaString returns true if this property has a type of "string". + // When true, use the GetXMLSchemaString and SetXMLSchemaString + // methods to access and set this property. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsUnitsProperty) bool + // Name returns the name of this property: "units". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetXMLSchemaAnyURI sets the value of this property. Calling + // IsXMLSchemaAnyURI afterwards returns true. + SetXMLSchemaAnyURI(v *url.URL) + // SetXMLSchemaString sets the value of this property. Calling + // IsXMLSchemaString afterwards returns true. + SetXMLSchemaString(v string) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_updated_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_updated_interface.go new file mode 100644 index 000000000..fec2749a1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_updated_interface.go @@ -0,0 +1,64 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import ( + "net/url" + "time" +) + +// The date and time at which the object was updated +// +// Example 137 (https://www.w3.org/TR/activitystreams-vocabulary/#ex158-jsonld): +// +// { +// "content": "Mush it up so it does not have the same shape as the can.", +// "name": "Cranberry Sauce Idea", +// "type": "Note", +// "updated": "2014-12-12T12:12:12Z" +// } +type ActivityStreamsUpdatedProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaDateTime afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaDateTime + // returns false, Get will return any arbitrary value. + Get() time.Time + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaDateTime returns true if this property is set and not an IRI. + IsXMLSchemaDateTime() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsUpdatedProperty) bool + // Name returns the name of this property: "updated". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaDateTime + // afterwards will return true. + Set(v time.Time) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_url_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_url_interface.go new file mode 100644 index 000000000..1e2651c05 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_url_interface.go @@ -0,0 +1,272 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// ActivityStreamsUrlPropertyIterator represents a single value for the "url" +// property. +type ActivityStreamsUrlPropertyIterator interface { + // GetActivityStreamsLink returns the value of this property. When + // IsActivityStreamsLink returns false, GetActivityStreamsLink will + // return an arbitrary value. + GetActivityStreamsLink() ActivityStreamsLink + // GetActivityStreamsMention returns the value of this property. When + // IsActivityStreamsMention returns false, GetActivityStreamsMention + // will return an arbitrary value. + GetActivityStreamsMention() ActivityStreamsMention + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetTootHashtag returns the value of this property. When IsTootHashtag + // returns false, GetTootHashtag will return an arbitrary value. + GetTootHashtag() TootHashtag + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // GetXMLSchemaAnyURI returns the value of this property. When + // IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an + // arbitrary value. + GetXMLSchemaAnyURI() *url.URL + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsLink returns true if this property has a type of + // "Link". When true, use the GetActivityStreamsLink and + // SetActivityStreamsLink methods to access and set this property. + IsActivityStreamsLink() bool + // IsActivityStreamsMention returns true if this property has a type of + // "Mention". When true, use the GetActivityStreamsMention and + // SetActivityStreamsMention methods to access and set this property. + IsActivityStreamsMention() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsTootHashtag returns true if this property has a type of "Hashtag". + // When true, use the GetTootHashtag and SetTootHashtag methods to + // access and set this property. + IsTootHashtag() bool + // IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". + // When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI + // methods to access and set this property. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsUrlPropertyIterator) bool + // Name returns the name of this property: "ActivityStreamsUrl". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() ActivityStreamsUrlPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() ActivityStreamsUrlPropertyIterator + // SetActivityStreamsLink sets the value of this property. Calling + // IsActivityStreamsLink afterwards returns true. + SetActivityStreamsLink(v ActivityStreamsLink) + // SetActivityStreamsMention sets the value of this property. Calling + // IsActivityStreamsMention afterwards returns true. + SetActivityStreamsMention(v ActivityStreamsMention) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetTootHashtag sets the value of this property. Calling IsTootHashtag + // afterwards returns true. + SetTootHashtag(v TootHashtag) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error + // SetXMLSchemaAnyURI sets the value of this property. Calling + // IsXMLSchemaAnyURI afterwards returns true. + SetXMLSchemaAnyURI(v *url.URL) +} + +// Identifies one or more links to representations of the object +// +// Example 109 (https://www.w3.org/TR/activitystreams-vocabulary/#ex124-jsonld): +// +// { +// "name": "4Q Sales Forecast", +// "type": "Document", +// "url": "http://example.org/4q-sales-forecast.pdf" +// } +// +// Example 110 (https://www.w3.org/TR/activitystreams-vocabulary/#ex125-jsonld): +// +// { +// "name": "4Q Sales Forecast", +// "type": "Document", +// "url": { +// "type": "owl:Class", +// "url": "http://example.org/4q-sales-forecast.pdf" +// } +// } +// +// Example 111 (https://www.w3.org/TR/activitystreams-vocabulary/#ex126-jsonld): +// +// { +// "name": "4Q Sales Forecast", +// "type": "Document", +// "url": [ +// { +// "mediaType": "application/pdf", +// "type": "owl:Class", +// "url": "http://example.org/4q-sales-forecast.pdf" +// }, +// { +// "mediaType": "text/html", +// "type": "owl:Class", +// "url": "http://example.org/4q-sales-forecast.html" +// } +// ] +// } +type ActivityStreamsUrlProperty interface { + // AppendActivityStreamsLink appends a Link value to the back of a list of + // the property "url". Invalidates iterators that are traversing using + // Prev. + AppendActivityStreamsLink(v ActivityStreamsLink) + // AppendActivityStreamsMention appends a Mention value to the back of a + // list of the property "url". Invalidates iterators that are + // traversing using Prev. + AppendActivityStreamsMention(v ActivityStreamsMention) + // AppendIRI appends an IRI value to the back of a list of the property + // "url" + AppendIRI(v *url.URL) + // AppendTootHashtag appends a Hashtag value to the back of a list of the + // property "url". Invalidates iterators that are traversing using + // Prev. + AppendTootHashtag(v TootHashtag) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "url". Invalidates iterators that are traversing using + // Prev. Returns an error if the type is not a valid one to set for + // this property. + AppendType(t Type) error + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "url". Invalidates iterators that are traversing using + // Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) ActivityStreamsUrlPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() ActivityStreamsUrlPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() ActivityStreamsUrlPropertyIterator + // InsertActivityStreamsLink inserts a Link value at the specified index + // for a property "url". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertActivityStreamsLink(idx int, v ActivityStreamsLink) + // InsertActivityStreamsMention inserts a Mention value at the specified + // index for a property "url". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertActivityStreamsMention(idx int, v ActivityStreamsMention) + // Insert inserts an IRI value at the specified index for a property + // "url". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertTootHashtag inserts a Hashtag value at the specified index for a + // property "url". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertTootHashtag(idx int, v TootHashtag) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "url". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "url". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "url" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsUrlProperty) bool + // Name returns the name of this property ("url") with any alias. + Name() string + // PrependActivityStreamsLink prepends a Link value to the front of a list + // of the property "url". Invalidates all iterators. + PrependActivityStreamsLink(v ActivityStreamsLink) + // PrependActivityStreamsMention prepends a Mention value to the front of + // a list of the property "url". Invalidates all iterators. + PrependActivityStreamsMention(v ActivityStreamsMention) + // PrependIRI prepends an IRI value to the front of a list of the property + // "url". + PrependIRI(v *url.URL) + // PrependTootHashtag prepends a Hashtag value to the front of a list of + // the property "url". Invalidates all iterators. + PrependTootHashtag(v TootHashtag) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "url". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. + PrependType(t Type) error + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "url". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "url", regardless of its type. Panics if the index is out + // of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsLink sets a Link value to be at the specified index + // for the property "url". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsLink(idx int, v ActivityStreamsLink) + // SetActivityStreamsMention sets a Mention value to be at the specified + // index for the property "url". Panics if the index is out of bounds. + // Invalidates all iterators. + SetActivityStreamsMention(idx int, v ActivityStreamsMention) + // SetIRI sets an IRI value to be at the specified index for the property + // "url". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetTootHashtag sets a Hashtag value to be at the specified index for + // the property "url". Panics if the index is out of bounds. + // Invalidates all iterators. + SetTootHashtag(idx int, v TootHashtag) + // SetType sets an arbitrary type value to the specified index of the + // property "url". Invalidates all iterators. Returns an error if the + // type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for + // the property "url". Panics if the index is out of bounds. + // Invalidates all iterators. + SetXMLSchemaAnyURI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the "url" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_width_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_width_interface.go new file mode 100644 index 000000000..1f3cdd3c1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_activitystreams_width_interface.go @@ -0,0 +1,64 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// On a Link, specifies a hint as to the rendering width in device-independent +// pixels of the linked resource. +// +// Example 138 (https://www.w3.org/TR/activitystreams-vocabulary/#ex159-jsonld): +// +// { +// "height": 100, +// "type": "Link", +// "url": "http://example.org/image.png", +// "width": 100 +// } +type ActivityStreamsWidthProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaNonNegativeInteger afterwards will return false. + Clear() + // Get returns the value of this property. When + // IsXMLSchemaNonNegativeInteger returns false, Get will return any + // arbitrary value. + Get() int + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaNonNegativeInteger returns true if this property is set and + // not an IRI. + IsXMLSchemaNonNegativeInteger() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o ActivityStreamsWidthProperty) bool + // Name returns the name of this property: "width". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling + // IsXMLSchemaNonNegativeInteger afterwards will return true. + Set(v int) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_always_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_always_interface.go new file mode 100644 index 000000000..2ed2009b2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_always_interface.go @@ -0,0 +1,131 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialAlwaysPropertyIterator represents a single value for the "always" +// property. +type GoToSocialAlwaysPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialAlwaysPropertyIterator) bool + // Name returns the name of this property: "GoToSocialAlways". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialAlwaysPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialAlwaysPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// DEPRECATED: Use `automaticApproval` instead. Indicates zero or more URI/IDs +// that can perform an interaction without requiring approval by the Object +// AttributedTo Actor. +type GoToSocialAlwaysProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "always" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "always". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialAlwaysPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialAlwaysPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialAlwaysPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "always". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "always". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "always" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialAlwaysProperty) bool + // Name returns the name of this property ("always") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "always". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "always". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "always", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "always". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "always". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the "always" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go new file mode 100644 index 000000000..a677f1372 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go @@ -0,0 +1,133 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialApprovalRequiredPropertyIterator represents a single value for the +// "approvalRequired" property. +type GoToSocialApprovalRequiredPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialApprovalRequiredPropertyIterator) bool + // Name returns the name of this property: "GoToSocialApprovalRequired". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialApprovalRequiredPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialApprovalRequiredPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// DEPRECATED: Use `manualApproval` instead. Indicates zero or more URI/IDs that +// require approval by the Object AttributedTo Actor in order to perform an +// interaction. +type GoToSocialApprovalRequiredProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "approvalRequired" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "approvalRequired". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialApprovalRequiredPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialApprovalRequiredPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialApprovalRequiredPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "approvalRequired". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "approvalRequired". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "approvalRequired" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialApprovalRequiredProperty) bool + // Name returns the name of this property ("approvalRequired") with any + // alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "approvalRequired". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "approvalRequired". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "approvalRequired", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "approvalRequired". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "approvalRequired". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the + // "approvalRequired" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go new file mode 100644 index 000000000..c99467246 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go @@ -0,0 +1,56 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// URI/ID of an Accept Activity or approval, which itself points towards the ID of +// the Activity or Object to which this property is attached. The presence of +// this property on an Activity or Object indicates that an interaction has +// been Approve'd by the Actor whose Object this Activity or Object interacts +// with. +type GoToSocialApprovedByProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaAnyURI afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialApprovedByProperty) bool + // Name returns the name of this property: "approvedBy". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go new file mode 100644 index 000000000..b4f02850c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go @@ -0,0 +1,132 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialAutomaticApprovalPropertyIterator represents a single value for the +// "automaticApproval" property. +type GoToSocialAutomaticApprovalPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialAutomaticApprovalPropertyIterator) bool + // Name returns the name of this property: "GoToSocialAutomaticApproval". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialAutomaticApprovalPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialAutomaticApprovalPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// Indicates zero or more URI/IDs that can perform an interaction without +// requiring manual approval by the Object AttributedTo Actor. +type GoToSocialAutomaticApprovalProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "automaticApproval" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "automaticApproval". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialAutomaticApprovalPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialAutomaticApprovalPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialAutomaticApprovalPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "automaticApproval". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "automaticApproval". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "automaticApproval" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialAutomaticApprovalProperty) bool + // Name returns the name of this property ("automaticApproval") with any + // alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "automaticApproval". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "automaticApproval". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "automaticApproval", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "automaticApproval". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "automaticApproval". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the + // "automaticApproval" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go new file mode 100644 index 000000000..c7c1ccd6a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go @@ -0,0 +1,158 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialCanAnnouncePropertyIterator represents a single value for the +// "canAnnounce" property. +type GoToSocialCanAnnouncePropertyIterator interface { + // Get returns the value of this property. When IsGoToSocialCanAnnounce + // returns false, Get will return any arbitrary value. + Get() GoToSocialCanAnnounce + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsGoToSocialCanAnnounce returns true if this property is set and not an + // IRI. + IsGoToSocialCanAnnounce() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialCanAnnouncePropertyIterator) bool + // Name returns the name of this property: "GoToSocialCanAnnounce". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialCanAnnouncePropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialCanAnnouncePropertyIterator + // Set sets the value of this property. Calling IsGoToSocialCanAnnounce + // afterwards will return true. + Set(v GoToSocialCanAnnounce) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Defines who can Announce with an object property set to the URI/ID of the +// Object to which this interactionPolicy is attached. +type GoToSocialCanAnnounceProperty interface { + // AppendGoToSocialCanAnnounce appends a CanAnnounce value to the back of + // a list of the property "canAnnounce". Invalidates iterators that + // are traversing using Prev. + AppendGoToSocialCanAnnounce(v GoToSocialCanAnnounce) + // AppendIRI appends an IRI value to the back of a list of the property + // "canAnnounce" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canAnnounce". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialCanAnnouncePropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialCanAnnouncePropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialCanAnnouncePropertyIterator + // InsertGoToSocialCanAnnounce inserts a CanAnnounce value at the + // specified index for a property "canAnnounce". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertGoToSocialCanAnnounce(idx int, v GoToSocialCanAnnounce) + // Insert inserts an IRI value at the specified index for a property + // "canAnnounce". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canAnnounce". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "canAnnounce" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialCanAnnounceProperty) bool + // Name returns the name of this property ("canAnnounce") with any alias. + Name() string + // PrependGoToSocialCanAnnounce prepends a CanAnnounce value to the front + // of a list of the property "canAnnounce". Invalidates all iterators. + PrependGoToSocialCanAnnounce(v GoToSocialCanAnnounce) + // PrependIRI prepends an IRI value to the front of a list of the property + // "canAnnounce". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canAnnounce". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "canAnnounce", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a CanAnnounce value to be at the specified index for the + // property "canAnnounce". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v GoToSocialCanAnnounce) + // SetIRI sets an IRI value to be at the specified index for the property + // "canAnnounce". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "canAnnounce". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "canAnnounce" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go new file mode 100644 index 000000000..a6d9c4e0b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go @@ -0,0 +1,155 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialCanLikePropertyIterator represents a single value for the "canLike" +// property. +type GoToSocialCanLikePropertyIterator interface { + // Get returns the value of this property. When IsGoToSocialCanLike + // returns false, Get will return any arbitrary value. + Get() GoToSocialCanLike + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsGoToSocialCanLike returns true if this property is set and not an IRI. + IsGoToSocialCanLike() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialCanLikePropertyIterator) bool + // Name returns the name of this property: "GoToSocialCanLike". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialCanLikePropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialCanLikePropertyIterator + // Set sets the value of this property. Calling IsGoToSocialCanLike + // afterwards will return true. + Set(v GoToSocialCanLike) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Defines who can Like with an object property set to the URI/ID of the Object to +// which this interactionPolicy is attached. +type GoToSocialCanLikeProperty interface { + // AppendGoToSocialCanLike appends a CanLike value to the back of a list + // of the property "canLike". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialCanLike(v GoToSocialCanLike) + // AppendIRI appends an IRI value to the back of a list of the property + // "canLike" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canLike". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialCanLikePropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialCanLikePropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialCanLikePropertyIterator + // InsertGoToSocialCanLike inserts a CanLike value at the specified index + // for a property "canLike". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertGoToSocialCanLike(idx int, v GoToSocialCanLike) + // Insert inserts an IRI value at the specified index for a property + // "canLike". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canLike". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "canLike" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialCanLikeProperty) bool + // Name returns the name of this property ("canLike") with any alias. + Name() string + // PrependGoToSocialCanLike prepends a CanLike value to the front of a + // list of the property "canLike". Invalidates all iterators. + PrependGoToSocialCanLike(v GoToSocialCanLike) + // PrependIRI prepends an IRI value to the front of a list of the property + // "canLike". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canLike". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "canLike", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a CanLike value to be at the specified index for the property + // "canLike". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v GoToSocialCanLike) + // SetIRI sets an IRI value to be at the specified index for the property + // "canLike". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "canLike". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "canLike" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go new file mode 100644 index 000000000..4fd12a2c6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go @@ -0,0 +1,156 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialCanQuotePropertyIterator represents a single value for the "canQuote" +// property. +type GoToSocialCanQuotePropertyIterator interface { + // Get returns the value of this property. When IsGoToSocialCanQuote + // returns false, Get will return any arbitrary value. + Get() GoToSocialCanQuote + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsGoToSocialCanQuote returns true if this property is set and not an + // IRI. + IsGoToSocialCanQuote() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialCanQuotePropertyIterator) bool + // Name returns the name of this property: "GoToSocialCanQuote". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialCanQuotePropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialCanQuotePropertyIterator + // Set sets the value of this property. Calling IsGoToSocialCanQuote + // afterwards will return true. + Set(v GoToSocialCanQuote) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Defines who can Create a new Object that quotes the Object to which this +// interactionPolicy is attached. +type GoToSocialCanQuoteProperty interface { + // AppendGoToSocialCanQuote appends a CanQuote value to the back of a list + // of the property "canQuote". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialCanQuote(v GoToSocialCanQuote) + // AppendIRI appends an IRI value to the back of a list of the property + // "canQuote" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canQuote". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialCanQuotePropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialCanQuotePropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialCanQuotePropertyIterator + // InsertGoToSocialCanQuote inserts a CanQuote value at the specified + // index for a property "canQuote". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialCanQuote(idx int, v GoToSocialCanQuote) + // Insert inserts an IRI value at the specified index for a property + // "canQuote". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canQuote". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "canQuote" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialCanQuoteProperty) bool + // Name returns the name of this property ("canQuote") with any alias. + Name() string + // PrependGoToSocialCanQuote prepends a CanQuote value to the front of a + // list of the property "canQuote". Invalidates all iterators. + PrependGoToSocialCanQuote(v GoToSocialCanQuote) + // PrependIRI prepends an IRI value to the front of a list of the property + // "canQuote". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canQuote". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "canQuote", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a CanQuote value to be at the specified index for the property + // "canQuote". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v GoToSocialCanQuote) + // SetIRI sets an IRI value to be at the specified index for the property + // "canQuote". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "canQuote". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "canQuote" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go new file mode 100644 index 000000000..9f2ad8577 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go @@ -0,0 +1,156 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialCanReplyPropertyIterator represents a single value for the "canReply" +// property. +type GoToSocialCanReplyPropertyIterator interface { + // Get returns the value of this property. When IsGoToSocialCanReply + // returns false, Get will return any arbitrary value. + Get() GoToSocialCanReply + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsGoToSocialCanReply returns true if this property is set and not an + // IRI. + IsGoToSocialCanReply() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialCanReplyPropertyIterator) bool + // Name returns the name of this property: "GoToSocialCanReply". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialCanReplyPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialCanReplyPropertyIterator + // Set sets the value of this property. Calling IsGoToSocialCanReply + // afterwards will return true. + Set(v GoToSocialCanReply) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// Defines who can Create a new Object with an inReplyTo property set to the +// URI/ID of the Object to which this interactionPolicy is attached. +type GoToSocialCanReplyProperty interface { + // AppendGoToSocialCanReply appends a CanReply value to the back of a list + // of the property "canReply". Invalidates iterators that are + // traversing using Prev. + AppendGoToSocialCanReply(v GoToSocialCanReply) + // AppendIRI appends an IRI value to the back of a list of the property + // "canReply" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canReply". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialCanReplyPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialCanReplyPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialCanReplyPropertyIterator + // InsertGoToSocialCanReply inserts a CanReply value at the specified + // index for a property "canReply". Existing elements at that index + // and higher are shifted back once. Invalidates all iterators. + InsertGoToSocialCanReply(idx int, v GoToSocialCanReply) + // Insert inserts an IRI value at the specified index for a property + // "canReply". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canReply". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "canReply" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialCanReplyProperty) bool + // Name returns the name of this property ("canReply") with any alias. + Name() string + // PrependGoToSocialCanReply prepends a CanReply value to the front of a + // list of the property "canReply". Invalidates all iterators. + PrependGoToSocialCanReply(v GoToSocialCanReply) + // PrependIRI prepends an IRI value to the front of a list of the property + // "canReply". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "canReply". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "canReply", regardless of its type. Panics if the index is + // out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a CanReply value to be at the specified index for the property + // "canReply". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v GoToSocialCanReply) + // SetIRI sets an IRI value to be at the specified index for the property + // "canReply". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "canReply". Invalidates all iterators. Returns an error if + // the type is not a valid one to set for this property. Panics if the + // index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "canReply" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go new file mode 100644 index 000000000..53addb567 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go @@ -0,0 +1,130 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialInteractingObjectPropertyIterator represents a single value for the +// "interactingObject" property. +type GoToSocialInteractingObjectPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialInteractingObjectPropertyIterator) bool + // Name returns the name of this property: "GoToSocialInteractingObject". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialInteractingObjectPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialInteractingObjectPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +type GoToSocialInteractingObjectProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "interactingObject" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "interactingObject". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialInteractingObjectPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialInteractingObjectPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialInteractingObjectPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "interactingObject". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "interactingObject". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "interactingObject" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialInteractingObjectProperty) bool + // Name returns the name of this property ("interactingObject") with any + // alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "interactingObject". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "interactingObject". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "interactingObject", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "interactingObject". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "interactingObject". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the + // "interactingObject" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go new file mode 100644 index 000000000..b33a0763a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go @@ -0,0 +1,164 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialInteractionPolicyPropertyIterator represents a single value for the +// "interactionPolicy" property. +type GoToSocialInteractionPolicyPropertyIterator interface { + // Get returns the value of this property. When + // IsGoToSocialInteractionPolicy returns false, Get will return any + // arbitrary value. + Get() GoToSocialInteractionPolicy + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsGoToSocialInteractionPolicy returns true if this property is set and + // not an IRI. + IsGoToSocialInteractionPolicy() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialInteractionPolicyPropertyIterator) bool + // Name returns the name of this property: "GoToSocialInteractionPolicy". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialInteractionPolicyPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialInteractionPolicyPropertyIterator + // Set sets the value of this property. Calling + // IsGoToSocialInteractionPolicy afterwards will return true. + Set(v GoToSocialInteractionPolicy) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// InteractionPolicy for an ActivityStreams Object. +// +// null +type GoToSocialInteractionPolicyProperty interface { + // AppendGoToSocialInteractionPolicy appends a InteractionPolicy value to + // the back of a list of the property "interactionPolicy". Invalidates + // iterators that are traversing using Prev. + AppendGoToSocialInteractionPolicy(v GoToSocialInteractionPolicy) + // AppendIRI appends an IRI value to the back of a list of the property + // "interactionPolicy" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "interactionPolicy". Invalidates iterators that are + // traversing using Prev. Returns an error if the type is not a valid + // one to set for this property. + AppendType(t Type) error + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialInteractionPolicyPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialInteractionPolicyPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialInteractionPolicyPropertyIterator + // InsertGoToSocialInteractionPolicy inserts a InteractionPolicy value at + // the specified index for a property "interactionPolicy". Existing + // elements at that index and higher are shifted back once. + // Invalidates all iterators. + InsertGoToSocialInteractionPolicy(idx int, v GoToSocialInteractionPolicy) + // Insert inserts an IRI value at the specified index for a property + // "interactionPolicy". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "interactionPolicy". Invalidates all iterators. + // Returns an error if the type is not a valid one to set for this + // property. + InsertType(idx int, t Type) error + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "interactionPolicy" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialInteractionPolicyProperty) bool + // Name returns the name of this property ("interactionPolicy") with any + // alias. + Name() string + // PrependGoToSocialInteractionPolicy prepends a InteractionPolicy value + // to the front of a list of the property "interactionPolicy". + // Invalidates all iterators. + PrependGoToSocialInteractionPolicy(v GoToSocialInteractionPolicy) + // PrependIRI prepends an IRI value to the front of a list of the property + // "interactionPolicy". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "interactionPolicy". Invalidates all iterators. + // Returns an error if the type is not a valid one to set for this + // property. + PrependType(t Type) error + // Remove deletes an element at the specified index from a list of the + // property "interactionPolicy", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a InteractionPolicy value to be at the specified index for the + // property "interactionPolicy". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v GoToSocialInteractionPolicy) + // SetIRI sets an IRI value to be at the specified index for the property + // "interactionPolicy". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "interactionPolicy". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + // Panics if the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the + // "interactionPolicy" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go new file mode 100644 index 000000000..60805cfbe --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go @@ -0,0 +1,130 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialInteractionTargetPropertyIterator represents a single value for the +// "interactionTarget" property. +type GoToSocialInteractionTargetPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialInteractionTargetPropertyIterator) bool + // Name returns the name of this property: "GoToSocialInteractionTarget". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialInteractionTargetPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialInteractionTargetPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +type GoToSocialInteractionTargetProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "interactionTarget" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "interactionTarget". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialInteractionTargetPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialInteractionTargetPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialInteractionTargetPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "interactionTarget". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "interactionTarget". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "interactionTarget" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialInteractionTargetProperty) bool + // Name returns the name of this property ("interactionTarget") with any + // alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "interactionTarget". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "interactionTarget". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "interactionTarget", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "interactionTarget". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "interactionTarget". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the + // "interactionTarget" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go new file mode 100644 index 000000000..828df0571 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go @@ -0,0 +1,132 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// GoToSocialManualApprovalPropertyIterator represents a single value for the +// "manualApproval" property. +type GoToSocialManualApprovalPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialManualApprovalPropertyIterator) bool + // Name returns the name of this property: "GoToSocialManualApproval". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() GoToSocialManualApprovalPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() GoToSocialManualApprovalPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// Indicates zero or more URI/IDs that require manual approval by the Object +// AttributedTo Actor in order to perform an interaction. +type GoToSocialManualApprovalProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "manualApproval" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "manualApproval". Invalidates iterators that are + // traversing using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) GoToSocialManualApprovalPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() GoToSocialManualApprovalPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() GoToSocialManualApprovalPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "manualApproval". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "manualApproval". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "manualApproval" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o GoToSocialManualApprovalProperty) bool + // Name returns the name of this property ("manualApproval") with any + // alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "manualApproval". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "manualApproval". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // Remove deletes an element at the specified index from a list of the + // property "manualApproval", regardless of its type. Panics if the + // index is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a anyURI value to be at the specified index for the property + // "manualApproval". Panics if the index is out of bounds. Invalidates + // all iterators. + Set(idx int, v *url.URL) + // SetIRI sets an IRI value to be at the specified index for the property + // "manualApproval". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the + // "manualApproval" property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_id_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_id_interface.go new file mode 100644 index 000000000..289ec2822 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_id_interface.go @@ -0,0 +1,52 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// Provides the globally unique identifier for JSON-LD entities. +type JSONLDIdProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaAnyURI afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o JSONLDIdProperty) bool + // Name returns the name of this property: "id". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_type_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_type_interface.go new file mode 100644 index 000000000..6c9e7a07b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_jsonld_type_interface.go @@ -0,0 +1,158 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// JSONLDTypePropertyIterator represents a single value for the "type" property. +type JSONLDTypePropertyIterator interface { + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetXMLSchemaAnyURI returns the value of this property. When + // IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an + // arbitrary value. + GetXMLSchemaAnyURI() *url.URL + // GetXMLSchemaString returns the value of this property. When + // IsXMLSchemaString returns false, GetXMLSchemaString will return an + // arbitrary value. + GetXMLSchemaString() string + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". + // When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI + // methods to access and set this property. + IsXMLSchemaAnyURI() bool + // IsXMLSchemaString returns true if this property has a type of "string". + // When true, use the GetXMLSchemaString and SetXMLSchemaString + // methods to access and set this property. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o JSONLDTypePropertyIterator) bool + // Name returns the name of this property: "JSONLDType". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() JSONLDTypePropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() JSONLDTypePropertyIterator + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetXMLSchemaAnyURI sets the value of this property. Calling + // IsXMLSchemaAnyURI afterwards returns true. + SetXMLSchemaAnyURI(v *url.URL) + // SetXMLSchemaString sets the value of this property. Calling + // IsXMLSchemaString afterwards returns true. + SetXMLSchemaString(v string) +} + +// Identifies the schema type(s) of the JSON-LD entity. +type JSONLDTypeProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "type" + AppendIRI(v *url.URL) + // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of + // the property "type". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaAnyURI(v *url.URL) + // AppendXMLSchemaString appends a string value to the back of a list of + // the property "type". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaString(v string) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) JSONLDTypePropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() JSONLDTypePropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() JSONLDTypePropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "type". Existing elements at that index and higher are shifted back + // once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for + // a property "type". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertXMLSchemaAnyURI(idx int, v *url.URL) + // InsertXMLSchemaString inserts a string value at the specified index for + // a property "type". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertXMLSchemaString(idx int, v string) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "type" property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o JSONLDTypeProperty) bool + // Name returns the name of this property ("type") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "type". + PrependIRI(v *url.URL) + // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list + // of the property "type". Invalidates all iterators. + PrependXMLSchemaAnyURI(v *url.URL) + // PrependXMLSchemaString prepends a string value to the front of a list + // of the property "type". Invalidates all iterators. + PrependXMLSchemaString(v string) + // Remove deletes an element at the specified index from a list of the + // property "type", regardless of its type. Panics if the index is out + // of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetIRI sets an IRI value to be at the specified index for the property + // "type". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for + // the property "type". Panics if the index is out of bounds. + // Invalidates all iterators. + SetXMLSchemaAnyURI(idx int, v *url.URL) + // SetXMLSchemaString sets a string value to be at the specified index for + // the property "type". Panics if the index is out of bounds. + // Invalidates all iterators. + SetXMLSchemaString(idx int, v string) + // Swap swaps the location of values at two indices for the "type" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_schema_value_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_schema_value_interface.go new file mode 100644 index 000000000..dbfb75a40 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_schema_value_interface.go @@ -0,0 +1,52 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// The value of the quantitative value or property value node. +type SchemaValueProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaString afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaString returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaString returns true if this property is set and not an IRI. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o SchemaValueProperty) bool + // Name returns the name of this property: "value". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaString + // afterwards will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_blurhash_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_blurhash_interface.go new file mode 100644 index 000000000..95f780fd5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_blurhash_interface.go @@ -0,0 +1,52 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// null +type TootBlurhashProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaString afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaString returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaString returns true if this property is set and not an IRI. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootBlurhashProperty) bool + // Name returns the name of this property: "blurhash". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaString + // afterwards will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_discoverable_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_discoverable_interface.go new file mode 100644 index 000000000..b150ae5f1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_discoverable_interface.go @@ -0,0 +1,52 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// null +type TootDiscoverableProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaBoolean afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaBoolean returns + // false, Get will return any arbitrary value. + Get() bool + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaBoolean returns true if this property is set and not an IRI. + IsXMLSchemaBoolean() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootDiscoverableProperty) bool + // Name returns the name of this property: "discoverable". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaBoolean + // afterwards will return true. + Set(v bool) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_featured_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_featured_interface.go new file mode 100644 index 000000000..a029b5f3c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_featured_interface.go @@ -0,0 +1,80 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// null +type TootFeaturedProperty interface { + // Clear ensures no value of this property is set. Calling HasAny or any + // of the 'Is' methods afterwards will return false. + Clear() + // GetActivityStreamsOrderedCollection returns the value of this property. + // When IsActivityStreamsOrderedCollection returns false, + // GetActivityStreamsOrderedCollection will return an arbitrary value. + GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection + // GetActivityStreamsOrderedCollectionPage returns the value of this + // property. When IsActivityStreamsOrderedCollectionPage returns + // false, GetActivityStreamsOrderedCollectionPage will return an + // arbitrary value. + GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return an arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if any of the different values is set. + HasAny() bool + // IsActivityStreamsOrderedCollection returns true if this property has a + // type of "OrderedCollection". When true, use the + // GetActivityStreamsOrderedCollection and + // SetActivityStreamsOrderedCollection methods to access and set this + // property. + IsActivityStreamsOrderedCollection() bool + // IsActivityStreamsOrderedCollectionPage returns true if this property + // has a type of "OrderedCollectionPage". When true, use the + // GetActivityStreamsOrderedCollectionPage and + // SetActivityStreamsOrderedCollectionPage methods to access and set + // this property. + IsActivityStreamsOrderedCollectionPage() bool + // IsIRI returns true if this property is an IRI. When true, use GetIRI + // and SetIRI to access and set this property + IsIRI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootFeaturedProperty) bool + // Name returns the name of this property: "featured". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // SetActivityStreamsOrderedCollection sets the value of this property. + // Calling IsActivityStreamsOrderedCollection afterwards returns true. + SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) + // SetActivityStreamsOrderedCollectionPage sets the value of this + // property. Calling IsActivityStreamsOrderedCollectionPage afterwards + // returns true. + SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) + // SetIRI sets the value of this property. Calling IsIRI afterwards + // returns true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_focalPoint_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_focalPoint_interface.go new file mode 100644 index 000000000..32ceec47a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_focalPoint_interface.go @@ -0,0 +1,130 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// TootFocalPointPropertyIterator represents a single value for the "focalPoint" +// property. +type TootFocalPointPropertyIterator interface { + // Get returns the value of this property. When IsXMLSchemaFloat returns + // false, Get will return any arbitrary value. + Get() float64 + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaFloat returns true if this property is set and not an IRI. + IsXMLSchemaFloat() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootFocalPointPropertyIterator) bool + // Name returns the name of this property: "TootFocalPoint". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() TootFocalPointPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() TootFocalPointPropertyIterator + // Set sets the value of this property. Calling IsXMLSchemaFloat + // afterwards will return true. + Set(v float64) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} + +// null +type TootFocalPointProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "focalPoint" + AppendIRI(v *url.URL) + // AppendXMLSchemaFloat appends a float value to the back of a list of the + // property "focalPoint". Invalidates iterators that are traversing + // using Prev. + AppendXMLSchemaFloat(v float64) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) TootFocalPointPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() TootFocalPointPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() TootFocalPointPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "focalPoint". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // InsertXMLSchemaFloat inserts a float value at the specified index for a + // property "focalPoint". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertXMLSchemaFloat(idx int, v float64) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "focalPoint" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootFocalPointProperty) bool + // Name returns the name of this property ("focalPoint") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "focalPoint". + PrependIRI(v *url.URL) + // PrependXMLSchemaFloat prepends a float value to the front of a list of + // the property "focalPoint". Invalidates all iterators. + PrependXMLSchemaFloat(v float64) + // Remove deletes an element at the specified index from a list of the + // property "focalPoint", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a float value to be at the specified index for the property + // "focalPoint". Panics if the index is out of bounds. Invalidates all + // iterators. + Set(idx int, v float64) + // SetIRI sets an IRI value to be at the specified index for the property + // "focalPoint". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // Swap swaps the location of values at two indices for the "focalPoint" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_indexable_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_indexable_interface.go new file mode 100644 index 000000000..59be4b5c0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_indexable_interface.go @@ -0,0 +1,52 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// null +type TootIndexableProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaBoolean afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaBoolean returns + // false, Get will return any arbitrary value. + Get() bool + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaBoolean returns true if this property is set and not an IRI. + IsXMLSchemaBoolean() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootIndexableProperty) bool + // Name returns the name of this property: "indexable". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaBoolean + // afterwards will return true. + Set(v bool) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go new file mode 100644 index 000000000..aa8c92cd1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go @@ -0,0 +1,52 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// null +type TootSignatureAlgorithmProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaString afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaString returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaString returns true if this property is set and not an IRI. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootSignatureAlgorithmProperty) bool + // Name returns the name of this property: "signatureAlgorithm". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaString + // afterwards will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureValue_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureValue_interface.go new file mode 100644 index 000000000..20b22631f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_signatureValue_interface.go @@ -0,0 +1,52 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// null +type TootSignatureValueProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaString afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaString returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaString returns true if this property is set and not an IRI. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootSignatureValueProperty) bool + // Name returns the name of this property: "signatureValue". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaString + // afterwards will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_votersCount_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_votersCount_interface.go new file mode 100644 index 000000000..24e24bf42 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_toot_votersCount_interface.go @@ -0,0 +1,54 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// null +type TootVotersCountProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaNonNegativeInteger afterwards will return false. + Clear() + // Get returns the value of this property. When + // IsXMLSchemaNonNegativeInteger returns false, Get will return any + // arbitrary value. + Get() int + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaNonNegativeInteger returns true if this property is set and + // not an IRI. + IsXMLSchemaNonNegativeInteger() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o TootVotersCountProperty) bool + // Name returns the name of this property: "votersCount". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling + // IsXMLSchemaNonNegativeInteger afterwards will return true. + Set(v int) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go new file mode 100644 index 000000000..e45d44a77 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go @@ -0,0 +1,52 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// The owner of the public key for an ActivityStreams actor +type W3IDSecurityV1OwnerProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaAnyURI afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaAnyURI returns + // false, Get will return any arbitrary value. + Get() *url.URL + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. + IsXMLSchemaAnyURI() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o W3IDSecurityV1OwnerProperty) bool + // Name returns the name of this property: "owner". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaAnyURI + // afterwards will return true. + Set(v *url.URL) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go new file mode 100644 index 000000000..906eb673d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go @@ -0,0 +1,52 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// The public key PEM encoded data for an ActivityStreams actor +type W3IDSecurityV1PublicKeyPemProperty interface { + // Clear ensures no value of this property is set. Calling + // IsXMLSchemaString afterwards will return false. + Clear() + // Get returns the value of this property. When IsXMLSchemaString returns + // false, Get will return any arbitrary value. + Get() string + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsXMLSchemaString returns true if this property is set and not an IRI. + IsXMLSchemaString() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o W3IDSecurityV1PublicKeyPemProperty) bool + // Name returns the name of this property: "publicKeyPem". + Name() string + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets the value of this property. Calling IsXMLSchemaString + // afterwards will return true. + Set(v string) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go new file mode 100644 index 000000000..dc628d9e8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go @@ -0,0 +1,159 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +import "net/url" + +// W3IDSecurityV1PublicKeyPropertyIterator represents a single value for the +// "publicKey" property. +type W3IDSecurityV1PublicKeyPropertyIterator interface { + // Get returns the value of this property. When IsW3IDSecurityV1PublicKey + // returns false, Get will return any arbitrary value. + Get() W3IDSecurityV1PublicKey + // GetIRI returns the IRI of this property. When IsIRI returns false, + // GetIRI will return any arbitrary value. + GetIRI() *url.URL + // GetType returns the value in this property as a Type. Returns nil if + // the value is not an ActivityStreams type, such as an IRI or another + // value. + GetType() Type + // HasAny returns true if the value or IRI is set. + HasAny() bool + // IsIRI returns true if this property is an IRI. + IsIRI() bool + // IsW3IDSecurityV1PublicKey returns true if this property is set and not + // an IRI. + IsW3IDSecurityV1PublicKey() bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API detail only for folks looking to replace the + // go-fed implementation. Applications should not use this method. + KindIndex() int + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o W3IDSecurityV1PublicKeyPropertyIterator) bool + // Name returns the name of this property: "W3IDSecurityV1PublicKey". + Name() string + // Next returns the next iterator, or nil if there is no next iterator. + Next() W3IDSecurityV1PublicKeyPropertyIterator + // Prev returns the previous iterator, or nil if there is no previous + // iterator. + Prev() W3IDSecurityV1PublicKeyPropertyIterator + // Set sets the value of this property. Calling IsW3IDSecurityV1PublicKey + // afterwards will return true. + Set(v W3IDSecurityV1PublicKey) + // SetIRI sets the value of this property. Calling IsIRI afterwards will + // return true. + SetIRI(v *url.URL) + // SetType attempts to set the property for the arbitrary type. Returns an + // error if it is not a valid type to set on this property. + SetType(t Type) error +} + +// The public key for an ActivityStreams actor +// +// null +type W3IDSecurityV1PublicKeyProperty interface { + // AppendIRI appends an IRI value to the back of a list of the property + // "publicKey" + AppendIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "publicKey". Invalidates iterators that are traversing + // using Prev. Returns an error if the type is not a valid one to set + // for this property. + AppendType(t Type) error + // AppendW3IDSecurityV1PublicKey appends a PublicKey value to the back of + // a list of the property "publicKey". Invalidates iterators that are + // traversing using Prev. + AppendW3IDSecurityV1PublicKey(v W3IDSecurityV1PublicKey) + // At returns the property value for the specified index. Panics if the + // index is out of bounds. + At(index int) W3IDSecurityV1PublicKeyPropertyIterator + // Begin returns the first iterator, or nil if empty. Can be used with the + // iterator's Next method and this property's End method to iterate + // from front to back through all values. + Begin() W3IDSecurityV1PublicKeyPropertyIterator + // Empty returns returns true if there are no elements. + Empty() bool + // End returns beyond-the-last iterator, which is nil. Can be used with + // the iterator's Next method and this property's Begin method to + // iterate from front to back through all values. + End() W3IDSecurityV1PublicKeyPropertyIterator + // Insert inserts an IRI value at the specified index for a property + // "publicKey". Existing elements at that index and higher are shifted + // back once. Invalidates all iterators. + InsertIRI(idx int, v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "publicKey". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + InsertType(idx int, t Type) error + // InsertW3IDSecurityV1PublicKey inserts a PublicKey value at the + // specified index for a property "publicKey". Existing elements at + // that index and higher are shifted back once. Invalidates all + // iterators. + InsertW3IDSecurityV1PublicKey(idx int, v W3IDSecurityV1PublicKey) + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string + // KindIndex computes an arbitrary value for indexing this kind of value. + // This is a leaky API method specifically needed only for alternate + // implementations for go-fed. Applications should not use this + // method. Panics if the index is out of bounds. + KindIndex(idx int) int + // Len returns the number of values that exist for the "publicKey" + // property. + Len() (length int) + // Less computes whether another property is less than this one. Mixing + // types results in a consistent but arbitrary ordering + Less(i, j int) bool + // LessThan compares two instances of this property with an arbitrary but + // stable comparison. Applications should not use this because it is + // only meant to help alternative implementations to go-fed to be able + // to normalize nonfunctional properties. + LessThan(o W3IDSecurityV1PublicKeyProperty) bool + // Name returns the name of this property ("publicKey") with any alias. + Name() string + // PrependIRI prepends an IRI value to the front of a list of the property + // "publicKey". + PrependIRI(v *url.URL) + // PrependType prepends an arbitrary type value to the front of a list of + // the property "publicKey". Invalidates all iterators. Returns an + // error if the type is not a valid one to set for this property. + PrependType(t Type) error + // PrependW3IDSecurityV1PublicKey prepends a PublicKey value to the front + // of a list of the property "publicKey". Invalidates all iterators. + PrependW3IDSecurityV1PublicKey(v W3IDSecurityV1PublicKey) + // Remove deletes an element at the specified index from a list of the + // property "publicKey", regardless of its type. Panics if the index + // is out of bounds. Invalidates all iterators. + Remove(idx int) + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. Applications should not + // need this function as most typical use cases serialize types + // instead of individual properties. It is exposed for alternatives to + // go-fed implementations to use. + Serialize() (interface{}, error) + // Set sets a PublicKey value to be at the specified index for the + // property "publicKey". Panics if the index is out of bounds. + // Invalidates all iterators. + Set(idx int, v W3IDSecurityV1PublicKey) + // SetIRI sets an IRI value to be at the specified index for the property + // "publicKey". Panics if the index is out of bounds. + SetIRI(idx int, v *url.URL) + // SetType sets an arbitrary type value to the specified index of the + // property "publicKey". Invalidates all iterators. Returns an error + // if the type is not a valid one to set for this property. Panics if + // the index is out of bounds. + SetType(idx int, t Type) error + // Swap swaps the location of values at two indices for the "publicKey" + // property. + Swap(i, j int) +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_accept_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_accept_interface.go new file mode 100644 index 000000000..9d119a74d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_accept_interface.go @@ -0,0 +1,265 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor accepts the object. The target property can be used in +// certain circumstances to indicate the context into which the object has +// been accepted. +// +// Example 9 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7a-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "actor": "http://john.example.org", +// "object": { +// "name": "Going-Away Party for Jim", +// "type": "Event" +// }, +// "type": "Invite" +// }, +// "summary": "Sally accepted an invitation to a party", +// "type": "Accept" +// } +// +// Example 10 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7b-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "name": "Joe", +// "type": "Person" +// }, +// "summary": "Sally accepted Joe into the club", +// "target": { +// "name": "The Club", +// "type": "Group" +// }, +// "type": "Accept" +// } +type ActivityStreamsAccept interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Accept + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Accept type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Accept is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsAccept) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_activity_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_activity_interface.go new file mode 100644 index 000000000..c87f7898c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_activity_interface.go @@ -0,0 +1,245 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// An Activity is a subtype of Object that describes some form of action that may +// happen, is currently happening, or has already happened. The Activity type +// itself serves as an abstract base type for all types of activities. It is +// important to note that the Activity type itself does not carry any specific +// semantics about the kind of action being taken. +// +// Example 3 (https://www.w3.org/TR/activitystreams-vocabulary/#ex3-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "name": "A Note", +// "type": "Note" +// }, +// "summary": "Sally did something to a note", +// "type": "Activity" +// } +type ActivityStreamsActivity interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Activity + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Activity type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Activity is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsActivity) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_add_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_add_interface.go new file mode 100644 index 000000000..2b1c54ace --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_add_interface.go @@ -0,0 +1,267 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor has added the object to the target. If the target +// property is not explicitly specified, the target would need to be +// determined implicitly by context. The origin can be used to identify the +// context from which the object originated. +// +// Example 12 (https://www.w3.org/TR/activitystreams-vocabulary/#ex9-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": "http://example.org/abc", +// "summary": "Sally added an object", +// "type": "Add" +// } +// +// Example 13 (https://www.w3.org/TR/activitystreams-vocabulary/#ex10-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "name": "A picture of my cat", +// "type": "Image", +// "url": "http://example.org/img/cat.png" +// }, +// "origin": { +// "name": "Camera Roll", +// "type": "Collection" +// }, +// "summary": "Sally added a picture of her cat to her cat picture +// +// collection", +// +// "target": { +// "name": "My Cat Pictures", +// "type": "Collection" +// }, +// "type": "Add" +// } +type ActivityStreamsAdd interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Add type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Add type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Add is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsAdd) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_announce_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_announce_interface.go new file mode 100644 index 000000000..0b5aef0f1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_announce_interface.go @@ -0,0 +1,252 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor is calling the target's attention the object. The +// origin typically has no defined meaning. +// +// Example 36 (https://www.w3.org/TR/activitystreams-vocabulary/#ex170-jsonld): +// +// { +// "actor": { +// "id": "http://sally.example.org", +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "actor": "http://sally.example.org", +// "location": { +// "name": "Work", +// "type": "Place" +// }, +// "type": "Arrive" +// }, +// "summary": "Sally announced that she had arrived at work", +// "type": "Announce" +// } +type ActivityStreamsAnnounce interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Announce + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Announce type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Announce is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsAnnounce) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_application_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_application_interface.go new file mode 100644 index 000000000..70cf3c500 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_application_interface.go @@ -0,0 +1,286 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Describes a software application. +// +// Example 42 (https://www.w3.org/TR/activitystreams-vocabulary/#ex34-jsonld): +// +// { +// "name": "Exampletron 3000", +// "type": "Application" +// } +type ActivityStreamsApplication interface { + // GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it + // exists, and nil otherwise. + GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsEndpoints returns the "endpoints" property if it + // exists, and nil otherwise. + GetActivityStreamsEndpoints() ActivityStreamsEndpointsProperty + // GetActivityStreamsFollowers returns the "followers" property if it + // exists, and nil otherwise. + GetActivityStreamsFollowers() ActivityStreamsFollowersProperty + // GetActivityStreamsFollowing returns the "following" property if it + // exists, and nil otherwise. + GetActivityStreamsFollowing() ActivityStreamsFollowingProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInbox returns the "inbox" property if it exists, and + // nil otherwise. + GetActivityStreamsInbox() ActivityStreamsInboxProperty + // GetActivityStreamsLiked returns the "liked" property if it exists, and + // nil otherwise. + GetActivityStreamsLiked() ActivityStreamsLikedProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsManuallyApprovesFollowers returns the + // "manuallyApprovesFollowers" property if it exists, and nil + // otherwise. + GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsMovedTo returns the "movedTo" property if it exists, + // and nil otherwise. + GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOutbox returns the "outbox" property if it exists, + // and nil otherwise. + GetActivityStreamsOutbox() ActivityStreamsOutboxProperty + // GetActivityStreamsPreferredUsername returns the "preferredUsername" + // property if it exists, and nil otherwise. + GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsStreams returns the "streams" property if it exists, + // and nil otherwise. + GetActivityStreamsStreams() ActivityStreamsStreamsProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootDiscoverable returns the "discoverable" property if it exists, + // and nil otherwise. + GetTootDiscoverable() TootDiscoverableProperty + // GetTootFeatured returns the "featured" property if it exists, and nil + // otherwise. + GetTootFeatured() TootFeaturedProperty + // GetTootIndexable returns the "indexable" property if it exists, and nil + // otherwise. + GetTootIndexable() TootIndexableProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Application + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it + // exists, and nil otherwise. + GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty + // IsExtending returns true if the Application type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Application is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsApplication) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. + SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsEndpoints sets the "endpoints" property. + SetActivityStreamsEndpoints(i ActivityStreamsEndpointsProperty) + // SetActivityStreamsFollowers sets the "followers" property. + SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) + // SetActivityStreamsFollowing sets the "following" property. + SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInbox sets the "inbox" property. + SetActivityStreamsInbox(i ActivityStreamsInboxProperty) + // SetActivityStreamsLiked sets the "liked" property. + SetActivityStreamsLiked(i ActivityStreamsLikedProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsManuallyApprovesFollowers sets the + // "manuallyApprovesFollowers" property. + SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsMovedTo sets the "movedTo" property. + SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOutbox sets the "outbox" property. + SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) + // SetActivityStreamsPreferredUsername sets the "preferredUsername" + // property. + SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsStreams sets the "streams" property. + SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootDiscoverable sets the "discoverable" property. + SetTootDiscoverable(i TootDiscoverableProperty) + // SetTootFeatured sets the "featured" property. + SetTootFeatured(i TootFeaturedProperty) + // SetTootIndexable sets the "indexable" property. + SetTootIndexable(i TootIndexableProperty) + // SetW3IDSecurityV1PublicKey sets the "publicKey" property. + SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go new file mode 100644 index 000000000..997b819cc --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go @@ -0,0 +1,241 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// An IntransitiveActivity that indicates that the actor has arrived at the +// location. The origin can be used to identify the context from which the +// actor originated. The target typically has no defined meaning. +// +// Example 14 (https://www.w3.org/TR/activitystreams-vocabulary/#ex11-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "location": { +// "name": "Work", +// "type": "Place" +// }, +// "origin": { +// "name": "Home", +// "type": "Place" +// }, +// "summary": "Sally arrived at work", +// "type": "Arrive" +// } +type ActivityStreamsArrive interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Arrive + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Arrive type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Arrive is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsArrive) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_article_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_article_interface.go new file mode 100644 index 000000000..149fdb6a9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_article_interface.go @@ -0,0 +1,223 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents any kind of multi-paragraph written work. +// +// Example 48 (https://www.w3.org/TR/activitystreams-vocabulary/#ex43-jsonld): +// +// { +// "attributedTo": "http://sally.example.org", +// "content": "\u003cdiv\u003e... you will never believe +// +// ...\u003c/div\u003e", +// +// "name": "What a Crazy Day I Had", +// "type": "Article" +// } +type ActivityStreamsArticle interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Article + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Article type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Article is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsArticle) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_audio_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_audio_interface.go new file mode 100644 index 000000000..70ad5d20a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_audio_interface.go @@ -0,0 +1,232 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents an audio document of any kind. +// +// Example 50 (https://www.w3.org/TR/activitystreams-vocabulary/#ex49-jsonld): +// +// { +// "name": "Interview With A Famous Technologist", +// "type": "Audio", +// "url": { +// "mediaType": "audio/mp3", +// "type": "owl:Class", +// "url": "http://example.org/podcast.mp3" +// } +// } +type ActivityStreamsAudio interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootBlurhash returns the "blurhash" property if it exists, and nil + // otherwise. + GetTootBlurhash() TootBlurhashProperty + // GetTootFocalPoint returns the "focalPoint" property if it exists, and + // nil otherwise. + GetTootFocalPoint() TootFocalPointProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Audio type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Audio type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Audio is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsAudio) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootBlurhash sets the "blurhash" property. + SetTootBlurhash(i TootBlurhashProperty) + // SetTootFocalPoint sets the "focalPoint" property. + SetTootFocalPoint(i TootFocalPointProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_block_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_block_interface.go new file mode 100644 index 000000000..bd94785f0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_block_interface.go @@ -0,0 +1,237 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor is blocking the object. Blocking is a stronger form of +// Ignore. The typical use is to support social systems that allow one user to +// block activities or content of other users. The target and origin typically +// have no defined meaning. +// +// Example 37 (https://www.w3.org/TR/activitystreams-vocabulary/#ex173-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": "http://joe.example.org", +// "summary": "Sally blocked Joe", +// "type": "Block" +// } +type ActivityStreamsBlock interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Block type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Block type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Block is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsBlock) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collection_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collection_interface.go new file mode 100644 index 000000000..35877b1c2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collection_interface.go @@ -0,0 +1,246 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A Collection is a subtype of Object that represents ordered or unordered sets +// of Object or Link instances. Refer to the Activity Streams 2.0 Core +// specification for a complete description of the Collection type. +// +// Example 5 (https://www.w3.org/TR/activitystreams-vocabulary/#ex5-jsonld): +// +// { +// "items": [ +// { +// "name": "A Simple Note", +// "type": "Note" +// }, +// { +// "name": "Another Simple Note", +// "type": "Note" +// } +// ], +// "summary": "Sally's notes", +// "totalItems": 2, +// "type": "Collection" +// } +type ActivityStreamsCollection interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsCurrent returns the "current" property if it exists, + // and nil otherwise. + GetActivityStreamsCurrent() ActivityStreamsCurrentProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsFirst returns the "first" property if it exists, and + // nil otherwise. + GetActivityStreamsFirst() ActivityStreamsFirstProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsItems returns the "items" property if it exists, and + // nil otherwise. + GetActivityStreamsItems() ActivityStreamsItemsProperty + // GetActivityStreamsLast returns the "last" property if it exists, and + // nil otherwise. + GetActivityStreamsLast() ActivityStreamsLastProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsTotalItems returns the "totalItems" property if it + // exists, and nil otherwise. + GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Collection + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Collection type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Collection is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsCollection) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsCurrent sets the "current" property. + SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsFirst sets the "first" property. + SetActivityStreamsFirst(i ActivityStreamsFirstProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsItems sets the "items" property. + SetActivityStreamsItems(i ActivityStreamsItemsProperty) + // SetActivityStreamsLast sets the "last" property. + SetActivityStreamsLast(i ActivityStreamsLastProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsTotalItems sets the "totalItems" property. + SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go new file mode 100644 index 000000000..c067671d8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go @@ -0,0 +1,262 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Used to represent distinct subsets of items from a Collection. Refer to the +// Activity Streams 2.0 Core for a complete description of the CollectionPage +// object. +// +// Example 7 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6b-jsonld): +// +// { +// "id": "http://example.org/foo?page=1", +// "items": [ +// { +// "name": "A Simple Note", +// "type": "Note" +// }, +// { +// "name": "Another Simple Note", +// "type": "Note" +// } +// ], +// "partOf": "http://example.org/foo", +// "summary": "Page 1 of Sally's notes", +// "type": "CollectionPage" +// } +type ActivityStreamsCollectionPage interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsCurrent returns the "current" property if it exists, + // and nil otherwise. + GetActivityStreamsCurrent() ActivityStreamsCurrentProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsFirst returns the "first" property if it exists, and + // nil otherwise. + GetActivityStreamsFirst() ActivityStreamsFirstProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsItems returns the "items" property if it exists, and + // nil otherwise. + GetActivityStreamsItems() ActivityStreamsItemsProperty + // GetActivityStreamsLast returns the "last" property if it exists, and + // nil otherwise. + GetActivityStreamsLast() ActivityStreamsLastProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsNext returns the "next" property if it exists, and + // nil otherwise. + GetActivityStreamsNext() ActivityStreamsNextProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPartOf returns the "partOf" property if it exists, + // and nil otherwise. + GetActivityStreamsPartOf() ActivityStreamsPartOfProperty + // GetActivityStreamsPrev returns the "prev" property if it exists, and + // nil otherwise. + GetActivityStreamsPrev() ActivityStreamsPrevProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsTotalItems returns the "totalItems" property if it + // exists, and nil otherwise. + GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // CollectionPage type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the CollectionPage type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this CollectionPage is lesser, with an arbitrary + // but stable determination. + LessThan(o ActivityStreamsCollectionPage) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsCurrent sets the "current" property. + SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsFirst sets the "first" property. + SetActivityStreamsFirst(i ActivityStreamsFirstProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsItems sets the "items" property. + SetActivityStreamsItems(i ActivityStreamsItemsProperty) + // SetActivityStreamsLast sets the "last" property. + SetActivityStreamsLast(i ActivityStreamsLastProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsNext sets the "next" property. + SetActivityStreamsNext(i ActivityStreamsNextProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPartOf sets the "partOf" property. + SetActivityStreamsPartOf(i ActivityStreamsPartOfProperty) + // SetActivityStreamsPrev sets the "prev" property. + SetActivityStreamsPrev(i ActivityStreamsPrevProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsTotalItems sets the "totalItems" property. + SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_create_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_create_interface.go new file mode 100644 index 000000000..fcd4f15f4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_create_interface.go @@ -0,0 +1,241 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor has created the object. +// +// Example 15 (https://www.w3.org/TR/activitystreams-vocabulary/#ex12-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "content": "This is a simple note", +// "name": "A Simple Note", +// "type": "Note" +// }, +// "summary": "Sally created a note", +// "type": "Create" +// } +type ActivityStreamsCreate interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Create + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Create type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Create is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsCreate) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_delete_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_delete_interface.go new file mode 100644 index 000000000..dfedaefd4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_delete_interface.go @@ -0,0 +1,242 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor has deleted the object. If specified, the origin +// indicates the context from which the object was deleted. +// +// Example 16 (https://www.w3.org/TR/activitystreams-vocabulary/#ex13-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": "http://example.org/notes/1", +// "origin": { +// "name": "Sally's Notes", +// "type": "Collection" +// }, +// "summary": "Sally deleted a note", +// "type": "Delete" +// } +type ActivityStreamsDelete interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Delete + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Delete type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Delete is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsDelete) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go new file mode 100644 index 000000000..1cdfee2bd --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go @@ -0,0 +1,235 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor dislikes the object. +// +// Example 39 (https://www.w3.org/TR/activitystreams-vocabulary/#ex175-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": "http://example.org/posts/1", +// "summary": "Sally disliked a post", +// "type": "Dislike" +// } +type ActivityStreamsDislike interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Dislike + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Dislike type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Dislike is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsDislike) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_document_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_document_interface.go new file mode 100644 index 000000000..f417c9452 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_document_interface.go @@ -0,0 +1,229 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a document of any kind. +// +// Example 49 (https://www.w3.org/TR/activitystreams-vocabulary/#ex48-jsonld): +// +// { +// "name": "4Q Sales Forecast", +// "type": "Document", +// "url": "http://example.org/4q-sales-forecast.pdf" +// } +type ActivityStreamsDocument interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootBlurhash returns the "blurhash" property if it exists, and nil + // otherwise. + GetTootBlurhash() TootBlurhashProperty + // GetTootFocalPoint returns the "focalPoint" property if it exists, and + // nil otherwise. + GetTootFocalPoint() TootFocalPointProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Document + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Document type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Document is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsDocument) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootBlurhash sets the "blurhash" property. + SetTootBlurhash(i TootBlurhashProperty) + // SetTootFocalPoint sets the "focalPoint" property. + SetTootFocalPoint(i TootFocalPointProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go new file mode 100644 index 000000000..19210f6ee --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go @@ -0,0 +1,44 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A json object which maps additional (typically server/domain-wide) endpoints +// which may be useful either for this actor or someone referencing this +// actor. This mapping may be nested inside the actor document as the value or +// may be a link to a JSON-LD document with these properties. +type ActivityStreamsEndpoints interface { + // GetActivityStreamsSharedInbox returns the "sharedInbox" property if it + // exists, and nil otherwise. + GetActivityStreamsSharedInbox() ActivityStreamsSharedInboxProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Endpoints + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Endpoints type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Endpoints is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsEndpoints) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsSharedInbox sets the "sharedInbox" property. + SetActivityStreamsSharedInbox(i ActivityStreamsSharedInboxProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_event_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_event_interface.go new file mode 100644 index 000000000..9edbb7b36 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_event_interface.go @@ -0,0 +1,219 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents any kind of event. +// +// Example 55 (https://www.w3.org/TR/activitystreams-vocabulary/#ex56-jsonld): +// +// { +// "endTime": "2015-01-01T06:00:00-08:00", +// "name": "Going-Away Party for Jim", +// "startTime": "2014-12-31T23:00:00-08:00", +// "type": "Event" +// } +type ActivityStreamsEvent interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Event type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Event type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Event is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsEvent) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_flag_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_flag_interface.go new file mode 100644 index 000000000..737538ec7 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_flag_interface.go @@ -0,0 +1,239 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor is "flagging" the object. Flagging is defined in the +// sense common to many social platforms as reporting content as being +// inappropriate for any number of reasons. +// +// Example 38 (https://www.w3.org/TR/activitystreams-vocabulary/#ex174-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": { +// "content": "An inappropriate note", +// "type": "Note" +// }, +// "summary": "Sally flagged an inappropriate note", +// "type": "Flag" +// } +type ActivityStreamsFlag interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Flag type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Flag type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Flag is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsFlag) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_follow_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_follow_interface.go new file mode 100644 index 000000000..12d1ea9f6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_follow_interface.go @@ -0,0 +1,243 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor is "following" the object. Following is defined in the +// sense typically used within Social systems in which the actor is interested +// in any activity performed by or on the object. The target and origin +// typically have no defined meaning. +// +// Example 17 (https://www.w3.org/TR/activitystreams-vocabulary/#ex15-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "name": "John", +// "type": "Person" +// }, +// "summary": "Sally followed John", +// "type": "Follow" +// } +type ActivityStreamsFollow interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Follow + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Follow type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Follow is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsFollow) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_group_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_group_interface.go new file mode 100644 index 000000000..1153f8537 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_group_interface.go @@ -0,0 +1,285 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a formal or informal collective of Actors. +// +// Example 43 (https://www.w3.org/TR/activitystreams-vocabulary/#ex37-jsonld): +// +// { +// "name": "Big Beards of Austin", +// "type": "Group" +// } +type ActivityStreamsGroup interface { + // GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it + // exists, and nil otherwise. + GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsEndpoints returns the "endpoints" property if it + // exists, and nil otherwise. + GetActivityStreamsEndpoints() ActivityStreamsEndpointsProperty + // GetActivityStreamsFollowers returns the "followers" property if it + // exists, and nil otherwise. + GetActivityStreamsFollowers() ActivityStreamsFollowersProperty + // GetActivityStreamsFollowing returns the "following" property if it + // exists, and nil otherwise. + GetActivityStreamsFollowing() ActivityStreamsFollowingProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInbox returns the "inbox" property if it exists, and + // nil otherwise. + GetActivityStreamsInbox() ActivityStreamsInboxProperty + // GetActivityStreamsLiked returns the "liked" property if it exists, and + // nil otherwise. + GetActivityStreamsLiked() ActivityStreamsLikedProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsManuallyApprovesFollowers returns the + // "manuallyApprovesFollowers" property if it exists, and nil + // otherwise. + GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsMovedTo returns the "movedTo" property if it exists, + // and nil otherwise. + GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOutbox returns the "outbox" property if it exists, + // and nil otherwise. + GetActivityStreamsOutbox() ActivityStreamsOutboxProperty + // GetActivityStreamsPreferredUsername returns the "preferredUsername" + // property if it exists, and nil otherwise. + GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsStreams returns the "streams" property if it exists, + // and nil otherwise. + GetActivityStreamsStreams() ActivityStreamsStreamsProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootDiscoverable returns the "discoverable" property if it exists, + // and nil otherwise. + GetTootDiscoverable() TootDiscoverableProperty + // GetTootFeatured returns the "featured" property if it exists, and nil + // otherwise. + GetTootFeatured() TootFeaturedProperty + // GetTootIndexable returns the "indexable" property if it exists, and nil + // otherwise. + GetTootIndexable() TootIndexableProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Group type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it + // exists, and nil otherwise. + GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty + // IsExtending returns true if the Group type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Group is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsGroup) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. + SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsEndpoints sets the "endpoints" property. + SetActivityStreamsEndpoints(i ActivityStreamsEndpointsProperty) + // SetActivityStreamsFollowers sets the "followers" property. + SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) + // SetActivityStreamsFollowing sets the "following" property. + SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInbox sets the "inbox" property. + SetActivityStreamsInbox(i ActivityStreamsInboxProperty) + // SetActivityStreamsLiked sets the "liked" property. + SetActivityStreamsLiked(i ActivityStreamsLikedProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsManuallyApprovesFollowers sets the + // "manuallyApprovesFollowers" property. + SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsMovedTo sets the "movedTo" property. + SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOutbox sets the "outbox" property. + SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) + // SetActivityStreamsPreferredUsername sets the "preferredUsername" + // property. + SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsStreams sets the "streams" property. + SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootDiscoverable sets the "discoverable" property. + SetTootDiscoverable(i TootDiscoverableProperty) + // SetTootFeatured sets the "featured" property. + SetTootFeatured(i TootFeaturedProperty) + // SetTootIndexable sets the "indexable" property. + SetTootIndexable(i TootIndexableProperty) + // SetW3IDSecurityV1PublicKey sets the "publicKey" property. + SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go new file mode 100644 index 000000000..faabedab4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go @@ -0,0 +1,238 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor is ignoring the object. The target and origin +// typically have no defined meaning. +// +// Example 18 (https://www.w3.org/TR/activitystreams-vocabulary/#ex16-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": "http://example.org/notes/1", +// "summary": "Sally ignored a note", +// "type": "Ignore" +// } +type ActivityStreamsIgnore interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Ignore + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Ignore type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Ignore is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsIgnore) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_image_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_image_interface.go new file mode 100644 index 000000000..5073d044a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_image_interface.go @@ -0,0 +1,249 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// An image document of any kind +// +// Example 51 (https://www.w3.org/TR/activitystreams-vocabulary/#ex50-jsonld): +// +// { +// "name": "Cat Jumping on Wagon", +// "type": "Image", +// "url": [ +// { +// "mediaType": "image/jpeg", +// "type": "Link", +// "url": "http://example.org/image.jpeg" +// }, +// { +// "mediaType": "image/png", +// "type": "Link", +// "url": "http://example.org/image.png" +// } +// ] +// } +type ActivityStreamsImage interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsHeight returns the "height" property if it exists, + // and nil otherwise. + GetActivityStreamsHeight() ActivityStreamsHeightProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetActivityStreamsWidth returns the "width" property if it exists, and + // nil otherwise. + GetActivityStreamsWidth() ActivityStreamsWidthProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootBlurhash returns the "blurhash" property if it exists, and nil + // otherwise. + GetTootBlurhash() TootBlurhashProperty + // GetTootFocalPoint returns the "focalPoint" property if it exists, and + // nil otherwise. + GetTootFocalPoint() TootFocalPointProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Image type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Image type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Image is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsImage) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsHeight sets the "height" property. + SetActivityStreamsHeight(i ActivityStreamsHeightProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetActivityStreamsWidth sets the "width" property. + SetActivityStreamsWidth(i ActivityStreamsWidthProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootBlurhash sets the "blurhash" property. + SetTootBlurhash(i TootBlurhashProperty) + // SetTootFocalPoint sets the "focalPoint" property. + SetTootFocalPoint(i TootFocalPointProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go new file mode 100644 index 000000000..139f2f2b8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go @@ -0,0 +1,238 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Instances of IntransitiveActivity are a subtype of Activity representing +// intransitive actions. The object property is therefore inappropriate for +// these activities. +// +// Example 4 (https://www.w3.org/TR/activitystreams-vocabulary/#ex182-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "summary": "Sally went to work", +// "target": { +// "name": "Work", +// "type": "Place" +// }, +// "type": "Travel" +// } +type ActivityStreamsIntransitiveActivity interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // IntransitiveActivity type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the IntransitiveActivity type extends from + // the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this IntransitiveActivity is lesser, with an + // arbitrary but stable determination. + LessThan(o ActivityStreamsIntransitiveActivity) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_invite_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_invite_interface.go new file mode 100644 index 000000000..1803e9345 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_invite_interface.go @@ -0,0 +1,251 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A specialization of Offer in which the actor is extending an invitation for the +// object to the target. +// +// Example 24 (https://www.w3.org/TR/activitystreams-vocabulary/#ex24-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "name": "A Party", +// "type": "Event" +// }, +// "summary": "Sally invited John and Lisa to a party", +// "target": [ +// { +// "name": "John", +// "type": "Person" +// }, +// { +// "name": "Lisa", +// "type": "Person" +// } +// ], +// "type": "Invite" +// } +type ActivityStreamsInvite interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Invite + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Invite type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Invite is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsInvite) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_join_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_join_interface.go new file mode 100644 index 000000000..5cbf66263 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_join_interface.go @@ -0,0 +1,241 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor has joined the object. The target and origin typically +// have no defined meaning. +// +// Example 19 (https://www.w3.org/TR/activitystreams-vocabulary/#ex17-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "name": "A Simple Group", +// "type": "Group" +// }, +// "summary": "Sally joined a group", +// "type": "Join" +// } +type ActivityStreamsJoin interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Join type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Join type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Join is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsJoin) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_leave_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_leave_interface.go new file mode 100644 index 000000000..dad45976f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_leave_interface.go @@ -0,0 +1,256 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor has left the object. The target and origin typically +// have no meaning. +// +// Example 20 (https://www.w3.org/TR/activitystreams-vocabulary/#ex18-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "name": "Work", +// "type": "Place" +// }, +// "summary": "Sally left work", +// "type": "Leave" +// } +// +// Example 21 (https://www.w3.org/TR/activitystreams-vocabulary/#ex19-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "name": "A Simple Group", +// "type": "Group" +// }, +// "summary": "Sally left a group", +// "type": "Leave" +// } +type ActivityStreamsLeave interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Leave type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Leave type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Leave is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsLeave) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_like_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_like_interface.go new file mode 100644 index 000000000..1dcbdd914 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_like_interface.go @@ -0,0 +1,243 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor likes, recommends or endorses the object. The target +// and origin typically have no defined meaning. +// +// Example 22 (https://www.w3.org/TR/activitystreams-vocabulary/#ex20-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": "http://example.org/notes/1", +// "summary": "Sally liked a note", +// "type": "Like" +// } +type ActivityStreamsLike interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Like type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Like type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Like is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsLike) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_link_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_link_interface.go new file mode 100644 index 000000000..0e52881b9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_link_interface.go @@ -0,0 +1,106 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A Link is an indirect, qualified reference to a resource identified by a URL. +// The fundamental model for links is established by [RFC5988]. Many of the +// properties defined by the Activity Vocabulary allow values that are either +// instances of Object or Link. When a Link is used, it establishes a +// qualified relation connecting the subject (the containing object) to the +// resource identified by the href. Properties of the Link are properties of +// the reference as opposed to properties of the resource. +// +// Example 2 (https://www.w3.org/TR/activitystreams-vocabulary/#ex2-jsonld): +// +// { +// "hreflang": "en", +// "mediaType": "text/html", +// "name": "An example link", +// "type": "Link", +// "url": "http://example.org/abc" +// } +type ActivityStreamsLink interface { + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsHeight returns the "height" property if it exists, + // and nil otherwise. + GetActivityStreamsHeight() ActivityStreamsHeightProperty + // GetActivityStreamsHref returns the "href" property if it exists, and + // nil otherwise. + GetActivityStreamsHref() ActivityStreamsHrefProperty + // GetActivityStreamsHreflang returns the "hreflang" property if it + // exists, and nil otherwise. + GetActivityStreamsHreflang() ActivityStreamsHreflangProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsRel returns the "rel" property if it exists, and nil + // otherwise. + GetActivityStreamsRel() ActivityStreamsRelProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsWidth returns the "width" property if it exists, and + // nil otherwise. + GetActivityStreamsWidth() ActivityStreamsWidthProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Link type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Link type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Link is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsLink) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsHeight sets the "height" property. + SetActivityStreamsHeight(i ActivityStreamsHeightProperty) + // SetActivityStreamsHref sets the "href" property. + SetActivityStreamsHref(i ActivityStreamsHrefProperty) + // SetActivityStreamsHreflang sets the "hreflang" property. + SetActivityStreamsHreflang(i ActivityStreamsHreflangProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsRel sets the "rel" property. + SetActivityStreamsRel(i ActivityStreamsRelProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsWidth sets the "width" property. + SetActivityStreamsWidth(i ActivityStreamsWidthProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_listen_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_listen_interface.go new file mode 100644 index 000000000..1ca8846be --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_listen_interface.go @@ -0,0 +1,237 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor has listened to the object. +// +// Example 32 (https://www.w3.org/TR/activitystreams-vocabulary/#ex163-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": "http://example.org/music.mp3", +// "summary": "Sally listened to a piece of music", +// "type": "Listen" +// } +type ActivityStreamsListen interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Listen + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Listen type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Listen is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsListen) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_mention_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_mention_interface.go new file mode 100644 index 000000000..2a91f47f9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_mention_interface.go @@ -0,0 +1,100 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A specialized Link that represents an @mention. +// +// Example 58 (https://www.w3.org/TR/activitystreams-vocabulary/#ex181-jsonld): +// +// { +// "name": "Joe", +// "summary": "Mention of Joe by Carrie in her note", +// "type": "Mention", +// "url": "http://example.org/joe" +// } +type ActivityStreamsMention interface { + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsHeight returns the "height" property if it exists, + // and nil otherwise. + GetActivityStreamsHeight() ActivityStreamsHeightProperty + // GetActivityStreamsHref returns the "href" property if it exists, and + // nil otherwise. + GetActivityStreamsHref() ActivityStreamsHrefProperty + // GetActivityStreamsHreflang returns the "hreflang" property if it + // exists, and nil otherwise. + GetActivityStreamsHreflang() ActivityStreamsHreflangProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsRel returns the "rel" property if it exists, and nil + // otherwise. + GetActivityStreamsRel() ActivityStreamsRelProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsWidth returns the "width" property if it exists, and + // nil otherwise. + GetActivityStreamsWidth() ActivityStreamsWidthProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Mention + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Mention type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Mention is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsMention) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsHeight sets the "height" property. + SetActivityStreamsHeight(i ActivityStreamsHeightProperty) + // SetActivityStreamsHref sets the "href" property. + SetActivityStreamsHref(i ActivityStreamsHrefProperty) + // SetActivityStreamsHreflang sets the "hreflang" property. + SetActivityStreamsHreflang(i ActivityStreamsHreflangProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsRel sets the "rel" property. + SetActivityStreamsRel(i ActivityStreamsRelProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsWidth sets the "width" property. + SetActivityStreamsWidth(i ActivityStreamsWidthProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_move_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_move_interface.go new file mode 100644 index 000000000..a12f08138 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_move_interface.go @@ -0,0 +1,246 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor has moved object from origin to target. If the origin +// or target are not specified, either can be determined by context. +// +// Example 34 (https://www.w3.org/TR/activitystreams-vocabulary/#ex168-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": "http://example.org/posts/1", +// "origin": { +// "name": "List A", +// "type": "Collection" +// }, +// "summary": "Sally moved a post from List A to List B", +// "target": { +// "name": "List B", +// "type": "Collection" +// }, +// "type": "Move" +// } +type ActivityStreamsMove interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Move type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Move type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Move is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsMove) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_note_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_note_interface.go new file mode 100644 index 000000000..d78560050 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_note_interface.go @@ -0,0 +1,219 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a short written work typically less than a single paragraph in +// length. +// +// Example 53 (https://www.w3.org/TR/activitystreams-vocabulary/#ex52-jsonld): +// +// { +// "content": "Looks like it is going to rain today. Bring an umbrella!", +// "name": "A Word of Warning", +// "type": "Note" +// } +type ActivityStreamsNote interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Note type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Note type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Note is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsNote) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_object_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_object_interface.go new file mode 100644 index 000000000..d6307684e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_object_interface.go @@ -0,0 +1,211 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Describes an object of any kind. The Object type serves as the base type for +// most of the other kinds of objects defined in the Activity Vocabulary, +// including other Core types such as Activity, IntransitiveActivity, +// Collection and OrderedCollection. +// +// Example 1 (https://www.w3.org/TR/activitystreams-vocabulary/#ex1-jsonld): +// +// { +// "id": "http://www.test.example/object/1", +// "name": "A Simple, non-specific object", +// "type": "Object" +// } +type ActivityStreamsObject interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Object + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Object type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Object is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsObject) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_offer_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_offer_interface.go new file mode 100644 index 000000000..b04780f2c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_offer_interface.go @@ -0,0 +1,245 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor is offering the object. If specified, the target +// indicates the entity to which the object is being offered. +// +// Example 23 (https://www.w3.org/TR/activitystreams-vocabulary/#ex21-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "name": "50% Off!", +// "type": "http://www.types.example/ProductOffer" +// }, +// "summary": "Sally offered 50% off to Lewis", +// "target": { +// "name": "Lewis", +// "type": "Person" +// }, +// "type": "Offer" +// } +type ActivityStreamsOffer interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Offer type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Offer type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Offer is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsOffer) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go new file mode 100644 index 000000000..e8a30934e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go @@ -0,0 +1,245 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A subtype of Collection in which members of the logical collection are assumed +// to always be strictly ordered. +// +// Example 6 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6-jsonld): +// +// { +// "orderedItems": [ +// { +// "name": "A Simple Note", +// "type": "Note" +// }, +// { +// "name": "Another Simple Note", +// "type": "Note" +// } +// ], +// "summary": "Sally's notes", +// "totalItems": 2, +// "type": "OrderedCollection" +// } +type ActivityStreamsOrderedCollection interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsCurrent returns the "current" property if it exists, + // and nil otherwise. + GetActivityStreamsCurrent() ActivityStreamsCurrentProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsFirst returns the "first" property if it exists, and + // nil otherwise. + GetActivityStreamsFirst() ActivityStreamsFirstProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLast returns the "last" property if it exists, and + // nil otherwise. + GetActivityStreamsLast() ActivityStreamsLastProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrderedItems returns the "orderedItems" property if + // it exists, and nil otherwise. + GetActivityStreamsOrderedItems() ActivityStreamsOrderedItemsProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsTotalItems returns the "totalItems" property if it + // exists, and nil otherwise. + GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // OrderedCollection type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the OrderedCollection type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this OrderedCollection is lesser, with an + // arbitrary but stable determination. + LessThan(o ActivityStreamsOrderedCollection) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsCurrent sets the "current" property. + SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsFirst sets the "first" property. + SetActivityStreamsFirst(i ActivityStreamsFirstProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLast sets the "last" property. + SetActivityStreamsLast(i ActivityStreamsLastProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrderedItems sets the "orderedItems" property. + SetActivityStreamsOrderedItems(i ActivityStreamsOrderedItemsProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsTotalItems sets the "totalItems" property. + SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go new file mode 100644 index 000000000..e12c7c0cb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go @@ -0,0 +1,267 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Used to represent ordered subsets of items from an OrderedCollection. Refer to +// the Activity Streams 2.0 Core for a complete description of the +// OrderedCollectionPage object. +// +// Example 8 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6c-jsonld): +// +// { +// "id": "http://example.org/foo?page=1", +// "orderedItems": [ +// { +// "name": "A Simple Note", +// "type": "Note" +// }, +// { +// "name": "Another Simple Note", +// "type": "Note" +// } +// ], +// "partOf": "http://example.org/foo", +// "summary": "Page 1 of Sally's notes", +// "type": "OrderedCollectionPage" +// } +type ActivityStreamsOrderedCollectionPage interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsCurrent returns the "current" property if it exists, + // and nil otherwise. + GetActivityStreamsCurrent() ActivityStreamsCurrentProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsFirst returns the "first" property if it exists, and + // nil otherwise. + GetActivityStreamsFirst() ActivityStreamsFirstProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLast returns the "last" property if it exists, and + // nil otherwise. + GetActivityStreamsLast() ActivityStreamsLastProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsNext returns the "next" property if it exists, and + // nil otherwise. + GetActivityStreamsNext() ActivityStreamsNextProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrderedItems returns the "orderedItems" property if + // it exists, and nil otherwise. + GetActivityStreamsOrderedItems() ActivityStreamsOrderedItemsProperty + // GetActivityStreamsPartOf returns the "partOf" property if it exists, + // and nil otherwise. + GetActivityStreamsPartOf() ActivityStreamsPartOfProperty + // GetActivityStreamsPrev returns the "prev" property if it exists, and + // nil otherwise. + GetActivityStreamsPrev() ActivityStreamsPrevProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartIndex returns the "startIndex" property if it + // exists, and nil otherwise. + GetActivityStreamsStartIndex() ActivityStreamsStartIndexProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsTotalItems returns the "totalItems" property if it + // exists, and nil otherwise. + GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // OrderedCollectionPage type. Note that this should not be used by + // app developers. It is only used to help determine which + // implementation is LessThan the other. Developers who are creating a + // different implementation of this type's interface can use this + // method in their LessThan implementation, but routine ActivityPub + // applications should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the OrderedCollectionPage type extends from + // the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this OrderedCollectionPage is lesser, with an + // arbitrary but stable determination. + LessThan(o ActivityStreamsOrderedCollectionPage) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsCurrent sets the "current" property. + SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsFirst sets the "first" property. + SetActivityStreamsFirst(i ActivityStreamsFirstProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLast sets the "last" property. + SetActivityStreamsLast(i ActivityStreamsLastProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsNext sets the "next" property. + SetActivityStreamsNext(i ActivityStreamsNextProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrderedItems sets the "orderedItems" property. + SetActivityStreamsOrderedItems(i ActivityStreamsOrderedItemsProperty) + // SetActivityStreamsPartOf sets the "partOf" property. + SetActivityStreamsPartOf(i ActivityStreamsPartOfProperty) + // SetActivityStreamsPrev sets the "prev" property. + SetActivityStreamsPrev(i ActivityStreamsPrevProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartIndex sets the "startIndex" property. + SetActivityStreamsStartIndex(i ActivityStreamsStartIndexProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsTotalItems sets the "totalItems" property. + SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_organization_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_organization_interface.go new file mode 100644 index 000000000..8b10c848a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_organization_interface.go @@ -0,0 +1,286 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents an organization. +// +// Example 44 (https://www.w3.org/TR/activitystreams-vocabulary/#ex186-jsonld): +// +// { +// "name": "Example Co.", +// "type": "Organization" +// } +type ActivityStreamsOrganization interface { + // GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it + // exists, and nil otherwise. + GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsEndpoints returns the "endpoints" property if it + // exists, and nil otherwise. + GetActivityStreamsEndpoints() ActivityStreamsEndpointsProperty + // GetActivityStreamsFollowers returns the "followers" property if it + // exists, and nil otherwise. + GetActivityStreamsFollowers() ActivityStreamsFollowersProperty + // GetActivityStreamsFollowing returns the "following" property if it + // exists, and nil otherwise. + GetActivityStreamsFollowing() ActivityStreamsFollowingProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInbox returns the "inbox" property if it exists, and + // nil otherwise. + GetActivityStreamsInbox() ActivityStreamsInboxProperty + // GetActivityStreamsLiked returns the "liked" property if it exists, and + // nil otherwise. + GetActivityStreamsLiked() ActivityStreamsLikedProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsManuallyApprovesFollowers returns the + // "manuallyApprovesFollowers" property if it exists, and nil + // otherwise. + GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsMovedTo returns the "movedTo" property if it exists, + // and nil otherwise. + GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOutbox returns the "outbox" property if it exists, + // and nil otherwise. + GetActivityStreamsOutbox() ActivityStreamsOutboxProperty + // GetActivityStreamsPreferredUsername returns the "preferredUsername" + // property if it exists, and nil otherwise. + GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsStreams returns the "streams" property if it exists, + // and nil otherwise. + GetActivityStreamsStreams() ActivityStreamsStreamsProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootDiscoverable returns the "discoverable" property if it exists, + // and nil otherwise. + GetTootDiscoverable() TootDiscoverableProperty + // GetTootFeatured returns the "featured" property if it exists, and nil + // otherwise. + GetTootFeatured() TootFeaturedProperty + // GetTootIndexable returns the "indexable" property if it exists, and nil + // otherwise. + GetTootIndexable() TootIndexableProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // Organization type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it + // exists, and nil otherwise. + GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty + // IsExtending returns true if the Organization type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Organization is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsOrganization) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. + SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsEndpoints sets the "endpoints" property. + SetActivityStreamsEndpoints(i ActivityStreamsEndpointsProperty) + // SetActivityStreamsFollowers sets the "followers" property. + SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) + // SetActivityStreamsFollowing sets the "following" property. + SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInbox sets the "inbox" property. + SetActivityStreamsInbox(i ActivityStreamsInboxProperty) + // SetActivityStreamsLiked sets the "liked" property. + SetActivityStreamsLiked(i ActivityStreamsLikedProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsManuallyApprovesFollowers sets the + // "manuallyApprovesFollowers" property. + SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsMovedTo sets the "movedTo" property. + SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOutbox sets the "outbox" property. + SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) + // SetActivityStreamsPreferredUsername sets the "preferredUsername" + // property. + SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsStreams sets the "streams" property. + SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootDiscoverable sets the "discoverable" property. + SetTootDiscoverable(i TootDiscoverableProperty) + // SetTootFeatured sets the "featured" property. + SetTootFeatured(i TootFeaturedProperty) + // SetTootIndexable sets the "indexable" property. + SetTootIndexable(i TootIndexableProperty) + // SetW3IDSecurityV1PublicKey sets the "publicKey" property. + SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_page_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_page_interface.go new file mode 100644 index 000000000..635dab3b2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_page_interface.go @@ -0,0 +1,228 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a Web Page. +// +// Example 54 (https://www.w3.org/TR/activitystreams-vocabulary/#ex53-jsonld): +// +// { +// "name": "Omaha Weather Report", +// "type": "Page", +// "url": "http://example.org/weather-in-omaha.html" +// } +type ActivityStreamsPage interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootBlurhash returns the "blurhash" property if it exists, and nil + // otherwise. + GetTootBlurhash() TootBlurhashProperty + // GetTootFocalPoint returns the "focalPoint" property if it exists, and + // nil otherwise. + GetTootFocalPoint() TootFocalPointProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Page type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Page type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Page is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsPage) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootBlurhash sets the "blurhash" property. + SetTootBlurhash(i TootBlurhashProperty) + // SetTootFocalPoint sets the "focalPoint" property. + SetTootFocalPoint(i TootFocalPointProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_person_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_person_interface.go new file mode 100644 index 000000000..66446bd11 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_person_interface.go @@ -0,0 +1,285 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents an individual person. +// +// Example 45 (https://www.w3.org/TR/activitystreams-vocabulary/#ex39-jsonld): +// +// { +// "name": "Sally Smith", +// "type": "Person" +// } +type ActivityStreamsPerson interface { + // GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it + // exists, and nil otherwise. + GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsEndpoints returns the "endpoints" property if it + // exists, and nil otherwise. + GetActivityStreamsEndpoints() ActivityStreamsEndpointsProperty + // GetActivityStreamsFollowers returns the "followers" property if it + // exists, and nil otherwise. + GetActivityStreamsFollowers() ActivityStreamsFollowersProperty + // GetActivityStreamsFollowing returns the "following" property if it + // exists, and nil otherwise. + GetActivityStreamsFollowing() ActivityStreamsFollowingProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInbox returns the "inbox" property if it exists, and + // nil otherwise. + GetActivityStreamsInbox() ActivityStreamsInboxProperty + // GetActivityStreamsLiked returns the "liked" property if it exists, and + // nil otherwise. + GetActivityStreamsLiked() ActivityStreamsLikedProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsManuallyApprovesFollowers returns the + // "manuallyApprovesFollowers" property if it exists, and nil + // otherwise. + GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsMovedTo returns the "movedTo" property if it exists, + // and nil otherwise. + GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOutbox returns the "outbox" property if it exists, + // and nil otherwise. + GetActivityStreamsOutbox() ActivityStreamsOutboxProperty + // GetActivityStreamsPreferredUsername returns the "preferredUsername" + // property if it exists, and nil otherwise. + GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsStreams returns the "streams" property if it exists, + // and nil otherwise. + GetActivityStreamsStreams() ActivityStreamsStreamsProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootDiscoverable returns the "discoverable" property if it exists, + // and nil otherwise. + GetTootDiscoverable() TootDiscoverableProperty + // GetTootFeatured returns the "featured" property if it exists, and nil + // otherwise. + GetTootFeatured() TootFeaturedProperty + // GetTootIndexable returns the "indexable" property if it exists, and nil + // otherwise. + GetTootIndexable() TootIndexableProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Person + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it + // exists, and nil otherwise. + GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty + // IsExtending returns true if the Person type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Person is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsPerson) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. + SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsEndpoints sets the "endpoints" property. + SetActivityStreamsEndpoints(i ActivityStreamsEndpointsProperty) + // SetActivityStreamsFollowers sets the "followers" property. + SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) + // SetActivityStreamsFollowing sets the "following" property. + SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInbox sets the "inbox" property. + SetActivityStreamsInbox(i ActivityStreamsInboxProperty) + // SetActivityStreamsLiked sets the "liked" property. + SetActivityStreamsLiked(i ActivityStreamsLikedProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsManuallyApprovesFollowers sets the + // "manuallyApprovesFollowers" property. + SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsMovedTo sets the "movedTo" property. + SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOutbox sets the "outbox" property. + SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) + // SetActivityStreamsPreferredUsername sets the "preferredUsername" + // property. + SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsStreams sets the "streams" property. + SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootDiscoverable sets the "discoverable" property. + SetTootDiscoverable(i TootDiscoverableProperty) + // SetTootFeatured sets the "featured" property. + SetTootFeatured(i TootFeaturedProperty) + // SetTootIndexable sets the "indexable" property. + SetTootIndexable(i TootIndexableProperty) + // SetW3IDSecurityV1PublicKey sets the "publicKey" property. + SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_place_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_place_interface.go new file mode 100644 index 000000000..0c983542e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_place_interface.go @@ -0,0 +1,254 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a logical or physical location. See 5.3 Representing Places for +// additional information. +// +// Example 56 (https://www.w3.org/TR/activitystreams-vocabulary/#ex57-jsonld): +// +// { +// "name": "Work", +// "type": "Place" +// } +// +// Example 57 (https://www.w3.org/TR/activitystreams-vocabulary/#ex58-jsonld): +// +// { +// "latitude": 36.75, +// "longitude": 119.7667, +// "name": "Fresno Area", +// "radius": 15, +// "type": "Place", +// "units": "miles" +// } +type ActivityStreamsPlace interface { + // GetActivityStreamsAccuracy returns the "accuracy" property if it + // exists, and nil otherwise. + GetActivityStreamsAccuracy() ActivityStreamsAccuracyProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLatitude returns the "latitude" property if it + // exists, and nil otherwise. + GetActivityStreamsLatitude() ActivityStreamsLatitudeProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsLongitude returns the "longitude" property if it + // exists, and nil otherwise. + GetActivityStreamsLongitude() ActivityStreamsLongitudeProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsRadius returns the "radius" property if it exists, + // and nil otherwise. + GetActivityStreamsRadius() ActivityStreamsRadiusProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUnits returns the "units" property if it exists, and + // nil otherwise. + GetActivityStreamsUnits() ActivityStreamsUnitsProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Place type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Place type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Place is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsPlace) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAccuracy sets the "accuracy" property. + SetActivityStreamsAccuracy(i ActivityStreamsAccuracyProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLatitude sets the "latitude" property. + SetActivityStreamsLatitude(i ActivityStreamsLatitudeProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsLongitude sets the "longitude" property. + SetActivityStreamsLongitude(i ActivityStreamsLongitudeProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsRadius sets the "radius" property. + SetActivityStreamsRadius(i ActivityStreamsRadiusProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUnits sets the "units" property. + SetActivityStreamsUnits(i ActivityStreamsUnitsProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_profile_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_profile_interface.go new file mode 100644 index 000000000..b4b8a7697 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_profile_interface.go @@ -0,0 +1,229 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A Profile is a content object that describes another Object, typically used to +// describe Actor Type objects. The describes property is used to reference +// the object being described by the profile. +// +// Example 59 (https://www.w3.org/TR/activitystreams-vocabulary/#ex184a-jsonld): +// +// { +// "describes": { +// "name": "Sally Smith", +// "type": "Person" +// }, +// "summary": "Sally's Profile", +// "type": "Profile" +// } +type ActivityStreamsProfile interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDescribes returns the "describes" property if it + // exists, and nil otherwise. + GetActivityStreamsDescribes() ActivityStreamsDescribesProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Profile + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Profile type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Profile is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsProfile) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDescribes sets the "describes" property. + SetActivityStreamsDescribes(i ActivityStreamsDescribesProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_question_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_question_interface.go new file mode 100644 index 000000000..c249bfc33 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_question_interface.go @@ -0,0 +1,281 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a question being asked. Question objects are an extension of +// IntransitiveActivity. That is, the Question object is an Activity, but the +// direct object is the question itself and therefore it would not contain an +// object property. Either of the anyOf and oneOf properties MAY be used to +// express possible answers, but a Question object MUST NOT have both +// properties. +// +// Example 40 (https://www.w3.org/TR/activitystreams-vocabulary/#ex55a-jsonld): +// +// { +// "name": "What is the answer?", +// "oneOf": [ +// { +// "name": "Option A", +// "type": "Note" +// }, +// { +// "name": "Option B", +// "type": "Note" +// } +// ], +// "type": "Question" +// } +// +// Example 41 (https://www.w3.org/TR/activitystreams-vocabulary/#ex55b-jsonld): +// +// { +// "closed": "2016-05-10T00:00:00Z", +// "name": "What is the answer?", +// "type": "Question" +// } +type ActivityStreamsQuestion interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAnyOf returns the "anyOf" property if it exists, and + // nil otherwise. + GetActivityStreamsAnyOf() ActivityStreamsAnyOfProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsClosed returns the "closed" property if it exists, + // and nil otherwise. + GetActivityStreamsClosed() ActivityStreamsClosedProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsOneOf returns the "oneOf" property if it exists, and + // nil otherwise. + GetActivityStreamsOneOf() ActivityStreamsOneOfProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootVotersCount returns the "votersCount" property if it exists, and + // nil otherwise. + GetTootVotersCount() TootVotersCountProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Question + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Question type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Question is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsQuestion) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAnyOf sets the "anyOf" property. + SetActivityStreamsAnyOf(i ActivityStreamsAnyOfProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsClosed sets the "closed" property. + SetActivityStreamsClosed(i ActivityStreamsClosedProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsOneOf sets the "oneOf" property. + SetActivityStreamsOneOf(i ActivityStreamsOneOfProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootVotersCount sets the "votersCount" property. + SetTootVotersCount(i TootVotersCountProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_read_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_read_interface.go new file mode 100644 index 000000000..b8eba8099 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_read_interface.go @@ -0,0 +1,237 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor has read the object. +// +// Example 33 (https://www.w3.org/TR/activitystreams-vocabulary/#ex164-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": "http://example.org/posts/1", +// "summary": "Sally read a blog post", +// "type": "Read" +// } +type ActivityStreamsRead interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Read type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Read type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Read is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsRead) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_reject_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_reject_interface.go new file mode 100644 index 000000000..498ed0799 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_reject_interface.go @@ -0,0 +1,245 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor is rejecting the object. The target and origin +// typically have no defined meaning. +// +// Example 25 (https://www.w3.org/TR/activitystreams-vocabulary/#ex26-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "actor": "http://john.example.org", +// "object": { +// "name": "Going-Away Party for Jim", +// "type": "Event" +// }, +// "type": "Invite" +// }, +// "summary": "Sally rejected an invitation to a party", +// "type": "Reject" +// } +type ActivityStreamsReject interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Reject + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Reject type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Reject is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsReject) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go new file mode 100644 index 000000000..20b6d2b0a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go @@ -0,0 +1,229 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Describes a relationship between two individuals. The subject and object +// properties are used to identify the connected individuals. See 5.2 +// Representing Relationships Between Entities for additional information. +// +// Example 47 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22-jsonld): +// +// { +// "object": { +// "name": "John", +// "type": "Person" +// }, +// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf", +// "subject": { +// "name": "Sally", +// "type": "Person" +// }, +// "summary": "Sally is an acquaintance of John", +// "type": "Relationship" +// } +type ActivityStreamsRelationship interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsRelationship returns the "relationship" property if + // it exists, and nil otherwise. + GetActivityStreamsRelationship() ActivityStreamsRelationshipProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSubject returns the "subject" property if it exists, + // and nil otherwise. + GetActivityStreamsSubject() ActivityStreamsSubjectProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // Relationship type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Relationship type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Relationship is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsRelationship) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsRelationship sets the "relationship" property. + SetActivityStreamsRelationship(i ActivityStreamsRelationshipProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSubject sets the "subject" property. + SetActivityStreamsSubject(i ActivityStreamsSubjectProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_remove_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_remove_interface.go new file mode 100644 index 000000000..cc50e7cc6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_remove_interface.go @@ -0,0 +1,261 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor is removing the object. If specified, the origin +// indicates the context from which the object is being removed. +// +// Example 27 (https://www.w3.org/TR/activitystreams-vocabulary/#ex28-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": "http://example.org/notes/1", +// "summary": "Sally removed a note from her notes folder", +// "target": { +// "name": "Notes Folder", +// "type": "Collection" +// }, +// "type": "Remove" +// } +// +// Example 28 (https://www.w3.org/TR/activitystreams-vocabulary/#ex29-jsonld): +// +// { +// "actor": { +// "name": "The Moderator", +// "type": "http://example.org/Role" +// }, +// "object": { +// "name": "Sally", +// "type": "Person" +// }, +// "origin": { +// "name": "A Simple Group", +// "type": "Group" +// }, +// "summary": "The moderator removed Sally from a group", +// "type": "Remove" +// } +type ActivityStreamsRemove interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Remove + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Remove type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Remove is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsRemove) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_service_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_service_interface.go new file mode 100644 index 000000000..fb21b5c21 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_service_interface.go @@ -0,0 +1,286 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a service of any kind. +// +// Example 46 (https://www.w3.org/TR/activitystreams-vocabulary/#ex42-jsonld): +// +// { +// "name": "Acme Web Service", +// "type": "Service" +// } +type ActivityStreamsService interface { + // GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it + // exists, and nil otherwise. + GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsEndpoints returns the "endpoints" property if it + // exists, and nil otherwise. + GetActivityStreamsEndpoints() ActivityStreamsEndpointsProperty + // GetActivityStreamsFollowers returns the "followers" property if it + // exists, and nil otherwise. + GetActivityStreamsFollowers() ActivityStreamsFollowersProperty + // GetActivityStreamsFollowing returns the "following" property if it + // exists, and nil otherwise. + GetActivityStreamsFollowing() ActivityStreamsFollowingProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInbox returns the "inbox" property if it exists, and + // nil otherwise. + GetActivityStreamsInbox() ActivityStreamsInboxProperty + // GetActivityStreamsLiked returns the "liked" property if it exists, and + // nil otherwise. + GetActivityStreamsLiked() ActivityStreamsLikedProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsManuallyApprovesFollowers returns the + // "manuallyApprovesFollowers" property if it exists, and nil + // otherwise. + GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsMovedTo returns the "movedTo" property if it exists, + // and nil otherwise. + GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOutbox returns the "outbox" property if it exists, + // and nil otherwise. + GetActivityStreamsOutbox() ActivityStreamsOutboxProperty + // GetActivityStreamsPreferredUsername returns the "preferredUsername" + // property if it exists, and nil otherwise. + GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsStreams returns the "streams" property if it exists, + // and nil otherwise. + GetActivityStreamsStreams() ActivityStreamsStreamsProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootDiscoverable returns the "discoverable" property if it exists, + // and nil otherwise. + GetTootDiscoverable() TootDiscoverableProperty + // GetTootFeatured returns the "featured" property if it exists, and nil + // otherwise. + GetTootFeatured() TootFeaturedProperty + // GetTootIndexable returns the "indexable" property if it exists, and nil + // otherwise. + GetTootIndexable() TootIndexableProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Service + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it + // exists, and nil otherwise. + GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty + // IsExtending returns true if the Service type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Service is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsService) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. + SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsEndpoints sets the "endpoints" property. + SetActivityStreamsEndpoints(i ActivityStreamsEndpointsProperty) + // SetActivityStreamsFollowers sets the "followers" property. + SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) + // SetActivityStreamsFollowing sets the "following" property. + SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInbox sets the "inbox" property. + SetActivityStreamsInbox(i ActivityStreamsInboxProperty) + // SetActivityStreamsLiked sets the "liked" property. + SetActivityStreamsLiked(i ActivityStreamsLikedProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsManuallyApprovesFollowers sets the + // "manuallyApprovesFollowers" property. + SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsMovedTo sets the "movedTo" property. + SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOutbox sets the "outbox" property. + SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) + // SetActivityStreamsPreferredUsername sets the "preferredUsername" + // property. + SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsStreams sets the "streams" property. + SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootDiscoverable sets the "discoverable" property. + SetTootDiscoverable(i TootDiscoverableProperty) + // SetTootFeatured sets the "featured" property. + SetTootFeatured(i TootFeaturedProperty) + // SetTootIndexable sets the "indexable" property. + SetTootIndexable(i TootIndexableProperty) + // SetW3IDSecurityV1PublicKey sets the "publicKey" property. + SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go new file mode 100644 index 000000000..0483ec2fd --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go @@ -0,0 +1,245 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A specialization of Accept indicating that the acceptance is tentative. +// +// Example 11 (https://www.w3.org/TR/activitystreams-vocabulary/#ex8-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "actor": "http://john.example.org", +// "object": { +// "name": "Going-Away Party for Jim", +// "type": "Event" +// }, +// "type": "Invite" +// }, +// "summary": "Sally tentatively accepted an invitation to a party", +// "type": "TentativeAccept" +// } +type ActivityStreamsTentativeAccept interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // TentativeAccept type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the TentativeAccept type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this TentativeAccept is lesser, with an arbitrary + // but stable determination. + LessThan(o ActivityStreamsTentativeAccept) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go new file mode 100644 index 000000000..e21d5659d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go @@ -0,0 +1,245 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A specialization of Reject in which the rejection is considered tentative. +// +// Example 26 (https://www.w3.org/TR/activitystreams-vocabulary/#ex27-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "actor": "http://john.example.org", +// "object": { +// "name": "Going-Away Party for Jim", +// "type": "Event" +// }, +// "type": "Invite" +// }, +// "summary": "Sally tentatively rejected an invitation to a party", +// "type": "TentativeReject" +// } +type ActivityStreamsTentativeReject interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // TentativeReject type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the TentativeReject type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this TentativeReject is lesser, with an arbitrary + // but stable determination. + LessThan(o ActivityStreamsTentativeReject) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go new file mode 100644 index 000000000..f8d343905 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go @@ -0,0 +1,237 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A Tombstone represents a content object that has been deleted. It can be used +// in Collections to signify that there used to be an object at this position, +// but it has been deleted. +// +// Example 60 (https://www.w3.org/TR/activitystreams-vocabulary/#ex184b-jsonld): +// +// { +// "name": "Vacation photos 2016", +// "orderedItems": [ +// { +// "id": "http://image.example/1", +// "type": "Image" +// }, +// { +// "deleted": "2016-03-17T00:00:00Z", +// "formerType": "/Image", +// "id": "http://image.example/2", +// "type": "Tombstone" +// }, +// { +// "id": "http://image.example/3", +// "type": "Image" +// } +// ], +// "totalItems": 3, +// "type": "OrderedCollection" +// } +type ActivityStreamsTombstone interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDeleted returns the "deleted" property if it exists, + // and nil otherwise. + GetActivityStreamsDeleted() ActivityStreamsDeletedProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsFormerType returns the "formerType" property if it + // exists, and nil otherwise. + GetActivityStreamsFormerType() ActivityStreamsFormerTypeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Tombstone + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Tombstone type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Tombstone is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsTombstone) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDeleted sets the "deleted" property. + SetActivityStreamsDeleted(i ActivityStreamsDeletedProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsFormerType sets the "formerType" property. + SetActivityStreamsFormerType(i ActivityStreamsFormerTypeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_travel_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_travel_interface.go new file mode 100644 index 000000000..afbbf2928 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_travel_interface.go @@ -0,0 +1,241 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor is traveling to target from origin. Travel is an +// IntransitiveActivity whose actor specifies the direct object. If the target +// or origin are not specified, either can be determined by context. +// +// Example 35 (https://www.w3.org/TR/activitystreams-vocabulary/#ex169-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "origin": { +// "name": "Work", +// "type": "Place" +// }, +// "summary": "Sally went home from work", +// "target": { +// "name": "Home", +// "type": "Place" +// }, +// "type": "Travel" +// } +type ActivityStreamsTravel interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Travel + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Travel type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Travel is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsTravel) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_undo_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_undo_interface.go new file mode 100644 index 000000000..d7f46a77e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_undo_interface.go @@ -0,0 +1,243 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor is undoing the object. In most cases, the object will +// be an Activity describing some previously performed action (for instance, a +// person may have previously "liked" an article but, for whatever reason, +// might choose to undo that like at some later point in time). The target and +// origin typically have no defined meaning. +// +// Example 29 (https://www.w3.org/TR/activitystreams-vocabulary/#ex32-jsonld): +// +// { +// "actor": "http://sally.example.org", +// "object": { +// "actor": "http://sally.example.org", +// "object": "http://example.org/posts/1", +// "target": "http://john.example.org", +// "type": "Offer" +// }, +// "summary": "Sally retracted her offer to John", +// "type": "Undo" +// } +type ActivityStreamsUndo interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Undo type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Undo type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Undo is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsUndo) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_update_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_update_interface.go new file mode 100644 index 000000000..55421447a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_update_interface.go @@ -0,0 +1,240 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor has updated the object. Note, however, that this +// vocabulary does not define a mechanism for describing the actual set of +// modifications made to object. The target and origin typically have no +// defined meaning. +// +// Example 30 (https://www.w3.org/TR/activitystreams-vocabulary/#ex33-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": "http://example.org/notes/1", +// "summary": "Sally updated her note", +// "type": "Update" +// } +type ActivityStreamsUpdate interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Update + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Update type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Update is lesser, with an arbitrary but + // stable determination. + LessThan(o ActivityStreamsUpdate) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_video_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_video_interface.go new file mode 100644 index 000000000..c42dd635a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_video_interface.go @@ -0,0 +1,229 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Represents a video document of any kind. +// +// Example 52 (https://www.w3.org/TR/activitystreams-vocabulary/#ex51-jsonld): +// +// { +// "duration": "PT2H", +// "name": "Puppy Plays With Ball", +// "type": "Video", +// "url": "http://example.org/video.mkv" +// } +type ActivityStreamsVideo interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, + // and nil otherwise. + GetGoToSocialApprovedBy() GoToSocialApprovedByProperty + // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootBlurhash returns the "blurhash" property if it exists, and nil + // otherwise. + GetTootBlurhash() TootBlurhashProperty + // GetTootFocalPoint returns the "focalPoint" property if it exists, and + // nil otherwise. + GetTootFocalPoint() TootFocalPointProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Video type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Video type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Video is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsVideo) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialApprovedBy sets the "approvedBy" property. + SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) + // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. + SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootBlurhash sets the "blurhash" property. + SetTootBlurhash(i TootBlurhashProperty) + // SetTootFocalPoint sets the "focalPoint" property. + SetTootFocalPoint(i TootFocalPointProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_view_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_view_interface.go new file mode 100644 index 000000000..2d3a1199f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_activitystreams_view_interface.go @@ -0,0 +1,240 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// Indicates that the actor has viewed the object. +// +// Example 31 (https://www.w3.org/TR/activitystreams-vocabulary/#ex161-jsonld): +// +// { +// "actor": { +// "name": "Sally", +// "type": "Person" +// }, +// "object": { +// "name": "What You Should Know About Activity Streams", +// "type": "Article" +// }, +// "summary": "Sally read an article", +// "type": "View" +// } +type ActivityStreamsView interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the View type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the View type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this View is lesser, with an arbitrary but stable + // determination. + LessThan(o ActivityStreamsView) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_album_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_album_interface.go new file mode 100644 index 000000000..e07f5be05 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_album_interface.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type FunkwhaleAlbum interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Album type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Album type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Album is lesser, with an arbitrary but stable + // determination. + LessThan(o FunkwhaleAlbum) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_artist_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_artist_interface.go new file mode 100644 index 000000000..1ed43d51a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_artist_interface.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type FunkwhaleArtist interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Artist + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Artist type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Artist is lesser, with an arbitrary but + // stable determination. + LessThan(o FunkwhaleArtist) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_library_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_library_interface.go new file mode 100644 index 000000000..cd878ab74 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_library_interface.go @@ -0,0 +1,200 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type FunkwhaleLibrary interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Library + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Library type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Library is lesser, with an arbitrary but + // stable determination. + LessThan(o FunkwhaleLibrary) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_track_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_track_interface.go new file mode 100644 index 000000000..ac0509c09 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_funkwhale_track_interface.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type FunkwhaleTrack interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Track type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Track type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Track is lesser, with an arbitrary but stable + // determination. + LessThan(o FunkwhaleTrack) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go new file mode 100644 index 000000000..576b4efe9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go @@ -0,0 +1,201 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// DEPRECATED: Use `AnnounceAuthorization` instead. +type GoToSocialAnnounceApproval interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // AnnounceApproval type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the AnnounceApproval type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this AnnounceApproval is lesser, with an arbitrary + // but stable determination. + LessThan(o GoToSocialAnnounceApproval) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go new file mode 100644 index 000000000..7e08fe47a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go @@ -0,0 +1,210 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialAnnounceAuthorization interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialInteractingObject returns the "interactingObject" property + // if it exists, and nil otherwise. + GetGoToSocialInteractingObject() GoToSocialInteractingObjectProperty + // GetGoToSocialInteractionTarget returns the "interactionTarget" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionTarget() GoToSocialInteractionTargetProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // AnnounceAuthorization type. Note that this should not be used by + // app developers. It is only used to help determine which + // implementation is LessThan the other. Developers who are creating a + // different implementation of this type's interface can use this + // method in their LessThan implementation, but routine ActivityPub + // applications should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the AnnounceAuthorization type extends from + // the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this AnnounceAuthorization is lesser, with an + // arbitrary but stable determination. + LessThan(o GoToSocialAnnounceAuthorization) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialInteractingObject sets the "interactingObject" property. + SetGoToSocialInteractingObject(i GoToSocialInteractingObjectProperty) + // SetGoToSocialInteractionTarget sets the "interactionTarget" property. + SetGoToSocialInteractionTarget(i GoToSocialInteractionTargetProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go new file mode 100644 index 000000000..599ac798b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go @@ -0,0 +1,225 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialAnnounceRequest interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // AnnounceRequest type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the AnnounceRequest type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this AnnounceRequest is lesser, with an arbitrary + // but stable determination. + LessThan(o GoToSocialAnnounceRequest) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go new file mode 100644 index 000000000..e80c483bb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go @@ -0,0 +1,55 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialCanAnnounce interface { + // GetGoToSocialAlways returns the "always" property if it exists, and nil + // otherwise. + GetGoToSocialAlways() GoToSocialAlwaysProperty + // GetGoToSocialApprovalRequired returns the "approvalRequired" property + // if it exists, and nil otherwise. + GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty + // GetGoToSocialAutomaticApproval returns the "automaticApproval" property + // if it exists, and nil otherwise. + GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty + // GetGoToSocialManualApproval returns the "manualApproval" property if it + // exists, and nil otherwise. + GetGoToSocialManualApproval() GoToSocialManualApprovalProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the CanAnnounce + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the CanAnnounce type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this CanAnnounce is lesser, with an arbitrary but + // stable determination. + LessThan(o GoToSocialCanAnnounce) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetGoToSocialAlways sets the "always" property. + SetGoToSocialAlways(i GoToSocialAlwaysProperty) + // SetGoToSocialApprovalRequired sets the "approvalRequired" property. + SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) + // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. + SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) + // SetGoToSocialManualApproval sets the "manualApproval" property. + SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go new file mode 100644 index 000000000..e417bd4f0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go @@ -0,0 +1,55 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialCanLike interface { + // GetGoToSocialAlways returns the "always" property if it exists, and nil + // otherwise. + GetGoToSocialAlways() GoToSocialAlwaysProperty + // GetGoToSocialApprovalRequired returns the "approvalRequired" property + // if it exists, and nil otherwise. + GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty + // GetGoToSocialAutomaticApproval returns the "automaticApproval" property + // if it exists, and nil otherwise. + GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty + // GetGoToSocialManualApproval returns the "manualApproval" property if it + // exists, and nil otherwise. + GetGoToSocialManualApproval() GoToSocialManualApprovalProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the CanLike + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the CanLike type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this CanLike is lesser, with an arbitrary but + // stable determination. + LessThan(o GoToSocialCanLike) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetGoToSocialAlways sets the "always" property. + SetGoToSocialAlways(i GoToSocialAlwaysProperty) + // SetGoToSocialApprovalRequired sets the "approvalRequired" property. + SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) + // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. + SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) + // SetGoToSocialManualApproval sets the "manualApproval" property. + SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go new file mode 100644 index 000000000..98e09421c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go @@ -0,0 +1,55 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialCanQuote interface { + // GetGoToSocialAlways returns the "always" property if it exists, and nil + // otherwise. + GetGoToSocialAlways() GoToSocialAlwaysProperty + // GetGoToSocialApprovalRequired returns the "approvalRequired" property + // if it exists, and nil otherwise. + GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty + // GetGoToSocialAutomaticApproval returns the "automaticApproval" property + // if it exists, and nil otherwise. + GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty + // GetGoToSocialManualApproval returns the "manualApproval" property if it + // exists, and nil otherwise. + GetGoToSocialManualApproval() GoToSocialManualApprovalProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the CanQuote + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the CanQuote type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this CanQuote is lesser, with an arbitrary but + // stable determination. + LessThan(o GoToSocialCanQuote) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetGoToSocialAlways sets the "always" property. + SetGoToSocialAlways(i GoToSocialAlwaysProperty) + // SetGoToSocialApprovalRequired sets the "approvalRequired" property. + SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) + // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. + SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) + // SetGoToSocialManualApproval sets the "manualApproval" property. + SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go new file mode 100644 index 000000000..2a0db5448 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go @@ -0,0 +1,55 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialCanReply interface { + // GetGoToSocialAlways returns the "always" property if it exists, and nil + // otherwise. + GetGoToSocialAlways() GoToSocialAlwaysProperty + // GetGoToSocialApprovalRequired returns the "approvalRequired" property + // if it exists, and nil otherwise. + GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty + // GetGoToSocialAutomaticApproval returns the "automaticApproval" property + // if it exists, and nil otherwise. + GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty + // GetGoToSocialManualApproval returns the "manualApproval" property if it + // exists, and nil otherwise. + GetGoToSocialManualApproval() GoToSocialManualApprovalProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the CanReply + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the CanReply type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this CanReply is lesser, with an arbitrary but + // stable determination. + LessThan(o GoToSocialCanReply) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetGoToSocialAlways sets the "always" property. + SetGoToSocialAlways(i GoToSocialAlwaysProperty) + // SetGoToSocialApprovalRequired sets the "approvalRequired" property. + SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) + // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. + SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) + // SetGoToSocialManualApproval sets the "manualApproval" property. + SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go new file mode 100644 index 000000000..a2497a44a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go @@ -0,0 +1,56 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// InteractionPolicy for an ActivityStreams Object. +type GoToSocialInteractionPolicy interface { + // GetGoToSocialCanAnnounce returns the "canAnnounce" property if it + // exists, and nil otherwise. + GetGoToSocialCanAnnounce() GoToSocialCanAnnounceProperty + // GetGoToSocialCanLike returns the "canLike" property if it exists, and + // nil otherwise. + GetGoToSocialCanLike() GoToSocialCanLikeProperty + // GetGoToSocialCanQuote returns the "canQuote" property if it exists, and + // nil otherwise. + GetGoToSocialCanQuote() GoToSocialCanQuoteProperty + // GetGoToSocialCanReply returns the "canReply" property if it exists, and + // nil otherwise. + GetGoToSocialCanReply() GoToSocialCanReplyProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // InteractionPolicy type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the InteractionPolicy type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this InteractionPolicy is lesser, with an + // arbitrary but stable determination. + LessThan(o GoToSocialInteractionPolicy) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetGoToSocialCanAnnounce sets the "canAnnounce" property. + SetGoToSocialCanAnnounce(i GoToSocialCanAnnounceProperty) + // SetGoToSocialCanLike sets the "canLike" property. + SetGoToSocialCanLike(i GoToSocialCanLikeProperty) + // SetGoToSocialCanQuote sets the "canQuote" property. + SetGoToSocialCanQuote(i GoToSocialCanQuoteProperty) + // SetGoToSocialCanReply sets the "canReply" property. + SetGoToSocialCanReply(i GoToSocialCanReplyProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go new file mode 100644 index 000000000..602abef07 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go @@ -0,0 +1,201 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// DEPRECATED: Use `LikeAuthorization` instead. +type GoToSocialLikeApproval interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // LikeApproval type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the LikeApproval type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this LikeApproval is lesser, with an arbitrary but + // stable determination. + LessThan(o GoToSocialLikeApproval) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go new file mode 100644 index 000000000..02e176fb4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go @@ -0,0 +1,210 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialLikeAuthorization interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialInteractingObject returns the "interactingObject" property + // if it exists, and nil otherwise. + GetGoToSocialInteractingObject() GoToSocialInteractingObjectProperty + // GetGoToSocialInteractionTarget returns the "interactionTarget" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionTarget() GoToSocialInteractionTargetProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // LikeAuthorization type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the LikeAuthorization type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this LikeAuthorization is lesser, with an + // arbitrary but stable determination. + LessThan(o GoToSocialLikeAuthorization) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialInteractingObject sets the "interactingObject" property. + SetGoToSocialInteractingObject(i GoToSocialInteractingObjectProperty) + // SetGoToSocialInteractionTarget sets the "interactionTarget" property. + SetGoToSocialInteractionTarget(i GoToSocialInteractionTargetProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go new file mode 100644 index 000000000..8490ea228 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go @@ -0,0 +1,225 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialLikeRequest interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the LikeRequest + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the LikeRequest type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this LikeRequest is lesser, with an arbitrary but + // stable determination. + LessThan(o GoToSocialLikeRequest) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go new file mode 100644 index 000000000..616dcbdf4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go @@ -0,0 +1,201 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// DEPRECATED: Use `ReplyAuthorization` instead. +type GoToSocialReplyApproval interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // ReplyApproval type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the ReplyApproval type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this ReplyApproval is lesser, with an arbitrary + // but stable determination. + LessThan(o GoToSocialReplyApproval) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go new file mode 100644 index 000000000..4d3975153 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go @@ -0,0 +1,210 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialReplyAuthorization interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetGoToSocialInteractingObject returns the "interactingObject" property + // if it exists, and nil otherwise. + GetGoToSocialInteractingObject() GoToSocialInteractingObjectProperty + // GetGoToSocialInteractionTarget returns the "interactionTarget" property + // if it exists, and nil otherwise. + GetGoToSocialInteractionTarget() GoToSocialInteractionTargetProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // ReplyAuthorization type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the ReplyAuthorization type extends from + // the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this ReplyAuthorization is lesser, with an + // arbitrary but stable determination. + LessThan(o GoToSocialReplyAuthorization) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetGoToSocialInteractingObject sets the "interactingObject" property. + SetGoToSocialInteractingObject(i GoToSocialInteractingObjectProperty) + // SetGoToSocialInteractionTarget sets the "interactionTarget" property. + SetGoToSocialInteractionTarget(i GoToSocialInteractionTargetProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go new file mode 100644 index 000000000..b6572c357 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go @@ -0,0 +1,225 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type GoToSocialReplyRequest interface { + // GetActivityStreamsActor returns the "actor" property if it exists, and + // nil otherwise. + GetActivityStreamsActor() ActivityStreamsActorProperty + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsInstrument returns the "instrument" property if it + // exists, and nil otherwise. + GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsOrigin returns the "origin" property if it exists, + // and nil otherwise. + GetActivityStreamsOrigin() ActivityStreamsOriginProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsResult returns the "result" property if it exists, + // and nil otherwise. + GetActivityStreamsResult() ActivityStreamsResultProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTarget returns the "target" property if it exists, + // and nil otherwise. + GetActivityStreamsTarget() ActivityStreamsTargetProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // ReplyRequest type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the ReplyRequest type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this ReplyRequest is lesser, with an arbitrary but + // stable determination. + LessThan(o GoToSocialReplyRequest) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsActor sets the "actor" property. + SetActivityStreamsActor(i ActivityStreamsActorProperty) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsInstrument sets the "instrument" property. + SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsOrigin sets the "origin" property. + SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsResult sets the "result" property. + SetActivityStreamsResult(i ActivityStreamsResultProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTarget sets the "target" property. + SetActivityStreamsTarget(i ActivityStreamsTargetProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go new file mode 100644 index 000000000..704708474 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go @@ -0,0 +1,207 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A property-value pair, e.g. representing a feature of a product or place. Use +// the 'name' property for the name of the property. +type SchemaPropertyValue interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetSchemaValue returns the "value" property if it exists, and nil + // otherwise. + GetSchemaValue() SchemaValueProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // PropertyValue type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the PropertyValue type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this PropertyValue is lesser, with an arbitrary + // but stable determination. + LessThan(o SchemaPropertyValue) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetSchemaValue sets the "value" property. + SetSchemaValue(i SchemaValueProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_emoji_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_emoji_interface.go new file mode 100644 index 000000000..f7386b8fb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_emoji_interface.go @@ -0,0 +1,216 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// { +// "content": "Hello world :Kappa:", +// "id": "https://example.com/@alice/hello-world", +// "tag": [ +// { +// "icon": { +// "mediaType": "image/png", +// "type": "Image", +// "url": "https://example.com/files/kappa.png" +// }, +// "id": "https://example.com/emoji/123", +// "name": ":Kappa:", +// "type": "Emoji" +// } +// ], +// "type": "Note" +// } +type TootEmoji interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Emoji type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Emoji type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Emoji is lesser, with an arbitrary but stable + // determination. + LessThan(o TootEmoji) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_hashtag_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_hashtag_interface.go new file mode 100644 index 000000000..f9fe3420e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_hashtag_interface.go @@ -0,0 +1,102 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// { +// "content": "example", +// "id": "https://example.com/@alice/hello-world", +// "tag": [ +// { +// "href": "https://example.com/hashtag/example", +// "name": "#example", +// "type": "Hashtag" +// } +// ], +// "type": "Note" +// } +type TootHashtag interface { + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsHeight returns the "height" property if it exists, + // and nil otherwise. + GetActivityStreamsHeight() ActivityStreamsHeightProperty + // GetActivityStreamsHref returns the "href" property if it exists, and + // nil otherwise. + GetActivityStreamsHref() ActivityStreamsHrefProperty + // GetActivityStreamsHreflang returns the "hreflang" property if it + // exists, and nil otherwise. + GetActivityStreamsHreflang() ActivityStreamsHreflangProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsRel returns the "rel" property if it exists, and nil + // otherwise. + GetActivityStreamsRel() ActivityStreamsRelProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsWidth returns the "width" property if it exists, and + // nil otherwise. + GetActivityStreamsWidth() ActivityStreamsWidthProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Hashtag + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Hashtag type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Hashtag is lesser, with an arbitrary but + // stable determination. + LessThan(o TootHashtag) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsHeight sets the "height" property. + SetActivityStreamsHeight(i ActivityStreamsHeightProperty) + // SetActivityStreamsHref sets the "href" property. + SetActivityStreamsHref(i ActivityStreamsHrefProperty) + // SetActivityStreamsHreflang sets the "hreflang" property. + SetActivityStreamsHreflang(i ActivityStreamsHreflangProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsRel sets the "rel" property. + SetActivityStreamsRel(i ActivityStreamsRelProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsWidth sets the "width" property. + SetActivityStreamsWidth(i ActivityStreamsWidthProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_identityproof_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_identityproof_interface.go new file mode 100644 index 000000000..e8fee3044 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_toot_identityproof_interface.go @@ -0,0 +1,211 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// null +type TootIdentityProof interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTootSignatureAlgorithm returns the "signatureAlgorithm" property if + // it exists, and nil otherwise. + GetTootSignatureAlgorithm() TootSignatureAlgorithmProperty + // GetTootSignatureValue returns the "signatureValue" property if it + // exists, and nil otherwise. + GetTootSignatureValue() TootSignatureValueProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the + // IdentityProof type. Note that this should not be used by app + // developers. It is only used to help determine which implementation + // is LessThan the other. Developers who are creating a different + // implementation of this type's interface can use this method in + // their LessThan implementation, but routine ActivityPub applications + // should not use this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the IdentityProof type extends from the + // other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this IdentityProof is lesser, with an arbitrary + // but stable determination. + LessThan(o TootIdentityProof) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // SetTootSignatureAlgorithm sets the "signatureAlgorithm" property. + SetTootSignatureAlgorithm(i TootSignatureAlgorithmProperty) + // SetTootSignatureValue sets the "signatureValue" property. + SetTootSignatureValue(i TootSignatureValueProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go new file mode 100644 index 000000000..7b6b7ffb8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go @@ -0,0 +1,46 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +// A public key represents a public cryptographical key for a user +type W3IDSecurityV1PublicKey interface { + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the PublicKey + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // GetW3IDSecurityV1Owner returns the "owner" property if it exists, and + // nil otherwise. + GetW3IDSecurityV1Owner() W3IDSecurityV1OwnerProperty + // GetW3IDSecurityV1PublicKeyPem returns the "publicKeyPem" property if it + // exists, and nil otherwise. + GetW3IDSecurityV1PublicKeyPem() W3IDSecurityV1PublicKeyPemProperty + // IsExtending returns true if the PublicKey type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this PublicKey is lesser, with an arbitrary but + // stable determination. + LessThan(o W3IDSecurityV1PublicKey) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetW3IDSecurityV1Owner sets the "owner" property. + SetW3IDSecurityV1Owner(i W3IDSecurityV1OwnerProperty) + // SetW3IDSecurityV1PublicKeyPem sets the "publicKeyPem" property. + SetW3IDSecurityV1PublicKeyPem(i W3IDSecurityV1PublicKeyPemProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/code.superseriousbusiness.org/exif-terminator/LICENSE b/vendor/code.superseriousbusiness.org/exif-terminator/LICENSE new file mode 100644 index 000000000..dba13ed2d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/exif-terminator/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/vendor/code.superseriousbusiness.org/exif-terminator/README.md b/vendor/code.superseriousbusiness.org/exif-terminator/README.md new file mode 100644 index 000000000..245bb9187 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/exif-terminator/README.md @@ -0,0 +1,116 @@ +# exif-terminator + +`exif-terminator` removes exif data from images (jpeg and png currently supported) in a streaming manner. All you need to do is provide a reader of the image in, and exif-terminator will provide a reader of the image out. + +Hasta la vista, baby! + +```text + .,lddxococ. + ..',lxO0Oo;'. + . .. .,coodO0klc:. + .,. ..','. .. .,..'. .':llxKXk' + .;c:cc;;,... .''.,l:cc. .....:l:,,:oo:.. + .,:ll'. .,;cox0OxOKKXX0kOOxlcld0X0d;,,,'. + .:xkl. .':cdKNWWWWMMMMMMMMMMWWNXK0KWNd. + .coxo,..:ollk0KKXNWMMMMMMMMMMWWXXXOoOM0; + ,oc,. .;cloxOKXXWWMMMMMMMMMMMWNXk;;OWO' + . ..;cdOKXNNWWMMMMMMMMMMMMWO,,ONO' + ...... ....;okOO000XWWMMMMMMMMMWXx;,ONNx. +.;c;. .:l'ckl. ..';looooolldolloooodolcc:;'.;oo:. +.oxl. ;:..OO. .. .. .,' .;. +.oko. .cc.'Ok. .:; .:,..';. +.cdc. .;;lc.,Ox. . .',,'..','. .dN0; .. .c:,,':. +.:oc. ,dxkl.,0x. . .. . .oNMMKc.. ...:l. +.:o:. cKXKl.,Ox. .. .lKWMMMXo,. ...''. +.:l; c0KKo.,0x. ...........';:lk0OKNNXKkl,..,;cxd' +.::' ;k00l.;0d. .. .,cloooddddxxddol;:ddloxdc,:odOWNc +.;,. ,ONKc.;0d. 'l,.. .:clllllllokKOl::cllclkKx'.lolxx' +.,. '0W0:.;0d. .:l,. .,:ccc:::oOXNXOkxdook0NWNx,,;c;. +... .kX0c.;0d. .loc' .,::;;;;lk0kddoooooddooO0o',ld; +.. .oOkk:cKd. .... .;:,',;cxK0o::ldkOkkOkxod:';oKx. +.. :dlOolKO, '::'.';:oOK0xdddoollooxOx::ccOx. +.. ';:o,.xKo. .,;'...';lddolooodkkkdol:,::lc. +.. ...:..oOl. ........';:codxxOXKKKk;':;:kl +.. .,..lOc. .. ....,codxkxxxxxo:,,;lKO. .,;'.. +... .. ck: ';,'. .;:cllloc,;;;colOK; .;odxxoc;. +...,.... . :x; .;:cc;'. .,;::c:'..,kXk:xNc .':oook00x:. + . cKx. .'.. ':clllc,...'';:::cc:;.,kOo:xNx. .'codddoox + .. ,xxl;',col:;. .:cccccc;;;:lxkkOOkdc,,lolcxWO' ;kNKc.' + .,. .c' ':dkO0O; .. .;ccccccc:::cldxkxoll:;oolcdN0:.. .xWNk; + .:' .c',xXNKkOXo .,. .,:cccccllc::lloooolc:;lo:;oXKc,::. .kWWX + ,' .cONMWMWkco, ', .';::ccclolc:llolollcccodo;:KXl..cl,. ;KWN + '. .xWWWWMKc;; ....;' ',;::::coolclloooollc:,:o;;0Xx, .,:;... ,0Ko + . ,kKNWWXd,cdd0NXKk:,;;;'';::::coollllllllllc;;ccl0Nkc. ..';loOx' + 'lxXWMXOOXNMMMMWWNNNWXkc;;;;;:cllccccccccc::lllkNWXd,. .cxO0Ol' + ,xKNWWXkkXWM0dxKNWWWMWNX0OOkl;;:c::cccc:,...:oONMMXOo;. :kOkOkl; + .;,;:;...,::. .;lokXKKNMMMWNOc,;;;,::;'...lOKNWNKkol:,..cKdcO0do + .:;... .. .,:okO0KNN0:.',,''''. ':xNMWKkxxOKXd,.cNk,:l:o +``` + +## Why? + +Exif removal is a pain in the arse. Most other libraries seem to parse the whole image into memory, then remove the exif data, then encode the image again. + +`exif-terminator` differs in that it removes exif data *while scanning through the image bytes*, and it doesn't do any reencoding of the image. Bytes of exif data are simply all set to 0, and the image data is piped back out again into the returned reader. + +The only exception is orientation data: if an image contains orientation data, this and only this data will be preserved since it's *actually useful*. + +## Example + +You can run the following example with `go run ./example/main.go`: + +```go +package main + +import ( + "io" + "os" + + terminator "code.superseriousbusiness.org/exif-terminator" +) + +func main() { + // open a file + sloth, err := os.Open("./images/sloth.jpg") + if err != nil { + panic(err) + } + defer sloth.Close() + + // terminate! + out, err := terminator.Terminate(sloth, "jpeg") + if err != nil { + panic(err) + } + + // read the bytes from the reader + b, err := io.ReadAll(out) + if err != nil { + panic(err) + } + + // save the file somewhere + if err := os.WriteFile("./images/sloth-clean.jpg", b, 0666); err != nil { + panic(err) + } +} +``` + +## Credits + +### Libraries + +`exif-terminator` borrows heavily from the [`dsoprea`](https://github.com/dsoprea) libraries credited below. In fact, it's basically a hack on top of those libraries. Thanks `dsoprea`! + +- [superseriousbusiness/go-jpeg-image-structure](https://code.superseriousbusiness.org/go-jpeg-image-structure): jpeg structure parsing. [MIT License](https://spdx.org/licenses/MIT.html). Forked from [dsoprea/go-jpeg-image-structure](https://github.com/dsoprea/go-jpeg-image-structure): jpeg structure parsing. [MIT License](https://spdx.org/licenses/MIT.html). +- [superseriousbusiness/go-png-image-structure](https://code.superseriousbusiness.org/go-png-image-structure): png structure parsing. Forked from [dsoprea/go-png-image-structure](https://github.com/dsoprea/go-png-image-structure): png structure parsing. [MIT License](https://spdx.org/licenses/MIT.html). +- [dsoprea/go-exif](https://github.com/dsoprea/go-exif): exif header reconstruction. [MIT License](https://spdx.org/licenses/MIT.html). +- [stretchr/testify](https://github.com/stretchr/testify); test framework. [MIT License](https://spdx.org/licenses/MIT.html). + +## License + +![the gnu AGPL logo](https://www.gnu.org/graphics/agplv3-155x51.png) + +`exif-terminator` is free software, licensed under the [GNU AGPL v3 LICENSE](LICENSE). + +Copyright (C) 2022-2025 SuperSeriousBusiness. diff --git a/vendor/code.superseriousbusiness.org/exif-terminator/exif.go b/vendor/code.superseriousbusiness.org/exif-terminator/exif.go new file mode 100644 index 000000000..02dacc654 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/exif-terminator/exif.go @@ -0,0 +1,53 @@ +/* + exif-terminator + Copyright (C) 2022 SuperSeriousBusiness admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +package terminator + +import ( + "strings" + + exif "github.com/dsoprea/go-exif/v3" + exifcommon "github.com/dsoprea/go-exif/v3/common" +) + +type withEXIF interface { + Exif() (rootIfd *exif.Ifd, data []byte, err error) + SetExif(ib *exif.IfdBuilder) (err error) +} + +func terminateEXIF(data withEXIF) error { + ifd, _, err := data.Exif() + if err != nil { + if strings.Contains(err.Error(), "no exif data") { + err = nil + } + return err + } + + ifdb := exif.NewIfdBuilderFromExistingChain(ifd) + orientation, _ := ifdb.FindTagWithName("Orientation") + + im, ti := exifcommon.NewIfdMapping(), exif.NewTagIndex() + ifdb = exif.NewIfdBuilder(im, ti, ifd.IfdIdentity(), ifd.ByteOrder()) + + if orientation != nil { + ifdb.Add(orientation) + } + + return data.SetExif(ifdb) +} diff --git a/vendor/code.superseriousbusiness.org/exif-terminator/jpeg.go b/vendor/code.superseriousbusiness.org/exif-terminator/jpeg.go new file mode 100644 index 000000000..fa61deb27 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/exif-terminator/jpeg.go @@ -0,0 +1,132 @@ +/* + exif-terminator + Copyright (C) 2022 SuperSeriousBusiness admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +package terminator + +import ( + "encoding/binary" + "fmt" + "io" + + jpegstructure "code.superseriousbusiness.org/go-jpeg-image-structure/v2" +) + +var markerLen = map[byte]int{ + 0x00: 0, + 0x01: 0, + 0xd0: 0, + 0xd1: 0, + 0xd2: 0, + 0xd3: 0, + 0xd4: 0, + 0xd5: 0, + 0xd6: 0, + 0xd7: 0, + 0xd8: 0, + 0xd9: 0, + 0xda: 0, + + // J2C + 0x30: 0, + 0x31: 0, + 0x32: 0, + 0x33: 0, + 0x34: 0, + 0x35: 0, + 0x36: 0, + 0x37: 0, + 0x38: 0, + 0x39: 0, + 0x3a: 0, + 0x3b: 0, + 0x3c: 0, + 0x3d: 0, + 0x3e: 0, + 0x3f: 0, + 0x4f: 0, + 0x92: 0, + 0x93: 0, + + // J2C extensions + 0x74: 4, + 0x75: 4, + 0x77: 4, +} + +type jpegVisitor struct { + js *jpegstructure.JpegSplitter + writer io.Writer +} + +// HandleSegment satisfies the visitor interface{} of the jpegstructure library. +// +// We don't really care about many of the parameters, since all we're interested +// in here is the very last segment that was scanned. +func (v *jpegVisitor) HandleSegment(segmentMarker byte, _ string, _ int, _ bool) error { + segmentList := v.js.Segments() + segments := segmentList.Segments() + mostRecentSegment := segments[len(segments)-1] + return v.writeSegment(mostRecentSegment) +} + +func (v *jpegVisitor) writeSegment(s *jpegstructure.Segment) error { + w := v.writer + + defer func() { + // whatever happens, when we finished then evict data from the segment; + // once we've written it we don't want it in memory anymore + s.Data = nil + }() + + if s.IsExif() { + // Segment contains exif data, terminate! + if err := terminateEXIF(s); err != nil { + return err + } + } + + // The scan-data will have a marker-ID of (0) because it doesn't have a marker-ID or length. + if s.MarkerId != 0 { + _, err := w.Write([]byte{0xff, s.MarkerId}) + if err != nil { + return err + } + + sizeLen, found := markerLen[s.MarkerId] + if !found || sizeLen == 2 { + l := uint16(len(s.Data) + 2) + b := make([]byte, 2) + binary.BigEndian.PutUint16(b, l) + if _, err := w.Write(b); err != nil { + return err + } + } else if sizeLen == 4 { + l := uint32(len(s.Data) + 4) + b := make([]byte, 4) + binary.BigEndian.PutUint32(b, l) + if _, err := w.Write(b); err != nil { + return err + } + } else if sizeLen != 0 { + return fmt.Errorf("not a supported marker-size: MARKER-ID=(0x%02x) MARKER-SIZE-LEN=(%d)", s.MarkerId, sizeLen) + } + } + + _, err := w.Write(s.Data) + return err +} diff --git a/vendor/code.superseriousbusiness.org/exif-terminator/png.go b/vendor/code.superseriousbusiness.org/exif-terminator/png.go new file mode 100644 index 000000000..6798e2b7d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/exif-terminator/png.go @@ -0,0 +1,85 @@ +/* + exif-terminator + Copyright (C) 2022 SuperSeriousBusiness admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +package terminator + +import ( + "io" + + pngstructure "code.superseriousbusiness.org/go-png-image-structure/v2" +) + +type pngVisitor struct { + ps *pngstructure.PngSplitter + writer io.Writer + lastWrittenChunk int +} + +func (v *pngVisitor) split(data []byte, atEOF bool) (int, []byte, error) { + // execute the ps split function to read in data + advance, token, err := v.ps.Split(data, atEOF) + if err != nil { + return advance, token, err + } + + // if we haven't written anything at all yet, then + // write the png header back into the writer first + if v.lastWrittenChunk == -1 { + if _, err := v.writer.Write(pngstructure.PngSignature[:]); err != nil { + return advance, token, err + } + } + + // Check if the splitter now has + // any new chunks in it for us. + chunkSlice, err := v.ps.Chunks() + if err != nil { + return advance, token, err + } + + // Write each chunk by passing it + // through our custom write func, + // which strips out exif and fixes + // the CRC of each chunk. + chunks := chunkSlice.Chunks() + for i := v.lastWrittenChunk + 1; i < len(chunks); i++ { + chunk := chunks[i] + + if chunk.Type == pngstructure.EXifChunkType { + // Finally, some exif data! Terminate it!! + if err := terminateEXIF(chunkSlice); err != nil { + return advance, token, err + } + + // Update chunk crc. + chunk.UpdateCrc32() + } + + // Write this new chunk. + if _, err := chunk.WriteTo(v.writer); err != nil { + return advance, token, err + } + v.lastWrittenChunk = i + + // Zero data; here you + // go garbage collector. + chunk.Data = nil + } + + return advance, token, err +} diff --git a/vendor/code.superseriousbusiness.org/exif-terminator/terminator.go b/vendor/code.superseriousbusiness.org/exif-terminator/terminator.go new file mode 100644 index 000000000..1ef7ddf06 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/exif-terminator/terminator.go @@ -0,0 +1,146 @@ +/* + exif-terminator + Copyright (C) 2022 SuperSeriousBusiness admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +package terminator + +import ( + "bufio" + "bytes" + "errors" + "fmt" + "io" + + jpegstructure "code.superseriousbusiness.org/go-jpeg-image-structure/v2" + pngstructure "code.superseriousbusiness.org/go-png-image-structure/v2" +) + +func Terminate(in io.Reader, mediaType string) (io.Reader, error) { + // To avoid keeping too much stuff + // in memory we want to pipe data + // directly to the reader. + pr, pw := io.Pipe() + + // Setup scanner to terminate exif into pipe writer. + scanner, err := terminatingScanner(pw, in, mediaType) + if err != nil { + _ = pw.Close() + return nil, err + } + + go func() { + var err error + + defer func() { + // Always close writer, using returned + // scanner error (if any). If err is nil + // then the standard io.EOF will be used. + // (this will not overwrite existing). + pw.CloseWithError(err) + }() + + // Scan through input. + for scanner.Scan() { + } + + // Set error on return. + err = scanner.Err() + }() + + return pr, nil +} + +func TerminateInto(out io.Writer, in io.Reader, mediaType string) error { + // Setup scanner to terminate exif from 'in' to 'out'. + scanner, err := terminatingScanner(out, in, mediaType) + if err != nil { + return err + } + + // Scan through input. + for scanner.Scan() { + } + + // Return scan errors. + return scanner.Err() +} + +func terminatingScanner(out io.Writer, in io.Reader, mediaType string) (*bufio.Scanner, error) { + scanner := bufio.NewScanner(in) + + // 40mb buffer size should be enough + // to scan through most file chunks + // without running into issues, they're + // usually chunked smaller than this... + scanner.Buffer(nil, 40*1024*1024) + + switch mediaType { + case "image/jpeg", "jpeg", "jpg": + v := &jpegVisitor{ + writer: out, + } + + // Provide the visitor to the splitter so + // that it triggers on every section scan. + js := jpegstructure.NewJpegSplitter(v) + + // The visitor also needs to read back the + // list of segments: for this it needs to + // know what jpeg splitter it's attached to, + // so give it a pointer to the splitter. + v.js = js + + // Jpeg visitor's 'split' function + // satisfies bufio.SplitFunc{}. + scanner.Split(js.Split) + + case "image/webp", "webp": + // Webp visitor's 'split' function + // satisfies bufio.SplitFunc{}. + scanner.Split((&webpVisitor{ + writer: out, + }).split) + + case "image/png", "png": + // For pngs we need to skip the header bytes, so read + // them in and check we're really dealing with a png. + header := make([]byte, len(pngstructure.PngSignature)) + if _, headerError := in.Read(header); headerError != nil { + return nil, headerError + } else if !bytes.Equal(header, pngstructure.PngSignature[:]) { + return nil, errors.New("could not decode png: invalid header") + } + + // Don't bother checking CRC; + // we're overwriting it anyway. + ps := pngstructure.NewPngSplitter() + ps.DoCheckCrc(false) + + // Png visitor's 'split' function + // satisfies bufio.SplitFunc{}. + scanner.Split((&pngVisitor{ + ps: ps, + writer: out, + lastWrittenChunk: -1, + }).split) + + default: + return nil, fmt.Errorf("mediaType %s cannot be processed", mediaType) + } + + return scanner, nil +} diff --git a/vendor/code.superseriousbusiness.org/exif-terminator/webp.go b/vendor/code.superseriousbusiness.org/exif-terminator/webp.go new file mode 100644 index 000000000..b050f38fc --- /dev/null +++ b/vendor/code.superseriousbusiness.org/exif-terminator/webp.go @@ -0,0 +1,109 @@ +/* + exif-terminator + Copyright (C) 2022 SuperSeriousBusiness admin@gotosocial.org + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +package terminator + +import ( + "encoding/binary" + "errors" + "io" +) + +const ( + riffHeader = "RIFF" + webpHeader = "WEBP" + exifFourcc = "EXIF" + xmpFourcc = "XMP " +) + +var ( + errNoRiffHeader = errors.New("no RIFF header") + errNoWebpHeader = errors.New("not a WEBP file") + errInvalidChunk = errors.New("invalid chunk") +) + +type webpVisitor struct { + writer io.Writer + doneHeader bool +} + +func (v *webpVisitor) split(data []byte, atEOF bool) (advance int, token []byte, err error) { + // parse/write the header first + if !v.doneHeader { + + // const rifHeaderSize = 12 + if len(data) < 12 { + if atEOF { + err = errNoRiffHeader + } + return + } + + if string(data[:4]) != riffHeader { + err = errNoRiffHeader + return + } + + if string(data[8:12]) != webpHeader { + err = errNoWebpHeader + return + } + + if _, err = v.writer.Write(data[:12]); err != nil { + return + } + + advance += 12 + data = data[12:] + v.doneHeader = true + } + + for { + // need enough for + // fourcc and size + if len(data) < 8 { + return + } + + size := int64(binary.LittleEndian.Uint32(data[4:])) + + if (size & 1) != 0 { + // odd chunk size: + // extra padding byte + size++ + } + + // wait until there is enough + if int64(len(data)) < 8+size { + return + } + + // replace exif/xmp with blank + switch string(data[:4]) { + case exifFourcc, xmpFourcc: + clear(data[8 : 8+size]) + } + + if _, err = v.writer.Write(data[:8+size]); err != nil { + return + } + + advance += 8 + int(size) + data = data[8+size:] + } +} diff --git a/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/.MODULE_ROOT b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/.MODULE_ROOT new file mode 100644 index 000000000..e69de29bb diff --git a/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/LICENSE b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/LICENSE new file mode 100644 index 000000000..163291ed6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/LICENSE @@ -0,0 +1,9 @@ +MIT LICENSE + +Copyright 2020 Dustin Oprea + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/README.md b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/README.md new file mode 100644 index 000000000..80c68c9f8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/README.md @@ -0,0 +1,7 @@ +**Forked from https://github.com/dsoprea/go-jpeg-image-structure** + +## Overview + +Parse raw JPEG data into individual segments of data. You can print or export this data, including hash digests for each. You can also parse/modify the EXIF data and write an updated image. + +EXIF, XMP, and IPTC data can also be extracted. The provided CLI tool can print this data as well. diff --git a/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/markers.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/markers.go new file mode 100644 index 000000000..a12171bd8 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/markers.go @@ -0,0 +1,212 @@ +package jpegstructure + +import ( + "github.com/dsoprea/go-logging" +) + +const ( + // MARKER_SOI marker + MARKER_SOI = 0xd8 + + // MARKER_EOI marker + MARKER_EOI = 0xd9 + + // MARKER_SOS marker + MARKER_SOS = 0xda + + // MARKER_SOD marker + MARKER_SOD = 0x93 + + // MARKER_DQT marker + MARKER_DQT = 0xdb + + // MARKER_APP0 marker + MARKER_APP0 = 0xe0 + + // MARKER_APP1 marker + MARKER_APP1 = 0xe1 + + // MARKER_APP2 marker + MARKER_APP2 = 0xe2 + + // MARKER_APP3 marker + MARKER_APP3 = 0xe3 + + // MARKER_APP4 marker + MARKER_APP4 = 0xe4 + + // MARKER_APP5 marker + MARKER_APP5 = 0xe5 + + // MARKER_APP6 marker + MARKER_APP6 = 0xe6 + + // MARKER_APP7 marker + MARKER_APP7 = 0xe7 + + // MARKER_APP8 marker + MARKER_APP8 = 0xe8 + + // MARKER_APP10 marker + MARKER_APP10 = 0xea + + // MARKER_APP12 marker + MARKER_APP12 = 0xec + + // MARKER_APP13 marker + MARKER_APP13 = 0xed + + // MARKER_APP14 marker + MARKER_APP14 = 0xee + + // MARKER_APP15 marker + MARKER_APP15 = 0xef + + // MARKER_COM marker + MARKER_COM = 0xfe + + // MARKER_CME marker + MARKER_CME = 0x64 + + // MARKER_SIZ marker + MARKER_SIZ = 0x51 + + // MARKER_DHT marker + MARKER_DHT = 0xc4 + + // MARKER_JPG marker + MARKER_JPG = 0xc8 + + // MARKER_DAC marker + MARKER_DAC = 0xcc + + // MARKER_SOF0 marker + MARKER_SOF0 = 0xc0 + + // MARKER_SOF1 marker + MARKER_SOF1 = 0xc1 + + // MARKER_SOF2 marker + MARKER_SOF2 = 0xc2 + + // MARKER_SOF3 marker + MARKER_SOF3 = 0xc3 + + // MARKER_SOF5 marker + MARKER_SOF5 = 0xc5 + + // MARKER_SOF6 marker + MARKER_SOF6 = 0xc6 + + // MARKER_SOF7 marker + MARKER_SOF7 = 0xc7 + + // MARKER_SOF9 marker + MARKER_SOF9 = 0xc9 + + // MARKER_SOF10 marker + MARKER_SOF10 = 0xca + + // MARKER_SOF11 marker + MARKER_SOF11 = 0xcb + + // MARKER_SOF13 marker + MARKER_SOF13 = 0xcd + + // MARKER_SOF14 marker + MARKER_SOF14 = 0xce + + // MARKER_SOF15 marker + MARKER_SOF15 = 0xcf +) + +var ( + jpegLogger = log.NewLogger("jpegstructure.jpeg") + jpegMagicStandard = []byte{0xff, MARKER_SOI, 0xff} + jpegMagic2000 = []byte{0xff, 0x4f, 0xff} + + markerLen = map[byte]int{ + 0x00: 0, + 0x01: 0, + 0xd0: 0, + 0xd1: 0, + 0xd2: 0, + 0xd3: 0, + 0xd4: 0, + 0xd5: 0, + 0xd6: 0, + 0xd7: 0, + 0xd8: 0, + 0xd9: 0, + 0xda: 0, + + // J2C + 0x30: 0, + 0x31: 0, + 0x32: 0, + 0x33: 0, + 0x34: 0, + 0x35: 0, + 0x36: 0, + 0x37: 0, + 0x38: 0, + 0x39: 0, + 0x3a: 0, + 0x3b: 0, + 0x3c: 0, + 0x3d: 0, + 0x3e: 0, + 0x3f: 0, + 0x4f: 0, + 0x92: 0, + 0x93: 0, + + // J2C extensions + 0x74: 4, + 0x75: 4, + 0x77: 4, + } + + markerNames = map[byte]string{ + MARKER_SOI: "SOI", + MARKER_EOI: "EOI", + MARKER_SOS: "SOS", + MARKER_SOD: "SOD", + MARKER_DQT: "DQT", + MARKER_APP0: "APP0", + MARKER_APP1: "APP1", + MARKER_APP2: "APP2", + MARKER_APP3: "APP3", + MARKER_APP4: "APP4", + MARKER_APP5: "APP5", + MARKER_APP6: "APP6", + MARKER_APP7: "APP7", + MARKER_APP8: "APP8", + MARKER_APP10: "APP10", + MARKER_APP12: "APP12", + MARKER_APP13: "APP13", + MARKER_APP14: "APP14", + MARKER_APP15: "APP15", + MARKER_COM: "COM", + MARKER_CME: "CME", + MARKER_SIZ: "SIZ", + + MARKER_DHT: "DHT", + MARKER_JPG: "JPG", + MARKER_DAC: "DAC", + + MARKER_SOF0: "SOF0", + MARKER_SOF1: "SOF1", + MARKER_SOF2: "SOF2", + MARKER_SOF3: "SOF3", + MARKER_SOF5: "SOF5", + MARKER_SOF6: "SOF6", + MARKER_SOF7: "SOF7", + MARKER_SOF9: "SOF9", + MARKER_SOF10: "SOF10", + MARKER_SOF11: "SOF11", + MARKER_SOF13: "SOF13", + MARKER_SOF14: "SOF14", + MARKER_SOF15: "SOF15", + } +) diff --git a/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/media_parser.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/media_parser.go new file mode 100644 index 000000000..e6fc60bc4 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/media_parser.go @@ -0,0 +1,139 @@ +package jpegstructure + +import ( + "bufio" + "bytes" + "image" + "io" + "os" + + "image/jpeg" + + "github.com/dsoprea/go-logging" + "github.com/dsoprea/go-utility/v2/image" +) + +// JpegMediaParser is a `riimage.MediaParser` that knows how to parse JPEG +// images. +type JpegMediaParser struct { +} + +// NewJpegMediaParser returns a new JpegMediaParser. +func NewJpegMediaParser() *JpegMediaParser { + + // TODO(dustin): Add test + + return new(JpegMediaParser) +} + +// Parse parses a JPEG uses an `io.ReadSeeker`. Even if it fails, it will return +// the list of segments encountered prior to the failure. +func (jmp *JpegMediaParser) Parse(rs io.ReadSeeker, size int) (ec riimage.MediaContext, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + s := bufio.NewScanner(rs) + + // Since each segment can be any size, our buffer must allowed to grow as + // large as the file. + buffer := []byte{} + s.Buffer(buffer, size) + + js := NewJpegSplitter(nil) + s.Split(js.Split) + + for s.Scan() != false { + } + + // Always return the segments that were parsed, at least until there was an + // error. + ec = js.Segments() + + log.PanicIf(s.Err()) + + return ec, nil +} + +// ParseFile parses a JPEG file. Even if it fails, it will return the list of +// segments encountered prior to the failure. +func (jmp *JpegMediaParser) ParseFile(filepath string) (ec riimage.MediaContext, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + // TODO(dustin): Add test + + f, err := os.Open(filepath) + log.PanicIf(err) + + defer f.Close() + + stat, err := f.Stat() + log.PanicIf(err) + + size := stat.Size() + + sl, err := jmp.Parse(f, int(size)) + + // Always return the segments that were parsed, at least until there was an + // error. + ec = sl + + log.PanicIf(err) + + return ec, nil +} + +// ParseBytes parses a JPEG byte-slice. Even if it fails, it will return the +// list of segments encountered prior to the failure. +func (jmp *JpegMediaParser) ParseBytes(data []byte) (ec riimage.MediaContext, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + br := bytes.NewReader(data) + + sl, err := jmp.Parse(br, len(data)) + + // Always return the segments that were parsed, at least until there was an + // error. + ec = sl + + log.PanicIf(err) + + return ec, nil +} + +// LooksLikeFormat indicates whether the data looks like a JPEG image. +func (jmp *JpegMediaParser) LooksLikeFormat(data []byte) bool { + if len(data) < 4 { + return false + } + + l := len(data) + if data[0] != 0xff || data[1] != MARKER_SOI || data[l-2] != 0xff || data[l-1] != MARKER_EOI { + return false + } + + return true +} + +// GetImage returns an image.Image-compatible struct. +func (jmp *JpegMediaParser) GetImage(r io.Reader) (img image.Image, err error) { + img, err = jpeg.Decode(r) + log.PanicIf(err) + + return img, nil +} + +var ( + // Enforce interface conformance. + _ riimage.MediaParser = new(JpegMediaParser) +) diff --git a/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment.go new file mode 100644 index 000000000..6b433bf1f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment.go @@ -0,0 +1,352 @@ +package jpegstructure + +import ( + "bytes" + "errors" + "fmt" + + "crypto/sha1" + "encoding/hex" + + "github.com/dsoprea/go-exif/v3" + "github.com/dsoprea/go-exif/v3/common" + "github.com/dsoprea/go-iptc" + "github.com/dsoprea/go-logging" + "github.com/dsoprea/go-photoshop-info-format" + "github.com/dsoprea/go-utility/v2/image" +) + +const ( + pirIptcImageResourceId = uint16(0x0404) +) + +var ( + // exifPrefix is the prefix found at the top of an EXIF slice. This is JPEG- + // specific. + exifPrefix = []byte{'E', 'x', 'i', 'f', 0, 0} + + xmpPrefix = []byte("http://ns.adobe.com/xap/1.0/\000") + + ps30Prefix = []byte("Photoshop 3.0\000") +) + +var ( + // ErrNoXmp is returned if XMP data was requested but not found. + ErrNoXmp = errors.New("no XMP data") + + // ErrNoIptc is returned if IPTC data was requested but not found. + ErrNoIptc = errors.New("no IPTC data") + + // ErrNoPhotoshopData is returned if Photoshop info was requested but not + // found. + ErrNoPhotoshopData = errors.New("no photoshop data") +) + +// SofSegment has info read from a SOF segment. +type SofSegment struct { + // BitsPerSample is the bits-per-sample. + BitsPerSample byte + + // Width is the image width. + Width uint16 + + // Height is the image height. + Height uint16 + + // ComponentCount is the number of color components. + ComponentCount byte +} + +// String returns a string representation of the SOF segment. +func (ss SofSegment) String() string { + + // TODO(dustin): Add test + + return fmt.Sprintf("SOF", ss.BitsPerSample, ss.Width, ss.Height, ss.ComponentCount) +} + +// SegmentVisitor describes a segment-visitor struct. +type SegmentVisitor interface { + // HandleSegment is triggered for each segment encountered as well as the + // scan-data. + HandleSegment(markerId byte, markerName string, counter int, lastIsScanData bool) error +} + +// SofSegmentVisitor describes a visitor that is only called for each SOF +// segment. +type SofSegmentVisitor interface { + // HandleSof is called for each encountered SOF segment. + HandleSof(sof *SofSegment) error +} + +// Segment describes a single segment. +type Segment struct { + MarkerId byte + MarkerName string + Offset int + Data []byte + + photoshopInfo map[uint16]photoshopinfo.Photoshop30InfoRecord + iptcTags map[iptc.StreamTagKey][]iptc.TagData +} + +// SetExif encodes and sets EXIF data into this segment. +func (s *Segment) SetExif(ib *exif.IfdBuilder) (err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + ibe := exif.NewIfdByteEncoder() + + exifData, err := ibe.EncodeToExif(ib) + log.PanicIf(err) + + l := len(exifPrefix) + + s.Data = make([]byte, l+len(exifData)) + copy(s.Data[0:], exifPrefix) + copy(s.Data[l:], exifData) + + return nil +} + +// Exif returns an `exif.Ifd` instance for the EXIF data we currently have. +func (s *Segment) Exif() (rootIfd *exif.Ifd, data []byte, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + l := len(exifPrefix) + + rawExif := s.Data[l:] + + jpegLogger.Debugf(nil, "Attempting to parse (%d) byte EXIF blob (Exif).", len(rawExif)) + + im, err := exifcommon.NewIfdMappingWithStandard() + log.PanicIf(err) + + ti := exif.NewTagIndex() + + _, index, err := exif.Collect(im, ti, rawExif) + log.PanicIf(err) + + return index.RootIfd, rawExif, nil +} + +// FlatExif parses the EXIF data and just returns a list of tags. +func (s *Segment) FlatExif() (exifTags []exif.ExifTag, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + // TODO(dustin): Add test + + l := len(exifPrefix) + + rawExif := s.Data[l:] + + jpegLogger.Debugf(nil, "Attempting to parse (%d) byte EXIF blob (FlatExif).", len(rawExif)) + + exifTags, _, err = exif.GetFlatExifData(rawExif, nil) + log.PanicIf(err) + + return exifTags, nil +} + +// EmbeddedString returns a string of properties that can be embedded into an +// longer string of properties. +func (s *Segment) EmbeddedString() string { + h := sha1.New() + h.Write(s.Data) + + // TODO(dustin): Add test + + digestString := hex.EncodeToString(h.Sum(nil)) + + return fmt.Sprintf("OFFSET=(0x%08x %10d) ID=(0x%02x) NAME=[%-5s] SIZE=(%10d) SHA1=[%s]", s.Offset, s.Offset, s.MarkerId, markerNames[s.MarkerId], len(s.Data), digestString) +} + +// String returns a descriptive string. +func (s *Segment) String() string { + + // TODO(dustin): Add test + + return fmt.Sprintf("Segment<%s>", s.EmbeddedString()) +} + +// IsExif returns true if EXIF data. +func (s *Segment) IsExif() bool { + if s.MarkerId != MARKER_APP1 { + return false + } + + // TODO(dustin): Add test + + l := len(exifPrefix) + + if len(s.Data) < l { + return false + } + + if bytes.Equal(s.Data[:l], exifPrefix) == false { + return false + } + + return true +} + +// IsXmp returns true if XMP data. +func (s *Segment) IsXmp() bool { + if s.MarkerId != MARKER_APP1 { + return false + } + + // TODO(dustin): Add test + + l := len(xmpPrefix) + + if len(s.Data) < l { + return false + } + + if bytes.Equal(s.Data[:l], xmpPrefix) == false { + return false + } + + return true +} + +// FormattedXmp returns a formatted XML string. This only makes sense for a +// segment comprised of XML data (like XMP). +func (s *Segment) FormattedXmp() (formatted string, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + // TODO(dustin): Add test + + if s.IsXmp() != true { + log.Panicf("not an XMP segment") + } + + l := len(xmpPrefix) + + raw := string(s.Data[l:]) + + formatted, err = FormatXml(raw) + log.PanicIf(err) + + return formatted, nil +} + +func (s *Segment) parsePhotoshopInfo() (photoshopInfo map[uint16]photoshopinfo.Photoshop30InfoRecord, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + if s.photoshopInfo != nil { + return s.photoshopInfo, nil + } + + if s.MarkerId != MARKER_APP13 { + return nil, ErrNoPhotoshopData + } + + l := len(ps30Prefix) + + if len(s.Data) < l { + return nil, ErrNoPhotoshopData + } + + if bytes.Equal(s.Data[:l], ps30Prefix) == false { + return nil, ErrNoPhotoshopData + } + + data := s.Data[l:] + b := bytes.NewBuffer(data) + + // Parse it. + + pirIndex, err := photoshopinfo.ReadPhotoshop30Info(b) + log.PanicIf(err) + + s.photoshopInfo = pirIndex + + return s.photoshopInfo, nil +} + +// IsIptc returns true if XMP data. +func (s *Segment) IsIptc() bool { + // TODO(dustin): Add test + + // There's a cost to determining if there's IPTC data, so we won't do it + // more than once. + if s.iptcTags != nil { + return true + } + + photoshopInfo, err := s.parsePhotoshopInfo() + if err != nil { + if err == ErrNoPhotoshopData { + return false + } + + log.Panic(err) + } + + // Bail if the Photoshop info doesn't have IPTC data. + + _, found := photoshopInfo[pirIptcImageResourceId] + if found == false { + return false + } + + return true +} + +// Iptc parses Photoshop info (if present) and then parses the IPTC info inside +// it (if present). +func (s *Segment) Iptc() (tags map[iptc.StreamTagKey][]iptc.TagData, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + // Cache the parse. + if s.iptcTags != nil { + return s.iptcTags, nil + } + + photoshopInfo, err := s.parsePhotoshopInfo() + log.PanicIf(err) + + iptcPir, found := photoshopInfo[pirIptcImageResourceId] + if found == false { + return nil, ErrNoIptc + } + + b := bytes.NewBuffer(iptcPir.Data) + + tags, err = iptc.ParseStream(b) + log.PanicIf(err) + + s.iptcTags = tags + + return tags, nil +} + +var ( + // Enforce interface conformance. + _ riimage.MediaContext = new(Segment) +) diff --git a/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment_list.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment_list.go new file mode 100644 index 000000000..b4f4d5810 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/segment_list.go @@ -0,0 +1,416 @@ +package jpegstructure + +import ( + "bytes" + "fmt" + "io" + + "crypto/sha1" + "encoding/binary" + + "github.com/dsoprea/go-exif/v3" + "github.com/dsoprea/go-exif/v3/common" + "github.com/dsoprea/go-iptc" + "github.com/dsoprea/go-logging" +) + +// SegmentList contains a slice of segments. +type SegmentList struct { + segments []*Segment +} + +// NewSegmentList returns a new SegmentList struct. +func NewSegmentList(segments []*Segment) (sl *SegmentList) { + if segments == nil { + segments = make([]*Segment, 0) + } + + return &SegmentList{ + segments: segments, + } +} + +// OffsetsEqual returns true is all segments have the same marker-IDs and were +// found at the same offsets. +func (sl *SegmentList) OffsetsEqual(o *SegmentList) bool { + if len(o.segments) != len(sl.segments) { + return false + } + + for i, s := range o.segments { + if s.MarkerId != sl.segments[i].MarkerId || s.Offset != sl.segments[i].Offset { + return false + } + } + + return true +} + +// Segments returns the underlying slice of segments. +func (sl *SegmentList) Segments() []*Segment { + return sl.segments +} + +// Add adds another segment. +func (sl *SegmentList) Add(s *Segment) { + sl.segments = append(sl.segments, s) +} + +// Print prints segment info. +func (sl *SegmentList) Print() { + if len(sl.segments) == 0 { + fmt.Printf("No segments.\n") + } else { + exifIndex, _, err := sl.FindExif() + if err != nil { + if err == exif.ErrNoExif { + exifIndex = -1 + } else { + log.Panic(err) + } + } + + xmpIndex, _, err := sl.FindXmp() + if err != nil { + if err == ErrNoXmp { + xmpIndex = -1 + } else { + log.Panic(err) + } + } + + iptcIndex, _, err := sl.FindIptc() + if err != nil { + if err == ErrNoIptc { + iptcIndex = -1 + } else { + log.Panic(err) + } + } + + for i, s := range sl.segments { + fmt.Printf("%2d: %s", i, s.EmbeddedString()) + + if i == exifIndex { + fmt.Printf(" [EXIF]") + } else if i == xmpIndex { + fmt.Printf(" [XMP]") + } else if i == iptcIndex { + fmt.Printf(" [IPTC]") + } + + fmt.Printf("\n") + } + } +} + +// Validate checks that all of the markers are actually located at all of the +// recorded offsets. +func (sl *SegmentList) Validate(data []byte) (err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + if len(sl.segments) < 2 { + log.Panicf("minimum segments not found") + } + + if sl.segments[0].MarkerId != MARKER_SOI { + log.Panicf("first segment not SOI") + } else if sl.segments[len(sl.segments)-1].MarkerId != MARKER_EOI { + log.Panicf("last segment not EOI") + } + + lastOffset := 0 + for i, s := range sl.segments { + if lastOffset != 0 && s.Offset <= lastOffset { + log.Panicf("segment offset not greater than the last: SEGMENT=(%d) (0x%08x) <= (0x%08x)", i, s.Offset, lastOffset) + } + + // The scan-data doesn't start with a marker. + if s.MarkerId == 0x0 { + continue + } + + o := s.Offset + if bytes.Compare(data[o:o+2], []byte{0xff, s.MarkerId}) != 0 { + log.Panicf("segment offset does not point to the start of a segment: SEGMENT=(%d) (0x%08x)", i, s.Offset) + } + + lastOffset = o + } + + return nil +} + +// FindExif returns the the segment that hosts the EXIF data (if present). +func (sl *SegmentList) FindExif() (index int, segment *Segment, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + for i, s := range sl.segments { + if s.IsExif() == true { + return i, s, nil + } + } + + return -1, nil, exif.ErrNoExif +} + +// FindXmp returns the the segment that hosts the XMP data (if present). +func (sl *SegmentList) FindXmp() (index int, segment *Segment, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + for i, s := range sl.segments { + if s.IsXmp() == true { + return i, s, nil + } + } + + return -1, nil, ErrNoXmp +} + +// FindIptc returns the the segment that hosts the IPTC data (if present). +func (sl *SegmentList) FindIptc() (index int, segment *Segment, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + for i, s := range sl.segments { + if s.IsIptc() == true { + return i, s, nil + } + } + + return -1, nil, ErrNoIptc +} + +// Exif returns an `exif.Ifd` instance for the EXIF data we currently have. +func (sl *SegmentList) Exif() (rootIfd *exif.Ifd, rawExif []byte, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + _, s, err := sl.FindExif() + log.PanicIf(err) + + rootIfd, rawExif, err = s.Exif() + log.PanicIf(err) + + return rootIfd, rawExif, nil +} + +// Iptc returns embedded IPTC data if present. +func (sl *SegmentList) Iptc() (tags map[iptc.StreamTagKey][]iptc.TagData, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + // TODO(dustin): Add comment and return data. + + _, s, err := sl.FindIptc() + log.PanicIf(err) + + tags, err = s.Iptc() + log.PanicIf(err) + + return tags, nil +} + +// ConstructExifBuilder returns an `exif.IfdBuilder` instance (needed for +// modifying) preloaded with all existing tags. +func (sl *SegmentList) ConstructExifBuilder() (rootIb *exif.IfdBuilder, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + rootIfd, _, err := sl.Exif() + if log.Is(err, exif.ErrNoExif) == true { + // No EXIF. Just create a boilerplate builder. + + im := exifcommon.NewIfdMapping() + + err := exifcommon.LoadStandardIfds(im) + log.PanicIf(err) + + ti := exif.NewTagIndex() + + rootIb := + exif.NewIfdBuilder( + im, + ti, + exifcommon.IfdStandardIfdIdentity, + exifcommon.EncodeDefaultByteOrder) + + return rootIb, nil + } else if err != nil { + log.Panic(err) + } + + rootIb = exif.NewIfdBuilderFromExistingChain(rootIfd) + + return rootIb, nil +} + +// DumpExif returns an unstructured list of tags (useful when just reviewing). +func (sl *SegmentList) DumpExif() (segmentIndex int, segment *Segment, exifTags []exif.ExifTag, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + segmentIndex, s, err := sl.FindExif() + if err != nil { + if err == exif.ErrNoExif { + return 0, nil, nil, err + } + + log.Panic(err) + } + + exifTags, err = s.FlatExif() + log.PanicIf(err) + + return segmentIndex, s, exifTags, nil +} + +func makeEmptyExifSegment() (s *Segment) { + + // TODO(dustin): Add test + + return &Segment{ + MarkerId: MARKER_APP1, + } +} + +// SetExif encodes and sets EXIF data into the given segment. If `index` is -1, +// append a new segment. +func (sl *SegmentList) SetExif(ib *exif.IfdBuilder) (err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + _, s, err := sl.FindExif() + if err != nil { + if log.Is(err, exif.ErrNoExif) == false { + log.Panic(err) + } + + s = makeEmptyExifSegment() + + prefix := sl.segments[:1] + + // Install it near the beginning where we know it's safe. We can't + // insert it after the EOI segment, and there might be more than one + // depending on implementation and/or lax adherence to the standard. + tail := append([]*Segment{s}, sl.segments[1:]...) + + sl.segments = append(prefix, tail...) + } + + err = s.SetExif(ib) + log.PanicIf(err) + + return nil +} + +// DropExif will drop the EXIF data if present. +func (sl *SegmentList) DropExif() (wasDropped bool, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + // TODO(dustin): Add test + + i, _, err := sl.FindExif() + if err == nil { + // Found. + sl.segments = append(sl.segments[:i], sl.segments[i+1:]...) + + return true, nil + } else if log.Is(err, exif.ErrNoExif) == false { + log.Panic(err) + } + + // Not found. + return false, nil +} + +// Write writes the segment data to the given `io.Writer`. +func (sl *SegmentList) Write(w io.Writer) (err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + offset := 0 + + for i, s := range sl.segments { + h := sha1.New() + h.Write(s.Data) + + // The scan-data will have a marker-ID of (0) because it doesn't have a + // marker-ID or length. + if s.MarkerId != 0 { + _, err := w.Write([]byte{0xff}) + log.PanicIf(err) + + offset++ + + _, err = w.Write([]byte{s.MarkerId}) + log.PanicIf(err) + + offset++ + + sizeLen, found := markerLen[s.MarkerId] + if found == false || sizeLen == 2 { + sizeLen = 2 + l := uint16(len(s.Data) + sizeLen) + + err = binary.Write(w, binary.BigEndian, &l) + log.PanicIf(err) + + offset += 2 + } else if sizeLen == 4 { + l := uint32(len(s.Data) + sizeLen) + + err = binary.Write(w, binary.BigEndian, &l) + log.PanicIf(err) + + offset += 4 + } else if sizeLen != 0 { + log.Panicf("not a supported marker-size: SEGMENT-INDEX=(%d) MARKER-ID=(0x%02x) MARKER-SIZE-LEN=(%d)", i, s.MarkerId, sizeLen) + } + } + + _, err := w.Write(s.Data) + log.PanicIf(err) + + offset += len(s.Data) + } + + return nil +} diff --git a/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/splitter.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/splitter.go new file mode 100644 index 000000000..1856beddf --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/splitter.go @@ -0,0 +1,437 @@ +package jpegstructure + +import ( + "bufio" + "bytes" + "io" + + "encoding/binary" + + "github.com/dsoprea/go-logging" +) + +// JpegSplitter uses the Go stream splitter to divide the JPEG stream into +// segments. +type JpegSplitter struct { + lastMarkerId byte + lastMarkerName string + counter int + lastIsScanData bool + visitor interface{} + + currentOffset int + segments *SegmentList + + scandataOffset int +} + +// NewJpegSplitter returns a new JpegSplitter. +func NewJpegSplitter(visitor interface{}) *JpegSplitter { + return &JpegSplitter{ + segments: NewSegmentList(nil), + visitor: visitor, + } +} + +// Segments returns all found segments. +func (js *JpegSplitter) Segments() *SegmentList { + return js.segments +} + +// MarkerId returns the ID of the last processed marker. +func (js *JpegSplitter) MarkerId() byte { + return js.lastMarkerId +} + +// MarkerName returns the name of the last-processed marker. +func (js *JpegSplitter) MarkerName() string { + return js.lastMarkerName +} + +// Counter returns the number of processed segments. +func (js *JpegSplitter) Counter() int { + return js.counter +} + +// IsScanData returns whether the last processed segment was scan-data. +func (js *JpegSplitter) IsScanData() bool { + return js.lastIsScanData +} + +func (js *JpegSplitter) processScanData(data []byte) (advanceBytes int, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + // Search through the segment, past all 0xff's therein, until we encounter + // the EOI segment. + + dataLength := -1 + for i := js.scandataOffset; i < len(data); i++ { + thisByte := data[i] + + if i == 0 { + continue + } + + lastByte := data[i-1] + if lastByte != 0xff { + continue + } + + if thisByte == 0x00 || thisByte >= 0xd0 && thisByte <= 0xd8 { + continue + } + + // After all of the other checks, this means that we're on the EOF + // segment. + if thisByte != MARKER_EOI { + continue + } + + dataLength = i - 1 + break + } + + if dataLength == -1 { + // On the next pass, start on the last byte of this pass, just in case + // the first byte of the two-byte sequence is here. + js.scandataOffset = len(data) - 1 + + jpegLogger.Debugf(nil, "Scan-data not fully available (%d).", len(data)) + return 0, nil + } + + js.lastIsScanData = true + js.lastMarkerId = 0 + js.lastMarkerName = "" + + // Note that we don't increment the counter since this isn't an actual + // segment. + + jpegLogger.Debugf(nil, "End of scan-data.") + + err = js.handleSegment(0x0, "!SCANDATA", 0x0, data[:dataLength]) + log.PanicIf(err) + + return dataLength, nil +} + +func (js *JpegSplitter) readSegment(data []byte) (count int, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + if js.counter == 0 { + // Verify magic bytes. + + if len(data) < 3 { + jpegLogger.Debugf(nil, "Not enough (1)") + return 0, nil + } + + if data[0] == jpegMagic2000[0] && data[1] == jpegMagic2000[1] && data[2] == jpegMagic2000[2] { + // TODO(dustin): Revisit JPEG2000 support. + log.Panicf("JPEG2000 not supported") + } + + if data[0] != jpegMagicStandard[0] || data[1] != jpegMagicStandard[1] || data[2] != jpegMagicStandard[2] { + log.Panicf("file does not look like a JPEG: (%02x) (%02x) (%02x)", data[0], data[1], data[2]) + } + } + + chunkLength := len(data) + + jpegLogger.Debugf(nil, "SPLIT: LEN=(%d) COUNTER=(%d)", chunkLength, js.counter) + + if js.scanDataIsNext() == true { + // If the last segment was the SOS, we're currently sitting on scan data. + // Search for the EOI marker afterward in order to know how much data + // there is. Return this as its own token. + // + // REF: https://stackoverflow.com/questions/26715684/parsing-jpeg-sos-marker + + advanceBytes, err := js.processScanData(data) + log.PanicIf(err) + + // This will either return 0 and implicitly request that we need more + // data and then need to run again or will return an actual byte count + // to progress by. + + return advanceBytes, nil + } else if js.lastMarkerId == MARKER_EOI { + // We have more data following the EOI, which is unexpected. There + // might be non-standard cruft at the end of the file. Terminate the + // parse because the file-structure is, technically, complete at this + // point. + + return 0, io.EOF + } else { + js.lastIsScanData = false + } + + // If we're here, we're supposed to be sitting on the 0xff bytes at the + // beginning of a segment (just before the marker). + + if data[0] != 0xff { + log.Panicf("not on new segment marker @ (%d): (%02X)", js.currentOffset, data[0]) + } + + i := 0 + found := false + for ; i < chunkLength; i++ { + jpegLogger.Debugf(nil, "Prefix check: (%d) %02X", i, data[i]) + + if data[i] != 0xff { + found = true + break + } + } + + jpegLogger.Debugf(nil, "Skipped over leading 0xFF bytes: (%d)", i) + + if found == false || i >= chunkLength { + jpegLogger.Debugf(nil, "Not enough (3)") + return 0, nil + } + + markerId := data[i] + + js.lastMarkerName = markerNames[markerId] + + sizeLen, found := markerLen[markerId] + jpegLogger.Debugf(nil, "MARKER-ID=%x SIZELEN=%v FOUND=%v", markerId, sizeLen, found) + + i++ + + b := bytes.NewBuffer(data[i:]) + payloadLength := 0 + + // marker-ID + size => 2 + + headerSize := 2 + sizeLen + + if found == false { + + // It's not one of the static-length markers. Read the length. + // + // The length is an unsigned 16-bit network/big-endian. + + // marker-ID + size => 2 + 2 + headerSize = 2 + 2 + + if i+2 >= chunkLength { + jpegLogger.Debugf(nil, "Not enough (4)") + return 0, nil + } + + l := uint16(0) + err = binary.Read(b, binary.BigEndian, &l) + log.PanicIf(err) + + if l < 2 { + log.Panicf("length of size read for non-special marker (%02x) is unexpectedly less than two.", markerId) + } + + // (l includes the bytes of the length itself.) + payloadLength = int(l) - 2 + jpegLogger.Debugf(nil, "DataLength (dynamically-sized segment): (%d)", payloadLength) + + i += 2 + } else if sizeLen > 0 { + + // Accommodates the non-zero markers in our marker index, which only + // represent J2C extensions. + // + // The length is an unsigned 32-bit network/big-endian. + + // TODO(dustin): !! This needs to be tested, but we need an image. + + if sizeLen != 4 { + log.Panicf("known non-zero marker is not four bytes, which is not currently handled: M=(%x)", markerId) + } + + if i+4 >= chunkLength { + jpegLogger.Debugf(nil, "Not enough (5)") + return 0, nil + } + + l := uint32(0) + err = binary.Read(b, binary.BigEndian, &l) + log.PanicIf(err) + + payloadLength = int(l) - 4 + jpegLogger.Debugf(nil, "DataLength (four-byte-length segment): (%u)", l) + + i += 4 + } + + jpegLogger.Debugf(nil, "PAYLOAD-LENGTH: %d", payloadLength) + + payload := data[i:] + + if payloadLength < 0 { + log.Panicf("payload length less than zero: (%d)", payloadLength) + } + + i += int(payloadLength) + + if i > chunkLength { + jpegLogger.Debugf(nil, "Not enough (6)") + return 0, nil + } + + jpegLogger.Debugf(nil, "Found whole segment.") + + js.lastMarkerId = markerId + + payloadWindow := payload[:payloadLength] + err = js.handleSegment(markerId, js.lastMarkerName, headerSize, payloadWindow) + log.PanicIf(err) + + js.counter++ + + jpegLogger.Debugf(nil, "Returning advance of (%d)", i) + + return i, nil +} + +func (js *JpegSplitter) scanDataIsNext() bool { + return js.lastMarkerId == MARKER_SOS +} + +// Split is the base splitting function that satisfies `bufio.SplitFunc`. +func (js *JpegSplitter) Split(data []byte, atEOF bool) (advance int, token []byte, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + for len(data) > 0 { + currentAdvance, err := js.readSegment(data) + if err != nil { + if err == io.EOF { + // We've encountered an EOI marker. + return 0, nil, err + } + + log.Panic(err) + } + + if currentAdvance == 0 { + if len(data) > 0 && atEOF == true { + // Provide a little context in the error message. + + if js.scanDataIsNext() == true { + // Yes, we've ran into this. + + log.Panicf("scan-data is unbounded; EOI not encountered before EOF") + } else { + log.Panicf("partial segment data encountered before scan-data") + } + } + + // We don't have enough data for another segment. + break + } + + data = data[currentAdvance:] + advance += currentAdvance + } + + return advance, nil, nil +} + +func (js *JpegSplitter) parseSof(data []byte) (sof *SofSegment, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + stream := bytes.NewBuffer(data) + buffer := bufio.NewReader(stream) + + bitsPerSample, err := buffer.ReadByte() + log.PanicIf(err) + + height := uint16(0) + err = binary.Read(buffer, binary.BigEndian, &height) + log.PanicIf(err) + + width := uint16(0) + err = binary.Read(buffer, binary.BigEndian, &width) + log.PanicIf(err) + + componentCount, err := buffer.ReadByte() + log.PanicIf(err) + + sof = &SofSegment{ + BitsPerSample: bitsPerSample, + Width: width, + Height: height, + ComponentCount: componentCount, + } + + return sof, nil +} + +func (js *JpegSplitter) parseAppData(markerId byte, data []byte) (err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + return nil +} + +func (js *JpegSplitter) handleSegment(markerId byte, markerName string, headerSize int, payload []byte) (err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + cloned := make([]byte, len(payload)) + copy(cloned, payload) + + s := &Segment{ + MarkerId: markerId, + MarkerName: markerName, + Offset: js.currentOffset, + Data: cloned, + } + + jpegLogger.Debugf(nil, "Encountered marker (0x%02x) [%s] at offset (%d)", markerId, markerName, js.currentOffset) + + js.currentOffset += headerSize + len(payload) + + js.segments.Add(s) + + sv, ok := js.visitor.(SegmentVisitor) + if ok == true { + err = sv.HandleSegment(js.lastMarkerId, js.lastMarkerName, js.counter, js.lastIsScanData) + log.PanicIf(err) + } + + if markerId >= MARKER_SOF0 && markerId <= MARKER_SOF15 { + ssv, ok := js.visitor.(SofSegmentVisitor) + if ok == true { + sof, err := js.parseSof(payload) + log.PanicIf(err) + + err = ssv.HandleSof(sof) + log.PanicIf(err) + } + } else if markerId >= MARKER_APP0 && markerId <= MARKER_APP15 { + err := js.parseAppData(markerId, payload) + log.PanicIf(err) + } + + return nil +} diff --git a/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/testing_common.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/testing_common.go new file mode 100644 index 000000000..e7169c2f0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/testing_common.go @@ -0,0 +1,73 @@ +package jpegstructure + +import ( + "os" + "path" + + "github.com/dsoprea/go-logging" +) + +var ( + testImageRelFilepath = "NDM_8901.jpg" +) + +var ( + moduleRootPath = "" + assetsPath = "" +) + +// GetModuleRootPath returns the root-path of the module. +func GetModuleRootPath() string { + if moduleRootPath == "" { + moduleRootPath = os.Getenv("JPEG_MODULE_ROOT_PATH") + if moduleRootPath != "" { + return moduleRootPath + } + + currentWd, err := os.Getwd() + log.PanicIf(err) + + currentPath := currentWd + visited := make([]string, 0) + + for { + tryStampFilepath := path.Join(currentPath, ".MODULE_ROOT") + + _, err := os.Stat(tryStampFilepath) + if err != nil && os.IsNotExist(err) != true { + log.Panic(err) + } else if err == nil { + break + } + + visited = append(visited, tryStampFilepath) + + currentPath = path.Dir(currentPath) + if currentPath == "/" { + log.Panicf("could not find module-root: %v", visited) + } + } + + moduleRootPath = currentPath + } + + return moduleRootPath +} + +// GetTestAssetsPath returns the path of the test-assets. +func GetTestAssetsPath() string { + if assetsPath == "" { + moduleRootPath := GetModuleRootPath() + assetsPath = path.Join(moduleRootPath, "assets") + } + + return assetsPath +} + +// GetTestImageFilepath returns the file-path of the common test-image. +func GetTestImageFilepath() string { + assetsPath := GetTestAssetsPath() + filepath := path.Join(assetsPath, testImageRelFilepath) + + return filepath +} diff --git a/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/utility.go b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/utility.go new file mode 100644 index 000000000..1c618ba6d --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-jpeg-image-structure/v2/utility.go @@ -0,0 +1,110 @@ +package jpegstructure + +import ( + "bytes" + "fmt" + "sort" + "strings" + + "github.com/dsoprea/go-logging" + "github.com/go-xmlfmt/xmlfmt" +) + +// DumpBytes prints the hex for a given byte-slice. +func DumpBytes(data []byte) { + fmt.Printf("DUMP: ") + for _, x := range data { + fmt.Printf("%02x ", x) + } + + fmt.Printf("\n") +} + +// DumpBytesClause prints a Go-formatted byte-slice expression. +func DumpBytesClause(data []byte) { + fmt.Printf("DUMP: ") + + fmt.Printf("[]byte { ") + + for i, x := range data { + fmt.Printf("0x%02x", x) + + if i < len(data)-1 { + fmt.Printf(", ") + } + } + + fmt.Printf(" }\n") +} + +// DumpBytesToString returns a string of hex-encoded bytes. +func DumpBytesToString(data []byte) string { + b := new(bytes.Buffer) + + for i, x := range data { + _, err := b.WriteString(fmt.Sprintf("%02x", x)) + log.PanicIf(err) + + if i < len(data)-1 { + _, err := b.WriteRune(' ') + log.PanicIf(err) + } + } + + return b.String() +} + +// DumpBytesClauseToString returns a string of Go-formatted byte values. +func DumpBytesClauseToString(data []byte) string { + b := new(bytes.Buffer) + + for i, x := range data { + _, err := b.WriteString(fmt.Sprintf("0x%02x", x)) + log.PanicIf(err) + + if i < len(data)-1 { + _, err := b.WriteString(", ") + log.PanicIf(err) + } + } + + return b.String() +} + +// FormatXml prettifies XML data. +func FormatXml(raw string) (formatted string, err error) { + defer func() { + if state := recover(); state != nil { + err = log.Wrap(state.(error)) + } + }() + + formatted = xmlfmt.FormatXML(raw, " ", " ") + formatted = strings.TrimSpace(formatted) + + return formatted, nil +} + +// SortStringStringMap sorts a string-string dictionary and returns it as a list +// of 2-tuples. +func SortStringStringMap(data map[string]string) (sorted [][2]string) { + // Sort keys. + + sortedKeys := make([]string, len(data)) + i := 0 + for key := range data { + sortedKeys[i] = key + i++ + } + + sort.Strings(sortedKeys) + + // Build result. + + sorted = make([][2]string, len(sortedKeys)) + for i, key := range sortedKeys { + sorted[i] = [2]string{key, data[key]} + } + + return sorted +} diff --git a/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/.MODULE_ROOT b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/.MODULE_ROOT new file mode 100644 index 000000000..e69de29bb diff --git a/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/LICENSE b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/LICENSE new file mode 100644 index 000000000..163291ed6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/LICENSE @@ -0,0 +1,9 @@ +MIT LICENSE + +Copyright 2020 Dustin Oprea + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/chunk_decoder.go b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/chunk_decoder.go new file mode 100644 index 000000000..518bc91ad --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/chunk_decoder.go @@ -0,0 +1,81 @@ +package pngstructure + +import ( + "bytes" + "fmt" + + "encoding/binary" +) + +type ChunkDecoder struct { +} + +func NewChunkDecoder() *ChunkDecoder { + return new(ChunkDecoder) +} + +func (cd *ChunkDecoder) Decode(c *Chunk) (decoded interface{}, err error) { + switch c.Type { + case "IHDR": + return cd.decodeIHDR(c) + } + + // We don't decode this type. + return nil, nil +} + +type ChunkIHDR struct { + Width uint32 + Height uint32 + BitDepth uint8 + ColorType uint8 + CompressionMethod uint8 + FilterMethod uint8 + InterlaceMethod uint8 +} + +func (ihdr *ChunkIHDR) String() string { + return fmt.Sprintf("IHDR", + ihdr.Width, ihdr.Height, ihdr.BitDepth, ihdr.ColorType, ihdr.CompressionMethod, ihdr.FilterMethod, ihdr.InterlaceMethod, + ) +} + +func (cd *ChunkDecoder) decodeIHDR(c *Chunk) (*ChunkIHDR, error) { + var ( + b = bytes.NewBuffer(c.Data) + ihdr = new(ChunkIHDR) + readf = func(data interface{}) error { + return binary.Read(b, binary.BigEndian, data) + } + ) + + if err := readf(&ihdr.Width); err != nil { + return nil, err + } + + if err := readf(&ihdr.Height); err != nil { + return nil, err + } + + if err := readf(&ihdr.BitDepth); err != nil { + return nil, err + } + + if err := readf(&ihdr.ColorType); err != nil { + return nil, err + } + + if err := readf(&ihdr.CompressionMethod); err != nil { + return nil, err + } + + if err := readf(&ihdr.FilterMethod); err != nil { + return nil, err + } + + if err := readf(&ihdr.InterlaceMethod); err != nil { + return nil, err + } + + return ihdr, nil +} diff --git a/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/media_parser.go b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/media_parser.go new file mode 100644 index 000000000..4c8421905 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/media_parser.go @@ -0,0 +1,85 @@ +package pngstructure + +import ( + "bufio" + "bytes" + "image" + "io" + "os" + + "image/png" + + riimage "github.com/dsoprea/go-utility/v2/image" +) + +// PngMediaParser knows how to parse a PNG stream. +type PngMediaParser struct { +} + +// NewPngMediaParser returns a new `PngMediaParser`. +func NewPngMediaParser() riimage.MediaParser { + return new(PngMediaParser) +} + +// Parse parses a PNG stream given a `io.ReadSeeker`. +func (pmp *PngMediaParser) Parse( + rs io.ReadSeeker, + size int, +) (riimage.MediaContext, error) { + ps := NewPngSplitter() + if err := ps.readHeader(rs); err != nil { + return nil, err + } + + s := bufio.NewScanner(rs) + + // Since each segment can be any + // size, our buffer must be allowed + // to grow as large as the file. + buffer := []byte{} + s.Buffer(buffer, size) + s.Split(ps.Split) + + for s.Scan() { + } + + if err := s.Err(); err != nil { + return nil, err + } + + return ps.Chunks() +} + +// ParseFile parses a PNG stream given a file-path. +func (pmp *PngMediaParser) ParseFile(filepath string) (riimage.MediaContext, error) { + f, err := os.Open(filepath) + if err != nil { + return nil, err + } + defer f.Close() + + stat, err := f.Stat() + if err != nil { + return nil, err + } + + size := stat.Size() + return pmp.Parse(f, int(size)) +} + +// ParseBytes parses a PNG stream given a byte-slice. +func (pmp *PngMediaParser) ParseBytes(data []byte) (riimage.MediaContext, error) { + br := bytes.NewReader(data) + return pmp.Parse(br, len(data)) +} + +// LooksLikeFormat returns a boolean indicating +// whether the stream looks like a PNG image. +func (pmp *PngMediaParser) LooksLikeFormat(data []byte) bool { + return bytes.Equal(data[:len(PngSignature)], PngSignature[:]) +} + +// GetImage returns an image.Image-compatible struct. +func (pmp *PngMediaParser) GetImage(r io.Reader) (img image.Image, err error) { + return png.Decode(r) +} diff --git a/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/png.go b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/png.go new file mode 100644 index 000000000..5c476f737 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/png.go @@ -0,0 +1,390 @@ +package pngstructure + +import ( + "bytes" + "errors" + "fmt" + "io" + + "encoding/binary" + "hash/crc32" + + "github.com/dsoprea/go-exif/v3" + exifcommon "github.com/dsoprea/go-exif/v3/common" + riimage "github.com/dsoprea/go-utility/v2/image" +) + +var ( + PngSignature = [8]byte{137, 'P', 'N', 'G', '\r', '\n', 26, '\n'} + EXifChunkType = "eXIf" + IHDRChunkType = "IHDR" +) + +var ( + ErrNotPng = errors.New("not png data") + ErrCrcFailure = errors.New("crc failure") +) + +// ChunkSlice encapsulates a slice of chunks. +type ChunkSlice struct { + chunks []*Chunk +} + +func NewChunkSlice(chunks []*Chunk) (*ChunkSlice, error) { + if len(chunks) == 0 { + err := errors.New("ChunkSlice must be initialized with at least one chunk (IHDR)") + return nil, err + } else if chunks[0].Type != IHDRChunkType { + err := errors.New("first chunk in any ChunkSlice must be an IHDR") + return nil, err + } + + return &ChunkSlice{chunks}, nil +} + +func NewPngChunkSlice() (*ChunkSlice, error) { + ihdrChunk := &Chunk{ + Type: IHDRChunkType, + } + + ihdrChunk.UpdateCrc32() + + return NewChunkSlice([]*Chunk{ihdrChunk}) +} + +func (cs *ChunkSlice) String() string { + return fmt.Sprintf("ChunkSlize", len(cs.chunks)) +} + +// Chunks exposes the actual slice. +func (cs *ChunkSlice) Chunks() []*Chunk { + return cs.chunks +} + +// Write encodes and writes all chunks. +func (cs *ChunkSlice) WriteTo(w io.Writer) error { + if _, err := w.Write(PngSignature[:]); err != nil { + return err + } + + // TODO(dustin): !! This should respect + // the safe-to-copy characteristic. + for _, c := range cs.chunks { + if _, err := c.WriteTo(w); err != nil { + return err + } + } + + return nil +} + +// Index returns a map of chunk types to chunk slices, grouping all like chunks. +func (cs *ChunkSlice) Index() (index map[string][]*Chunk) { + index = make(map[string][]*Chunk) + for _, c := range cs.chunks { + if grouped, found := index[c.Type]; found { + index[c.Type] = append(grouped, c) + } else { + index[c.Type] = []*Chunk{c} + } + } + + return index +} + +// FindExif returns the the segment that hosts the EXIF data. +func (cs *ChunkSlice) FindExif() (chunk *Chunk, err error) { + index := cs.Index() + if chunks, found := index[EXifChunkType]; found { + return chunks[0], nil + } + + return nil, exif.ErrNoExif +} + +// Exif returns an `exif.Ifd` instance with the existing tags. +func (cs *ChunkSlice) Exif() (*exif.Ifd, []byte, error) { + chunk, err := cs.FindExif() + if err != nil { + return nil, nil, err + } + + im, err := exifcommon.NewIfdMappingWithStandard() + if err != nil { + return nil, nil, err + } + + ti := exif.NewTagIndex() + + _, index, err := exif.Collect(im, ti, chunk.Data) + if err != nil { + return nil, nil, err + } + + return index.RootIfd, chunk.Data, nil +} + +// ConstructExifBuilder returns an `exif.IfdBuilder` instance +// (needed for modifying) preloaded with all existing tags. +func (cs *ChunkSlice) ConstructExifBuilder() (*exif.IfdBuilder, error) { + rootIfd, _, err := cs.Exif() + if err != nil { + return nil, err + } + + return exif.NewIfdBuilderFromExistingChain(rootIfd), nil +} + +// SetExif encodes and sets EXIF data into this segment. +func (cs *ChunkSlice) SetExif(ib *exif.IfdBuilder) error { + // Encode. + + ibe := exif.NewIfdByteEncoder() + + exifData, err := ibe.EncodeToExif(ib) + if err != nil { + return err + } + + // Set. + + exifChunk, err := cs.FindExif() + + switch { + case err == nil: + // EXIF chunk already exists. + exifChunk.Data = exifData + exifChunk.Length = uint32(len(exifData)) + + case errors.Is(err, exif.ErrNoExif): + // Add a EXIF chunk for the first time. + exifChunk = &Chunk{ + Type: EXifChunkType, + Data: exifData, + Length: uint32(len(exifData)), + } + + // Insert exif after the IHDR chunk; it's + // a reliably appropriate place to put it. + cs.chunks = append( + cs.chunks[:1], + append( + []*Chunk{exifChunk}, + cs.chunks[1:]..., + )..., + ) + + default: + return err + } + + exifChunk.UpdateCrc32() + return nil +} + +// PngSplitter hosts the princpal `Split()` +// method uses by `bufio.Scanner`. +type PngSplitter struct { + chunks []*Chunk + currentOffset int + + doCheckCrc bool + crcErrors []string +} + +func (ps *PngSplitter) Chunks() (*ChunkSlice, error) { + return NewChunkSlice(ps.chunks) +} + +func (ps *PngSplitter) DoCheckCrc(doCheck bool) { + ps.doCheckCrc = doCheck +} + +func (ps *PngSplitter) CrcErrors() []string { + return ps.crcErrors +} + +func NewPngSplitter() *PngSplitter { + return &PngSplitter{ + chunks: make([]*Chunk, 0), + doCheckCrc: true, + crcErrors: make([]string, 0), + } +} + +// Chunk describes a single chunk. +type Chunk struct { + Offset int + Length uint32 + Type string + Data []byte + Crc uint32 +} + +func (c *Chunk) String() string { + return fmt.Sprintf("Chunk", c.Offset, c.Length, c.Type, c.Crc) +} + +func calculateCrc32(chunk *Chunk) uint32 { + c := crc32.NewIEEE() + + c.Write([]byte(chunk.Type)) + c.Write(chunk.Data) + + return c.Sum32() +} + +func (c *Chunk) UpdateCrc32() { + c.Crc = calculateCrc32(c) +} + +func (c *Chunk) CheckCrc32() bool { + expected := calculateCrc32(c) + return c.Crc == expected +} + +// Bytes encodes and returns the bytes for this chunk. +func (c *Chunk) Bytes() ([]byte, error) { + if len(c.Data) != int(c.Length) { + return nil, errors.New("length of data not correct") + } + + preallocated := make([]byte, 0, 4+4+c.Length+4) + b := bytes.NewBuffer(preallocated) + + err := binary.Write(b, binary.BigEndian, c.Length) + if err != nil { + return nil, err + } + + if _, err := b.Write([]byte(c.Type)); err != nil { + return nil, err + } + + if c.Data != nil { + if _, err := b.Write(c.Data); err != nil { + return nil, err + } + } + + if err := binary.Write(b, binary.BigEndian, c.Crc); err != nil { + return nil, err + } + + return b.Bytes(), nil +} + +// Write encodes and writes the bytes for this chunk. +func (c *Chunk) WriteTo(w io.Writer) (int, error) { + if len(c.Data) != int(c.Length) { + return 0, errors.New("length of data not correct") + } + + if err := binary.Write(w, binary.BigEndian, c.Length); err != nil { + return 0, err + } + + if _, err := w.Write([]byte(c.Type)); err != nil { + return 0, err + } + + if _, err := w.Write(c.Data); err != nil { + return 0, err + } + + if err := binary.Write(w, binary.BigEndian, c.Crc); err != nil { + return 0, err + } + + return 4 + len(c.Type) + len(c.Data) + 4, nil +} + +// readHeader verifies that the PNG header bytes appear next. +func (ps *PngSplitter) readHeader(r io.Reader) error { + var ( + sigLen = len(PngSignature) + header = make([]byte, sigLen) + ) + + if _, err := r.Read(header); err != nil { + return err + } + + ps.currentOffset += sigLen + if !bytes.Equal(header, PngSignature[:]) { + return ErrNotPng + } + + return nil +} + +// Split fulfills the `bufio.SplitFunc` +// function definition for `bufio.Scanner`. +func (ps *PngSplitter) Split( + data []byte, + atEOF bool, +) ( + advance int, + token []byte, + err error, +) { + // We might have more than one chunk's worth, and, + // if `atEOF` is true, we won't be called again. + // We'll repeatedly try to read additional chunks, + // but, when we run out of the data we were given + // then we'll return the number of bytes for the + // chunks we've already completely read. Then, we'll + // be called again from the end ofthose bytes, at + // which point we'll indicate that we don't yet have + // enough for another chunk, and we should be then + // called with more. + for { + len_ := len(data) + if len_ < 8 { + return advance, nil, nil + } + + length := binary.BigEndian.Uint32(data[:4]) + type_ := string(data[4:8]) + chunkSize := (8 + int(length) + 4) + + if len_ < chunkSize { + return advance, nil, nil + } + + crcIndex := 8 + length + crc := binary.BigEndian.Uint32(data[crcIndex : crcIndex+4]) + + content := make([]byte, length) + copy(content, data[8:8+length]) + + c := &Chunk{ + Length: length, + Type: type_, + Data: content, + Crc: crc, + Offset: ps.currentOffset, + } + + ps.chunks = append(ps.chunks, c) + + if !c.CheckCrc32() { + ps.crcErrors = append(ps.crcErrors, type_) + + if ps.doCheckCrc { + err = ErrCrcFailure + return + } + } + + advance += chunkSize + ps.currentOffset += chunkSize + + data = data[chunkSize:] + } +} + +var ( + // Enforce interface conformance. + _ riimage.MediaContext = new(ChunkSlice) +) diff --git a/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/testing_common.go b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/testing_common.go new file mode 100644 index 000000000..42f28d282 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/testing_common.go @@ -0,0 +1,77 @@ +package pngstructure + +import ( + "fmt" + "os" + "path" +) + +var ( + assetsPath = "assets" +) + +func getModuleRootPath() (string, error) { + moduleRootPath := os.Getenv("PNG_MODULE_ROOT_PATH") + if moduleRootPath != "" { + return moduleRootPath, nil + } + + currentWd, err := os.Getwd() + if err != nil { + return "", err + } + + currentPath := currentWd + visited := make([]string, 0) + + for { + tryStampFilepath := path.Join(currentPath, ".MODULE_ROOT") + + _, err := os.Stat(tryStampFilepath) + if err != nil && !os.IsNotExist(err) { + return "", err + } else if err == nil { + break + } + + visited = append(visited, tryStampFilepath) + + currentPath = path.Dir(currentPath) + if currentPath == "/" { + return "", fmt.Errorf("could not find module-root: %v", visited) + } + } + + return currentPath, nil +} + +func getTestAssetsPath() (string, error) { + if assetsPath == "" { + moduleRootPath, err := getModuleRootPath() + if err != nil { + return "", err + } + + assetsPath = path.Join(moduleRootPath, "assets") + } + + return assetsPath, nil +} + +func getTestBasicImageFilepath() (string, error) { + assetsPath, err := getTestAssetsPath() + if err != nil { + return "", err + } + + return path.Join(assetsPath, "libpng.png"), nil +} + +func getTestExifImageFilepath() (string, error) { + assetsPath, err := getTestAssetsPath() + if err != nil { + return "", err + } + + return path.Join(assetsPath, "exif.png"), nil +} diff --git a/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/utility.go b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/utility.go new file mode 100644 index 000000000..cac6020f2 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/go-png-image-structure/v2/utility.go @@ -0,0 +1,67 @@ +package pngstructure + +import ( + "bytes" + "fmt" +) + +func DumpBytes(data []byte) { + fmt.Printf("DUMP: ") + for _, x := range data { + fmt.Printf("%02x ", x) + } + + fmt.Printf("\n") +} + +func DumpBytesClause(data []byte) { + fmt.Printf("DUMP: ") + + fmt.Printf("[]byte { ") + + for i, x := range data { + fmt.Printf("0x%02x", x) + + if i < len(data)-1 { + fmt.Printf(", ") + } + } + + fmt.Printf(" }\n") +} + +func DumpBytesToString(data []byte) (string, error) { + b := new(bytes.Buffer) + + for i, x := range data { + if _, err := b.WriteString(fmt.Sprintf("%02x", x)); err != nil { + return "", err + } + + if i < len(data)-1 { + if _, err := b.WriteRune(' '); err != nil { + return "", err + } + } + } + + return b.String(), nil +} + +func DumpBytesClauseToString(data []byte) (string, error) { + b := new(bytes.Buffer) + + for i, x := range data { + if _, err := b.WriteString(fmt.Sprintf("0x%02x", x)); err != nil { + return "", err + } + + if i < len(data)-1 { + if _, err := b.WriteString(", "); err != nil { + return "", err + } + } + } + + return b.String(), nil +} diff --git a/vendor/code.superseriousbusiness.org/httpsig/LICENSE b/vendor/code.superseriousbusiness.org/httpsig/LICENSE new file mode 100644 index 000000000..a9e8aefad --- /dev/null +++ b/vendor/code.superseriousbusiness.org/httpsig/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2018, go-fed +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/code.superseriousbusiness.org/httpsig/README.md b/vendor/code.superseriousbusiness.org/httpsig/README.md new file mode 100644 index 000000000..094133b20 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/httpsig/README.md @@ -0,0 +1,101 @@ +# httpsig + +**THIS IS A FORK OF https://github.com/go-fed/httpsig, WHICH WAS NO LONGER MAINTAINED. THANK YOU TO [cjslep](https://github.com/cjslep) FOR ALL YOUR HARD WORK!** + +> HTTP Signatures made simple + +`go get code.superseriousbusiness.org/httpsig` + +Implementation of [HTTP Signatures](https://tools.ietf.org/html/draft-cavage-http-signatures). + +Supports many different combinations of MAC, HMAC signing of hash, or RSA +signing of hash schemes. Its goals are: + +* Have a very simple interface for signing and validating +* Support a variety of signing algorithms and combinations +* Support setting either headers (`Authorization` or `Signature`) +* Remaining flexible with headers included in the signing string +* Support both HTTP requests and responses +* Explicitly not support known-cryptographically weak algorithms +* Support automatic signing and validating Digest headers + +## How to use + +`import "code.superseriousbusiness.org/httpsig"` + +### Signing + +Signing a request or response requires creating a new `Signer` and using it: + +```go +func sign(privateKey crypto.PrivateKey, pubKeyId string, r *http.Request) error { + prefs := []httpsig.Algorithm{httpsig.RSA_SHA512, httpsig.RSA_SHA256} + digestAlgorithm := DigestSha256 + // The "Date" and "Digest" headers must already be set on r, as well as r.URL. + headersToSign := []string{httpsig.RequestTarget, "date", "digest"} + signer, chosenAlgo, err := httpsig.NewSigner(prefs, digestAlgorithm, headersToSign, httpsig.Signature) + if err != nil { + return err + } + // To sign the digest, we need to give the signer a copy of the body... + // ...but it is optional, no digest will be signed if given "nil" + body := ... + // If r were a http.ResponseWriter, call SignResponse instead. + return signer.SignRequest(privateKey, pubKeyId, r, body) +} +``` + +`Signer`s are not safe for concurrent use by goroutines, so be sure to guard +access: + +```go +type server struct { + signer httpsig.Signer + mu *sync.Mutex +} + +func (s *server) handlerFunc(w http.ResponseWriter, r *http.Request) { + privateKey := ... + pubKeyId := ... + // Set headers and such on w + s.mu.Lock() + defer s.mu.Unlock() + // To sign the digest, we need to give the signer a copy of the response body... + // ...but it is optional, no digest will be signed if given "nil" + body := ... + err := s.signer.SignResponse(privateKey, pubKeyId, w, body) + if err != nil { + ... + } + ... +} +``` + +The `pubKeyId` will be used at verification time. + +### Verifying + +Verifying requires an application to use the `pubKeyId` to both retrieve the key +needed for verification as well as determine the algorithm to use. Use a +`Verifier`: + +```go +func verify(r *http.Request) error { + verifier, err := httpsig.NewVerifier(r) + if err != nil { + return err + } + pubKeyId := verifier.KeyId() + var algo httpsig.Algorithm = ... + var pubKey crypto.PublicKey = ... + // The verifier will verify the Digest in addition to the HTTP signature + return verifier.Verify(pubKey, algo) +} +``` + +`Verifier`s are not safe for concurrent use by goroutines, but since they are +constructed on a per-request or per-response basis it should not be a common +restriction. + +[License-Image]: https://img.shields.io/github/license/go-fed/httpsig?color=blue +[License-Url]: https://opensource.org/licenses/BSD-3-Clause diff --git a/vendor/code.superseriousbusiness.org/httpsig/algorithms.go b/vendor/code.superseriousbusiness.org/httpsig/algorithms.go new file mode 100644 index 000000000..9595941be --- /dev/null +++ b/vendor/code.superseriousbusiness.org/httpsig/algorithms.go @@ -0,0 +1,532 @@ +package httpsig + +import ( + "crypto" + "crypto/ecdsa" + "crypto/hmac" + "crypto/rsa" + "crypto/sha1" + "crypto/sha256" + "crypto/sha512" + "crypto/subtle" // Use should trigger great care + "encoding/asn1" + "errors" + "fmt" + "hash" + "io" + "math/big" + "strings" + + "golang.org/x/crypto/blake2b" + "golang.org/x/crypto/blake2s" + "golang.org/x/crypto/ed25519" + "golang.org/x/crypto/ripemd160" + "golang.org/x/crypto/sha3" + "golang.org/x/crypto/ssh" +) + +const ( + hmacPrefix = "hmac" + rsaPrefix = "rsa" + sshPrefix = "ssh" + ecdsaPrefix = "ecdsa" + ed25519Prefix = "ed25519" + md4String = "md4" + md5String = "md5" + sha1String = "sha1" + sha224String = "sha224" + sha256String = "sha256" + sha384String = "sha384" + sha512String = "sha512" + md5sha1String = "md5sha1" + ripemd160String = "ripemd160" + sha3_224String = "sha3-224" + sha3_256String = "sha3-256" + sha3_384String = "sha3-384" + sha3_512String = "sha3-512" + sha512_224String = "sha512-224" + sha512_256String = "sha512-256" + blake2s_256String = "blake2s-256" + blake2b_256String = "blake2b-256" + blake2b_384String = "blake2b-384" + blake2b_512String = "blake2b-512" +) + +var blake2Algorithms = map[crypto.Hash]bool{ + crypto.BLAKE2s_256: true, + crypto.BLAKE2b_256: true, + crypto.BLAKE2b_384: true, + crypto.BLAKE2b_512: true, +} + +var hashToDef = map[crypto.Hash]struct { + name string + new func(key []byte) (hash.Hash, error) // Only MACers will accept a key +}{ + // Which standard names these? + // The spec lists the following as a canonical reference, which is dead: + // http://www.iana.org/assignments/signature-algorithms + // + // Note that the forbidden hashes have an invalid 'new' function. + crypto.MD4: {md4String, func(key []byte) (hash.Hash, error) { return nil, nil }}, + crypto.MD5: {md5String, func(key []byte) (hash.Hash, error) { return nil, nil }}, + // Temporarily enable SHA1 because of issue https://github.com/golang/go/issues/37278 + crypto.SHA1: {sha1String, func(key []byte) (hash.Hash, error) { return sha1.New(), nil }}, + crypto.SHA224: {sha224String, func(key []byte) (hash.Hash, error) { return sha256.New224(), nil }}, + crypto.SHA256: {sha256String, func(key []byte) (hash.Hash, error) { return sha256.New(), nil }}, + crypto.SHA384: {sha384String, func(key []byte) (hash.Hash, error) { return sha512.New384(), nil }}, + crypto.SHA512: {sha512String, func(key []byte) (hash.Hash, error) { return sha512.New(), nil }}, + crypto.MD5SHA1: {md5sha1String, func(key []byte) (hash.Hash, error) { return nil, nil }}, + crypto.RIPEMD160: {ripemd160String, func(key []byte) (hash.Hash, error) { return ripemd160.New(), nil }}, + crypto.SHA3_224: {sha3_224String, func(key []byte) (hash.Hash, error) { return sha3.New224(), nil }}, + crypto.SHA3_256: {sha3_256String, func(key []byte) (hash.Hash, error) { return sha3.New256(), nil }}, + crypto.SHA3_384: {sha3_384String, func(key []byte) (hash.Hash, error) { return sha3.New384(), nil }}, + crypto.SHA3_512: {sha3_512String, func(key []byte) (hash.Hash, error) { return sha3.New512(), nil }}, + crypto.SHA512_224: {sha512_224String, func(key []byte) (hash.Hash, error) { return sha512.New512_224(), nil }}, + crypto.SHA512_256: {sha512_256String, func(key []byte) (hash.Hash, error) { return sha512.New512_256(), nil }}, + crypto.BLAKE2s_256: {blake2s_256String, func(key []byte) (hash.Hash, error) { return blake2s.New256(key) }}, + crypto.BLAKE2b_256: {blake2b_256String, func(key []byte) (hash.Hash, error) { return blake2b.New256(key) }}, + crypto.BLAKE2b_384: {blake2b_384String, func(key []byte) (hash.Hash, error) { return blake2b.New384(key) }}, + crypto.BLAKE2b_512: {blake2b_512String, func(key []byte) (hash.Hash, error) { return blake2b.New512(key) }}, +} + +var stringToHash map[string]crypto.Hash + +const ( + defaultAlgorithm = RSA_SHA256 + defaultAlgorithmHashing = sha256String +) + +func init() { + stringToHash = make(map[string]crypto.Hash, len(hashToDef)) + for k, v := range hashToDef { + stringToHash[v.name] = k + } + // This should guarantee that at runtime the defaultAlgorithm will not + // result in errors when fetching a macer or signer (see algorithms.go) + if ok, err := isAvailable(string(defaultAlgorithmHashing)); err != nil { + panic(err) + } else if !ok { + panic(fmt.Sprintf("the default httpsig algorithm is unavailable: %q", defaultAlgorithm)) + } +} + +func isForbiddenHash(h crypto.Hash) bool { + switch h { + // Not actually cryptographically secure + case crypto.MD4: + fallthrough + case crypto.MD5: + fallthrough + case crypto.MD5SHA1: // shorthand for crypto/tls, not actually implemented + return true + } + // Still cryptographically secure + return false +} + +// signer is an internally public type. +type signer interface { + Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) + Verify(pub crypto.PublicKey, toHash, signature []byte) error + String() string +} + +// macer is an internally public type. +type macer interface { + Sign(sig, key []byte) ([]byte, error) + Equal(sig, actualMAC, key []byte) (bool, error) + String() string +} + +var _ macer = &hmacAlgorithm{} + +type hmacAlgorithm struct { + fn func(key []byte) (hash.Hash, error) + kind crypto.Hash +} + +func (h *hmacAlgorithm) Sign(sig, key []byte) ([]byte, error) { + hs, err := h.fn(key) + if err = setSig(hs, sig); err != nil { + return nil, err + } + return hs.Sum(nil), nil +} + +func (h *hmacAlgorithm) Equal(sig, actualMAC, key []byte) (bool, error) { + hs, err := h.fn(key) + if err != nil { + return false, err + } + defer hs.Reset() + err = setSig(hs, sig) + if err != nil { + return false, err + } + expected := hs.Sum(nil) + return hmac.Equal(actualMAC, expected), nil +} + +func (h *hmacAlgorithm) String() string { + return fmt.Sprintf("%s-%s", hmacPrefix, hashToDef[h.kind].name) +} + +var _ signer = &rsaAlgorithm{} + +type rsaAlgorithm struct { + hash.Hash + kind crypto.Hash + sshSigner ssh.Signer +} + +func (r *rsaAlgorithm) setSig(b []byte) error { + n, err := r.Write(b) + if err != nil { + r.Reset() + return err + } else if n != len(b) { + r.Reset() + return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) + } + return nil +} + +func (r *rsaAlgorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { + if r.sshSigner != nil { + sshsig, err := r.sshSigner.Sign(rand, sig) + if err != nil { + return nil, err + } + + return sshsig.Blob, nil + } + defer r.Reset() + + if err := r.setSig(sig); err != nil { + return nil, err + } + rsaK, ok := p.(*rsa.PrivateKey) + if !ok { + return nil, errors.New("crypto.PrivateKey is not *rsa.PrivateKey") + } + return rsa.SignPKCS1v15(rand, rsaK, r.kind, r.Sum(nil)) +} + +func (r *rsaAlgorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { + defer r.Reset() + rsaK, ok := pub.(*rsa.PublicKey) + if !ok { + return errors.New("crypto.PublicKey is not *rsa.PublicKey") + } + if err := r.setSig(toHash); err != nil { + return err + } + return rsa.VerifyPKCS1v15(rsaK, r.kind, r.Sum(nil), signature) +} + +func (r *rsaAlgorithm) String() string { + return fmt.Sprintf("%s-%s", rsaPrefix, hashToDef[r.kind].name) +} + +var _ signer = &ed25519Algorithm{} + +type ed25519Algorithm struct { + sshSigner ssh.Signer +} + +func (r *ed25519Algorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { + if r.sshSigner != nil { + sshsig, err := r.sshSigner.Sign(rand, sig) + if err != nil { + return nil, err + } + + return sshsig.Blob, nil + } + ed25519K, ok := p.(ed25519.PrivateKey) + if !ok { + return nil, errors.New("crypto.PrivateKey is not ed25519.PrivateKey") + } + return ed25519.Sign(ed25519K, sig), nil +} + +func (r *ed25519Algorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { + ed25519K, ok := pub.(ed25519.PublicKey) + if !ok { + return errors.New("crypto.PublicKey is not ed25519.PublicKey") + } + + if ed25519.Verify(ed25519K, toHash, signature) { + return nil + } + + return errors.New("ed25519 verify failed") +} + +func (r *ed25519Algorithm) String() string { + return fmt.Sprintf("%s", ed25519Prefix) +} + +var _ signer = &ecdsaAlgorithm{} + +type ecdsaAlgorithm struct { + hash.Hash + kind crypto.Hash +} + +func (r *ecdsaAlgorithm) setSig(b []byte) error { + n, err := r.Write(b) + if err != nil { + r.Reset() + return err + } else if n != len(b) { + r.Reset() + return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) + } + return nil +} + +type ECDSASignature struct { + R, S *big.Int +} + +func (r *ecdsaAlgorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { + defer r.Reset() + if err := r.setSig(sig); err != nil { + return nil, err + } + ecdsaK, ok := p.(*ecdsa.PrivateKey) + if !ok { + return nil, errors.New("crypto.PrivateKey is not *ecdsa.PrivateKey") + } + R, S, err := ecdsa.Sign(rand, ecdsaK, r.Sum(nil)) + if err != nil { + return nil, err + } + + signature := ECDSASignature{R: R, S: S} + bytes, err := asn1.Marshal(signature) + + return bytes, err +} + +func (r *ecdsaAlgorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { + defer r.Reset() + ecdsaK, ok := pub.(*ecdsa.PublicKey) + if !ok { + return errors.New("crypto.PublicKey is not *ecdsa.PublicKey") + } + if err := r.setSig(toHash); err != nil { + return err + } + + sig := new(ECDSASignature) + _, err := asn1.Unmarshal(signature, sig) + if err != nil { + return err + } + + if ecdsa.Verify(ecdsaK, r.Sum(nil), sig.R, sig.S) { + return nil + } else { + return errors.New("Invalid signature") + } +} + +func (r *ecdsaAlgorithm) String() string { + return fmt.Sprintf("%s-%s", ecdsaPrefix, hashToDef[r.kind].name) +} + +var _ macer = &blakeMacAlgorithm{} + +type blakeMacAlgorithm struct { + fn func(key []byte) (hash.Hash, error) + kind crypto.Hash +} + +func (r *blakeMacAlgorithm) Sign(sig, key []byte) ([]byte, error) { + hs, err := r.fn(key) + if err != nil { + return nil, err + } + if err = setSig(hs, sig); err != nil { + return nil, err + } + return hs.Sum(nil), nil +} + +func (r *blakeMacAlgorithm) Equal(sig, actualMAC, key []byte) (bool, error) { + hs, err := r.fn(key) + if err != nil { + return false, err + } + defer hs.Reset() + err = setSig(hs, sig) + if err != nil { + return false, err + } + expected := hs.Sum(nil) + return subtle.ConstantTimeCompare(actualMAC, expected) == 1, nil +} + +func (r *blakeMacAlgorithm) String() string { + return fmt.Sprintf("%s", hashToDef[r.kind].name) +} + +func setSig(a hash.Hash, b []byte) error { + n, err := a.Write(b) + if err != nil { + a.Reset() + return err + } else if n != len(b) { + a.Reset() + return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) + } + return nil +} + +// IsSupportedHttpSigAlgorithm returns true if the string is supported by this +// library, is not a hash known to be weak, and is supported by the hardware. +func IsSupportedHttpSigAlgorithm(algo string) bool { + a, err := isAvailable(algo) + return a && err == nil +} + +// isAvailable is an internally public function +func isAvailable(algo string) (bool, error) { + c, ok := stringToHash[algo] + if !ok { + return false, fmt.Errorf("no match for %q", algo) + } + if isForbiddenHash(c) { + return false, fmt.Errorf("forbidden hash type in %q", algo) + } + return c.Available(), nil +} + +func newAlgorithmConstructor(algo string) (fn func(k []byte) (hash.Hash, error), c crypto.Hash, e error) { + ok := false + c, ok = stringToHash[algo] + if !ok { + e = fmt.Errorf("no match for %q", algo) + return + } + if isForbiddenHash(c) { + e = fmt.Errorf("forbidden hash type in %q", algo) + return + } + algoDef, ok := hashToDef[c] + if !ok { + e = fmt.Errorf("have crypto.Hash %v but no definition", c) + return + } + fn = func(key []byte) (hash.Hash, error) { + h, err := algoDef.new(key) + if err != nil { + return nil, err + } + return h, nil + } + return +} + +func newAlgorithm(algo string, key []byte) (hash.Hash, crypto.Hash, error) { + fn, c, err := newAlgorithmConstructor(algo) + if err != nil { + return nil, c, err + } + h, err := fn(key) + return h, c, err +} + +func signerFromSSHSigner(sshSigner ssh.Signer, s string) (signer, error) { + switch { + case strings.HasPrefix(s, rsaPrefix): + return &rsaAlgorithm{ + sshSigner: sshSigner, + }, nil + case strings.HasPrefix(s, ed25519Prefix): + return &ed25519Algorithm{ + sshSigner: sshSigner, + }, nil + default: + return nil, fmt.Errorf("no signer matching %q", s) + } +} + +// signerFromString is an internally public method constructor +func signerFromString(s string) (signer, error) { + s = strings.ToLower(s) + isEcdsa := false + isEd25519 := false + var algo string = "" + if strings.HasPrefix(s, ecdsaPrefix) { + algo = strings.TrimPrefix(s, ecdsaPrefix+"-") + isEcdsa = true + } else if strings.HasPrefix(s, rsaPrefix) { + algo = strings.TrimPrefix(s, rsaPrefix+"-") + } else if strings.HasPrefix(s, ed25519Prefix) { + isEd25519 = true + algo = "sha512" + } else { + return nil, fmt.Errorf("no signer matching %q", s) + } + hash, cHash, err := newAlgorithm(algo, nil) + if err != nil { + return nil, err + } + if isEd25519 { + return &ed25519Algorithm{}, nil + } + if isEcdsa { + return &ecdsaAlgorithm{ + Hash: hash, + kind: cHash, + }, nil + } + return &rsaAlgorithm{ + Hash: hash, + kind: cHash, + }, nil +} + +// macerFromString is an internally public method constructor +func macerFromString(s string) (macer, error) { + s = strings.ToLower(s) + if strings.HasPrefix(s, hmacPrefix) { + algo := strings.TrimPrefix(s, hmacPrefix+"-") + hashFn, cHash, err := newAlgorithmConstructor(algo) + if err != nil { + return nil, err + } + // Ensure below does not panic + _, err = hashFn(nil) + if err != nil { + return nil, err + } + return &hmacAlgorithm{ + fn: func(key []byte) (hash.Hash, error) { + return hmac.New(func() hash.Hash { + h, e := hashFn(nil) + if e != nil { + panic(e) + } + return h + }, key), nil + }, + kind: cHash, + }, nil + } else if bl, ok := stringToHash[s]; ok && blake2Algorithms[bl] { + hashFn, cHash, err := newAlgorithmConstructor(s) + if err != nil { + return nil, err + } + return &blakeMacAlgorithm{ + fn: hashFn, + kind: cHash, + }, nil + } else { + return nil, fmt.Errorf("no MACer matching %q", s) + } +} diff --git a/vendor/code.superseriousbusiness.org/httpsig/digest.go b/vendor/code.superseriousbusiness.org/httpsig/digest.go new file mode 100644 index 000000000..bf9e3a914 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/httpsig/digest.go @@ -0,0 +1,120 @@ +package httpsig + +import ( + "bytes" + "crypto" + "encoding/base64" + "fmt" + "hash" + "net/http" + "strings" +) + +type DigestAlgorithm string + +const ( + DigestSha256 DigestAlgorithm = "SHA-256" + DigestSha512 = "SHA-512" +) + +var digestToDef = map[DigestAlgorithm]crypto.Hash{ + DigestSha256: crypto.SHA256, + DigestSha512: crypto.SHA512, +} + +// IsSupportedDigestAlgorithm returns true if hte string is supported by this +// library, is not a hash known to be weak, and is supported by the hardware. +func IsSupportedDigestAlgorithm(algo string) bool { + uc := DigestAlgorithm(strings.ToUpper(algo)) + c, ok := digestToDef[uc] + return ok && c.Available() +} + +func getHash(alg DigestAlgorithm) (h hash.Hash, toUse DigestAlgorithm, err error) { + upper := DigestAlgorithm(strings.ToUpper(string(alg))) + c, ok := digestToDef[upper] + if !ok { + err = fmt.Errorf("unknown or unsupported Digest algorithm: %s", alg) + } else if !c.Available() { + err = fmt.Errorf("unavailable Digest algorithm: %s", alg) + } else { + h = c.New() + toUse = upper + } + return +} + +const ( + digestHeader = "Digest" + digestDelim = "=" +) + +func addDigest(r *http.Request, algo DigestAlgorithm, b []byte) (err error) { + _, ok := r.Header[digestHeader] + if ok { + err = fmt.Errorf("cannot add Digest: Digest is already set") + return + } + var h hash.Hash + var a DigestAlgorithm + h, a, err = getHash(algo) + if err != nil { + return + } + h.Write(b) + sum := h.Sum(nil) + r.Header.Add(digestHeader, + fmt.Sprintf("%s%s%s", + a, + digestDelim, + base64.StdEncoding.EncodeToString(sum[:]))) + return +} + +func addDigestResponse(r http.ResponseWriter, algo DigestAlgorithm, b []byte) (err error) { + _, ok := r.Header()[digestHeader] + if ok { + err = fmt.Errorf("cannot add Digest: Digest is already set") + return + } + var h hash.Hash + var a DigestAlgorithm + h, a, err = getHash(algo) + if err != nil { + return + } + h.Write(b) + sum := h.Sum(nil) + r.Header().Add(digestHeader, + fmt.Sprintf("%s%s%s", + a, + digestDelim, + base64.StdEncoding.EncodeToString(sum[:]))) + return +} + +func verifyDigest(r *http.Request, body *bytes.Buffer) (err error) { + d := r.Header.Get(digestHeader) + if len(d) == 0 { + err = fmt.Errorf("cannot verify Digest: request has no Digest header") + return + } + elem := strings.SplitN(d, digestDelim, 2) + if len(elem) != 2 { + err = fmt.Errorf("cannot verify Digest: malformed Digest: %s", d) + return + } + var h hash.Hash + h, _, err = getHash(DigestAlgorithm(elem[0])) + if err != nil { + return + } + h.Write(body.Bytes()) + sum := h.Sum(nil) + encSum := base64.StdEncoding.EncodeToString(sum[:]) + if encSum != elem[1] { + err = fmt.Errorf("cannot verify Digest: header Digest does not match the digest of the request body") + return + } + return +} diff --git a/vendor/code.superseriousbusiness.org/httpsig/httpsig.go b/vendor/code.superseriousbusiness.org/httpsig/httpsig.go new file mode 100644 index 000000000..8864da055 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/httpsig/httpsig.go @@ -0,0 +1,413 @@ +// Implements HTTP request and response signing and verification. Supports the +// major MAC and asymmetric key signature algorithms. It has several safety +// restrictions: One, none of the widely known non-cryptographically safe +// algorithms are permitted; Two, the RSA SHA256 algorithms must be available in +// the binary (and it should, barring export restrictions); Finally, the library +// assumes either the 'Authorizationn' or 'Signature' headers are to be set (but +// not both). +package httpsig + +import ( + "crypto" + "fmt" + "net/http" + "strings" + "time" + + "golang.org/x/crypto/ssh" +) + +// Algorithm specifies a cryptography secure algorithm for signing HTTP requests +// and responses. +type Algorithm string + +const ( + // MAC-based algoirthms. + HMAC_SHA224 Algorithm = hmacPrefix + "-" + sha224String + HMAC_SHA256 Algorithm = hmacPrefix + "-" + sha256String + HMAC_SHA384 Algorithm = hmacPrefix + "-" + sha384String + HMAC_SHA512 Algorithm = hmacPrefix + "-" + sha512String + HMAC_RIPEMD160 Algorithm = hmacPrefix + "-" + ripemd160String + HMAC_SHA3_224 Algorithm = hmacPrefix + "-" + sha3_224String + HMAC_SHA3_256 Algorithm = hmacPrefix + "-" + sha3_256String + HMAC_SHA3_384 Algorithm = hmacPrefix + "-" + sha3_384String + HMAC_SHA3_512 Algorithm = hmacPrefix + "-" + sha3_512String + HMAC_SHA512_224 Algorithm = hmacPrefix + "-" + sha512_224String + HMAC_SHA512_256 Algorithm = hmacPrefix + "-" + sha512_256String + HMAC_BLAKE2S_256 Algorithm = hmacPrefix + "-" + blake2s_256String + HMAC_BLAKE2B_256 Algorithm = hmacPrefix + "-" + blake2b_256String + HMAC_BLAKE2B_384 Algorithm = hmacPrefix + "-" + blake2b_384String + HMAC_BLAKE2B_512 Algorithm = hmacPrefix + "-" + blake2b_512String + BLAKE2S_256 Algorithm = blake2s_256String + BLAKE2B_256 Algorithm = blake2b_256String + BLAKE2B_384 Algorithm = blake2b_384String + BLAKE2B_512 Algorithm = blake2b_512String + // RSA-based algorithms. + RSA_SHA1 Algorithm = rsaPrefix + "-" + sha1String + RSA_SHA224 Algorithm = rsaPrefix + "-" + sha224String + // RSA_SHA256 is the default algorithm. + RSA_SHA256 Algorithm = rsaPrefix + "-" + sha256String + RSA_SHA384 Algorithm = rsaPrefix + "-" + sha384String + RSA_SHA512 Algorithm = rsaPrefix + "-" + sha512String + RSA_RIPEMD160 Algorithm = rsaPrefix + "-" + ripemd160String + // ECDSA algorithms + ECDSA_SHA224 Algorithm = ecdsaPrefix + "-" + sha224String + ECDSA_SHA256 Algorithm = ecdsaPrefix + "-" + sha256String + ECDSA_SHA384 Algorithm = ecdsaPrefix + "-" + sha384String + ECDSA_SHA512 Algorithm = ecdsaPrefix + "-" + sha512String + ECDSA_RIPEMD160 Algorithm = ecdsaPrefix + "-" + ripemd160String + // ED25519 algorithms + // can only be SHA512 + ED25519 Algorithm = ed25519Prefix + + // Just because you can glue things together, doesn't mean they will + // work. The following options are not supported. + rsa_SHA3_224 Algorithm = rsaPrefix + "-" + sha3_224String + rsa_SHA3_256 Algorithm = rsaPrefix + "-" + sha3_256String + rsa_SHA3_384 Algorithm = rsaPrefix + "-" + sha3_384String + rsa_SHA3_512 Algorithm = rsaPrefix + "-" + sha3_512String + rsa_SHA512_224 Algorithm = rsaPrefix + "-" + sha512_224String + rsa_SHA512_256 Algorithm = rsaPrefix + "-" + sha512_256String + rsa_BLAKE2S_256 Algorithm = rsaPrefix + "-" + blake2s_256String + rsa_BLAKE2B_256 Algorithm = rsaPrefix + "-" + blake2b_256String + rsa_BLAKE2B_384 Algorithm = rsaPrefix + "-" + blake2b_384String + rsa_BLAKE2B_512 Algorithm = rsaPrefix + "-" + blake2b_512String +) + +// HTTP Signatures can be applied to different HTTP headers, depending on the +// expected application behavior. +type SignatureScheme string + +const ( + // Signature will place the HTTP Signature into the 'Signature' HTTP + // header. + Signature SignatureScheme = "Signature" + // Authorization will place the HTTP Signature into the 'Authorization' + // HTTP header. + Authorization SignatureScheme = "Authorization" +) + +const ( + // The HTTP Signatures specification uses the "Signature" auth-scheme + // for the Authorization header. This is coincidentally named, but not + // semantically the same, as the "Signature" HTTP header value. + signatureAuthScheme = "Signature" +) + +// There are subtle differences to the values in the header. The Authorization +// header has an 'auth-scheme' value that must be prefixed to the rest of the +// key and values. +func (s SignatureScheme) authScheme() string { + switch s { + case Authorization: + return signatureAuthScheme + default: + return "" + } +} + +type SignatureOption struct { + // ExcludeQueryStringFromPathPseudoHeader omits the query parameters from the + // `:path` pseudo-header in the HTTP signature. + // + // The query string is optional in the `:path` pseudo-header. + // https://www.rfc-editor.org/rfc/rfc9113#section-8.3.1-2.4.1 + ExcludeQueryStringFromPathPseudoHeader bool +} + +// Signers will sign HTTP requests or responses based on the algorithms and +// headers selected at creation time. +// +// Signers are not safe to use between multiple goroutines. +// +// Note that signatures do set the deprecated 'algorithm' parameter for +// backwards compatibility. +type Signer interface { + // SignRequest signs the request using a private key. The public key id + // is used by the HTTP server to identify which key to use to verify the + // signature. + // + // If the Signer was created using a MAC based algorithm, then the key + // is expected to be of type []byte. If the Signer was created using an + // RSA based algorithm, then the private key is expected to be of type + // *rsa.PrivateKey. + // + // A Digest (RFC 3230) will be added to the request. The body provided + // must match the body used in the request, and is allowed to be nil. + // The Digest ensures the request body is not tampered with in flight, + // and if the signer is created to also sign the "Digest" header, the + // HTTP Signature will then ensure both the Digest and body are not both + // modified to maliciously represent different content. + SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error + // SignResponse signs the response using a private key. The public key + // id is used by the HTTP client to identify which key to use to verify + // the signature. + // + // If the Signer was created using a MAC based algorithm, then the key + // is expected to be of type []byte. If the Signer was created using an + // RSA based algorithm, then the private key is expected to be of type + // *rsa.PrivateKey. + // + // A Digest (RFC 3230) will be added to the response. The body provided + // must match the body written in the response, and is allowed to be + // nil. The Digest ensures the response body is not tampered with in + // flight, and if the signer is created to also sign the "Digest" + // header, the HTTP Signature will then ensure both the Digest and body + // are not both modified to maliciously represent different content. + SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error +} + +type SignerWithOptions interface { + Signer + + // SignRequestWithOptions signs the request using a private key. The public key id + // is used by the HTTP server to identify which key to use to verify the + // signature. + // + // If the Signer was created using a MAC based algorithm, then the key + // is expected to be of type []byte. If the Signer was created using an + // RSA based algorithm, then the private key is expected to be of type + // *rsa.PrivateKey. + // + // A Digest (RFC 3230) will be added to the request. The body provided + // must match the body used in the request, and is allowed to be nil. + // The Digest ensures the request body is not tampered with in flight, + // and if the signer is created to also sign the "Digest" header, the + // HTTP Signature will then ensure both the Digest and body are not both + // modified to maliciously represent different content. + SignRequestWithOptions(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte, opts SignatureOption) error + // SignResponseWithOptions signs the response using a private key. The public key + // id is used by the HTTP client to identify which key to use to verify + // the signature. + // + // If the Signer was created using a MAC based algorithm, then the key + // is expected to be of type []byte. If the Signer was created using an + // RSA based algorithm, then the private key is expected to be of type + // *rsa.PrivateKey. + // + // A Digest (RFC 3230) will be added to the response. The body provided + // must match the body written in the response, and is allowed to be + // nil. The Digest ensures the response body is not tampered with in + // flight, and if the signer is created to also sign the "Digest" + // header, the HTTP Signature will then ensure both the Digest and body + // are not both modified to maliciously represent different content. + SignResponseWithOptions(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte, opts SignatureOption) error +} + +// NewSigner creates a new Signer with the provided algorithm preferences to +// make HTTP signatures. Only the first available algorithm will be used, which +// is returned by this function along with the Signer. If none of the preferred +// algorithms were available, then the default algorithm is used. The headers +// specified will be included into the HTTP signatures. +// +// The Digest will also be calculated on a request's body using the provided +// digest algorithm, if "Digest" is one of the headers listed. +// +// The provided scheme determines which header is populated with the HTTP +// Signature. +// +// An error is returned if an unknown or a known cryptographically insecure +// Algorithm is provided. +func NewSigner(prefs []Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SignerWithOptions, Algorithm, error) { + for _, pref := range prefs { + s, err := newSigner(pref, dAlgo, headers, scheme, expiresIn) + if err != nil { + continue + } + return s, pref, err + } + s, err := newSigner(defaultAlgorithm, dAlgo, headers, scheme, expiresIn) + return s, defaultAlgorithm, err +} + +// Signers will sign HTTP requests or responses based on the algorithms and +// headers selected at creation time. +// +// Signers are not safe to use between multiple goroutines. +// +// Note that signatures do set the deprecated 'algorithm' parameter for +// backwards compatibility. +type SSHSigner interface { + // SignRequest signs the request using ssh.Signer. + // The public key id is used by the HTTP server to identify which key to use + // to verify the signature. + // + // A Digest (RFC 3230) will be added to the request. The body provided + // must match the body used in the request, and is allowed to be nil. + // The Digest ensures the request body is not tampered with in flight, + // and if the signer is created to also sign the "Digest" header, the + // HTTP Signature will then ensure both the Digest and body are not both + // modified to maliciously represent different content. + SignRequest(pubKeyId string, r *http.Request, body []byte) error + // SignResponse signs the response using ssh.Signer. The public key + // id is used by the HTTP client to identify which key to use to verify + // the signature. + // + // A Digest (RFC 3230) will be added to the response. The body provided + // must match the body written in the response, and is allowed to be + // nil. The Digest ensures the response body is not tampered with in + // flight, and if the signer is created to also sign the "Digest" + // header, the HTTP Signature will then ensure both the Digest and body + // are not both modified to maliciously represent different content. + SignResponse(pubKeyId string, r http.ResponseWriter, body []byte) error +} + +// NewwSSHSigner creates a new Signer using the specified ssh.Signer +// At the moment only ed25519 ssh keys are supported. +// The headers specified will be included into the HTTP signatures. +// +// The Digest will also be calculated on a request's body using the provided +// digest algorithm, if "Digest" is one of the headers listed. +// +// The provided scheme determines which header is populated with the HTTP +// Signature. +func NewSSHSigner(s ssh.Signer, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SSHSigner, Algorithm, error) { + sshAlgo := getSSHAlgorithm(s.PublicKey().Type()) + if sshAlgo == "" { + return nil, "", fmt.Errorf("key type: %s not supported yet.", s.PublicKey().Type()) + } + + signer, err := newSSHSigner(s, sshAlgo, dAlgo, headers, scheme, expiresIn) + if err != nil { + return nil, "", err + } + + return signer, sshAlgo, nil +} + +func getSSHAlgorithm(pkType string) Algorithm { + switch { + case strings.HasPrefix(pkType, sshPrefix+"-"+ed25519Prefix): + return ED25519 + case strings.HasPrefix(pkType, sshPrefix+"-"+rsaPrefix): + return RSA_SHA1 + } + + return "" +} + +// Verifier verifies HTTP Signatures. +// +// It will determine which of the supported headers has the parameters +// that define the signature. +// +// Verifiers are not safe to use between multiple goroutines. +// +// Note that verification ignores the deprecated 'algorithm' parameter. +type Verifier interface { + // KeyId gets the public key id that the signature is signed with. + // + // Note that the application is expected to determine the algorithm + // used based on metadata or out-of-band information for this key id. + KeyId() string + // Verify accepts the public key specified by KeyId and returns an + // error if verification fails or if the signature is malformed. The + // algorithm must be the one used to create the signature in order to + // pass verification. The algorithm is determined based on metadata or + // out-of-band information for the key id. + // + // If the signature was created using a MAC based algorithm, then the + // key is expected to be of type []byte. If the signature was created + // using an RSA based algorithm, then the public key is expected to be + // of type *rsa.PublicKey. + Verify(pKey crypto.PublicKey, algo Algorithm) error +} + +type VerifierWithOptions interface { + Verifier + + VerifyWithOptions(pKey crypto.PublicKey, algo Algorithm, opts SignatureOption) error +} + +const ( + // host is treated specially because golang may not include it in the + // request header map on the server side of a request. + hostHeader = "Host" +) + +// NewVerifier verifies the given request. It returns an error if the HTTP +// Signature parameters are not present in any headers, are present in more than +// one header, are malformed, or are missing required parameters. It ignores +// unknown HTTP Signature parameters. +func NewVerifier(r *http.Request) (VerifierWithOptions, error) { + h := r.Header + if _, hasHostHeader := h[hostHeader]; len(r.Host) > 0 && !hasHostHeader { + h[hostHeader] = []string{r.Host} + } + return newVerifier(h, func(h http.Header, toInclude []string, created int64, expires int64, opts SignatureOption) (string, error) { + return signatureString(h, toInclude, addRequestTarget(r, opts), created, expires) + }) +} + +// NewResponseVerifier verifies the given response. It returns errors under the +// same conditions as NewVerifier. +func NewResponseVerifier(r *http.Response) (Verifier, error) { + return newVerifier(r.Header, func(h http.Header, toInclude []string, created int64, expires int64, _ SignatureOption) (string, error) { + return signatureString(h, toInclude, requestTargetNotPermitted, created, expires) + }) +} + +func newSSHSigner(sshSigner ssh.Signer, algo Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SSHSigner, error) { + var expires, created int64 = 0, 0 + + if expiresIn != 0 { + created = time.Now().Unix() + expires = created + expiresIn + } + + s, err := signerFromSSHSigner(sshSigner, string(algo)) + if err != nil { + return nil, fmt.Errorf("no crypto implementation available for ssh algo %q: %s", algo, err) + } + + a := &asymmSSHSigner{ + asymmSigner: &asymmSigner{ + s: s, + dAlgo: dAlgo, + headers: headers, + targetHeader: scheme, + prefix: scheme.authScheme(), + created: created, + expires: expires, + }, + } + + return a, nil +} + +func newSigner(algo Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SignerWithOptions, error) { + + var expires, created int64 = 0, 0 + if expiresIn != 0 { + created = time.Now().Unix() + expires = created + expiresIn + } + + s, err := signerFromString(string(algo)) + if err == nil { + a := &asymmSigner{ + s: s, + dAlgo: dAlgo, + headers: headers, + targetHeader: scheme, + prefix: scheme.authScheme(), + created: created, + expires: expires, + } + return a, nil + } + m, err := macerFromString(string(algo)) + if err != nil { + return nil, fmt.Errorf("no crypto implementation available for %q: %s", algo, err) + } + c := &macSigner{ + m: m, + dAlgo: dAlgo, + headers: headers, + targetHeader: scheme, + prefix: scheme.authScheme(), + created: created, + expires: expires, + } + return c, nil +} diff --git a/vendor/code.superseriousbusiness.org/httpsig/signing.go b/vendor/code.superseriousbusiness.org/httpsig/signing.go new file mode 100644 index 000000000..a2fa38c5b --- /dev/null +++ b/vendor/code.superseriousbusiness.org/httpsig/signing.go @@ -0,0 +1,350 @@ +package httpsig + +import ( + "bytes" + "crypto" + "crypto/rand" + "encoding/base64" + "fmt" + "net/http" + "net/textproto" + "strconv" + "strings" +) + +const ( + // Signature Parameters + keyIdParameter = "keyId" + algorithmParameter = "algorithm" + headersParameter = "headers" + signatureParameter = "signature" + prefixSeparater = " " + parameterKVSeparater = "=" + parameterValueDelimiter = "\"" + parameterSeparater = "," + headerParameterValueDelim = " " + // RequestTarget specifies to include the http request method and + // entire URI in the signature. Pass it as a header to NewSigner. + RequestTarget = "(request-target)" + createdKey = "created" + expiresKey = "expires" + dateHeader = "date" + + // Signature String Construction + headerFieldDelimiter = ": " + headersDelimiter = "\n" + headerValueDelimiter = ", " + requestTargetSeparator = " " +) + +var defaultHeaders = []string{dateHeader} + +var _ SignerWithOptions = &macSigner{} + +type macSigner struct { + m macer + makeDigest bool + dAlgo DigestAlgorithm + headers []string + targetHeader SignatureScheme + prefix string + created int64 + expires int64 +} + +func (m *macSigner) SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error { + return m.SignRequestWithOptions(pKey, pubKeyId, r, body, SignatureOption{}) +} + +func (m *macSigner) SignRequestWithOptions(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte, opts SignatureOption) error { + if body != nil { + err := addDigest(r, m.dAlgo, body) + if err != nil { + return err + } + } + s, err := m.signatureString(r, opts) + if err != nil { + return err + } + enc, err := m.signSignature(pKey, s) + if err != nil { + return err + } + setSignatureHeader(r.Header, string(m.targetHeader), m.prefix, pubKeyId, m.m.String(), enc, m.headers, m.created, m.expires) + return nil +} + +func (m *macSigner) SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error { + return m.SignResponseWithOptions(pKey, pubKeyId, r, body, SignatureOption{}) +} + +func (m *macSigner) SignResponseWithOptions(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte, _ SignatureOption) error { + if body != nil { + err := addDigestResponse(r, m.dAlgo, body) + if err != nil { + return err + } + } + s, err := m.signatureStringResponse(r) + if err != nil { + return err + } + enc, err := m.signSignature(pKey, s) + if err != nil { + return err + } + setSignatureHeader(r.Header(), string(m.targetHeader), m.prefix, pubKeyId, m.m.String(), enc, m.headers, m.created, m.expires) + return nil +} + +func (m *macSigner) signSignature(pKey crypto.PrivateKey, s string) (string, error) { + pKeyBytes, ok := pKey.([]byte) + if !ok { + return "", fmt.Errorf("private key for MAC signing must be of type []byte") + } + sig, err := m.m.Sign([]byte(s), pKeyBytes) + if err != nil { + return "", err + } + enc := base64.StdEncoding.EncodeToString(sig) + return enc, nil +} + +func (m *macSigner) signatureString(r *http.Request, opts SignatureOption) (string, error) { + return signatureString(r.Header, m.headers, addRequestTarget(r, opts), m.created, m.expires) +} + +func (m *macSigner) signatureStringResponse(r http.ResponseWriter) (string, error) { + return signatureString(r.Header(), m.headers, requestTargetNotPermitted, m.created, m.expires) +} + +var _ SignerWithOptions = &asymmSigner{} + +type asymmSigner struct { + s signer + makeDigest bool + dAlgo DigestAlgorithm + headers []string + targetHeader SignatureScheme + prefix string + created int64 + expires int64 +} + +func (a *asymmSigner) SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error { + return a.SignRequestWithOptions(pKey, pubKeyId, r, body, SignatureOption{}) +} + +func (a *asymmSigner) SignRequestWithOptions(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte, opts SignatureOption) error { + if body != nil { + err := addDigest(r, a.dAlgo, body) + if err != nil { + return err + } + } + s, err := a.signatureString(r, opts) + if err != nil { + return err + } + enc, err := a.signSignature(pKey, s) + if err != nil { + return err + } + setSignatureHeader(r.Header, string(a.targetHeader), a.prefix, pubKeyId, a.s.String(), enc, a.headers, a.created, a.expires) + return nil +} + +func (a *asymmSigner) SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error { + return a.SignResponseWithOptions(pKey, pubKeyId, r, body, SignatureOption{}) +} + +func (a *asymmSigner) SignResponseWithOptions(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte, _ SignatureOption) error { + if body != nil { + err := addDigestResponse(r, a.dAlgo, body) + if err != nil { + return err + } + } + s, err := a.signatureStringResponse(r) + if err != nil { + return err + } + enc, err := a.signSignature(pKey, s) + if err != nil { + return err + } + setSignatureHeader(r.Header(), string(a.targetHeader), a.prefix, pubKeyId, a.s.String(), enc, a.headers, a.created, a.expires) + return nil +} + +func (a *asymmSigner) signSignature(pKey crypto.PrivateKey, s string) (string, error) { + sig, err := a.s.Sign(rand.Reader, pKey, []byte(s)) + if err != nil { + return "", err + } + enc := base64.StdEncoding.EncodeToString(sig) + return enc, nil +} + +func (a *asymmSigner) signatureString(r *http.Request, opts SignatureOption) (string, error) { + return signatureString(r.Header, a.headers, addRequestTarget(r, opts), a.created, a.expires) +} + +func (a *asymmSigner) signatureStringResponse(r http.ResponseWriter) (string, error) { + return signatureString(r.Header(), a.headers, requestTargetNotPermitted, a.created, a.expires) +} + +var _ SSHSigner = &asymmSSHSigner{} + +type asymmSSHSigner struct { + *asymmSigner +} + +func (a *asymmSSHSigner) SignRequest(pubKeyId string, r *http.Request, body []byte) error { + return a.asymmSigner.SignRequest(nil, pubKeyId, r, body) +} + +func (a *asymmSSHSigner) SignResponse(pubKeyId string, r http.ResponseWriter, body []byte) error { + return a.asymmSigner.SignResponse(nil, pubKeyId, r, body) +} + +func setSignatureHeader(h http.Header, targetHeader, prefix, pubKeyId, algo, enc string, headers []string, created int64, expires int64) { + if len(headers) == 0 { + headers = defaultHeaders + } + var b bytes.Buffer + // KeyId + b.WriteString(prefix) + if len(prefix) > 0 { + b.WriteString(prefixSeparater) + } + b.WriteString(keyIdParameter) + b.WriteString(parameterKVSeparater) + b.WriteString(parameterValueDelimiter) + b.WriteString(pubKeyId) + b.WriteString(parameterValueDelimiter) + b.WriteString(parameterSeparater) + // Algorithm + b.WriteString(algorithmParameter) + b.WriteString(parameterKVSeparater) + b.WriteString(parameterValueDelimiter) + b.WriteString("hs2019") //real algorithm is hidden, see newest version of spec draft + b.WriteString(parameterValueDelimiter) + b.WriteString(parameterSeparater) + + hasCreated := false + hasExpires := false + for _, h := range headers { + val := strings.ToLower(h) + if val == "("+createdKey+")" { + hasCreated = true + } else if val == "("+expiresKey+")" { + hasExpires = true + } + } + + // Created + if hasCreated == true { + b.WriteString(createdKey) + b.WriteString(parameterKVSeparater) + b.WriteString(strconv.FormatInt(created, 10)) + b.WriteString(parameterSeparater) + } + + // Expires + if hasExpires == true { + b.WriteString(expiresKey) + b.WriteString(parameterKVSeparater) + b.WriteString(strconv.FormatInt(expires, 10)) + b.WriteString(parameterSeparater) + } + + // Headers + b.WriteString(headersParameter) + b.WriteString(parameterKVSeparater) + b.WriteString(parameterValueDelimiter) + for i, h := range headers { + b.WriteString(strings.ToLower(h)) + if i != len(headers)-1 { + b.WriteString(headerParameterValueDelim) + } + } + b.WriteString(parameterValueDelimiter) + b.WriteString(parameterSeparater) + // Signature + b.WriteString(signatureParameter) + b.WriteString(parameterKVSeparater) + b.WriteString(parameterValueDelimiter) + b.WriteString(enc) + b.WriteString(parameterValueDelimiter) + h.Add(targetHeader, b.String()) +} + +func requestTargetNotPermitted(b *bytes.Buffer) error { + return fmt.Errorf("cannot sign with %q on anything other than an http request", RequestTarget) +} + +func addRequestTarget(r *http.Request, opts SignatureOption) func(b *bytes.Buffer) error { + return func(b *bytes.Buffer) error { + b.WriteString(RequestTarget) + b.WriteString(headerFieldDelimiter) + b.WriteString(strings.ToLower(r.Method)) + b.WriteString(requestTargetSeparator) + b.WriteString(r.URL.Path) + + if !opts.ExcludeQueryStringFromPathPseudoHeader && r.URL.RawQuery != "" { + b.WriteString("?") + b.WriteString(r.URL.RawQuery) + } + + return nil + } +} + +func signatureString(values http.Header, include []string, requestTargetFn func(b *bytes.Buffer) error, created int64, expires int64) (string, error) { + if len(include) == 0 { + include = defaultHeaders + } + var b bytes.Buffer + for n, i := range include { + i := strings.ToLower(i) + if i == RequestTarget { + err := requestTargetFn(&b) + if err != nil { + return "", err + } + } else if i == "("+expiresKey+")" { + if expires == 0 { + return "", fmt.Errorf("missing expires value") + } + b.WriteString(i) + b.WriteString(headerFieldDelimiter) + b.WriteString(strconv.FormatInt(expires, 10)) + } else if i == "("+createdKey+")" { + if created == 0 { + return "", fmt.Errorf("missing created value") + } + b.WriteString(i) + b.WriteString(headerFieldDelimiter) + b.WriteString(strconv.FormatInt(created, 10)) + } else { + hv, ok := values[textproto.CanonicalMIMEHeaderKey(i)] + if !ok { + return "", fmt.Errorf("missing header %q", i) + } + b.WriteString(i) + b.WriteString(headerFieldDelimiter) + for i, v := range hv { + b.WriteString(strings.TrimSpace(v)) + if i < len(hv)-1 { + b.WriteString(headerValueDelimiter) + } + } + } + if n < len(include)-1 { + b.WriteString(headersDelimiter) + } + } + return b.String(), nil +} diff --git a/vendor/code.superseriousbusiness.org/httpsig/verifying.go b/vendor/code.superseriousbusiness.org/httpsig/verifying.go new file mode 100644 index 000000000..52a142ac1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/httpsig/verifying.go @@ -0,0 +1,188 @@ +package httpsig + +import ( + "crypto" + "encoding/base64" + "errors" + "fmt" + "net/http" + "strconv" + "strings" + "time" +) + +var _ VerifierWithOptions = &verifier{} + +type verifier struct { + header http.Header + kId string + signature string + created int64 + expires int64 + headers []string + sigStringFn func(http.Header, []string, int64, int64, SignatureOption) (string, error) +} + +func newVerifier(h http.Header, sigStringFn func(http.Header, []string, int64, int64, SignatureOption) (string, error)) (*verifier, error) { + scheme, s, err := getSignatureScheme(h) + if err != nil { + return nil, err + } + kId, sig, headers, created, expires, err := getSignatureComponents(scheme, s) + if created != 0 { + //check if created is not in the future, we assume a maximum clock offset of 10 seconds + now := time.Now().Unix() + if created-now > 10 { + return nil, errors.New("created is in the future") + } + } + if expires != 0 { + //check if expires is in the past, we assume a maximum clock offset of 10 seconds + now := time.Now().Unix() + if now-expires > 10 { + return nil, errors.New("signature expired") + } + } + if err != nil { + return nil, err + } + return &verifier{ + header: h, + kId: kId, + signature: sig, + created: created, + expires: expires, + headers: headers, + sigStringFn: sigStringFn, + }, nil +} + +func (v *verifier) KeyId() string { + return v.kId +} + +func (v *verifier) Verify(pKey crypto.PublicKey, algo Algorithm) error { + return v.VerifyWithOptions(pKey, algo, SignatureOption{}) +} + +func (v *verifier) VerifyWithOptions(pKey crypto.PublicKey, algo Algorithm, opts SignatureOption) error { + s, err := signerFromString(string(algo)) + if err == nil { + return v.asymmVerify(s, pKey, opts) + } + m, err := macerFromString(string(algo)) + if err == nil { + return v.macVerify(m, pKey, opts) + } + return fmt.Errorf("no crypto implementation available for %q: %s", algo, err) +} + +func (v *verifier) macVerify(m macer, pKey crypto.PublicKey, opts SignatureOption) error { + key, ok := pKey.([]byte) + if !ok { + return fmt.Errorf("public key for MAC verifying must be of type []byte") + } + signature, err := v.sigStringFn(v.header, v.headers, v.created, v.expires, opts) + if err != nil { + return err + } + actualMAC, err := base64.StdEncoding.DecodeString(v.signature) + if err != nil { + return err + } + ok, err = m.Equal([]byte(signature), actualMAC, key) + if err != nil { + return err + } else if !ok { + return fmt.Errorf("invalid http signature") + } + return nil +} + +func (v *verifier) asymmVerify(s signer, pKey crypto.PublicKey, opts SignatureOption) error { + toHash, err := v.sigStringFn(v.header, v.headers, v.created, v.expires, opts) + if err != nil { + return err + } + signature, err := base64.StdEncoding.DecodeString(v.signature) + if err != nil { + return err + } + err = s.Verify(pKey, []byte(toHash), signature) + if err != nil { + return err + } + return nil +} + +func getSignatureScheme(h http.Header) (scheme SignatureScheme, val string, err error) { + s := h.Get(string(Signature)) + sigHasAll := strings.Contains(s, keyIdParameter) || + strings.Contains(s, headersParameter) || + strings.Contains(s, signatureParameter) + a := h.Get(string(Authorization)) + authHasAll := strings.Contains(a, keyIdParameter) || + strings.Contains(a, headersParameter) || + strings.Contains(a, signatureParameter) + if sigHasAll && authHasAll { + err = fmt.Errorf("both %q and %q have signature parameters", Signature, Authorization) + return + } else if !sigHasAll && !authHasAll { + err = fmt.Errorf("neither %q nor %q have signature parameters", Signature, Authorization) + return + } else if sigHasAll { + val = s + scheme = Signature + return + } else { // authHasAll + val = a + scheme = Authorization + return + } +} + +func getSignatureComponents(scheme SignatureScheme, s string) (kId, sig string, headers []string, created int64, expires int64, err error) { + if as := scheme.authScheme(); len(as) > 0 { + s = strings.TrimPrefix(s, as+prefixSeparater) + } + params := strings.Split(s, parameterSeparater) + for _, p := range params { + kv := strings.SplitN(p, parameterKVSeparater, 2) + if len(kv) != 2 { + err = fmt.Errorf("malformed http signature parameter: %v", kv) + return + } + k := kv[0] + v := strings.Trim(kv[1], parameterValueDelimiter) + switch k { + case keyIdParameter: + kId = v + case createdKey: + created, err = strconv.ParseInt(v, 10, 64) + if err != nil { + return + } + case expiresKey: + expires, err = strconv.ParseInt(v, 10, 64) + if err != nil { + return + } + case algorithmParameter: + // Deprecated, ignore + case headersParameter: + headers = strings.Split(v, headerParameterValueDelim) + case signatureParameter: + sig = v + default: + // Ignore unrecognized parameters + } + } + if len(kId) == 0 { + err = fmt.Errorf("missing %q parameter in http signature", keyIdParameter) + } else if len(sig) == 0 { + err = fmt.Errorf("missing %q parameter in http signature", signatureParameter) + } else if len(headers) == 0 { // Optional + headers = defaultHeaders + } + return +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/.gitignore b/vendor/code.superseriousbusiness.org/oauth2/v4/.gitignore new file mode 100644 index 000000000..2a8538bb9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/.gitignore @@ -0,0 +1,33 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof + +coverage.txt + +# OSX +*.DS_Store +*.db +*.swp +/example/client/client +/example/server/server diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/LICENSE b/vendor/code.superseriousbusiness.org/oauth2/v4/LICENSE new file mode 100644 index 000000000..a3f5cc079 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016 Lyric + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/README.md b/vendor/code.superseriousbusiness.org/oauth2/v4/README.md new file mode 100644 index 000000000..25297aca0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/README.md @@ -0,0 +1,3 @@ +# Golang OAuth 2.0 Server + +Forked from [go-oauth2](https://github.com/go-oauth2/oauth2). diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/const.go b/vendor/code.superseriousbusiness.org/oauth2/v4/const.go new file mode 100644 index 000000000..193e839fd --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/const.go @@ -0,0 +1,76 @@ +package oauth2 + +import ( + "crypto/sha256" + "encoding/base64" + "strings" +) + +// ResponseType the type of authorization request +type ResponseType string + +// define the type of authorization request +const ( + Code ResponseType = "code" + Token ResponseType = "token" +) + +func (rt ResponseType) String() string { + return string(rt) +} + +// GrantType authorization model +type GrantType string + +// define authorization model +const ( + AuthorizationCode GrantType = "authorization_code" + PasswordCredentials GrantType = "password" + ClientCredentials GrantType = "client_credentials" + Refreshing GrantType = "refresh_token" + Implicit GrantType = "__implicit" +) + +func (gt GrantType) String() string { + if gt == AuthorizationCode || + gt == PasswordCredentials || + gt == ClientCredentials || + gt == Refreshing { + return string(gt) + } + return "" +} + +// CodeChallengeMethod PCKE method +type CodeChallengeMethod string + +const ( + // CodeChallengePlain PCKE Method + CodeChallengePlain CodeChallengeMethod = "plain" + // CodeChallengeS256 PCKE Method + CodeChallengeS256 CodeChallengeMethod = "S256" +) + +func (ccm CodeChallengeMethod) String() string { + if ccm == CodeChallengePlain || + ccm == CodeChallengeS256 { + return string(ccm) + } + return "" +} + +// Validate code challenge +func (ccm CodeChallengeMethod) Validate(cc, ver string) bool { + switch ccm { + case CodeChallengePlain: + return cc == ver + case CodeChallengeS256: + s256 := sha256.Sum256([]byte(ver)) + // trim padding + a := strings.TrimRight(base64.URLEncoding.EncodeToString(s256[:]), "=") + b := strings.TrimRight(cc, "=") + return a == b + default: + return false + } +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/doc.go b/vendor/code.superseriousbusiness.org/oauth2/v4/doc.go new file mode 100644 index 000000000..cb579efda --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/doc.go @@ -0,0 +1,24 @@ +// OAuth 2.0 server library for the Go programming language +// +// package main +// import ( +// "net/http" +// "code.superseriousbusiness.org/oauth2/v4/manage" +// "code.superseriousbusiness.org/oauth2/v4/server" +// "code.superseriousbusiness.org/oauth2/v4/store" +// ) +// func main() { +// manager := manage.NewDefaultManager() +// manager.MustTokenStorage(store.NewMemoryTokenStore()) +// manager.MapClientStorage(store.NewTestClientStore()) +// srv := server.NewDefaultServer(manager) +// http.HandleFunc("/authorize", func(w http.ResponseWriter, r *http.Request) { +// srv.HandleAuthorizeRequest(w, r) +// }) +// http.HandleFunc("/token", func(w http.ResponseWriter, r *http.Request) { +// srv.HandleTokenRequest(w, r) +// }) +// http.ListenAndServe(":9096", nil) +// } + +package oauth2 diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/errors/error.go b/vendor/code.superseriousbusiness.org/oauth2/v4/errors/error.go new file mode 100644 index 000000000..71ae0464f --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/errors/error.go @@ -0,0 +1,19 @@ +package errors + +import "errors" + +// New returns an error that formats as the given text. +var New = errors.New + +// known errors +var ( + ErrInvalidRedirectURI = errors.New("invalid redirect uri") + ErrInvalidAuthorizeCode = errors.New("invalid authorize code") + ErrInvalidAccessToken = errors.New("invalid access token") + ErrInvalidRefreshToken = errors.New("invalid refresh token") + ErrExpiredAccessToken = errors.New("expired access token") + ErrExpiredRefreshToken = errors.New("expired refresh token") + ErrMissingCodeVerifier = errors.New("missing code verifier") + ErrMissingCodeChallenge = errors.New("missing code challenge") + ErrInvalidCodeChallenge = errors.New("invalid code challenge") +) diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/errors/response.go b/vendor/code.superseriousbusiness.org/oauth2/v4/errors/response.go new file mode 100644 index 000000000..c8d5902eb --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/errors/response.go @@ -0,0 +1,84 @@ +package errors + +import ( + "errors" + "net/http" +) + +// Response error response +type Response struct { + Error error + ErrorCode int + Description string + URI string + StatusCode int + Header http.Header +} + +// NewResponse create the response pointer +func NewResponse(err error, statusCode int) *Response { + return &Response{ + Error: err, + StatusCode: statusCode, + } +} + +// SetHeader sets the header entries associated with key to +// the single element value. +func (r *Response) SetHeader(key, value string) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set(key, value) +} + +// https://tools.ietf.org/html/rfc6749#section-5.2 +var ( + ErrInvalidRequest = errors.New("invalid_request") + ErrUnauthorizedClient = errors.New("unauthorized_client") + ErrAccessDenied = errors.New("access_denied") + ErrUnsupportedResponseType = errors.New("unsupported_response_type") + ErrInvalidScope = errors.New("invalid_scope") + ErrServerError = errors.New("server_error") + ErrTemporarilyUnavailable = errors.New("temporarily_unavailable") + ErrInvalidClient = errors.New("invalid_client") + ErrInvalidGrant = errors.New("invalid_grant") + ErrUnsupportedGrantType = errors.New("unsupported_grant_type") + ErrCodeChallengeRquired = errors.New("invalid_request") + ErrUnsupportedCodeChallengeMethod = errors.New("invalid_request") + ErrInvalidCodeChallengeLen = errors.New("invalid_request") +) + +// Descriptions error description +var Descriptions = map[error]string{ + ErrInvalidRequest: "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed", + ErrUnauthorizedClient: "The client is not authorized to request an authorization code using this method", + ErrAccessDenied: "The resource owner or authorization server denied the request", + ErrUnsupportedResponseType: "The authorization server does not support obtaining an authorization code using this method", + ErrInvalidScope: "The requested scope is invalid, unknown, or malformed", + ErrServerError: "The authorization server encountered an unexpected condition that prevented it from fulfilling the request", + ErrTemporarilyUnavailable: "The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server", + ErrInvalidClient: "Client authentication failed", + ErrInvalidGrant: "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client", + ErrUnsupportedGrantType: "The authorization grant type is not supported by the authorization server", + ErrCodeChallengeRquired: "PKCE is required. code_challenge is missing", + ErrUnsupportedCodeChallengeMethod: "Selected code_challenge_method not supported", + ErrInvalidCodeChallengeLen: "Code challenge length must be between 43 and 128 charachters long", +} + +// StatusCodes response error HTTP status code +var StatusCodes = map[error]int{ + ErrInvalidRequest: 400, + ErrUnauthorizedClient: 401, + ErrAccessDenied: 403, + ErrUnsupportedResponseType: 401, + ErrInvalidScope: 400, + ErrServerError: 500, + ErrTemporarilyUnavailable: 503, + ErrInvalidClient: 401, + ErrInvalidGrant: 401, + ErrUnsupportedGrantType: 401, + ErrCodeChallengeRquired: 400, + ErrUnsupportedCodeChallengeMethod: 400, + ErrInvalidCodeChallengeLen: 400, +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/generate.go b/vendor/code.superseriousbusiness.org/oauth2/v4/generate.go new file mode 100644 index 000000000..fd5c8cb16 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/generate.go @@ -0,0 +1,28 @@ +package oauth2 + +import ( + "context" + "net/http" + "time" +) + +type ( + // GenerateBasic provide the basis of the generated token data + GenerateBasic struct { + Client ClientInfo + UserID string + CreateAt time.Time + TokenInfo TokenInfo + Request *http.Request + } + + // AuthorizeGenerate generate the authorization code interface + AuthorizeGenerate interface { + Token(ctx context.Context, data *GenerateBasic) (code string, err error) + } + + // AccessGenerate generate the access and refresh tokens interface + AccessGenerate interface { + Token(ctx context.Context, data *GenerateBasic, isGenRefresh bool) (access, refresh string, err error) + } +) diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/generates/access.go b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/access.go new file mode 100644 index 000000000..972b5dce1 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/access.go @@ -0,0 +1,38 @@ +package generates + +import ( + "bytes" + "context" + "encoding/base64" + "strconv" + "strings" + + "code.superseriousbusiness.org/oauth2/v4" + "github.com/google/uuid" +) + +// NewAccessGenerate create to generate the access token instance +func NewAccessGenerate() *AccessGenerate { + return &AccessGenerate{} +} + +// AccessGenerate generate the access token +type AccessGenerate struct { +} + +// Token based on the UUID generated token +func (ag *AccessGenerate) Token(ctx context.Context, data *oauth2.GenerateBasic, isGenRefresh bool) (string, string, error) { + buf := bytes.NewBufferString(data.Client.GetID()) + buf.WriteString(data.UserID) + buf.WriteString(strconv.FormatInt(data.CreateAt.UnixNano(), 10)) + + access := base64.URLEncoding.EncodeToString([]byte(uuid.NewMD5(uuid.Must(uuid.NewRandom()), buf.Bytes()).String())) + access = strings.ToUpper(strings.TrimRight(access, "=")) + refresh := "" + if isGenRefresh { + refresh = base64.URLEncoding.EncodeToString([]byte(uuid.NewSHA1(uuid.Must(uuid.NewRandom()), buf.Bytes()).String())) + refresh = strings.ToUpper(strings.TrimRight(refresh, "=")) + } + + return access, refresh, nil +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/generates/authorize.go b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/authorize.go new file mode 100644 index 000000000..9d8f3fb45 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/authorize.go @@ -0,0 +1,30 @@ +package generates + +import ( + "bytes" + "context" + "encoding/base64" + "strings" + + "code.superseriousbusiness.org/oauth2/v4" + "github.com/google/uuid" +) + +// NewAuthorizeGenerate create to generate the authorize code instance +func NewAuthorizeGenerate() *AuthorizeGenerate { + return &AuthorizeGenerate{} +} + +// AuthorizeGenerate generate the authorize code +type AuthorizeGenerate struct{} + +// Token based on the UUID generated token +func (ag *AuthorizeGenerate) Token(ctx context.Context, data *oauth2.GenerateBasic) (string, error) { + buf := bytes.NewBufferString(data.Client.GetID()) + buf.WriteString(data.UserID) + token := uuid.NewMD5(uuid.Must(uuid.NewRandom()), buf.Bytes()) + code := base64.URLEncoding.EncodeToString([]byte(token.String())) + code = strings.ToUpper(strings.TrimRight(code, "=")) + + return code, nil +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/generates/jwt_access.go b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/jwt_access.go new file mode 100644 index 000000000..57c2950f0 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/generates/jwt_access.go @@ -0,0 +1,104 @@ +package generates + +import ( + "context" + "encoding/base64" + "strings" + "time" + + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/errors" + "github.com/golang-jwt/jwt" + "github.com/google/uuid" +) + +// JWTAccessClaims jwt claims +type JWTAccessClaims struct { + jwt.StandardClaims +} + +// Valid claims verification +func (a *JWTAccessClaims) Valid() error { + if time.Unix(a.ExpiresAt, 0).Before(time.Now()) { + return errors.ErrInvalidAccessToken + } + return nil +} + +// NewJWTAccessGenerate create to generate the jwt access token instance +func NewJWTAccessGenerate(kid string, key []byte, method jwt.SigningMethod) *JWTAccessGenerate { + return &JWTAccessGenerate{ + SignedKeyID: kid, + SignedKey: key, + SignedMethod: method, + } +} + +// JWTAccessGenerate generate the jwt access token +type JWTAccessGenerate struct { + SignedKeyID string + SignedKey []byte + SignedMethod jwt.SigningMethod +} + +// Token based on the UUID generated token +func (a *JWTAccessGenerate) Token(ctx context.Context, data *oauth2.GenerateBasic, isGenRefresh bool) (string, string, error) { + claims := &JWTAccessClaims{ + StandardClaims: jwt.StandardClaims{ + Audience: data.Client.GetID(), + Subject: data.UserID, + ExpiresAt: data.TokenInfo.GetAccessCreateAt().Add(data.TokenInfo.GetAccessExpiresIn()).Unix(), + }, + } + + token := jwt.NewWithClaims(a.SignedMethod, claims) + if a.SignedKeyID != "" { + token.Header["kid"] = a.SignedKeyID + } + var key interface{} + if a.isEs() { + v, err := jwt.ParseECPrivateKeyFromPEM(a.SignedKey) + if err != nil { + return "", "", err + } + key = v + } else if a.isRsOrPS() { + v, err := jwt.ParseRSAPrivateKeyFromPEM(a.SignedKey) + if err != nil { + return "", "", err + } + key = v + } else if a.isHs() { + key = a.SignedKey + } else { + return "", "", errors.New("unsupported sign method") + } + + access, err := token.SignedString(key) + if err != nil { + return "", "", err + } + refresh := "" + + if isGenRefresh { + t := uuid.NewSHA1(uuid.Must(uuid.NewRandom()), []byte(access)).String() + refresh = base64.URLEncoding.EncodeToString([]byte(t)) + refresh = strings.ToUpper(strings.TrimRight(refresh, "=")) + } + + return access, refresh, nil +} + +func (a *JWTAccessGenerate) isEs() bool { + return strings.HasPrefix(a.SignedMethod.Alg(), "ES") +} + +func (a *JWTAccessGenerate) isRsOrPS() bool { + isRs := strings.HasPrefix(a.SignedMethod.Alg(), "RS") + isPs := strings.HasPrefix(a.SignedMethod.Alg(), "PS") + return isRs || isPs +} + +func (a *JWTAccessGenerate) isHs() bool { + return strings.HasPrefix(a.SignedMethod.Alg(), "HS") +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/go.test.sh b/vendor/code.superseriousbusiness.org/oauth2/v4/go.test.sh new file mode 100644 index 000000000..7141c0d3e --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/go.test.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e +echo "" > coverage.txt + +for d in $(go list ./... | grep -v vendor); do + go test -race -coverprofile=profile.out -covermode=atomic "$d" + if [ -f profile.out ]; then + cat profile.out >> coverage.txt + rm profile.out + fi +done \ No newline at end of file diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/manage.go b/vendor/code.superseriousbusiness.org/oauth2/v4/manage.go new file mode 100644 index 000000000..5c0bdf871 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/manage.go @@ -0,0 +1,50 @@ +package oauth2 + +import ( + "context" + "net/http" + "time" +) + +// TokenGenerateRequest provide to generate the token request parameters +type TokenGenerateRequest struct { + ClientID string + ClientSecret string + UserID string + RedirectURI string + Scope string + Code string + CodeChallenge string + CodeChallengeMethod CodeChallengeMethod + Refresh string + CodeVerifier string + AccessTokenExp time.Duration + Request *http.Request +} + +// Manager authorization management interface +type Manager interface { + // get the client information + GetClient(ctx context.Context, clientID string) (cli ClientInfo, err error) + + // generate the authorization token(code) + GenerateAuthToken(ctx context.Context, rt ResponseType, tgr *TokenGenerateRequest) (authToken TokenInfo, err error) + + // generate the access token + GenerateAccessToken(ctx context.Context, rt GrantType, tgr *TokenGenerateRequest) (accessToken TokenInfo, err error) + + // refreshing an access token + RefreshAccessToken(ctx context.Context, tgr *TokenGenerateRequest) (accessToken TokenInfo, err error) + + // use the access token to delete the token information + RemoveAccessToken(ctx context.Context, access string) (err error) + + // use the refresh token to delete the token information + RemoveRefreshToken(ctx context.Context, refresh string) (err error) + + // according to the access token for corresponding token information + LoadAccessToken(ctx context.Context, access string) (ti TokenInfo, err error) + + // according to the refresh token for corresponding token information + LoadRefreshToken(ctx context.Context, refresh string) (ti TokenInfo, err error) +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/manage/config.go b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/config.go new file mode 100644 index 000000000..664c0a386 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/config.go @@ -0,0 +1,39 @@ +package manage + +import "time" + +// Config authorization configuration parameters +type Config struct { + // access token expiration time, 0 means it doesn't expire + AccessTokenExp time.Duration + // refresh token expiration time, 0 means it doesn't expire + RefreshTokenExp time.Duration + // whether to generate the refreshing token + IsGenerateRefresh bool +} + +// RefreshingConfig refreshing token config +type RefreshingConfig struct { + // access token expiration time, 0 means it doesn't expire + AccessTokenExp time.Duration + // refresh token expiration time, 0 means it doesn't expire + RefreshTokenExp time.Duration + // whether to generate the refreshing token + IsGenerateRefresh bool + // whether to reset the refreshing create time + IsResetRefreshTime bool + // whether to remove access token + IsRemoveAccess bool + // whether to remove refreshing token + IsRemoveRefreshing bool +} + +// default configs +var ( + DefaultCodeExp = time.Minute * 10 + DefaultAuthorizeCodeTokenCfg = &Config{AccessTokenExp: time.Hour * 2, RefreshTokenExp: time.Hour * 24 * 3, IsGenerateRefresh: true} + DefaultImplicitTokenCfg = &Config{AccessTokenExp: time.Hour * 1} + DefaultPasswordTokenCfg = &Config{AccessTokenExp: time.Hour * 2, RefreshTokenExp: time.Hour * 24 * 7, IsGenerateRefresh: true} + DefaultClientTokenCfg = &Config{AccessTokenExp: time.Hour * 2} + DefaultRefreshTokenCfg = &RefreshingConfig{IsGenerateRefresh: true, IsRemoveAccess: true, IsRemoveRefreshing: true} +) diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/manage/manager.go b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/manager.go new file mode 100644 index 000000000..db9aba614 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/manager.go @@ -0,0 +1,504 @@ +package manage + +import ( + "context" + "time" + + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/errors" + "code.superseriousbusiness.org/oauth2/v4/generates" + "code.superseriousbusiness.org/oauth2/v4/models" +) + +// NewDefaultManager create to default authorization management instance +func NewDefaultManager() *Manager { + m := NewManager() + // default implementation + m.MapAuthorizeGenerate(generates.NewAuthorizeGenerate()) + m.MapAccessGenerate(generates.NewAccessGenerate()) + + return m +} + +// NewManager create to authorization management instance +func NewManager() *Manager { + return &Manager{ + gtcfg: make(map[oauth2.GrantType]*Config), + validateURI: DefaultValidateURI, + } +} + +// Manager provide authorization management +type Manager struct { + codeExp time.Duration + gtcfg map[oauth2.GrantType]*Config + rcfg *RefreshingConfig + validateURI ValidateURIHandler + authorizeGenerate oauth2.AuthorizeGenerate + accessGenerate oauth2.AccessGenerate + tokenStore oauth2.TokenStore + clientStore oauth2.ClientStore +} + +// get grant type config +func (m *Manager) grantConfig(gt oauth2.GrantType) *Config { + if c, ok := m.gtcfg[gt]; ok && c != nil { + return c + } + switch gt { + case oauth2.AuthorizationCode: + return DefaultAuthorizeCodeTokenCfg + case oauth2.Implicit: + return DefaultImplicitTokenCfg + case oauth2.PasswordCredentials: + return DefaultPasswordTokenCfg + case oauth2.ClientCredentials: + return DefaultClientTokenCfg + } + return &Config{} +} + +// SetAuthorizeCodeExp set the authorization code expiration time +func (m *Manager) SetAuthorizeCodeExp(exp time.Duration) { + m.codeExp = exp +} + +// SetAuthorizeCodeTokenCfg set the authorization code grant token config +func (m *Manager) SetAuthorizeCodeTokenCfg(cfg *Config) { + m.gtcfg[oauth2.AuthorizationCode] = cfg +} + +// SetImplicitTokenCfg set the implicit grant token config +func (m *Manager) SetImplicitTokenCfg(cfg *Config) { + m.gtcfg[oauth2.Implicit] = cfg +} + +// SetPasswordTokenCfg set the password grant token config +func (m *Manager) SetPasswordTokenCfg(cfg *Config) { + m.gtcfg[oauth2.PasswordCredentials] = cfg +} + +// SetClientTokenCfg set the client grant token config +func (m *Manager) SetClientTokenCfg(cfg *Config) { + m.gtcfg[oauth2.ClientCredentials] = cfg +} + +// SetRefreshTokenCfg set the refreshing token config +func (m *Manager) SetRefreshTokenCfg(cfg *RefreshingConfig) { + m.rcfg = cfg +} + +// SetValidateURIHandler set the validates that RedirectURI is contained in baseURI +func (m *Manager) SetValidateURIHandler(handler ValidateURIHandler) { + m.validateURI = handler +} + +// MapAuthorizeGenerate mapping the authorize code generate interface +func (m *Manager) MapAuthorizeGenerate(gen oauth2.AuthorizeGenerate) { + m.authorizeGenerate = gen +} + +// MapAccessGenerate mapping the access token generate interface +func (m *Manager) MapAccessGenerate(gen oauth2.AccessGenerate) { + m.accessGenerate = gen +} + +// MapClientStorage mapping the client store interface +func (m *Manager) MapClientStorage(stor oauth2.ClientStore) { + m.clientStore = stor +} + +// MustClientStorage mandatory mapping the client store interface +func (m *Manager) MustClientStorage(stor oauth2.ClientStore, err error) { + if err != nil { + panic(err.Error()) + } + m.clientStore = stor +} + +// MapTokenStorage mapping the token store interface +func (m *Manager) MapTokenStorage(stor oauth2.TokenStore) { + m.tokenStore = stor +} + +// MustTokenStorage mandatory mapping the token store interface +func (m *Manager) MustTokenStorage(stor oauth2.TokenStore, err error) { + if err != nil { + panic(err) + } + m.tokenStore = stor +} + +// GetClient get the client information +func (m *Manager) GetClient(ctx context.Context, clientID string) (cli oauth2.ClientInfo, err error) { + cli, err = m.clientStore.GetByID(ctx, clientID) + if err != nil { + return + } else if cli == nil { + err = errors.ErrInvalidClient + } + return +} + +// GenerateAuthToken generate the authorization token(code) +func (m *Manager) GenerateAuthToken(ctx context.Context, rt oauth2.ResponseType, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, error) { + cli, err := m.GetClient(ctx, tgr.ClientID) + if err != nil { + return nil, err + } else if tgr.RedirectURI != "" { + if err := m.validateURI(cli.GetDomain(), tgr.RedirectURI); err != nil { + return nil, err + } + } + + ti := models.NewToken() + ti.SetClientID(tgr.ClientID) + ti.SetUserID(tgr.UserID) + ti.SetRedirectURI(tgr.RedirectURI) + ti.SetScope(tgr.Scope) + + createAt := time.Now() + td := &oauth2.GenerateBasic{ + Client: cli, + UserID: tgr.UserID, + CreateAt: createAt, + TokenInfo: ti, + Request: tgr.Request, + } + switch rt { + case oauth2.Code: + codeExp := m.codeExp + if codeExp == 0 { + codeExp = DefaultCodeExp + } + ti.SetCodeCreateAt(createAt) + ti.SetCodeExpiresIn(codeExp) + if exp := tgr.AccessTokenExp; exp > 0 { + ti.SetAccessExpiresIn(exp) + } + if tgr.CodeChallenge != "" { + ti.SetCodeChallenge(tgr.CodeChallenge) + ti.SetCodeChallengeMethod(tgr.CodeChallengeMethod) + } + + tv, err := m.authorizeGenerate.Token(ctx, td) + if err != nil { + return nil, err + } + ti.SetCode(tv) + case oauth2.Token: + // set access token expires + icfg := m.grantConfig(oauth2.Implicit) + aexp := icfg.AccessTokenExp + if exp := tgr.AccessTokenExp; exp > 0 { + aexp = exp + } + ti.SetAccessCreateAt(createAt) + ti.SetAccessExpiresIn(aexp) + + if icfg.IsGenerateRefresh { + ti.SetRefreshCreateAt(createAt) + ti.SetRefreshExpiresIn(icfg.RefreshTokenExp) + } + + tv, rv, err := m.accessGenerate.Token(ctx, td, icfg.IsGenerateRefresh) + if err != nil { + return nil, err + } + ti.SetAccess(tv) + + if rv != "" { + ti.SetRefresh(rv) + } + } + + err = m.tokenStore.Create(ctx, ti) + if err != nil { + return nil, err + } + return ti, nil +} + +// get authorization code data +func (m *Manager) getAuthorizationCode(ctx context.Context, code string) (oauth2.TokenInfo, error) { + ti, err := m.tokenStore.GetByCode(ctx, code) + if err != nil { + return nil, err + } else if ti == nil || ti.GetCode() != code || ti.GetCodeCreateAt().Add(ti.GetCodeExpiresIn()).Before(time.Now()) { + err = errors.ErrInvalidAuthorizeCode + return nil, errors.ErrInvalidAuthorizeCode + } + return ti, nil +} + +// delete authorization code data +func (m *Manager) delAuthorizationCode(ctx context.Context, code string) error { + return m.tokenStore.RemoveByCode(ctx, code) +} + +// get and delete authorization code data +func (m *Manager) getAndDelAuthorizationCode(ctx context.Context, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, error) { + code := tgr.Code + ti, err := m.getAuthorizationCode(ctx, code) + if err != nil { + return nil, err + } else if ti.GetClientID() != tgr.ClientID { + return nil, errors.ErrInvalidAuthorizeCode + } else if codeURI := ti.GetRedirectURI(); codeURI != "" && codeURI != tgr.RedirectURI { + return nil, errors.ErrInvalidAuthorizeCode + } + + err = m.delAuthorizationCode(ctx, code) + if err != nil { + return nil, err + } + return ti, nil +} + +func (m *Manager) validateCodeChallenge(ti oauth2.TokenInfo, ver string) error { + cc := ti.GetCodeChallenge() + // early return + if cc == "" && ver == "" { + return nil + } + if cc == "" { + return errors.ErrMissingCodeVerifier + } + if ver == "" { + return errors.ErrMissingCodeVerifier + } + ccm := ti.GetCodeChallengeMethod() + if ccm.String() == "" { + ccm = oauth2.CodeChallengePlain + } + if !ccm.Validate(cc, ver) { + return errors.ErrInvalidCodeChallenge + } + return nil +} + +// GenerateAccessToken generate the access token +func (m *Manager) GenerateAccessToken(ctx context.Context, gt oauth2.GrantType, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, error) { + cli, err := m.GetClient(ctx, tgr.ClientID) + if err != nil { + return nil, err + } + if cliPass, ok := cli.(oauth2.ClientPasswordVerifier); ok { + if !cliPass.VerifyPassword(tgr.ClientSecret) { + return nil, errors.ErrInvalidClient + } + } else if len(cli.GetSecret()) > 0 && tgr.ClientSecret != cli.GetSecret() { + return nil, errors.ErrInvalidClient + } + if tgr.RedirectURI != "" { + if err := m.validateURI(cli.GetDomain(), tgr.RedirectURI); err != nil { + return nil, err + } + } + + if gt == oauth2.AuthorizationCode { + ti, err := m.getAndDelAuthorizationCode(ctx, tgr) + if err != nil { + return nil, err + } + if err := m.validateCodeChallenge(ti, tgr.CodeVerifier); err != nil { + return nil, err + } + tgr.UserID = ti.GetUserID() + tgr.Scope = ti.GetScope() + if exp := ti.GetAccessExpiresIn(); exp > 0 { + tgr.AccessTokenExp = exp + } + } + + ti := models.NewToken() + ti.SetClientID(tgr.ClientID) + ti.SetUserID(tgr.UserID) + ti.SetRedirectURI(tgr.RedirectURI) + ti.SetScope(tgr.Scope) + + createAt := time.Now() + ti.SetAccessCreateAt(createAt) + + // set access token expires + gcfg := m.grantConfig(gt) + aexp := gcfg.AccessTokenExp + if exp := tgr.AccessTokenExp; exp > 0 { + aexp = exp + } + ti.SetAccessExpiresIn(aexp) + if gcfg.IsGenerateRefresh { + ti.SetRefreshCreateAt(createAt) + ti.SetRefreshExpiresIn(gcfg.RefreshTokenExp) + } + + td := &oauth2.GenerateBasic{ + Client: cli, + UserID: tgr.UserID, + CreateAt: createAt, + TokenInfo: ti, + Request: tgr.Request, + } + + av, rv, err := m.accessGenerate.Token(ctx, td, gcfg.IsGenerateRefresh) + if err != nil { + return nil, err + } + ti.SetAccess(av) + + if rv != "" { + ti.SetRefresh(rv) + } + + err = m.tokenStore.Create(ctx, ti) + if err != nil { + return nil, err + } + + return ti, nil +} + +// RefreshAccessToken refreshing an access token +func (m *Manager) RefreshAccessToken(ctx context.Context, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, error) { + cli, err := m.GetClient(ctx, tgr.ClientID) + if err != nil { + return nil, err + } else if cliPass, ok := cli.(oauth2.ClientPasswordVerifier); ok { + if !cliPass.VerifyPassword(tgr.ClientSecret) { + return nil, errors.ErrInvalidClient + } + } else if tgr.ClientSecret != cli.GetSecret() { + return nil, errors.ErrInvalidClient + } + + ti, err := m.LoadRefreshToken(ctx, tgr.Refresh) + if err != nil { + return nil, err + } else if ti.GetClientID() != tgr.ClientID { + return nil, errors.ErrInvalidRefreshToken + } + + oldAccess, oldRefresh := ti.GetAccess(), ti.GetRefresh() + + td := &oauth2.GenerateBasic{ + Client: cli, + UserID: ti.GetUserID(), + CreateAt: time.Now(), + TokenInfo: ti, + Request: tgr.Request, + } + + rcfg := DefaultRefreshTokenCfg + if v := m.rcfg; v != nil { + rcfg = v + } + + ti.SetAccessCreateAt(td.CreateAt) + if v := rcfg.AccessTokenExp; v > 0 { + ti.SetAccessExpiresIn(v) + } + + if v := rcfg.RefreshTokenExp; v > 0 { + ti.SetRefreshExpiresIn(v) + } + + if rcfg.IsResetRefreshTime { + ti.SetRefreshCreateAt(td.CreateAt) + } + + if scope := tgr.Scope; scope != "" { + ti.SetScope(scope) + } + + tv, rv, err := m.accessGenerate.Token(ctx, td, rcfg.IsGenerateRefresh) + if err != nil { + return nil, err + } + + ti.SetAccess(tv) + if rv != "" { + ti.SetRefresh(rv) + } + + if err := m.tokenStore.Create(ctx, ti); err != nil { + return nil, err + } + + if rcfg.IsRemoveAccess { + // remove the old access token + if err := m.tokenStore.RemoveByAccess(ctx, oldAccess); err != nil { + return nil, err + } + } + + if rcfg.IsRemoveRefreshing && rv != "" { + // remove the old refresh token + if err := m.tokenStore.RemoveByRefresh(ctx, oldRefresh); err != nil { + return nil, err + } + } + + if rv == "" { + ti.SetRefresh("") + ti.SetRefreshCreateAt(time.Now()) + ti.SetRefreshExpiresIn(0) + } + + return ti, nil +} + +// RemoveAccessToken use the access token to delete the token information +func (m *Manager) RemoveAccessToken(ctx context.Context, access string) error { + if access == "" { + return errors.ErrInvalidAccessToken + } + return m.tokenStore.RemoveByAccess(ctx, access) +} + +// RemoveRefreshToken use the refresh token to delete the token information +func (m *Manager) RemoveRefreshToken(ctx context.Context, refresh string) error { + if refresh == "" { + return errors.ErrInvalidAccessToken + } + return m.tokenStore.RemoveByRefresh(ctx, refresh) +} + +// LoadAccessToken according to the access token for corresponding token information +func (m *Manager) LoadAccessToken(ctx context.Context, access string) (oauth2.TokenInfo, error) { + if access == "" { + return nil, errors.ErrInvalidAccessToken + } + + ct := time.Now() + ti, err := m.tokenStore.GetByAccess(ctx, access) + if err != nil { + return nil, err + } else if ti == nil || ti.GetAccess() != access { + return nil, errors.ErrInvalidAccessToken + } else if ti.GetRefresh() != "" && ti.GetRefreshExpiresIn() != 0 && + ti.GetRefreshCreateAt().Add(ti.GetRefreshExpiresIn()).Before(ct) { + return nil, errors.ErrExpiredRefreshToken + } else if ti.GetAccessExpiresIn() != 0 && + ti.GetAccessCreateAt().Add(ti.GetAccessExpiresIn()).Before(ct) { + return nil, errors.ErrExpiredAccessToken + } + return ti, nil +} + +// LoadRefreshToken according to the refresh token for corresponding token information +func (m *Manager) LoadRefreshToken(ctx context.Context, refresh string) (oauth2.TokenInfo, error) { + if refresh == "" { + return nil, errors.ErrInvalidRefreshToken + } + + ti, err := m.tokenStore.GetByRefresh(ctx, refresh) + if err != nil { + return nil, err + } else if ti == nil || ti.GetRefresh() != refresh { + return nil, errors.ErrInvalidRefreshToken + } else if ti.GetRefreshExpiresIn() != 0 && // refresh token set to not expire + ti.GetRefreshCreateAt().Add(ti.GetRefreshExpiresIn()).Before(time.Now()) { + return nil, errors.ErrExpiredRefreshToken + } + return ti, nil +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/manage/util.go b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/util.go new file mode 100644 index 000000000..fc4c4b610 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/manage/util.go @@ -0,0 +1,30 @@ +package manage + +import ( + "net/url" + "strings" + + "code.superseriousbusiness.org/oauth2/v4/errors" +) + +type ( + // ValidateURIHandler validates that redirectURI is contained in baseURI + ValidateURIHandler func(baseURI, redirectURI string) error +) + +// DefaultValidateURI validates that redirectURI is contained in baseURI +func DefaultValidateURI(baseURI string, redirectURI string) error { + base, err := url.Parse(baseURI) + if err != nil { + return err + } + + redirect, err := url.Parse(redirectURI) + if err != nil { + return err + } + if !strings.HasSuffix(redirect.Host, base.Host) { + return errors.ErrInvalidRedirectURI + } + return nil +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/model.go b/vendor/code.superseriousbusiness.org/oauth2/v4/model.go new file mode 100644 index 000000000..121a42d67 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/model.go @@ -0,0 +1,59 @@ +package oauth2 + +import ( + "time" +) + +type ( + // ClientInfo the client information model interface + ClientInfo interface { + GetID() string + GetSecret() string + GetDomain() string + GetUserID() string + } + + // ClientPasswordVerifier the password handler interface + ClientPasswordVerifier interface { + VerifyPassword(string) bool + } + + // TokenInfo the token information model interface + TokenInfo interface { + New() TokenInfo + + GetClientID() string + SetClientID(string) + GetUserID() string + SetUserID(string) + GetRedirectURI() string + SetRedirectURI(string) + GetScope() string + SetScope(string) + + GetCode() string + SetCode(string) + GetCodeCreateAt() time.Time + SetCodeCreateAt(time.Time) + GetCodeExpiresIn() time.Duration + SetCodeExpiresIn(time.Duration) + GetCodeChallenge() string + SetCodeChallenge(string) + GetCodeChallengeMethod() CodeChallengeMethod + SetCodeChallengeMethod(CodeChallengeMethod) + + GetAccess() string + SetAccess(string) + GetAccessCreateAt() time.Time + SetAccessCreateAt(time.Time) + GetAccessExpiresIn() time.Duration + SetAccessExpiresIn(time.Duration) + + GetRefresh() string + SetRefresh(string) + GetRefreshCreateAt() time.Time + SetRefreshCreateAt(time.Time) + GetRefreshExpiresIn() time.Duration + SetRefreshExpiresIn(time.Duration) + } +) diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/models/client.go b/vendor/code.superseriousbusiness.org/oauth2/v4/models/client.go new file mode 100644 index 000000000..2006b6712 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/models/client.go @@ -0,0 +1,46 @@ +package models + +// Client client model +type Client interface { + GetID() string + GetSecret() string + GetDomain() string + GetUserID() string +} + +func New(id string, secret string, domain string, userID string) Client { + return &simpleClient{ + id: id, + secret: secret, + domain: domain, + userID: userID, + } +} + +// simpleClient is a very simple client model that satisfies the Client interface +type simpleClient struct { + id string + secret string + domain string + userID string +} + +// GetID client id +func (c *simpleClient) GetID() string { + return c.id +} + +// GetSecret client secret +func (c *simpleClient) GetSecret() string { + return c.secret +} + +// GetDomain client domain +func (c *simpleClient) GetDomain() string { + return c.domain +} + +// GetUserID user id +func (c *simpleClient) GetUserID() string { + return c.userID +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/models/token.go b/vendor/code.superseriousbusiness.org/oauth2/v4/models/token.go new file mode 100644 index 000000000..e14868e51 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/models/token.go @@ -0,0 +1,186 @@ +package models + +import ( + "time" + + "code.superseriousbusiness.org/oauth2/v4" +) + +// NewToken create to token model instance +func NewToken() *Token { + return &Token{} +} + +// Token token model +type Token struct { + ClientID string `bson:"ClientID"` + UserID string `bson:"UserID"` + RedirectURI string `bson:"RedirectURI"` + Scope string `bson:"Scope"` + Code string `bson:"Code"` + CodeChallenge string `bson:"CodeChallenge"` + CodeChallengeMethod string `bson:"CodeChallengeMethod"` + CodeCreateAt time.Time `bson:"CodeCreateAt"` + CodeExpiresIn time.Duration `bson:"CodeExpiresIn"` + Access string `bson:"Access"` + AccessCreateAt time.Time `bson:"AccessCreateAt"` + AccessExpiresIn time.Duration `bson:"AccessExpiresIn"` + Refresh string `bson:"Refresh"` + RefreshCreateAt time.Time `bson:"RefreshCreateAt"` + RefreshExpiresIn time.Duration `bson:"RefreshExpiresIn"` +} + +// New create to token model instance +func (t *Token) New() oauth2.TokenInfo { + return NewToken() +} + +// GetClientID the client id +func (t *Token) GetClientID() string { + return t.ClientID +} + +// SetClientID the client id +func (t *Token) SetClientID(clientID string) { + t.ClientID = clientID +} + +// GetUserID the user id +func (t *Token) GetUserID() string { + return t.UserID +} + +// SetUserID the user id +func (t *Token) SetUserID(userID string) { + t.UserID = userID +} + +// GetRedirectURI redirect URI +func (t *Token) GetRedirectURI() string { + return t.RedirectURI +} + +// SetRedirectURI redirect URI +func (t *Token) SetRedirectURI(redirectURI string) { + t.RedirectURI = redirectURI +} + +// GetScope get scope of authorization +func (t *Token) GetScope() string { + return t.Scope +} + +// SetScope get scope of authorization +func (t *Token) SetScope(scope string) { + t.Scope = scope +} + +// GetCode authorization code +func (t *Token) GetCode() string { + return t.Code +} + +// SetCode authorization code +func (t *Token) SetCode(code string) { + t.Code = code +} + +// GetCodeCreateAt create Time +func (t *Token) GetCodeCreateAt() time.Time { + return t.CodeCreateAt +} + +// SetCodeCreateAt create Time +func (t *Token) SetCodeCreateAt(createAt time.Time) { + t.CodeCreateAt = createAt +} + +// GetCodeExpiresIn the lifetime in seconds of the authorization code +func (t *Token) GetCodeExpiresIn() time.Duration { + return t.CodeExpiresIn +} + +// SetCodeExpiresIn the lifetime in seconds of the authorization code +func (t *Token) SetCodeExpiresIn(exp time.Duration) { + t.CodeExpiresIn = exp +} + +// GetCodeChallenge challenge code +func (t *Token) GetCodeChallenge() string { + return t.CodeChallenge +} + +// SetCodeChallenge challenge code +func (t *Token) SetCodeChallenge(code string) { + t.CodeChallenge = code +} + +// GetCodeChallengeMethod challenge method +func (t *Token) GetCodeChallengeMethod() oauth2.CodeChallengeMethod { + return oauth2.CodeChallengeMethod(t.CodeChallengeMethod) +} + +// SetCodeChallengeMethod challenge method +func (t *Token) SetCodeChallengeMethod(method oauth2.CodeChallengeMethod) { + t.CodeChallengeMethod = string(method) +} + +// GetAccess access Token +func (t *Token) GetAccess() string { + return t.Access +} + +// SetAccess access Token +func (t *Token) SetAccess(access string) { + t.Access = access +} + +// GetAccessCreateAt create Time +func (t *Token) GetAccessCreateAt() time.Time { + return t.AccessCreateAt +} + +// SetAccessCreateAt create Time +func (t *Token) SetAccessCreateAt(createAt time.Time) { + t.AccessCreateAt = createAt +} + +// GetAccessExpiresIn the lifetime in seconds of the access token +func (t *Token) GetAccessExpiresIn() time.Duration { + return t.AccessExpiresIn +} + +// SetAccessExpiresIn the lifetime in seconds of the access token +func (t *Token) SetAccessExpiresIn(exp time.Duration) { + t.AccessExpiresIn = exp +} + +// GetRefresh refresh Token +func (t *Token) GetRefresh() string { + return t.Refresh +} + +// SetRefresh refresh Token +func (t *Token) SetRefresh(refresh string) { + t.Refresh = refresh +} + +// GetRefreshCreateAt create Time +func (t *Token) GetRefreshCreateAt() time.Time { + return t.RefreshCreateAt +} + +// SetRefreshCreateAt create Time +func (t *Token) SetRefreshCreateAt(createAt time.Time) { + t.RefreshCreateAt = createAt +} + +// GetRefreshExpiresIn the lifetime in seconds of the refresh token +func (t *Token) GetRefreshExpiresIn() time.Duration { + return t.RefreshExpiresIn +} + +// SetRefreshExpiresIn the lifetime in seconds of the refresh token +func (t *Token) SetRefreshExpiresIn(exp time.Duration) { + t.RefreshExpiresIn = exp +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/server/config.go b/vendor/code.superseriousbusiness.org/oauth2/v4/server/config.go new file mode 100644 index 000000000..7894f4003 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/server/config.go @@ -0,0 +1,50 @@ +package server + +import ( + "net/http" + "time" + + "code.superseriousbusiness.org/oauth2/v4" +) + +// Config configuration parameters +type Config struct { + TokenType string // token type + AllowGetAccessRequest bool // to allow GET requests for the token + AllowedResponseTypes []oauth2.ResponseType // allow the authorization type + AllowedGrantTypes []oauth2.GrantType // allow the grant type + AllowedCodeChallengeMethods []oauth2.CodeChallengeMethod + ForcePKCE bool +} + +// NewConfig create to configuration instance +func NewConfig() *Config { + return &Config{ + TokenType: "Bearer", + AllowedResponseTypes: []oauth2.ResponseType{oauth2.Code, oauth2.Token}, + AllowedGrantTypes: []oauth2.GrantType{ + oauth2.AuthorizationCode, + oauth2.PasswordCredentials, + oauth2.ClientCredentials, + oauth2.Refreshing, + }, + AllowedCodeChallengeMethods: []oauth2.CodeChallengeMethod{ + oauth2.CodeChallengePlain, + oauth2.CodeChallengeS256, + }, + } +} + +// AuthorizeRequest authorization request +type AuthorizeRequest struct { + ResponseType oauth2.ResponseType + ClientID string + Scope string + RedirectURI string + State string + UserID string + CodeChallenge string + CodeChallengeMethod oauth2.CodeChallengeMethod + AccessTokenExp time.Duration + Request *http.Request +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/server/handler.go b/vendor/code.superseriousbusiness.org/oauth2/v4/server/handler.go new file mode 100644 index 000000000..745716dc5 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/server/handler.go @@ -0,0 +1,66 @@ +package server + +import ( + "net/http" + "time" + + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/errors" +) + +type ( + // ClientInfoHandler get client info from request + ClientInfoHandler func(r *http.Request) (clientID, clientSecret string, err error) + + // ClientAuthorizedHandler check the client allows to use this authorization grant type + ClientAuthorizedHandler func(clientID string, grant oauth2.GrantType) (allowed bool, err error) + + // ClientScopeHandler check the client allows to use scope + ClientScopeHandler func(tgr *oauth2.TokenGenerateRequest) (allowed bool, err error) + + // UserAuthorizationHandler get user id from request authorization + UserAuthorizationHandler func(w http.ResponseWriter, r *http.Request) (userID string, err error) + + // PasswordAuthorizationHandler get user id from username and password + PasswordAuthorizationHandler func(username, password string) (userID string, err error) + + // RefreshingScopeHandler check the scope of the refreshing token + RefreshingScopeHandler func(tgr *oauth2.TokenGenerateRequest, oldScope string) (allowed bool, err error) + + // RefreshingValidationHandler check if refresh_token is still valid. eg no revocation or other + RefreshingValidationHandler func(ti oauth2.TokenInfo) (allowed bool, err error) + + // ResponseErrorHandler response error handing + ResponseErrorHandler func(re *errors.Response) + + // InternalErrorHandler internal error handing + InternalErrorHandler func(err error) (re *errors.Response) + + // AuthorizeScopeHandler set the authorized scope + AuthorizeScopeHandler func(w http.ResponseWriter, r *http.Request) (scope string, err error) + + // AccessTokenExpHandler set expiration date for the access token + AccessTokenExpHandler func(w http.ResponseWriter, r *http.Request) (exp time.Duration, err error) + + // ExtensionFieldsHandler in response to the access token with the extension of the field + ExtensionFieldsHandler func(ti oauth2.TokenInfo) (fieldsValue map[string]interface{}) +) + +// ClientFormHandler get client data from form +func ClientFormHandler(r *http.Request) (string, string, error) { + clientID := r.Form.Get("client_id") + if clientID == "" { + return "", "", errors.ErrInvalidClient + } + clientSecret := r.Form.Get("client_secret") + return clientID, clientSecret, nil +} + +// ClientBasicHandler get client data from basic authorization +func ClientBasicHandler(r *http.Request) (string, string, error) { + username, password, ok := r.BasicAuth() + if !ok { + return "", "", errors.ErrInvalidClient + } + return username, password, nil +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/server/server.go b/vendor/code.superseriousbusiness.org/oauth2/v4/server/server.go new file mode 100644 index 000000000..82f6ff8c3 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/server/server.go @@ -0,0 +1,589 @@ +package server + +import ( + "context" + "encoding/json" + "fmt" + "net/http" + "net/url" + "strings" + "time" + + "code.superseriousbusiness.org/oauth2/v4" + "code.superseriousbusiness.org/oauth2/v4/errors" +) + +// NewDefaultServer create a default authorization server +func NewDefaultServer(manager oauth2.Manager) *Server { + return NewServer(NewConfig(), manager) +} + +// NewServer create authorization server +func NewServer(cfg *Config, manager oauth2.Manager) *Server { + srv := &Server{ + Config: cfg, + Manager: manager, + } + + // default handler + srv.ClientInfoHandler = ClientBasicHandler + + srv.UserAuthorizationHandler = func(w http.ResponseWriter, r *http.Request) (string, error) { + return "", errors.ErrAccessDenied + } + + srv.PasswordAuthorizationHandler = func(username, password string) (string, error) { + return "", errors.ErrAccessDenied + } + return srv +} + +// Server Provide authorization server +type Server struct { + Config *Config + Manager oauth2.Manager + ClientInfoHandler ClientInfoHandler + ClientAuthorizedHandler ClientAuthorizedHandler + ClientScopeHandler ClientScopeHandler + UserAuthorizationHandler UserAuthorizationHandler + PasswordAuthorizationHandler PasswordAuthorizationHandler + RefreshingValidationHandler RefreshingValidationHandler + RefreshingScopeHandler RefreshingScopeHandler + ResponseErrorHandler ResponseErrorHandler + InternalErrorHandler InternalErrorHandler + ExtensionFieldsHandler ExtensionFieldsHandler + AccessTokenExpHandler AccessTokenExpHandler + AuthorizeScopeHandler AuthorizeScopeHandler +} + +func (s *Server) redirectError(w http.ResponseWriter, req *AuthorizeRequest, err error) error { + if req == nil { + return err + } + data, _, _ := s.GetErrorData(err) + return s.redirect(w, req, data) +} + +func (s *Server) redirect(w http.ResponseWriter, req *AuthorizeRequest, data map[string]interface{}) error { + uri, err := s.GetRedirectURI(req, data) + if err != nil { + return err + } + + w.Header().Set("Location", uri) + w.WriteHeader(302) + return nil +} + +func (s *Server) tokenError(w http.ResponseWriter, err error) error { + data, statusCode, header := s.GetErrorData(err) + return s.token(w, data, header, statusCode) +} + +func (s *Server) token(w http.ResponseWriter, data map[string]interface{}, header http.Header, statusCode ...int) error { + w.Header().Set("Content-Type", "application/json;charset=UTF-8") + w.Header().Set("Cache-Control", "no-store") + w.Header().Set("Pragma", "no-cache") + + for key := range header { + w.Header().Set(key, header.Get(key)) + } + + status := http.StatusOK + if len(statusCode) > 0 && statusCode[0] > 0 { + status = statusCode[0] + } + + w.WriteHeader(status) + return json.NewEncoder(w).Encode(data) +} + +// GetRedirectURI get redirect uri +func (s *Server) GetRedirectURI(req *AuthorizeRequest, data map[string]interface{}) (string, error) { + u, err := url.Parse(req.RedirectURI) + if err != nil { + return "", err + } + + q := u.Query() + if req.State != "" { + q.Set("state", req.State) + } + + for k, v := range data { + q.Set(k, fmt.Sprint(v)) + } + + switch req.ResponseType { + case oauth2.Code: + u.RawQuery = q.Encode() + case oauth2.Token: + u.RawQuery = "" + fragment, err := url.QueryUnescape(q.Encode()) + if err != nil { + return "", err + } + u.Fragment = fragment + } + + return u.String(), nil +} + +// CheckResponseType check allows response type +func (s *Server) CheckResponseType(rt oauth2.ResponseType) bool { + for _, art := range s.Config.AllowedResponseTypes { + if art == rt { + return true + } + } + return false +} + +// CheckCodeChallengeMethod checks for allowed code challenge method +func (s *Server) CheckCodeChallengeMethod(ccm oauth2.CodeChallengeMethod) bool { + for _, c := range s.Config.AllowedCodeChallengeMethods { + if c == ccm { + return true + } + } + return false +} + +// ValidationAuthorizeRequest the authorization request validation +func (s *Server) ValidationAuthorizeRequest(r *http.Request) (*AuthorizeRequest, error) { + redirectURI := r.FormValue("redirect_uri") + clientID := r.FormValue("client_id") + if !(r.Method == "GET" || r.Method == "POST") || + clientID == "" { + return nil, errors.ErrInvalidRequest + } + + resType := oauth2.ResponseType(r.FormValue("response_type")) + if resType.String() == "" { + return nil, errors.ErrUnsupportedResponseType + } else if allowed := s.CheckResponseType(resType); !allowed { + return nil, errors.ErrUnauthorizedClient + } + + cc := r.FormValue("code_challenge") + if cc == "" && s.Config.ForcePKCE { + return nil, errors.ErrCodeChallengeRquired + } + if cc != "" && (len(cc) < 43 || len(cc) > 128) { + return nil, errors.ErrInvalidCodeChallengeLen + } + + ccm := oauth2.CodeChallengeMethod(r.FormValue("code_challenge_method")) + // set default + if ccm == "" { + ccm = oauth2.CodeChallengePlain + } + if ccm.String() != "" && !s.CheckCodeChallengeMethod(ccm) { + return nil, errors.ErrUnsupportedCodeChallengeMethod + } + + req := &AuthorizeRequest{ + RedirectURI: redirectURI, + ResponseType: resType, + ClientID: clientID, + State: r.FormValue("state"), + Scope: r.FormValue("scope"), + Request: r, + CodeChallenge: cc, + CodeChallengeMethod: ccm, + } + return req, nil +} + +// GetAuthorizeToken get authorization token(code) +func (s *Server) GetAuthorizeToken(ctx context.Context, req *AuthorizeRequest) (oauth2.TokenInfo, error) { + // check the client allows the grant type + if fn := s.ClientAuthorizedHandler; fn != nil { + gt := oauth2.AuthorizationCode + if req.ResponseType == oauth2.Token { + gt = oauth2.Implicit + } + + allowed, err := fn(req.ClientID, gt) + if err != nil { + return nil, err + } else if !allowed { + return nil, errors.ErrUnauthorizedClient + } + } + + tgr := &oauth2.TokenGenerateRequest{ + ClientID: req.ClientID, + UserID: req.UserID, + RedirectURI: req.RedirectURI, + Scope: req.Scope, + AccessTokenExp: req.AccessTokenExp, + Request: req.Request, + } + + // check the client allows the authorized scope + if fn := s.ClientScopeHandler; fn != nil { + allowed, err := fn(tgr) + if err != nil { + return nil, err + } else if !allowed { + return nil, errors.ErrInvalidScope + } + } + + tgr.CodeChallenge = req.CodeChallenge + tgr.CodeChallengeMethod = req.CodeChallengeMethod + + return s.Manager.GenerateAuthToken(ctx, req.ResponseType, tgr) +} + +// GetAuthorizeData get authorization response data +func (s *Server) GetAuthorizeData(rt oauth2.ResponseType, ti oauth2.TokenInfo) map[string]interface{} { + if rt == oauth2.Code { + return map[string]interface{}{ + "code": ti.GetCode(), + } + } + return s.GetTokenData(ti) +} + +// HandleAuthorizeRequest the authorization request handling +func (s *Server) HandleAuthorizeRequest(w http.ResponseWriter, r *http.Request) error { + ctx := r.Context() + + req, err := s.ValidationAuthorizeRequest(r) + if err != nil { + return s.redirectError(w, req, err) + } + + // user authorization + userID, err := s.UserAuthorizationHandler(w, r) + if err != nil { + return s.redirectError(w, req, err) + } else if userID == "" { + return nil + } + req.UserID = userID + + // specify the scope of authorization + if fn := s.AuthorizeScopeHandler; fn != nil { + scope, err := fn(w, r) + if err != nil { + return err + } else if scope != "" { + req.Scope = scope + } + } + + // specify the expiration time of access token + if fn := s.AccessTokenExpHandler; fn != nil { + exp, err := fn(w, r) + if err != nil { + return err + } + req.AccessTokenExp = exp + } + + ti, err := s.GetAuthorizeToken(ctx, req) + if err != nil { + return s.redirectError(w, req, err) + } + + // If the redirect URI is empty, the default domain provided by the client is used. + if req.RedirectURI == "" { + client, err := s.Manager.GetClient(ctx, req.ClientID) + if err != nil { + return err + } + req.RedirectURI = client.GetDomain() + } + + return s.redirect(w, req, s.GetAuthorizeData(req.ResponseType, ti)) +} + +// ValidationTokenRequest the token request validation +func (s *Server) ValidationTokenRequest(r *http.Request) (oauth2.GrantType, *oauth2.TokenGenerateRequest, error) { + if v := r.Method; !(v == "POST" || + (s.Config.AllowGetAccessRequest && v == "GET")) { + return "", nil, errors.ErrInvalidRequest + } + + gt := oauth2.GrantType(r.FormValue("grant_type")) + if gt.String() == "" { + return "", nil, errors.ErrUnsupportedGrantType + } + + if !s.CheckGrantType(gt) { + return "", nil, errors.ErrUnsupportedGrantType + } + + clientID, clientSecret, err := s.ClientInfoHandler(r) + if err != nil { + return "", nil, err + } + + tgr := &oauth2.TokenGenerateRequest{ + ClientID: clientID, + ClientSecret: clientSecret, + Request: r, + } + + switch gt { + case oauth2.AuthorizationCode: + tgr.RedirectURI = r.FormValue("redirect_uri") + tgr.Code = r.FormValue("code") + if tgr.RedirectURI == "" || + tgr.Code == "" { + return "", nil, errors.ErrInvalidRequest + } + tgr.CodeVerifier = r.FormValue("code_verifier") + if s.Config.ForcePKCE && tgr.CodeVerifier == "" { + return "", nil, errors.ErrInvalidRequest + } + case oauth2.PasswordCredentials: + tgr.Scope = r.FormValue("scope") + username, password := r.FormValue("username"), r.FormValue("password") + if username == "" || password == "" { + return "", nil, errors.ErrInvalidRequest + } + + userID, err := s.PasswordAuthorizationHandler(username, password) + if err != nil { + return "", nil, err + } else if userID == "" { + return "", nil, errors.ErrInvalidGrant + } + tgr.UserID = userID + case oauth2.ClientCredentials: + tgr.Scope = r.FormValue("scope") + tgr.RedirectURI = r.FormValue("redirect_uri") + case oauth2.Refreshing: + tgr.Refresh = r.FormValue("refresh_token") + tgr.Scope = r.FormValue("scope") + if tgr.Refresh == "" { + return "", nil, errors.ErrInvalidRequest + } + } + return gt, tgr, nil +} + +// CheckGrantType check allows grant type +func (s *Server) CheckGrantType(gt oauth2.GrantType) bool { + for _, agt := range s.Config.AllowedGrantTypes { + if agt == gt { + return true + } + } + return false +} + +// GetAccessToken access token +func (s *Server) GetAccessToken(ctx context.Context, gt oauth2.GrantType, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, + error) { + if allowed := s.CheckGrantType(gt); !allowed { + return nil, errors.ErrUnauthorizedClient + } + + if fn := s.ClientAuthorizedHandler; fn != nil { + allowed, err := fn(tgr.ClientID, gt) + if err != nil { + return nil, err + } else if !allowed { + return nil, errors.ErrUnauthorizedClient + } + } + + switch gt { + case oauth2.AuthorizationCode: + ti, err := s.Manager.GenerateAccessToken(ctx, gt, tgr) + if err != nil { + switch err { + case errors.ErrInvalidAuthorizeCode, errors.ErrInvalidCodeChallenge, errors.ErrMissingCodeChallenge: + return nil, errors.ErrInvalidGrant + case errors.ErrInvalidClient: + return nil, errors.ErrInvalidClient + default: + return nil, err + } + } + return ti, nil + case oauth2.PasswordCredentials, oauth2.ClientCredentials: + if fn := s.ClientScopeHandler; fn != nil { + allowed, err := fn(tgr) + if err != nil { + return nil, err + } else if !allowed { + return nil, errors.ErrInvalidScope + } + } + return s.Manager.GenerateAccessToken(ctx, gt, tgr) + case oauth2.Refreshing: + // check scope + if scopeFn := s.RefreshingScopeHandler; tgr.Scope != "" && scopeFn != nil { + rti, err := s.Manager.LoadRefreshToken(ctx, tgr.Refresh) + if err != nil { + if err == errors.ErrInvalidRefreshToken || err == errors.ErrExpiredRefreshToken { + return nil, errors.ErrInvalidGrant + } + return nil, err + } + + allowed, err := scopeFn(tgr, rti.GetScope()) + if err != nil { + return nil, err + } else if !allowed { + return nil, errors.ErrInvalidScope + } + } + + if validationFn := s.RefreshingValidationHandler; validationFn != nil { + rti, err := s.Manager.LoadRefreshToken(ctx, tgr.Refresh) + if err != nil { + if err == errors.ErrInvalidRefreshToken || err == errors.ErrExpiredRefreshToken { + return nil, errors.ErrInvalidGrant + } + return nil, err + } + allowed, err := validationFn(rti) + if err != nil { + return nil, err + } else if !allowed { + return nil, errors.ErrInvalidScope + } + } + + ti, err := s.Manager.RefreshAccessToken(ctx, tgr) + if err != nil { + if err == errors.ErrInvalidRefreshToken || err == errors.ErrExpiredRefreshToken { + return nil, errors.ErrInvalidGrant + } + return nil, err + } + return ti, nil + } + + return nil, errors.ErrUnsupportedGrantType +} + +// GetTokenData token data +func (s *Server) GetTokenData(ti oauth2.TokenInfo) map[string]interface{} { + data := map[string]interface{}{ + "access_token": ti.GetAccess(), + "token_type": s.Config.TokenType, + "expires_in": int64(ti.GetAccessExpiresIn() / time.Second), + } + + if scope := ti.GetScope(); scope != "" { + data["scope"] = scope + } + + if refresh := ti.GetRefresh(); refresh != "" { + data["refresh_token"] = refresh + } + + if fn := s.ExtensionFieldsHandler; fn != nil { + ext := fn(ti) + for k, v := range ext { + if _, ok := data[k]; ok { + continue + } + data[k] = v + } + } + return data +} + +// HandleTokenRequest token request handling +func (s *Server) HandleTokenRequest(w http.ResponseWriter, r *http.Request) error { + ctx := r.Context() + + gt, tgr, err := s.ValidationTokenRequest(r) + if err != nil { + return s.tokenError(w, err) + } + + ti, err := s.GetAccessToken(ctx, gt, tgr) + if err != nil { + return s.tokenError(w, err) + } + + return s.token(w, s.GetTokenData(ti), nil) +} + +// GetErrorData get error response data +func (s *Server) GetErrorData(err error) (map[string]interface{}, int, http.Header) { + var re errors.Response + if v, ok := errors.Descriptions[err]; ok { + re.Error = err + re.Description = v + re.StatusCode = errors.StatusCodes[err] + } else { + if fn := s.InternalErrorHandler; fn != nil { + if v := fn(err); v != nil { + re = *v + } + } + + if re.Error == nil { + re.Error = errors.ErrServerError + re.Description = errors.Descriptions[errors.ErrServerError] + re.StatusCode = errors.StatusCodes[errors.ErrServerError] + } + } + + if fn := s.ResponseErrorHandler; fn != nil { + fn(&re) + } + + data := make(map[string]interface{}) + if err := re.Error; err != nil { + data["error"] = err.Error() + } + + if v := re.ErrorCode; v != 0 { + data["error_code"] = v + } + + if v := re.Description; v != "" { + data["error_description"] = v + } + + if v := re.URI; v != "" { + data["error_uri"] = v + } + + statusCode := http.StatusInternalServerError + if v := re.StatusCode; v > 0 { + statusCode = v + } + + return data, statusCode, re.Header +} + +// BearerAuth parse bearer token +func (s *Server) BearerAuth(r *http.Request) (string, bool) { + auth := r.Header.Get("Authorization") + prefix := "Bearer " + token := "" + + if auth != "" && strings.HasPrefix(auth, prefix) { + token = auth[len(prefix):] + } else { + token = r.FormValue("access_token") + } + + return token, token != "" +} + +// ValidationBearerToken validation the bearer tokens +// https://tools.ietf.org/html/rfc6750 +func (s *Server) ValidationBearerToken(r *http.Request) (oauth2.TokenInfo, error) { + ctx := r.Context() + + accessToken, ok := s.BearerAuth(r) + if !ok { + return nil, errors.ErrInvalidAccessToken + } + + return s.Manager.LoadAccessToken(ctx, accessToken) +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/server/server_config.go b/vendor/code.superseriousbusiness.org/oauth2/v4/server/server_config.go new file mode 100644 index 000000000..4e8010196 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/server/server_config.go @@ -0,0 +1,85 @@ +package server + +import ( + "code.superseriousbusiness.org/oauth2/v4" +) + +// SetTokenType token type +func (s *Server) SetTokenType(tokenType string) { + s.Config.TokenType = tokenType +} + +// SetAllowGetAccessRequest to allow GET requests for the token +func (s *Server) SetAllowGetAccessRequest(allow bool) { + s.Config.AllowGetAccessRequest = allow +} + +// SetAllowedResponseType allow the authorization types +func (s *Server) SetAllowedResponseType(types ...oauth2.ResponseType) { + s.Config.AllowedResponseTypes = types +} + +// SetAllowedGrantType allow the grant types +func (s *Server) SetAllowedGrantType(types ...oauth2.GrantType) { + s.Config.AllowedGrantTypes = types +} + +// SetClientInfoHandler get client info from request +func (s *Server) SetClientInfoHandler(handler ClientInfoHandler) { + s.ClientInfoHandler = handler +} + +// SetClientAuthorizedHandler check the client allows to use this authorization grant type +func (s *Server) SetClientAuthorizedHandler(handler ClientAuthorizedHandler) { + s.ClientAuthorizedHandler = handler +} + +// SetClientScopeHandler check the client allows to use scope +func (s *Server) SetClientScopeHandler(handler ClientScopeHandler) { + s.ClientScopeHandler = handler +} + +// SetUserAuthorizationHandler get user id from request authorization +func (s *Server) SetUserAuthorizationHandler(handler UserAuthorizationHandler) { + s.UserAuthorizationHandler = handler +} + +// SetPasswordAuthorizationHandler get user id from username and password +func (s *Server) SetPasswordAuthorizationHandler(handler PasswordAuthorizationHandler) { + s.PasswordAuthorizationHandler = handler +} + +// SetRefreshingScopeHandler check the scope of the refreshing token +func (s *Server) SetRefreshingScopeHandler(handler RefreshingScopeHandler) { + s.RefreshingScopeHandler = handler +} + +// SetRefreshingValidationHandler check if refresh_token is still valid. eg no revocation or other +func (s *Server) SetRefreshingValidationHandler(handler RefreshingValidationHandler) { + s.RefreshingValidationHandler = handler +} + +// SetResponseErrorHandler response error handling +func (s *Server) SetResponseErrorHandler(handler ResponseErrorHandler) { + s.ResponseErrorHandler = handler +} + +// SetInternalErrorHandler internal error handling +func (s *Server) SetInternalErrorHandler(handler InternalErrorHandler) { + s.InternalErrorHandler = handler +} + +// SetExtensionFieldsHandler in response to the access token with the extension of the field +func (s *Server) SetExtensionFieldsHandler(handler ExtensionFieldsHandler) { + s.ExtensionFieldsHandler = handler +} + +// SetAccessTokenExpHandler set expiration date for the access token +func (s *Server) SetAccessTokenExpHandler(handler AccessTokenExpHandler) { + s.AccessTokenExpHandler = handler +} + +// SetAuthorizeScopeHandler set scope for the access token +func (s *Server) SetAuthorizeScopeHandler(handler AuthorizeScopeHandler) { + s.AuthorizeScopeHandler = handler +} diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/store.go b/vendor/code.superseriousbusiness.org/oauth2/v4/store.go new file mode 100644 index 000000000..65fda9ed6 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/oauth2/v4/store.go @@ -0,0 +1,36 @@ +package oauth2 + +import "context" + +type ( + // ClientStore the client information storage interface + ClientStore interface { + GetByID(ctx context.Context, id string) (ClientInfo, error) + Set(ctx context.Context, id string, cli ClientInfo) error + Delete(ctx context.Context, id string) error + } + + // TokenStore the token information storage interface + TokenStore interface { + // create and store the new token information + Create(ctx context.Context, info TokenInfo) error + + // delete the authorization code + RemoveByCode(ctx context.Context, code string) error + + // use the access token to delete the token information + RemoveByAccess(ctx context.Context, access string) error + + // use the refresh token to delete the token information + RemoveByRefresh(ctx context.Context, refresh string) error + + // use the authorization code for token information data + GetByCode(ctx context.Context, code string) (TokenInfo, error) + + // use the access token for token information data + GetByAccess(ctx context.Context, access string) (TokenInfo, error) + + // use the refresh token for token information data + GetByRefresh(ctx context.Context, refresh string) (TokenInfo, error) + } +) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/LICENSE b/vendor/codeberg.org/superseriousbusiness/activity/LICENSE deleted file mode 100644 index a9e8aefad..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2018, go-fed -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/README.md b/vendor/codeberg.org/superseriousbusiness/activity/pub/README.md deleted file mode 100644 index bb9a49b05..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/README.md +++ /dev/null @@ -1,270 +0,0 @@ -# pub - -Implements the Social and Federating Protocols in the ActivityPub specification. - -## Reference & Tutorial - -The [go-fed website](https://go-fed.org/) contains tutorials and reference -materials, in addition to the rest of this README. - -## How To Use - -``` -go get github.com/go-fed/activity -``` - -The root of all ActivityPub behavior is the `Actor`, which requires you to -implement a few interfaces: - -```golang -import ( - "codeberg.org/superseriousbusiness/activity/pub" -) - -type myActivityPubApp struct { /* ... */ } -type myAppsDatabase struct { /* ... */ } -type myAppsClock struct { /* ... */ } - -var ( - // Your app will implement pub.CommonBehavior, and either - // pub.SocialProtocol, pub.FederatingProtocol, or both. - myApp = &myActivityPubApp{} - myCommonBehavior pub.CommonBehavior = myApp - mySocialProtocol pub.SocialProtocol = myApp - myFederatingProtocol pub.FederatingProtocol = myApp - // Your app's database implementation. - myDatabase pub.Database = &myAppsDatabase{} - // Your app's clock. - myClock pub.Clock = &myAppsClock{} -) - -// Only support the C2S Social protocol -actor := pub.NewSocialActor( - myCommonBehavior, - mySocialProtocol, - myDatabase, - myClock) -// OR -// -// Only support S2S Federating protocol -actor = pub.NewFederatingActor( - myCommonBehavior, - myFederatingProtocol, - myDatabase, - myClock) -// OR -// -// Support both C2S Social and S2S Federating protocol. -actor = pub.NewActor( - myCommonBehavior, - mySocialProtocol, - myFederatingProtocol, - myDatabase, - myClock) -``` - -Next, hook the `Actor` into your web server: - -```golang -// The application's actor -var actor pub.Actor -var outboxHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) { - c := context.Background() - // Populate c with request-specific information - if handled, err := actor.PostOutbox(c, w, r); err != nil { - // Write to w - return - } else if handled { - return - } else if handled, err = actor.GetOutbox(c, w, r); err != nil { - // Write to w - return - } else if handled { - return - } - // else: - // - // Handle non-ActivityPub request, such as serving a webpage. -} -var inboxHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) { - c := context.Background() - // Populate c with request-specific information - if handled, err := actor.PostInbox(c, w, r); err != nil { - // Write to w - return - } else if handled { - return - } else if handled, err = actor.GetInbox(c, w, r); err != nil { - // Write to w - return - } else if handled { - return - } - // else: - // - // Handle non-ActivityPub request, such as serving a webpage. -} -// Add the handlers to a HTTP server -serveMux := http.NewServeMux() -serveMux.HandleFunc("/actor/outbox", outboxHandler) -serveMux.HandleFunc("/actor/inbox", inboxHandler) -var server http.Server -server.Handler = serveMux -``` - -To serve ActivityStreams data: - -```golang -myHander := pub.NewActivityStreamsHandler(myDatabase, myClock) -var activityStreamsHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) { - c := context.Background() - // Populate c with request-specific information - if handled, err := myHandler(c, w, r); err != nil { - // Write to w - return - } else if handled { - return - } - // else: - // - // Handle non-ActivityPub request, such as serving a webpage. -} -serveMux.HandleFunc("/some/data/like/a/note", activityStreamsHandler) -``` - -### Dependency Injection - -Package `pub` relies on dependency injection to provide out-of-the-box support -for ActivityPub. The interfaces to be satisfied are: - -* `CommonBehavior` - Behavior needed regardless of which Protocol is used. -* `SocialProtocol` - Behavior needed for the Social Protocol. -* `FederatingProtocol` - Behavior needed for the Federating Protocol. -* `Database` - The data store abstraction, not tied to the `database/sql` -package. -* `Clock` - The server's internal clock. -* `Transport` - Responsible for the network that serves requests and deliveries -of ActivityStreams data. A `HttpSigTransport` type is provided. - -These implementations form the core of an application's behavior without -worrying about the particulars and pitfalls of the ActivityPub protocol. -Implementing these interfaces gives you greater assurance about being -ActivityPub compliant. - -### Application Logic - -The `SocialProtocol` and `FederatingProtocol` are responsible for returning -callback functions compatible with `streams.TypeResolver`. They also return -`SocialWrappedCallbacks` and `FederatingWrappedCallbacks`, which are nothing -more than a bundle of default behaviors for types like `Create`, `Update`, and -so on. - -Applications will want to focus on implementing their specific behaviors in the -callbacks, and have fine-grained control over customization: - -```golang -// Implements the FederatingProtocol interface. -// -// This illustration can also be applied for the Social Protocol. -func (m *myAppsFederatingProtocol) Callbacks(c context.Context) (wrapped pub.FederatingWrappedCallbacks, other []interface{}) { - // The context 'c' has request-specific logic and can be used to apply complex - // logic building the right behaviors, if desired. - // - // 'c' will later be passed through to the callbacks created below. - wrapped = pub.FederatingWrappedCallbacks{ - Create: func(ctx context.Context, create vocab.ActivityStreamsCreate) error { - // This function is wrapped by default behavior. - // - // More application specific logic can be written here. - // - // 'ctx' will have request-specific information from the HTTP handler. It - // is the same as the 'c' passed to the Callbacks method. - // 'create' has, at this point, already triggered the recommended - // ActivityPub side effect behavior. The application can process it - // further as needed. - return nil - }, - } - // The 'other' must contain functions that satisfy the signature pattern - // required by streams.JSONResolver. - // - // If they are not, at runtime errors will be returned to indicate this. - other = []interface{}{ - // The FederatingWrappedCallbacks has default behavior for an "Update" type, - // but since we are providing this behavior in "other" and not in the - // FederatingWrappedCallbacks.Update member, we will entirely replace the - // default behavior provided by go-fed. Be careful that this still - // implements ActivityPub properly. - func(ctx context.Context, update vocab.ActivityStreamsUpdate) error { - // This function is NOT wrapped by default behavior. - // - // Application specific logic can be written here. - // - // 'ctx' will have request-specific information from the HTTP handler. It - // is the same as the 'c' passed to the Callbacks method. - // 'update' will NOT trigger the recommended ActivityPub side effect - // behavior. The application should do so in addition to any other custom - // side effects required. - return nil - }, - // The "Listen" type has no default suggested behavior in ActivityPub, so - // this just makes this application able to handle "Listen" activities. - func(ctx context.Context, listen vocab.ActivityStreamsListen) error { - // This function is NOT wrapped by default behavior. There's not a - // FederatingWrappedCallbacks.Listen member to wrap. - // - // Application specific logic can be written here. - // - // 'ctx' will have request-specific information from the HTTP handler. It - // is the same as the 'c' passed to the Callbacks method. - // 'listen' can be processed with side effects as the application needs. - return nil - }, - } - return -} -``` - -The `pub` package supports applications that grow into more custom solutions by -overriding the default behaviors as needed. - -### ActivityStreams Extensions: Future-Proofing An Application - -Package `pub` relies on the `streams.TypeResolver` and `streams.JSONResolver` -code generated types. As new ActivityStreams extensions are developed and their -code is generated, `pub` will automatically pick up support for these -extensions. - -The steps to rapidly implement a new extension in a `pub` application are: - -1. Generate an OWL definition of the ActivityStreams extension. This definition -could be the same one defining the vocabulary at the `@context` IRI. -2. Run `astool` to autogenerate the golang types in the `streams` package. -3. Implement the application's callbacks in the `FederatingProtocol.Callbacks` -or `SocialProtocol.Callbacks` for the new behaviors needed. -4. Build the application, which builds `pub`, with the newly generated `streams` -code. No code changes in `pub` are required. - -Whether an author of an ActivityStreams extension or an application developer, -these quick steps should reduce the barrier to adopion in a statically-typed -environment. - -### DelegateActor - -For those that need a near-complete custom ActivityPub solution, or want to have -that possibility in the future after adopting go-fed, the `DelegateActor` -interface can be used to obtain an `Actor`: - -```golang -// Use custom ActivityPub implementation -actor = pub.NewCustomActor( - myDelegateActor, - isSocialProtocolEnabled, - isFederatedProtocolEnabled, - myAppsClock) -``` - -It does not guarantee that an implementation adheres to the ActivityPub -specification. It acts as a stepping stone for applications that want to build -up to a fully custom solution and not be locked into the `pub` package -implementation. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/activity.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/activity.go deleted file mode 100644 index 8b3d5b486..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/activity.go +++ /dev/null @@ -1,49 +0,0 @@ -package pub - -import ( - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// Activity represents any ActivityStreams Activity type. -// -// The Activity types provided in the streams package implement this. -type Activity interface { - // Activity is also a vocab.Type - vocab.Type - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() vocab.ActivityStreamsActorProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() vocab.ActivityStreamsCcProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() vocab.ActivityStreamsToProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/actor.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/actor.go deleted file mode 100644 index a9b19d1c1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/actor.go +++ /dev/null @@ -1,128 +0,0 @@ -package pub - -import ( - "context" - "net/http" - "net/url" - - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// Actor represents ActivityPub's actor concept. It conceptually has an inbox -// and outbox that receives either a POST or GET request, which triggers side -// effects in the federating application. -// -// An Actor within an application may federate server-to-server (Federation -// Protocol), client-to-server (Social API), or both. The Actor represents the -// server in either use case. -// -// An actor can be created by calling NewSocialActor (only the Social Protocol -// is supported), NewFederatingActor (only the Federating Protocol is -// supported), NewActor (both are supported), or NewCustomActor (neither are). -// -// Not all Actors have the same behaviors depending on the constructor used to -// create them. Refer to the constructor's documentation to determine the exact -// behavior of the Actor on an application. -// -// The behaviors documented here are common to all Actors returned by any -// constructor. -type Actor interface { - // PostInbox returns true if the request was handled as an ActivityPub - // POST to an actor's inbox. If false, the request was not an - // ActivityPub request and may still be handled by the caller in - // another way, such as serving a web page. - // - // If the error is nil, then the ResponseWriter's headers and response - // has already been written. If a non-nil error is returned, then no - // response has been written. - // - // If the Actor was constructed with the Federated Protocol enabled, - // side effects will occur. - // - // If the Federated Protocol is not enabled, writes the - // http.StatusMethodNotAllowed status code in the response. No side - // effects occur. - // - // The request and data of your application will be interpreted as - // having an HTTPS protocol scheme. - PostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) - // PostInboxScheme is similar to PostInbox, except clients are able to - // specify which protocol scheme to handle the incoming request and the - // data stored within the application (HTTP, HTTPS, etc). - PostInboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) - // GetInbox returns true if the request was handled as an ActivityPub - // GET to an actor's inbox. If false, the request was not an ActivityPub - // request and may still be handled by the caller in another way, such - // as serving a web page. - // - // If the error is nil, then the ResponseWriter's headers and response - // has already been written. If a non-nil error is returned, then no - // response has been written. - // - // If the request is an ActivityPub request, the Actor will defer to the - // application to determine the correct authorization of the request and - // the resulting OrderedCollection to respond with. The Actor handles - // serializing this OrderedCollection and responding with the correct - // headers and http.StatusOK. - GetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) - // PostOutbox returns true if the request was handled as an ActivityPub - // POST to an actor's outbox. If false, the request was not an - // ActivityPub request and may still be handled by the caller in another - // way, such as serving a web page. - // - // If the error is nil, then the ResponseWriter's headers and response - // has already been written. If a non-nil error is returned, then no - // response has been written. - // - // If the Actor was constructed with the Social Protocol enabled, side - // effects will occur. - // - // If the Social Protocol is not enabled, writes the - // http.StatusMethodNotAllowed status code in the response. No side - // effects occur. - // - // If the Social and Federated Protocol are both enabled, it will handle - // the side effects of receiving an ActivityStream Activity, and then - // federate the Activity to peers. - // - // The request will be interpreted as having an HTTPS scheme. - PostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) - // PostOutboxScheme is similar to PostOutbox, except clients are able to - // specify which protocol scheme to handle the incoming request and the - // data stored within the application (HTTP, HTTPS, etc). - PostOutboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) - // GetOutbox returns true if the request was handled as an ActivityPub - // GET to an actor's outbox. If false, the request was not an - // ActivityPub request. - // - // If the error is nil, then the ResponseWriter's headers and response - // has already been written. If a non-nil error is returned, then no - // response has been written. - // - // If the request is an ActivityPub request, the Actor will defer to the - // application to determine the correct authorization of the request and - // the resulting OrderedCollection to respond with. The Actor handles - // serializing this OrderedCollection and responding with the correct - // headers and http.StatusOK. - GetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) -} - -// FederatingActor is an Actor that allows programmatically delivering an -// Activity to a federating peer. -type FederatingActor interface { - Actor - // Send a federated activity. - // - // The provided url must be the outbox of the sender. All processing of - // the activity occurs similarly to the C2S flow: - // - If t is not an Activity, it is wrapped in a Create activity. - // - A new ID is generated for the activity. - // - The activity is added to the specified outbox. - // - The activity is prepared and delivered to recipients. - // - // Note that this function will only behave as expected if the - // implementation has been constructed to support federation. This - // method will guaranteed work for non-custom Actors. For custom actors, - // care should be used to not call this method if only C2S is supported. - Send(c context.Context, outbox *url.URL, t vocab.Type) (Activity, error) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/base_actor.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/base_actor.go deleted file mode 100644 index c509383d6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/base_actor.go +++ /dev/null @@ -1,475 +0,0 @@ -package pub - -import ( - "context" - "encoding/json" - "fmt" - "net/http" - "net/url" - - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// baseActor must satisfy the Actor interface. -var _ Actor = &baseActor{} - -// baseActor is an application-independent ActivityPub implementation. It does -// not implement the entire protocol, and relies on a delegate to do so. It -// only implements the part of the protocol that is side-effect-free, allowing -// an existing application to write a DelegateActor that glues their application -// into the ActivityPub world. -// -// It is preferred to use a DelegateActor provided by this library, so that the -// application does not need to worry about the ActivityPub implementation. -type baseActor struct { - // delegate contains application-specific delegation logic. - delegate DelegateActor - // enableSocialProtocol enables or disables the Social API, the client to - // server part of ActivityPub. Useful if permitting remote clients to - // act on behalf of the users of the client application. - enableSocialProtocol bool - // enableFederatedProtocol enables or disables the Federated Protocol, or the - // server to server part of ActivityPub. Useful to permit integrating - // with the rest of the federative web. - enableFederatedProtocol bool - // clock simply tracks the current time. - clock Clock -} - -// baseActorFederating must satisfy the FederatingActor interface. -var _ FederatingActor = &baseActorFederating{} - -// baseActorFederating is a baseActor that also satisfies the FederatingActor -// interface. -// -// The baseActor is preserved as an Actor which will not successfully cast to a -// FederatingActor. -type baseActorFederating struct { - baseActor -} - -// NewSocialActor builds a new Actor concept that handles only the Social -// Protocol part of ActivityPub. -// -// This Actor can be created once in an application and reused to handle -// multiple requests concurrently and for different endpoints. -// -// It leverages as much of go-fed as possible to ensure the implementation is -// compliant with the ActivityPub specification, while providing enough freedom -// to be productive without shooting one's self in the foot. -// -// Do not try to use NewSocialActor and NewFederatingActor together to cover -// both the Social and Federating parts of the protocol. Instead, use NewActor. -func NewSocialActor(c CommonBehavior, - c2s SocialProtocol, - db Database, - clock Clock) Actor { - return &baseActor{ - // Use SideEffectActor without s2s. - delegate: NewSideEffectActor(c, nil, c2s, db, clock), - enableSocialProtocol: true, - clock: clock, - } -} - -// NewFederatingActor builds a new Actor concept that handles only the Federating -// Protocol part of ActivityPub. -// -// This Actor can be created once in an application and reused to handle -// multiple requests concurrently and for different endpoints. -// -// It leverages as much of go-fed as possible to ensure the implementation is -// compliant with the ActivityPub specification, while providing enough freedom -// to be productive without shooting one's self in the foot. -// -// Do not try to use NewSocialActor and NewFederatingActor together to cover -// both the Social and Federating parts of the protocol. Instead, use NewActor. -func NewFederatingActor(c CommonBehavior, - s2s FederatingProtocol, - db Database, - clock Clock) FederatingActor { - return &baseActorFederating{ - baseActor{ - // Use SideEffectActor without c2s. - delegate: NewSideEffectActor(c, s2s, nil, db, clock), - enableFederatedProtocol: true, - clock: clock, - }, - } -} - -// NewActor builds a new Actor concept that handles both the Social and -// Federating Protocol parts of ActivityPub. -// -// This Actor can be created once in an application and reused to handle -// multiple requests concurrently and for different endpoints. -// -// It leverages as much of go-fed as possible to ensure the implementation is -// compliant with the ActivityPub specification, while providing enough freedom -// to be productive without shooting one's self in the foot. -func NewActor(c CommonBehavior, - c2s SocialProtocol, - s2s FederatingProtocol, - db Database, - clock Clock) FederatingActor { - return &baseActorFederating{ - baseActor{ - delegate: NewSideEffectActor(c, s2s, c2s, db, clock), - enableSocialProtocol: true, - enableFederatedProtocol: true, - clock: clock, - }, - } -} - -// NewCustomActor allows clients to create a custom ActivityPub implementation -// for the Social Protocol, Federating Protocol, or both. -// -// It still uses the library as a high-level scaffold, which has the benefit of -// allowing applications to grow into a custom ActivityPub solution without -// having to refactor the code that passes HTTP requests into the Actor. -// -// It is possible to create a DelegateActor that is not ActivityPub compliant. -// Use with due care. -// -// If you find yourself passing a SideEffectActor in as the DelegateActor, -// consider using NewActor, NewFederatingActor, or NewSocialActor instead. -func NewCustomActor(delegate DelegateActor, - enableSocialProtocol, enableFederatedProtocol bool, - clock Clock) FederatingActor { - return &baseActorFederating{ - baseActor{ - delegate: delegate, - enableSocialProtocol: enableSocialProtocol, - enableFederatedProtocol: enableFederatedProtocol, - clock: clock, - }, - } -} - -// PostInbox implements the generic algorithm for handling a POST request to an -// actor's inbox independent on an application. It relies on a delegate to -// implement application specific functionality. -// -// Only supports serving data with identifiers having the HTTPS scheme. -func (b *baseActor) PostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { - return b.PostInboxScheme(c, w, r, "https") -} - -// PostInbox implements the generic algorithm for handling a POST request to an -// actor's inbox independent on an application. It relies on a delegate to -// implement application specific functionality. -// -// Specifying the "scheme" allows for retrieving ActivityStreams content with -// identifiers such as HTTP, HTTPS, or other protocol schemes. -func (b *baseActor) PostInboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) { - // Do nothing if it is not an ActivityPub POST request. - if !isActivityPubPost(r) { - return false, nil - } - // If the Federated Protocol is not enabled, then this endpoint is not - // enabled. - if !b.enableFederatedProtocol { - w.WriteHeader(http.StatusMethodNotAllowed) - return true, nil - } - // Check the peer request is authentic. - c, authenticated, err := b.delegate.AuthenticatePostInbox(c, w, r) - if err != nil { - return true, err - } else if !authenticated { - return true, nil - } - // Begin processing the request, but have not yet applied - // authorization (ex: blocks). Obtain the activity reject unknown - // activities. - m, err := readActivityPubReq(r) - if err != nil { - return true, err - } - asValue, err := streams.ToType(c, m) - if err != nil && !streams.IsUnmatchedErr(err) { - return true, err - } else if streams.IsUnmatchedErr(err) { - // Respond with bad request -- we do not understand the type. - w.WriteHeader(http.StatusBadRequest) - return true, nil - } - activity, ok := asValue.(Activity) - if !ok { - return true, fmt.Errorf("activity streams value is not an Activity: %T", asValue) - } - if activity.GetJSONLDId() == nil { - w.WriteHeader(http.StatusBadRequest) - return true, nil - } - // Allow server implementations to set context data with a hook. - c, err = b.delegate.PostInboxRequestBodyHook(c, r, activity) - if err != nil { - return true, err - } - // Check authorization of the activity. - authorized, err := b.delegate.AuthorizePostInbox(c, w, activity) - if err != nil { - return true, err - } else if !authorized { - return true, nil - } - // Post the activity to the actor's inbox and trigger side effects for - // that particular Activity type. It is up to the delegate to resolve - // the given map. - inboxId := requestId(r, scheme) - err = b.delegate.PostInbox(c, inboxId, activity) - if err != nil { - // Special case: We know it is a bad request if the object or - // target properties needed to be populated, but weren't. - // - // Send the rejection to the peer. - if err == ErrObjectRequired || err == ErrTargetRequired { - w.WriteHeader(http.StatusBadRequest) - return true, nil - } - return true, err - } - // Our side effects are complete, now delegate determining whether to - // do inbox forwarding, as well as the action to do it. - if err := b.delegate.InboxForwarding(c, inboxId, activity); err != nil { - return true, err - } - // Request has been processed. Begin responding to the request. - // - // Simply respond with an OK status to the peer. - w.WriteHeader(http.StatusOK) - return true, nil -} - -// GetInbox implements the generic algorithm for handling a GET request to an -// actor's inbox independent on an application. It relies on a delegate to -// implement application specific functionality. -func (b *baseActor) GetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { - // Do nothing if it is not an ActivityPub GET request. - if !isActivityPubGet(r) { - return false, nil - } - // Delegate authenticating and authorizing the request. - c, authenticated, err := b.delegate.AuthenticateGetInbox(c, w, r) - if err != nil { - return true, err - } else if !authenticated { - return true, nil - } - // Everything is good to begin processing the request. - oc, err := b.delegate.GetInbox(c, r) - if err != nil { - return true, err - } - // Deduplicate the 'orderedItems' property by ID. - err = dedupeOrderedItems(oc) - if err != nil { - return true, err - } - // Request has been processed. Begin responding to the request. - // - // Serialize the OrderedCollection. - m, err := streams.Serialize(oc) - if err != nil { - return true, err - } - raw, err := json.Marshal(m) - if err != nil { - return true, err - } - // Write the response. - addResponseHeaders(w.Header(), b.clock, raw) - w.WriteHeader(http.StatusOK) - n, err := w.Write(raw) - if err != nil { - return true, err - } else if n != len(raw) { - return true, fmt.Errorf("ResponseWriter.Write wrote %d of %d bytes", n, len(raw)) - } - return true, nil -} - -// PostOutbox implements the generic algorithm for handling a POST request to an -// actor's outbox independent on an application. It relies on a delegate to -// implement application specific functionality. -// -// Only supports serving data with identifiers having the HTTPS scheme. -func (b *baseActor) PostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { - return b.PostOutboxScheme(c, w, r, "https") -} - -// PostOutbox implements the generic algorithm for handling a POST request to an -// actor's outbox independent on an application. It relies on a delegate to -// implement application specific functionality. -// -// Specifying the "scheme" allows for retrieving ActivityStreams content with -// identifiers such as HTTP, HTTPS, or other protocol schemes. -func (b *baseActor) PostOutboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) { - // Do nothing if it is not an ActivityPub POST request. - if !isActivityPubPost(r) { - return false, nil - } - // If the Social API is not enabled, then this endpoint is not enabled. - if !b.enableSocialProtocol { - w.WriteHeader(http.StatusMethodNotAllowed) - return true, nil - } - // Delegate authenticating and authorizing the request. - c, authenticated, err := b.delegate.AuthenticatePostOutbox(c, w, r) - if err != nil { - return true, err - } else if !authenticated { - return true, nil - } - // Everything is good to begin processing the request. - m, err := readActivityPubReq(r) - if err != nil { - return true, err - } - // Note that converting to a Type will NOT successfully convert types - // not known to go-fed. This prevents accidentally wrapping an Activity - // type unknown to go-fed in a Create below. Instead, - // streams.ErrUnhandledType will be returned here. - asValue, err := streams.ToType(c, m) - if err != nil && !streams.IsUnmatchedErr(err) { - return true, err - } else if streams.IsUnmatchedErr(err) { - // Respond with bad request -- we do not understand the type. - w.WriteHeader(http.StatusBadRequest) - return true, nil - } - // Allow server implementations to set context data with a hook. - c, err = b.delegate.PostOutboxRequestBodyHook(c, r, asValue) - if err != nil { - return true, err - } - // The HTTP request steps are complete, complete the rest of the outbox - // and delivery process. - outboxId := requestId(r, scheme) - activity, err := b.deliver(c, outboxId, asValue, m) - // Special case: We know it is a bad request if the object or - // target properties needed to be populated, but weren't. - // - // Send the rejection to the client. - if err == ErrObjectRequired || err == ErrTargetRequired { - w.WriteHeader(http.StatusBadRequest) - return true, nil - } else if err != nil { - return true, err - } - // Respond to the request with the new Activity's IRI location. - w.Header().Set(locationHeader, activity.GetJSONLDId().Get().String()) - w.WriteHeader(http.StatusCreated) - return true, nil -} - -// GetOutbox implements the generic algorithm for handling a Get request to an -// actor's outbox independent on an application. It relies on a delegate to -// implement application specific functionality. -func (b *baseActor) GetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { - // Do nothing if it is not an ActivityPub GET request. - if !isActivityPubGet(r) { - return false, nil - } - // Delegate authenticating and authorizing the request. - c, authenticated, err := b.delegate.AuthenticateGetOutbox(c, w, r) - if err != nil { - return true, err - } else if !authenticated { - return true, nil - } - // Everything is good to begin processing the request. - oc, err := b.delegate.GetOutbox(c, r) - if err != nil { - return true, err - } - // Request has been processed. Begin responding to the request. - // - // Serialize the OrderedCollection. - m, err := streams.Serialize(oc) - if err != nil { - return true, err - } - raw, err := json.Marshal(m) - if err != nil { - return true, err - } - // Write the response. - addResponseHeaders(w.Header(), b.clock, raw) - w.WriteHeader(http.StatusOK) - n, err := w.Write(raw) - if err != nil { - return true, err - } else if n != len(raw) { - return true, fmt.Errorf("ResponseWriter.Write wrote %d of %d bytes", n, len(raw)) - } - return true, nil -} - -// deliver delegates all outbox handling steps and optionally will federate the -// activity if the federated protocol is enabled. -// -// This function is not exported so an Actor that only supports C2S cannot be -// type casted to a FederatingActor. It doesn't exactly fit the Send method -// signature anyways. -// -// Note: 'm' is nilable. -func (b *baseActor) deliver(c context.Context, outbox *url.URL, asValue vocab.Type, m map[string]interface{}) (activity Activity, err error) { - // If the value is not an Activity or type extending from Activity, then - // we need to wrap it in a Create Activity. - if !streams.IsOrExtendsActivityStreamsActivity(asValue) { - asValue, err = b.delegate.WrapInCreate(c, asValue, outbox) - if err != nil { - return - } - } - // At this point, this should be a safe conversion. If this error is - // triggered, then there is either a bug in the delegation of - // WrapInCreate, behavior is not lining up in the generated ExtendedBy - // code, or something else is incorrect with the type system. - var ok bool - activity, ok = asValue.(Activity) - if !ok { - err = fmt.Errorf("activity streams value is not an Activity: %T", asValue) - return - } - // Delegate generating new IDs for the activity and all new objects. - if err = b.delegate.AddNewIDs(c, activity); err != nil { - return - } - // Post the activity to the actor's outbox and trigger side effects for - // that particular Activity type. - // - // Since 'm' is nil-able and side effects may need access to literal nil - // values, such as for Update activities, ensure 'm' is non-nil. - if m == nil { - m, err = asValue.Serialize() - if err != nil { - return - } - } - deliverable, err := b.delegate.PostOutbox(c, activity, outbox, m) - if err != nil { - return - } - // Request has been processed and all side effects internal to this - // application server have finished. Begin side effects affecting other - // servers and/or the client who sent this request. - // - // If we are federating and the type is a deliverable one, then deliver - // the activity to federating peers. - if b.enableFederatedProtocol && deliverable { - if err = b.delegate.Deliver(c, outbox, activity); err != nil { - return - } - } - return -} - -// Send is programmatically accessible if the federated protocol is enabled. -func (b *baseActorFederating) Send(c context.Context, outbox *url.URL, t vocab.Type) (Activity, error) { - return b.deliver(c, outbox, t, nil) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/clock.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/clock.go deleted file mode 100644 index bf19e49f7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/clock.go +++ /dev/null @@ -1,11 +0,0 @@ -package pub - -import ( - "time" -) - -// Clock determines the time. -type Clock interface { - // Now returns the current time. - Now() time.Time -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/common_behavior.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/common_behavior.go deleted file mode 100644 index e33dce842..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/common_behavior.go +++ /dev/null @@ -1,90 +0,0 @@ -package pub - -import ( - "context" - "net/http" - "net/url" - - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// Common contains functions required for both the Social API and Federating -// Protocol. -// -// It is passed to the library as a dependency injection from the client -// application. -type CommonBehavior interface { - // AuthenticateGetInbox delegates the authentication of a GET to an - // inbox. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - // - // If an error is returned, it is passed back to the caller of - // GetInbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // AuthenticateGetOutbox delegates the authentication of a GET to an - // outbox. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - // - // If an error is returned, it is passed back to the caller of - // GetOutbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // GetOutbox returns the OrderedCollection inbox of the actor for this - // context. It is up to the implementation to provide the correct - // collection for the kind of authorization given in the request. - // - // AuthenticateGetOutbox will be called prior to this. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) - // NewTransport returns a new Transport on behalf of a specific actor. - // - // The actorBoxIRI will be either the inbox or outbox of an actor who is - // attempting to do the dereferencing or delivery. Any authentication - // scheme applied on the request must be based on this actor. The - // request must contain some sort of credential of the user, such as a - // HTTP Signature. - // - // The gofedAgent passed in should be used by the Transport - // implementation in the User-Agent, as well as the application-specific - // user agent string. The gofedAgent will indicate this library's use as - // well as the library's version number. - // - // Any server-wide rate-limiting that needs to occur should happen in a - // Transport implementation. This factory function allows this to be - // created, so peer servers are not DOS'd. - // - // Any retry logic should also be handled by the Transport - // implementation. - // - // Note that the library will not maintain a long-lived pointer to the - // returned Transport so that any private credentials are able to be - // garbage collected. - NewTransport(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/database.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/database.go deleted file mode 100644 index 5e25455d5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/database.go +++ /dev/null @@ -1,152 +0,0 @@ -package pub - -import ( - "context" - "net/url" - - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -type Database interface { - // Lock takes a lock for the object at the specified id. If an error - // is returned, the lock must not have been taken. - // - // The lock must be able to succeed for an id that does not exist in - // the database. This means acquiring the lock does not guarantee the - // entry exists in the database. - // - // Locks are encouraged to be lightweight and in the Go layer, as some - // processes require tight loops acquiring and releasing locks. - // - // Used to ensure race conditions in multiple requests do not occur. - Lock(c context.Context, id *url.URL) (unlock func(), err error) - // InboxContains returns true if the OrderedCollection at 'inbox' - // contains the specified 'id'. - // - // The library makes this call only after acquiring a lock first. - InboxContains(c context.Context, inbox, id *url.URL) (contains bool, err error) - // GetInbox returns the first ordered collection page of the outbox at - // the specified IRI, for prepending new items. - // - // The library makes this call only after acquiring a lock first. - GetInbox(c context.Context, inboxIRI *url.URL) (inbox vocab.ActivityStreamsOrderedCollectionPage, err error) - // SetInbox saves the inbox value given from GetInbox, with new items - // prepended. Note that the new items must not be added as independent - // database entries. Separate calls to Create will do that. - // - // The library makes this call only after acquiring a lock first. - SetInbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error - // Owns returns true if the database has an entry for the IRI and it - // exists in the database. - // - // The library makes this call only after acquiring a lock first. - Owns(c context.Context, id *url.URL) (owns bool, err error) - // ActorForOutbox fetches the actor's IRI for the given outbox IRI. - // - // The library makes this call only after acquiring a lock first. - ActorForOutbox(c context.Context, outboxIRI *url.URL) (actorIRI *url.URL, err error) - // ActorForInbox fetches the actor's IRI for the given outbox IRI. - // - // The library makes this call only after acquiring a lock first. - ActorForInbox(c context.Context, inboxIRI *url.URL) (actorIRI *url.URL, err error) - // OutboxForInbox fetches the corresponding actor's outbox IRI for the - // actor's inbox IRI. - // - // The library makes this call only after acquiring a lock first. - OutboxForInbox(c context.Context, inboxIRI *url.URL) (outboxIRI *url.URL, err error) - // InboxesForIRI fetches inboxes corresponding to the given iri. - // This allows your server to skip remote dereferencing of iris - // in order to speed up message delivery, if desired. - // - // It is acceptable to just return nil or an empty slice for the inboxIRIs, - // if you don't know the inbox iri, or you don't wish to use this feature. - // In this case, the library will attempt to resolve inboxes of the iri - // by remote dereferencing instead. - // - // If the input iri is the iri of an Actor, then the inbox for the actor - // should be returned as a single-entry slice. - // - // If the input iri is a Collection (such as a Collection of followers), - // then each follower inbox IRI should be returned in the inboxIRIs slice. - // - // The library makes this call only after acquiring a lock first. - InboxesForIRI(c context.Context, iri *url.URL) (inboxIRIs []*url.URL, err error) - // Exists returns true if the database has an entry for the specified - // id. It may not be owned by this application instance. - // - // The library makes this call only after acquiring a lock first. - Exists(c context.Context, id *url.URL) (exists bool, err error) - // Get returns the database entry for the specified id. - // - // The library makes this call only after acquiring a lock first. - Get(c context.Context, id *url.URL) (value vocab.Type, err error) - // Create adds a new entry to the database which must be able to be - // keyed by its id. - // - // Note that Activity values received from federated peers may also be - // created in the database this way if the Federating Protocol is - // enabled. The client may freely decide to store only the id instead of - // the entire value. - // - // The library makes this call only after acquiring a lock first. - // - // Under certain conditions and network activities, Create may be called - // multiple times for the same ActivityStreams object. - Create(c context.Context, asType vocab.Type) error - // Update sets an existing entry to the database based on the value's - // id. - // - // Note that Activity values received from federated peers may also be - // updated in the database this way if the Federating Protocol is - // enabled. The client may freely decide to store only the id instead of - // the entire value. - // - // The library makes this call only after acquiring a lock first. - Update(c context.Context, asType vocab.Type) error - // Delete removes the entry with the given id. - // - // Delete is only called for federated objects. Deletes from the Social - // Protocol instead call Update to create a Tombstone. - // - // The library makes this call only after acquiring a lock first. - Delete(c context.Context, id *url.URL) error - // GetOutbox returns the first ordered collection page of the outbox - // at the specified IRI, for prepending new items. - // - // The library makes this call only after acquiring a lock first. - GetOutbox(c context.Context, outboxIRI *url.URL) (outbox vocab.ActivityStreamsOrderedCollectionPage, err error) - // SetOutbox saves the outbox value given from GetOutbox, with new items - // prepended. Note that the new items must not be added as independent - // database entries. Separate calls to Create will do that. - // - // The library makes this call only after acquiring a lock first. - SetOutbox(c context.Context, outbox vocab.ActivityStreamsOrderedCollectionPage) error - // NewID creates a new IRI id for the provided activity or object. The - // implementation does not need to set the 'id' property and simply - // needs to determine the value. - // - // The go-fed library will handle setting the 'id' property on the - // activity or object provided with the value returned. - NewID(c context.Context, t vocab.Type) (id *url.URL, err error) - // Followers obtains the Followers Collection for an actor with the - // given id. - // - // If modified, the library will then call Update. - // - // The library makes this call only after acquiring a lock first. - Followers(c context.Context, actorIRI *url.URL) (followers vocab.ActivityStreamsCollection, err error) - // Following obtains the Following Collection for an actor with the - // given id. - // - // If modified, the library will then call Update. - // - // The library makes this call only after acquiring a lock first. - Following(c context.Context, actorIRI *url.URL) (following vocab.ActivityStreamsCollection, err error) - // Liked obtains the Liked Collection for an actor with the - // given id. - // - // If modified, the library will then call Update. - // - // The library makes this call only after acquiring a lock first. - Liked(c context.Context, actorIRI *url.URL) (liked vocab.ActivityStreamsCollection, err error) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/delegate_actor.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/delegate_actor.go deleted file mode 100644 index 0250f62ee..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/delegate_actor.go +++ /dev/null @@ -1,249 +0,0 @@ -package pub - -import ( - "context" - "net/http" - "net/url" - - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// DelegateActor contains the detailed interface an application must satisfy in -// order to implement the ActivityPub specification. -// -// Note that an implementation of this interface is implicitly provided in the -// calls to NewActor, NewSocialActor, and NewFederatingActor. -// -// Implementing the DelegateActor requires familiarity with the ActivityPub -// specification because it does not a strong enough abstraction for the client -// application to ignore the ActivityPub spec. It is very possible to implement -// this interface and build a foot-gun that trashes the fediverse without being -// ActivityPub compliant. Please use with due consideration. -// -// Alternatively, build an application that uses the parts of the pub library -// that do not require implementing a DelegateActor so that the ActivityPub -// implementation is completely provided out of the box. -type DelegateActor interface { - // Hook callback after parsing the request body for a federated request - // to the Actor's inbox. - // - // Can be used to set contextual information based on the Activity - // received. - // - // Only called if the Federated Protocol is enabled. - // - // Warning: Neither authentication nor authorization has taken place at - // this time. Doing anything beyond setting contextual information is - // strongly discouraged. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. In this case, the DelegateActor implementation must not - // write a response to the ResponseWriter as is expected that the caller - // to PostInbox will do so when handling the error. - PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error) - // Hook callback after parsing the request body for a client request - // to the Actor's outbox. - // - // Can be used to set contextual information based on the - // ActivityStreams object received. - // - // Only called if the Social API is enabled. - // - // Warning: Neither authentication nor authorization has taken place at - // this time. Doing anything beyond setting contextual information is - // strongly discouraged. - // - // If an error is returned, it is passed back to the caller of - // PostOutbox. In this case, the DelegateActor implementation must not - // write a response to the ResponseWriter as is expected that the caller - // to PostOutbox will do so when handling the error. - PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error) - // AuthenticatePostInbox delegates the authentication of a POST to an - // inbox. - // - // Only called if the Federated Protocol is enabled. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // AuthenticateGetInbox delegates the authentication of a GET to an - // inbox. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - // - // If an error is returned, it is passed back to the caller of - // GetInbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // AuthorizePostInbox delegates the authorization of an activity that - // has been sent by POST to an inbox. - // - // Only called if the Federated Protocol is enabled. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authorized' is ignored. - // - // If no error is returned, but authorization fails, then authorized - // must be false and error nil. It is expected that the implementation - // handles writing to the ResponseWriter in this case. - // - // Finally, if the authentication and authorization succeeds, then - // authorized must be true and error nil. The request will continue - // to be processed. - AuthorizePostInbox(c context.Context, w http.ResponseWriter, activity Activity) (authorized bool, err error) - // PostInbox delegates the side effects of adding to the inbox and - // determining if it is a request that should be blocked. - // - // Only called if the Federated Protocol is enabled. - // - // As a side effect, PostInbox sets the federated data in the inbox, but - // not on its own in the database, as InboxForwarding (which is called - // later) must decide whether it has seen this activity before in order - // to determine whether to do the forwarding algorithm. - // - // If the error is ErrObjectRequired or ErrTargetRequired, then a Bad - // Request status is sent in the response. - PostInbox(c context.Context, inboxIRI *url.URL, activity Activity) error - // InboxForwarding delegates inbox forwarding logic when a POST request - // is received in the Actor's inbox. - // - // Only called if the Federated Protocol is enabled. - // - // The delegate is responsible for determining whether to do the inbox - // forwarding, as well as actually conducting it if it determines it - // needs to. - // - // As a side effect, InboxForwarding must set the federated data in the - // database, independently of the inbox, however it sees fit in order to - // determine whether it has seen the activity before. - // - // The provided url is the inbox of the recipient of the Activity. The - // Activity is examined for the information about who to inbox forward - // to. - // - // If an error is returned, it is returned to the caller of PostInbox. - InboxForwarding(c context.Context, inboxIRI *url.URL, activity Activity) error - // PostOutbox delegates the logic for side effects and adding to the - // outbox. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. In the case of the Social API being enabled, side - // effects of the Activity must occur. - // - // The delegate is responsible for adding the activity to the database's - // general storage for independent retrieval, and not just within the - // actor's outbox. - // - // If the error is ErrObjectRequired or ErrTargetRequired, then a Bad - // Request status is sent in the response. - // - // Note that 'rawJSON' is an unfortunate consequence where an 'Update' - // Activity is the only one that explicitly cares about 'null' values in - // JSON. Since go-fed does not differentiate between 'null' values and - // values that are simply not present, the 'rawJSON' map is ONLY needed - // for this narrow and specific use case. - PostOutbox(c context.Context, a Activity, outboxIRI *url.URL, rawJSON map[string]interface{}) (deliverable bool, e error) - // AddNewIDs sets new URL ids on the activity. It also does so for all - // 'object' properties if the Activity is a Create type. - // - // Only called if the Social API is enabled. - // - // If an error is returned, it is returned to the caller of PostOutbox. - AddNewIDs(c context.Context, a Activity) error - // Deliver sends a federated message. Called only if federation is - // enabled. - // - // Called if the Federated Protocol is enabled. - // - // The provided url is the outbox of the sender. The Activity contains - // the information about the intended recipients. - // - // If an error is returned, it is returned to the caller of PostOutbox. - Deliver(c context.Context, outbox *url.URL, activity Activity) error - // AuthenticatePostOutbox delegates the authentication and authorization - // of a POST to an outbox. - // - // Only called if the Social API is enabled. - // - // If an error is returned, it is passed back to the caller of - // PostOutbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // AuthenticateGetOutbox delegates the authentication of a GET to an - // outbox. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - // - // If an error is returned, it is passed back to the caller of - // GetOutbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // WrapInCreate wraps the provided object in a Create ActivityStreams - // activity. The provided URL is the actor's outbox endpoint. - // - // Only called if the Social API is enabled. - WrapInCreate(c context.Context, value vocab.Type, outboxIRI *url.URL) (vocab.ActivityStreamsCreate, error) - // GetOutbox returns the OrderedCollection inbox of the actor for this - // context. It is up to the implementation to provide the correct - // collection for the kind of authorization given in the request. - // - // AuthenticateGetOutbox will be called prior to this. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) - // GetInbox returns the OrderedCollection inbox of the actor for this - // context. It is up to the implementation to provide the correct - // collection for the kind of authorization given in the request. - // - // AuthenticateGetInbox will be called prior to this. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/doc.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/doc.go deleted file mode 100644 index 93c778179..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/doc.go +++ /dev/null @@ -1,9 +0,0 @@ -// Package pub implements the ActivityPub protocol. -// -// Note that every time the ActivityStreams types are changed (added, removed) -// due to code generation, the internal function toASType needs to be modified -// to know about these types. -// -// Note that every version change should also include a change in the version.go -// file. -package pub diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/federating_protocol.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/federating_protocol.go deleted file mode 100644 index 62bcf44c1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/federating_protocol.go +++ /dev/null @@ -1,125 +0,0 @@ -package pub - -import ( - "context" - "net/http" - "net/url" - - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// FederatingProtocol contains behaviors an application needs to satisfy for the -// full ActivityPub S2S implementation to be supported by this library. -// -// It is only required if the client application wants to support the server-to- -// server, or federating, protocol. -// -// It is passed to the library as a dependency injection from the client -// application. -type FederatingProtocol interface { - // Hook callback after parsing the request body for a federated request - // to the Actor's inbox. - // - // Can be used to set contextual information based on the Activity - // received. - // - // Only called if the Federated Protocol is enabled. - // - // Warning: Neither authentication nor authorization has taken place at - // this time. Doing anything beyond setting contextual information is - // strongly discouraged. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. In this case, the DelegateActor implementation must not - // write a response to the ResponseWriter as is expected that the caller - // to PostInbox will do so when handling the error. - PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error) - // AuthenticatePostInbox delegates the authentication of a POST to an - // inbox. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // Blocked should determine whether to permit a set of actors given by - // their ids are able to interact with this particular end user due to - // being blocked or other application-specific logic. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. - // - // If no error is returned, but authentication or authorization fails, - // then blocked must be true and error nil. An http.StatusForbidden - // will be written in the wresponse. - // - // Finally, if the authentication and authorization succeeds, then - // blocked must be false and error nil. The request will continue - // to be processed. - Blocked(c context.Context, actorIRIs []*url.URL) (blocked bool, err error) - // FederatingCallbacks returns the application logic that handles - // ActivityStreams received from federating peers. - // - // Note that certain types of callbacks will be 'wrapped' with default - // behaviors supported natively by the library. Other callbacks - // compatible with streams.TypeResolver can be specified by 'other'. - // - // For example, setting the 'Create' field in the - // FederatingWrappedCallbacks lets an application dependency inject - // additional behaviors they want to take place, including the default - // behavior supplied by this library. This is guaranteed to be compliant - // with the ActivityPub Social protocol. - // - // To override the default behavior, instead supply the function in - // 'other', which does not guarantee the application will be compliant - // with the ActivityPub Social Protocol. - // - // Applications are not expected to handle every single ActivityStreams - // type and extension. The unhandled ones are passed to DefaultCallback. - FederatingCallbacks(c context.Context) (wrapped FederatingWrappedCallbacks, other []interface{}, err error) - // DefaultCallback is called for types that go-fed can deserialize but - // are not handled by the application's callbacks returned in the - // Callbacks method. - // - // Applications are not expected to handle every single ActivityStreams - // type and extension, so the unhandled ones are passed to - // DefaultCallback. - DefaultCallback(c context.Context, activity Activity) error - // MaxInboxForwardingRecursionDepth determines how deep to search within - // an activity to determine if inbox forwarding needs to occur. - // - // Zero or negative numbers indicate infinite recursion. - MaxInboxForwardingRecursionDepth(c context.Context) int - // MaxDeliveryRecursionDepth determines how deep to search within - // collections owned by peers when they are targeted to receive a - // delivery. - // - // Zero or negative numbers indicate infinite recursion. - MaxDeliveryRecursionDepth(c context.Context) int - // FilterForwarding allows the implementation to apply business logic - // such as blocks, spam filtering, and so on to a list of potential - // Collections and OrderedCollections of recipients when inbox - // forwarding has been triggered. - // - // The activity is provided as a reference for more intelligent - // logic to be used, but the implementation must not modify it. - FilterForwarding(c context.Context, potentialRecipients []*url.URL, a Activity) (filteredRecipients []*url.URL, err error) - // GetInbox returns the OrderedCollection inbox of the actor for this - // context. It is up to the implementation to provide the correct - // collection for the kind of authorization given in the request. - // - // AuthenticateGetInbox will be called prior to this. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/federating_wrapped_callbacks.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/federating_wrapped_callbacks.go deleted file mode 100644 index 9af4f86f1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/federating_wrapped_callbacks.go +++ /dev/null @@ -1,917 +0,0 @@ -package pub - -import ( - "context" - "fmt" - "net/url" - - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// OnFollowBehavior enumerates the different default actions that the go-fed -// library can provide when receiving a Follow Activity from a peer. -type OnFollowBehavior int - -const ( - // OnFollowDoNothing does not take any action when a Follow Activity - // is received. - OnFollowDoNothing OnFollowBehavior = iota - // OnFollowAutomaticallyAccept triggers the side effect of sending an - // Accept of this Follow request in response. - OnFollowAutomaticallyAccept - // OnFollowAutomaticallyAccept triggers the side effect of sending a - // Reject of this Follow request in response. - OnFollowAutomaticallyReject -) - -// FederatingWrappedCallbacks lists the callback functions that already have -// some side effect behavior provided by the pub library. -// -// These functions are wrapped for the Federating Protocol. -type FederatingWrappedCallbacks struct { - // Create handles additional side effects for the Create ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping callback for the Federating Protocol ensures the - // 'object' property is created in the database. - // - // Create calls Create for each object in the federated Activity. - Create func(context.Context, vocab.ActivityStreamsCreate) error - // Update handles additional side effects for the Update ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping callback for the Federating Protocol ensures the - // 'object' property is updated in the database. - // - // Update calls Update on the federated entry from the database, with a - // new value. - Update func(context.Context, vocab.ActivityStreamsUpdate) error - // Delete handles additional side effects for the Delete ActivityStreams - // type, specific to the application using go-fed. - // - // Delete removes the federated entry from the database. - Delete func(context.Context, vocab.ActivityStreamsDelete) error - // Follow handles additional side effects for the Follow ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function can have one of several default behaviors, - // depending on the value of the OnFollow setting. - Follow func(context.Context, vocab.ActivityStreamsFollow) error - // OnFollow determines what action to take for this particular callback - // if a Follow Activity is handled. - OnFollow OnFollowBehavior - // Accept handles additional side effects for the Accept ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function determines if this 'Accept' is in response to a - // 'Follow'. If so, then the 'actor' is added to the original 'actor's - // 'following' collection. - // - // Otherwise, no side effects are done by go-fed. - Accept func(context.Context, vocab.ActivityStreamsAccept) error - // Reject handles additional side effects for the Reject ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function has no default side effects. However, if this - // 'Reject' is in response to a 'Follow' then the client MUST NOT go - // forward with adding the 'actor' to the original 'actor's 'following' - // collection by the client application. - Reject func(context.Context, vocab.ActivityStreamsReject) error - // Add handles additional side effects for the Add ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function will add the 'object' IRIs to a specific - // 'target' collection if the 'target' collection(s) live on this - // server. - Add func(context.Context, vocab.ActivityStreamsAdd) error - // Remove handles additional side effects for the Remove ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function will remove all 'object' IRIs from a specific - // 'target' collection if the 'target' collection(s) live on this - // server. - Remove func(context.Context, vocab.ActivityStreamsRemove) error - // Like handles additional side effects for the Like ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function will add the activity to the "likes" collection - // on all 'object' targets owned by this server. - Like func(context.Context, vocab.ActivityStreamsLike) error - // Announce handles additional side effects for the Announce - // ActivityStreams type, specific to the application using go-fed. - // - // The wrapping function will add the activity to the "shares" - // collection on all 'object' targets owned by this server. - Announce func(context.Context, vocab.ActivityStreamsAnnounce) error - // Undo handles additional side effects for the Undo ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function ensures the 'actor' on the 'Undo' - // is be the same as the 'actor' on all Activities being undone. - // It enforces that the actors on the Undo must correspond to all of the - // 'object' actors in some manner. - // - // It is expected that the application will implement the proper - // reversal of activities that are being undone. - Undo func(context.Context, vocab.ActivityStreamsUndo) error - // Block handles additional side effects for the Block ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function provides no default side effects. It simply - // calls the wrapped function. However, note that Blocks should not be - // received from a federated peer, as delivering Blocks explicitly - // deviates from the original ActivityPub specification. - Block func(context.Context, vocab.ActivityStreamsBlock) error - - // Sidechannel data -- this is set at request handling time. These must - // be set before the callbacks are used. - - // db is the Database the FederatingWrappedCallbacks should use. - db Database - // inboxIRI is the inboxIRI that is handling this callback. - inboxIRI *url.URL - // addNewIds creates new 'id' entries on an activity and its objects if - // it is a Create activity. - addNewIds func(c context.Context, activity Activity) error - // deliver delivers an outgoing message. - deliver func(c context.Context, outboxIRI *url.URL, activity Activity) error - // newTransport creates a new Transport. - newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error) -} - -// callbacks returns the WrappedCallbacks members into a single interface slice -// for use in streams.Resolver callbacks. -// -// If the given functions have a type that collides with the default behavior, -// then disable our default behavior -func (w FederatingWrappedCallbacks) callbacks(fns []interface{}) []interface{} { - enableCreate := true - enableUpdate := true - enableDelete := true - enableFollow := true - enableAccept := true - enableReject := true - enableAdd := true - enableRemove := true - enableLike := true - enableAnnounce := true - enableUndo := true - enableBlock := true - for _, fn := range fns { - switch fn.(type) { - default: - continue - case func(context.Context, vocab.ActivityStreamsCreate) error: - enableCreate = false - case func(context.Context, vocab.ActivityStreamsUpdate) error: - enableUpdate = false - case func(context.Context, vocab.ActivityStreamsDelete) error: - enableDelete = false - case func(context.Context, vocab.ActivityStreamsFollow) error: - enableFollow = false - case func(context.Context, vocab.ActivityStreamsAccept) error: - enableAccept = false - case func(context.Context, vocab.ActivityStreamsReject) error: - enableReject = false - case func(context.Context, vocab.ActivityStreamsAdd) error: - enableAdd = false - case func(context.Context, vocab.ActivityStreamsRemove) error: - enableRemove = false - case func(context.Context, vocab.ActivityStreamsLike) error: - enableLike = false - case func(context.Context, vocab.ActivityStreamsAnnounce) error: - enableAnnounce = false - case func(context.Context, vocab.ActivityStreamsUndo) error: - enableUndo = false - case func(context.Context, vocab.ActivityStreamsBlock) error: - enableBlock = false - } - } - if enableCreate { - fns = append(fns, w.create) - } - if enableUpdate { - fns = append(fns, w.update) - } - if enableDelete { - fns = append(fns, w.deleteFn) - } - if enableFollow { - fns = append(fns, w.follow) - } - if enableAccept { - fns = append(fns, w.accept) - } - if enableReject { - fns = append(fns, w.reject) - } - if enableAdd { - fns = append(fns, w.add) - } - if enableRemove { - fns = append(fns, w.remove) - } - if enableLike { - fns = append(fns, w.like) - } - if enableAnnounce { - fns = append(fns, w.announce) - } - if enableUndo { - fns = append(fns, w.undo) - } - if enableBlock { - fns = append(fns, w.block) - } - return fns -} - -// create implements the federating Create activity side effects. -func (w FederatingWrappedCallbacks) create(c context.Context, a vocab.ActivityStreamsCreate) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { - t := iter.GetType() - if t == nil && iter.IsIRI() { - // Attempt to dereference the IRI instead - tport, err := w.newTransport(c, w.inboxIRI, goFedUserAgent()) - if err != nil { - return err - } - resp, err := tport.Dereference(c, iter.GetIRI()) - if err != nil { - return err - } - m, err := readActivityPubResp(resp) - if err != nil { - return err - } - t, err = streams.ToType(c, m) - if err != nil { - return err - } - } else if t == nil { - return fmt.Errorf("cannot handle federated create: object is neither a value nor IRI") - } - id, err := GetId(t) - if err != nil { - return err - } - var unlock func() - unlock, err = w.db.Lock(c, id) - if err != nil { - return err - } - defer unlock() - if err := w.db.Create(c, t); err != nil { - return err - } - return nil - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if err := loopFn(iter); err != nil { - return err - } - } - if w.Create != nil { - return w.Create(c, a) - } - return nil -} - -// update implements the federating Update activity side effects. -func (w FederatingWrappedCallbacks) update(c context.Context, a vocab.ActivityStreamsUpdate) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - if err := mustHaveActivityOriginMatchObjects(a); err != nil { - return err - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { - t := iter.GetType() - if t == nil { - return fmt.Errorf("update requires an object to be wholly provided") - } - id, err := GetId(t) - if err != nil { - return err - } - var unlock func() - unlock, err = w.db.Lock(c, id) - if err != nil { - return err - } - defer unlock() - if err := w.db.Update(c, t); err != nil { - return err - } - return nil - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if err := loopFn(iter); err != nil { - return err - } - } - if w.Update != nil { - return w.Update(c, a) - } - return nil -} - -// deleteFn implements the federating Delete activity side effects. -func (w FederatingWrappedCallbacks) deleteFn(c context.Context, a vocab.ActivityStreamsDelete) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - if err := mustHaveActivityOriginMatchObjects(a); err != nil { - return err - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { - id, err := ToId(iter) - if err != nil { - return err - } - var unlock func() - unlock, err = w.db.Lock(c, id) - if err != nil { - return err - } - defer unlock() - if err := w.db.Delete(c, id); err != nil { - return err - } - return nil - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if err := loopFn(iter); err != nil { - return err - } - } - if w.Delete != nil { - return w.Delete(c, a) - } - return nil -} - -// follow implements the federating Follow activity side effects. -func (w FederatingWrappedCallbacks) follow(c context.Context, a vocab.ActivityStreamsFollow) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Check that we own at least one of the 'object' properties, and ensure - // it is to the actor that owns this inbox. - // - // If not then don't send a response. It was federated to us as an FYI, - // by mistake, or some other reason. - unlock, err := w.db.Lock(c, w.inboxIRI) - if err != nil { - return err - } - // WARNING: Unlock not deferred. - actorIRI, err := w.db.ActorForInbox(c, w.inboxIRI) - unlock() // unlock even on error - if err != nil { - return err - } - // Unlock must be called by now and every branch above. - isMe := false - if w.OnFollow != OnFollowDoNothing { - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - if id.String() == actorIRI.String() { - isMe = true - break - } - } - } - if isMe { - // Prepare the response. - var response Activity - if w.OnFollow == OnFollowAutomaticallyAccept { - response = streams.NewActivityStreamsAccept() - } else if w.OnFollow == OnFollowAutomaticallyReject { - response = streams.NewActivityStreamsReject() - } else { - return fmt.Errorf("unknown OnFollowBehavior: %d", w.OnFollow) - } - // Set us as the 'actor'. - me := streams.NewActivityStreamsActorProperty() - response.SetActivityStreamsActor(me) - me.AppendIRI(actorIRI) - // Set the Follow as the 'object' property. - op := streams.NewActivityStreamsObjectProperty() - response.SetActivityStreamsObject(op) - op.AppendActivityStreamsFollow(a) - // Add all actors on the original Follow to the 'to' property. - recipients := make([]*url.URL, 0) - to := streams.NewActivityStreamsToProperty() - response.SetActivityStreamsTo(to) - followActors := a.GetActivityStreamsActor() - for iter := followActors.Begin(); iter != followActors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - to.AppendIRI(id) - recipients = append(recipients, id) - } - if w.OnFollow == OnFollowAutomaticallyAccept { - // If automatically accepting, then also update our - // followers collection with the new actors. - // - // If automatically rejecting, do not update the - // followers collection. - unlock, err := w.db.Lock(c, actorIRI) - if err != nil { - return err - } - // WARNING: Unlock not deferred. - followers, err := w.db.Followers(c, actorIRI) - if err != nil { - unlock() - return err - } - items := followers.GetActivityStreamsItems() - if items == nil { - items = streams.NewActivityStreamsItemsProperty() - followers.SetActivityStreamsItems(items) - } - for _, elem := range recipients { - items.PrependIRI(elem) - } - err = w.db.Update(c, followers) - unlock() // unlock even on error - if err != nil { - return err - } - // Unlock must be called by now and every branch above. - } - // Lock without defer! - unlock, err := w.db.Lock(c, w.inboxIRI) - if err != nil { - return err - } - outboxIRI, err := w.db.OutboxForInbox(c, w.inboxIRI) - unlock() // unlock after, regardless - if err != nil { - return err - } - // Everything must be unlocked by now. - if err := w.addNewIds(c, response); err != nil { - return err - } else if err := w.deliver(c, outboxIRI, response); err != nil { - return err - } - } - if w.Follow != nil { - return w.Follow(c, a) - } - return nil -} - -// accept implements the federating Accept activity side effects. -func (w FederatingWrappedCallbacks) accept(c context.Context, a vocab.ActivityStreamsAccept) error { - op := a.GetActivityStreamsObject() - if op != nil && op.Len() > 0 { - // Get this actor's id. - unlock, err := w.db.Lock(c, w.inboxIRI) - if err != nil { - return err - } - // WARNING: Unlock not deferred. - actorIRI, err := w.db.ActorForInbox(c, w.inboxIRI) - unlock() // unlock after regardless - if err != nil { - return err - } - // Unlock must be called by now and every branch above. - // - // Determine if we are in a follow on the 'object' property. - // - // TODO: Handle Accept multiple Follow. - var maybeMyFollowIRI *url.URL - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - t := iter.GetType() - if t == nil && iter.IsIRI() { - // Attempt to dereference the IRI instead - tport, err := w.newTransport(c, w.inboxIRI, goFedUserAgent()) - if err != nil { - return err - } - resp, err := tport.Dereference(c, iter.GetIRI()) - if err != nil { - return err - } - m, err := readActivityPubResp(resp) - if err != nil { - return err - } - t, err = streams.ToType(c, m) - if err != nil { - return err - } - } else if t == nil { - return fmt.Errorf("cannot handle federated create: object is neither a value nor IRI") - } - // Ensure it is a Follow. - if !streams.IsOrExtendsActivityStreamsFollow(t) { - continue - } - follow, ok := t.(Activity) - if !ok { - return fmt.Errorf("a Follow in an Accept does not satisfy the Activity interface") - } - followId, err := GetId(follow) - if err != nil { - return err - } - // Ensure that we are one of the actors on the Follow. - actors := follow.GetActivityStreamsActor() - for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - if id.String() == actorIRI.String() { - maybeMyFollowIRI = followId - break - } - } - // Continue breaking if we found ourselves - if maybeMyFollowIRI != nil { - break - } - } - // If we received an Accept whose 'object' is a Follow with an - // Accept that we sent, add to the following collection. - if maybeMyFollowIRI != nil { - // Verify our Follow request exists and the peer didn't - // fabricate it. - activityActors := a.GetActivityStreamsActor() - if activityActors == nil || activityActors.Len() == 0 { - return fmt.Errorf("an Accept with a Follow has no actors") - } - // This may be a duplicate check if we dereferenced the - // Follow above. TODO: Separate this logic to avoid - // redundancy. - // - // Use an anonymous function to properly scope the - // database lock, immediately call it. - err = func() error { - unlock, err := w.db.Lock(c, maybeMyFollowIRI) - if err != nil { - return err - } - defer unlock() - t, err := w.db.Get(c, maybeMyFollowIRI) - if err != nil { - return err - } - if !streams.IsOrExtendsActivityStreamsFollow(t) { - return fmt.Errorf("peer gave an Accept wrapping a Follow but provided a non-Follow id") - } - follow, ok := t.(Activity) - if !ok { - return fmt.Errorf("a Follow in an Accept does not satisfy the Activity interface") - } - // Ensure that we are one of the actors on the Follow. - ok = false - actors := follow.GetActivityStreamsActor() - for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - if id.String() == actorIRI.String() { - ok = true - break - } - } - if !ok { - return fmt.Errorf("peer gave an Accept wrapping a Follow but we are not the actor on that Follow") - } - // Build map of original Accept actors - acceptActors := make(map[string]bool) - for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - acceptActors[id.String()] = false - } - // Verify all actor(s) were on the original Follow. - followObj := follow.GetActivityStreamsObject() - for iter := followObj.Begin(); iter != followObj.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - if _, ok := acceptActors[id.String()]; ok { - acceptActors[id.String()] = true - } - } - for _, found := range acceptActors { - if !found { - return fmt.Errorf("peer gave an Accept wrapping a Follow but was not an object in the original Follow") - } - } - return nil - }() - if err != nil { - return err - } - // Add the peer to our following collection. - unlock, err := w.db.Lock(c, actorIRI) - if err != nil { - return err - } - // WARNING: Unlock not deferred. - following, err := w.db.Following(c, actorIRI) - if err != nil { - unlock() - return err - } - items := following.GetActivityStreamsItems() - if items == nil { - items = streams.NewActivityStreamsItemsProperty() - following.SetActivityStreamsItems(items) - } - for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - unlock() - return err - } - items.PrependIRI(id) - } - err = w.db.Update(c, following) - unlock() // unlock after regardless - if err != nil { - return err - } - // Unlock must be called by now and every branch above. - } - } - if w.Accept != nil { - return w.Accept(c, a) - } - return nil -} - -// reject implements the federating Reject activity side effects. -func (w FederatingWrappedCallbacks) reject(c context.Context, a vocab.ActivityStreamsReject) error { - if w.Reject != nil { - return w.Reject(c, a) - } - return nil -} - -// add implements the federating Add activity side effects. -func (w FederatingWrappedCallbacks) add(c context.Context, a vocab.ActivityStreamsAdd) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - target := a.GetActivityStreamsTarget() - if target == nil || target.Len() == 0 { - return ErrTargetRequired - } - if err := add(c, op, target, w.db); err != nil { - return err - } - if w.Add != nil { - return w.Add(c, a) - } - return nil -} - -// remove implements the federating Remove activity side effects. -func (w FederatingWrappedCallbacks) remove(c context.Context, a vocab.ActivityStreamsRemove) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - target := a.GetActivityStreamsTarget() - if target == nil || target.Len() == 0 { - return ErrTargetRequired - } - if err := remove(c, op, target, w.db); err != nil { - return err - } - if w.Remove != nil { - return w.Remove(c, a) - } - return nil -} - -// like implements the federating Like activity side effects. -func (w FederatingWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsLike) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - id, err := GetId(a) - if err != nil { - return err - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { - objId, err := ToId(iter) - if err != nil { - return err - } - unlock, err := w.db.Lock(c, objId) - if err != nil { - return err - } - defer unlock() - if owns, err := w.db.Owns(c, objId); err != nil { - return err - } else if !owns { - return nil - } - t, err := w.db.Get(c, objId) - if err != nil { - return err - } - l, ok := t.(likeser) - if !ok { - return fmt.Errorf("cannot add Like to likes collection for type %T", t) - } - // Get 'likes' property on the object, creating default if - // necessary. - likes := l.GetActivityStreamsLikes() - if likes == nil { - likes = streams.NewActivityStreamsLikesProperty() - l.SetActivityStreamsLikes(likes) - } - // Get 'likes' value, defaulting to a collection. - likesT := likes.GetType() - if likesT == nil { - col := streams.NewActivityStreamsCollection() - likesT = col - likes.SetActivityStreamsCollection(col) - } - // Prepend the activity's 'id' on the 'likes' Collection or - // OrderedCollection. - if col, ok := likesT.(itemser); ok { - items := col.GetActivityStreamsItems() - if items == nil { - items = streams.NewActivityStreamsItemsProperty() - col.SetActivityStreamsItems(items) - } - items.PrependIRI(id) - } else if oCol, ok := likesT.(orderedItemser); ok { - oItems := oCol.GetActivityStreamsOrderedItems() - if oItems == nil { - oItems = streams.NewActivityStreamsOrderedItemsProperty() - oCol.SetActivityStreamsOrderedItems(oItems) - } - oItems.PrependIRI(id) - } else { - return fmt.Errorf("likes type is neither a Collection nor an OrderedCollection: %T", likesT) - } - err = w.db.Update(c, t) - if err != nil { - return err - } - return nil - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if err := loopFn(iter); err != nil { - return err - } - } - if w.Like != nil { - return w.Like(c, a) - } - return nil -} - -// announce implements the federating Announce activity side effects. -func (w FederatingWrappedCallbacks) announce(c context.Context, a vocab.ActivityStreamsAnnounce) error { - id, err := GetId(a) - if err != nil { - return err - } - op := a.GetActivityStreamsObject() - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { - objId, err := ToId(iter) - if err != nil { - return err - } - unlock, err := w.db.Lock(c, objId) - if err != nil { - return err - } - defer unlock() - if owns, err := w.db.Owns(c, objId); err != nil { - return err - } else if !owns { - return nil - } - t, err := w.db.Get(c, objId) - if err != nil { - return err - } - s, ok := t.(shareser) - if !ok { - return fmt.Errorf("cannot add Announce to Shares collection for type %T", t) - } - // Get 'shares' property on the object, creating default if - // necessary. - shares := s.GetActivityStreamsShares() - if shares == nil { - shares = streams.NewActivityStreamsSharesProperty() - s.SetActivityStreamsShares(shares) - } - // Get 'shares' value, defaulting to a collection. - sharesT := shares.GetType() - if sharesT == nil { - col := streams.NewActivityStreamsCollection() - sharesT = col - shares.SetActivityStreamsCollection(col) - } - // Prepend the activity's 'id' on the 'shares' Collection or - // OrderedCollection. - if col, ok := sharesT.(itemser); ok { - items := col.GetActivityStreamsItems() - if items == nil { - items = streams.NewActivityStreamsItemsProperty() - col.SetActivityStreamsItems(items) - } - items.PrependIRI(id) - } else if oCol, ok := sharesT.(orderedItemser); ok { - oItems := oCol.GetActivityStreamsOrderedItems() - if oItems == nil { - oItems = streams.NewActivityStreamsOrderedItemsProperty() - oCol.SetActivityStreamsOrderedItems(oItems) - } - oItems.PrependIRI(id) - } else { - return fmt.Errorf("shares type is neither a Collection nor an OrderedCollection: %T", sharesT) - } - err = w.db.Update(c, t) - if err != nil { - return err - } - return nil - } - if op != nil { - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if err := loopFn(iter); err != nil { - return err - } - } - } - if w.Announce != nil { - return w.Announce(c, a) - } - return nil -} - -// undo implements the federating Undo activity side effects. -func (w FederatingWrappedCallbacks) undo(c context.Context, a vocab.ActivityStreamsUndo) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - actors := a.GetActivityStreamsActor() - if err := mustHaveActivityActorsMatchObjectActors(c, actors, op, w.newTransport, w.inboxIRI); err != nil { - return err - } - if w.Undo != nil { - return w.Undo(c, a) - } - return nil -} - -// block implements the federating Block activity side effects. -func (w FederatingWrappedCallbacks) block(c context.Context, a vocab.ActivityStreamsBlock) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - if w.Block != nil { - return w.Block(c, a) - } - return nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/handlers.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/handlers.go deleted file mode 100644 index 688b8158f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/handlers.go +++ /dev/null @@ -1,115 +0,0 @@ -package pub - -import ( - "context" - "encoding/json" - "errors" - "fmt" - "net/http" - - "codeberg.org/superseriousbusiness/activity/streams" -) - -var ErrNotFound = errors.New("go-fed/activity: ActivityStreams data not found") - -// HandlerFunc determines whether an incoming HTTP request is an ActivityStreams -// GET request, and if so attempts to serve ActivityStreams data. -// -// If an error is returned, then the calling function is responsible for writing -// to the ResponseWriter as part of error handling. -// -// If 'isASRequest' is false and there is no error, then the calling function -// may continue processing the request, and the HandlerFunc will not have -// written anything to the ResponseWriter. For example, a webpage may be served -// instead. -// -// If 'isASRequest' is true and there is no error, then the HandlerFunc -// successfully served the request and wrote to the ResponseWriter. -// -// Callers are responsible for authorized access to this resource. -type HandlerFunc func(c context.Context, w http.ResponseWriter, r *http.Request) (isASRequest bool, err error) - -// NewActivityStreamsHandler creates a HandlerFunc to serve ActivityStreams -// requests which are coming from other clients or servers that wish to obtain -// an ActivityStreams representation of data. -// -// Strips retrieved ActivityStreams values of sensitive fields ('bto' and 'bcc') -// before responding with them. Sets the appropriate HTTP status code for -// Tombstone Activities as well. -// -// Defaults to supporting content to be retrieved by HTTPS only. -func NewActivityStreamsHandler(db Database, clock Clock) HandlerFunc { - return NewActivityStreamsHandlerScheme(db, clock, "https") -} - -// NewActivityStreamsHandlerScheme creates a HandlerFunc to serve -// ActivityStreams requests which are coming from other clients or servers that -// wish to obtain an ActivityStreams representation of data provided by the -// specified protocol scheme. -// -// Strips retrieved ActivityStreams values of sensitive fields ('bto' and 'bcc') -// before responding with them. Sets the appropriate HTTP status code for -// Tombstone Activities as well. -// -// Specifying the "scheme" allows for retrieving ActivityStreams content with -// identifiers such as HTTP, HTTPS, or other protocol schemes. -// -// Returns ErrNotFound when the database does not retrieve any data and no -// errors occurred during retrieval. -func NewActivityStreamsHandlerScheme(db Database, clock Clock, scheme string) HandlerFunc { - return func(c context.Context, w http.ResponseWriter, r *http.Request) (isASRequest bool, err error) { - // Do nothing if it is not an ActivityPub GET request - if !isActivityPubGet(r) { - return - } - isASRequest = true - id := requestId(r, scheme) - - var unlock func() - - // Lock and obtain a copy of the requested ActivityStreams value - unlock, err = db.Lock(c, id) - if err != nil { - return - } - // WARNING: Unlock not deferred - t, err := db.Get(c, id) - unlock() // unlock even on error - if err != nil { - return - } - // Unlock must have been called by this point and in every - // branch above - if t == nil { - err = ErrNotFound - return - } - // Remove sensitive fields. - clearSensitiveFields(t) - // Serialize the fetched value. - m, err := streams.Serialize(t) - if err != nil { - return - } - raw, err := json.Marshal(m) - if err != nil { - return - } - // Construct the response. - addResponseHeaders(w.Header(), clock, raw) - // Write the response. - if streams.IsOrExtendsActivityStreamsTombstone(t) { - w.WriteHeader(http.StatusGone) - } else { - w.WriteHeader(http.StatusOK) - } - n, err := w.Write(raw) - if err != nil { - return - } else if n != len(raw) { - err = fmt.Errorf("only wrote %d of %d bytes", n, len(raw)) - return - } - return - } -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/property_interfaces.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/property_interfaces.go deleted file mode 100644 index abec7ad53..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/property_interfaces.go +++ /dev/null @@ -1,118 +0,0 @@ -package pub - -import ( - "net/url" - - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// inReplyToer is an ActivityStreams type with an 'inReplyTo' property -type inReplyToer interface { - GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty -} - -// objecter is an ActivityStreams type with an 'object' property -type objecter interface { - GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty -} - -// targeter is an ActivityStreams type with a 'target' property -type targeter interface { - GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty -} - -// tagger is an ActivityStreams type with a 'tag' property -type tagger interface { - GetActivityStreamsTag() vocab.ActivityStreamsTagProperty -} - -// hrefer is an ActivityStreams type with a 'href' property -type hrefer interface { - GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty -} - -// itemser is an ActivityStreams type with an 'items' property -type itemser interface { - GetActivityStreamsItems() vocab.ActivityStreamsItemsProperty - SetActivityStreamsItems(vocab.ActivityStreamsItemsProperty) -} - -// orderedItemser is an ActivityStreams type with an 'orderedItems' property -type orderedItemser interface { - GetActivityStreamsOrderedItems() vocab.ActivityStreamsOrderedItemsProperty - SetActivityStreamsOrderedItems(vocab.ActivityStreamsOrderedItemsProperty) -} - -// publisheder is an ActivityStreams type with a 'published' property -type publisheder interface { - GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty -} - -// updateder is an ActivityStreams type with an 'updateder' property -type updateder interface { - GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty -} - -// toer is an ActivityStreams type with a 'to' property -type toer interface { - GetActivityStreamsTo() vocab.ActivityStreamsToProperty - SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) -} - -// btoer is an ActivityStreams type with a 'bto' property -type btoer interface { - GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty - SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) -} - -// ccer is an ActivityStreams type with a 'cc' property -type ccer interface { - GetActivityStreamsCc() vocab.ActivityStreamsCcProperty - SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) -} - -// bccer is an ActivityStreams type with a 'bcc' property -type bccer interface { - GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty - SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) -} - -// audiencer is an ActivityStreams type with an 'audience' property -type audiencer interface { - GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty - SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) -} - -// inboxer is an ActivityStreams type with an 'inbox' property -type inboxer interface { - GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty -} - -// attributedToer is an ActivityStreams type with an 'attributedTo' property -type attributedToer interface { - GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty - SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) -} - -// likeser is an ActivityStreams type with a 'likes' property -type likeser interface { - GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty - SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) -} - -// shareser is an ActivityStreams type with a 'shares' property -type shareser interface { - GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty - SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) -} - -// actorer is an ActivityStreams type with an 'actor' property -type actorer interface { - GetActivityStreamsActor() vocab.ActivityStreamsActorProperty - SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) -} - -// appendIRIer is an ActivityStreams type that can Append IRIs. -type appendIRIer interface { - AppendIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/side_effect_actor.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/side_effect_actor.go deleted file mode 100644 index d98abfdb3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/side_effect_actor.go +++ /dev/null @@ -1,1047 +0,0 @@ -package pub - -import ( - "context" - "fmt" - "net/http" - "net/url" - - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// sideEffectActor must satisfy the DelegateActor interface. -var _ DelegateActor = &SideEffectActor{} - -// SideEffectActor is a DelegateActor that handles the ActivityPub -// implementation side effects, but requires a more opinionated application to -// be written. -// -// Note that when using the SideEffectActor with an application that good-faith -// implements its required interfaces, the ActivityPub specification is -// guaranteed to be correctly followed. -type SideEffectActor struct { - // When doing deliveries to remote servers via the s2s protocol, the side effect - // actor will by default use the Serialize function from the streams package. - // However, this can be overridden after the side effect actor is intantiated, - // by setting the exposed Serialize function on the struct. For example: - // - // a := NewSideEffectActor(...) - // a.Serialize = func(a vocab.Type) (m map[string]interface{}, e error) { - // // Put your custom serializer logic here. - // } - // - // Note that you should only do this *immediately* after instantiating the side - // effect actor -- never while your application is already running, as this will - // likely cause race conditions or other problems! In most cases, you will never - // need to change this; it's provided solely to allow easier customization by - // applications. - Serialize func(a vocab.Type) (m map[string]interface{}, e error) - - // When doing deliveries to remote servers via the s2s protocol, it may be desirable - // for implementations to be able to pre-sort recipients so that higher-priority - // recipients are higher up in the delivery queue, and lower-priority recipients - // are further down. This can be achieved by setting the DeliveryRecipientPreSort - // function on the side effect actor after it's instantiated. For example: - // - // a := NewSideEffectActor(...) - // a.DeliveryRecipientPreSort = func(actorAndCollectionIRIs []*url.URL) []*url.URL { - // // Put your sorting logic here. - // } - // - // The actorAndCollectionIRIs parameter will be the initial list of IRIs derived by - // looking at the "to", "cc", "bto", "bcc", and "audience" properties of the activity - // being delivered, excluding the AP public IRI, and before dereferencing of inboxes. - // It may look something like this: - // - // [ - // "https://example.org/users/someone/followers", // <-- collection IRI - // "https://another.example.org/users/someone_else", // <-- actor IRI - // "[...]" // <-- etc - // ] - // - // In this case, implementers may wish to sort the slice so that the directly-addressed - // actor "https://another.example.org/users/someone_else" occurs at an earlier index in - // the slice than the followers collection "https://example.org/users/someone/followers", - // so that "@someone_else" receives the delivery first. - // - // Note that you should only do this *immediately* after instantiating the side - // effect actor -- never while your application is already running, as this will - // likely cause race conditions or other problems! It's also completely fine to not - // set this function at all -- in this case, no pre-sorting of recipients will be - // performed, and delivery will occur in a non-determinate order. - DeliveryRecipientPreSort func(actorAndCollectionIRIs []*url.URL) []*url.URL - - common CommonBehavior - s2s FederatingProtocol - c2s SocialProtocol - db Database - clock Clock -} - -// NewSideEffectActor returns a new SideEffectActor, which satisfies the -// DelegateActor interface. Most of the time you will not need to call this -// function, and should instead rely on the NewSocialActor, NewFederatingActor, -// and NewActor functions, all of which use a SideEffectActor under the hood. -// Nevertheless, this function is exposed in case application developers need -// a SideEffectActor for some other reason (tests, monkey patches, etc). -// -// If you are using the returned SideEffectActor for federation, ensure that s2s -// is not nil. Likewise, if you are using it for the social protocol, ensure -// that c2s is not nil. -func NewSideEffectActor(c CommonBehavior, - s2s FederatingProtocol, - c2s SocialProtocol, - db Database, - clock Clock) *SideEffectActor { - return &SideEffectActor{ - Serialize: streams.Serialize, - common: c, - s2s: s2s, - c2s: c2s, - db: db, - clock: clock, - } -} - -// PostInboxRequestBodyHook defers to the delegate. -func (a *SideEffectActor) PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error) { - return a.s2s.PostInboxRequestBodyHook(c, r, activity) -} - -// PostOutboxRequestBodyHook defers to the delegate. -func (a *SideEffectActor) PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error) { - return a.c2s.PostOutboxRequestBodyHook(c, r, data) -} - -// AuthenticatePostInbox defers to the delegate to authenticate the request. -func (a *SideEffectActor) AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { - return a.s2s.AuthenticatePostInbox(c, w, r) -} - -// AuthenticateGetInbox defers to the delegate to authenticate the request. -func (a *SideEffectActor) AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { - return a.common.AuthenticateGetInbox(c, w, r) -} - -// AuthenticatePostOutbox defers to the delegate to authenticate the request. -func (a *SideEffectActor) AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { - return a.c2s.AuthenticatePostOutbox(c, w, r) -} - -// AuthenticateGetOutbox defers to the delegate to authenticate the request. -func (a *SideEffectActor) AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { - return a.common.AuthenticateGetOutbox(c, w, r) -} - -// GetOutbox delegates to the SocialProtocol. -func (a *SideEffectActor) GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) { - return a.common.GetOutbox(c, r) -} - -// GetInbox delegates to the FederatingProtocol. -func (a *SideEffectActor) GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) { - return a.s2s.GetInbox(c, r) -} - -// AuthorizePostInbox defers to the federating protocol whether the peer request -// is authorized based on the actors' ids. -func (a *SideEffectActor) AuthorizePostInbox(c context.Context, w http.ResponseWriter, activity Activity) (authorized bool, err error) { - authorized = false - actor := activity.GetActivityStreamsActor() - if actor == nil { - err = fmt.Errorf("no actors in post to inbox") - return - } - var iris []*url.URL - for i := 0; i < actor.Len(); i++ { - iter := actor.At(i) - if iter.IsIRI() { - iris = append(iris, iter.GetIRI()) - } else if t := iter.GetType(); t != nil { - iris = append(iris, activity.GetJSONLDId().Get()) - } else { - err = fmt.Errorf("actor at index %d is missing an id", i) - return - } - } - // Determine if the actor(s) sending this request are blocked. - var blocked bool - if blocked, err = a.s2s.Blocked(c, iris); err != nil { - return - } else if blocked { - w.WriteHeader(http.StatusForbidden) - return - } - authorized = true - return -} - -// PostInbox handles the side effects of determining whether to block the peer's -// request, adding the activity to the actor's inbox, and triggering side -// effects based on the activity's type. -func (a *SideEffectActor) PostInbox(c context.Context, inboxIRI *url.URL, activity Activity) error { - isNew, err := a.addToInboxIfNew(c, inboxIRI, activity) - if err != nil { - return err - } - if isNew { - wrapped, other, err := a.s2s.FederatingCallbacks(c) - if err != nil { - return err - } - // Populate side channels. - wrapped.db = a.db - wrapped.inboxIRI = inboxIRI - wrapped.newTransport = a.common.NewTransport - wrapped.deliver = a.Deliver - wrapped.addNewIds = a.AddNewIDs - res, err := streams.NewTypeResolver(wrapped.callbacks(other)...) - if err != nil { - return err - } - if err = res.Resolve(c, activity); err != nil && !streams.IsUnmatchedErr(err) { - return err - } else if streams.IsUnmatchedErr(err) { - err = a.s2s.DefaultCallback(c, activity) - if err != nil { - return err - } - } - } - return nil -} - -// InboxForwarding implements the 3-part inbox forwarding algorithm specified in -// the ActivityPub specification. Does not modify the Activity, but may send -// outbound requests as a side effect. -// -// InboxForwarding sets the federated data in the database. -func (a *SideEffectActor) InboxForwarding(c context.Context, inboxIRI *url.URL, activity Activity) error { - // 1. Must be first time we have seen this Activity. - // - // Obtain the id of the activity - id := activity.GetJSONLDId() - // Acquire a lock for the id. To be held for the rest of execution. - unlock, err := a.db.Lock(c, id.Get()) - if err != nil { - return err - } - // WARNING: Unlock is not deferred - // - // If the database already contains the activity, exit early. - exists, err := a.db.Exists(c, id.Get()) - if err != nil { - unlock() - return err - } else if exists { - unlock() - return nil - } - // Attempt to create the activity entry. - err = a.db.Create(c, activity) - unlock() // unlock even on error return - if err != nil { - return err - } - // Unlock by this point and in every branch above. - // - // 2. The values of 'to', 'cc', or 'audience' are Collections owned by - // this server. - var r []*url.URL - to := activity.GetActivityStreamsTo() - if to != nil { - for iter := to.Begin(); iter != to.End(); iter = iter.Next() { - val, err := ToId(iter) - if err != nil { - return err - } - r = append(r, val) - } - } - cc := activity.GetActivityStreamsCc() - if cc != nil { - for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() { - val, err := ToId(iter) - if err != nil { - return err - } - r = append(r, val) - } - } - audience := activity.GetActivityStreamsAudience() - if audience != nil { - for iter := audience.Begin(); iter != audience.End(); iter = iter.Next() { - val, err := ToId(iter) - if err != nil { - return err - } - r = append(r, val) - } - } - // Find all IRIs owned by this server. We need to find all of them so - // that forwarding can properly occur. - var myIRIs []*url.URL - for _, iri := range r { - if err != nil { - return err - } - var unlock func() - unlock, err = a.db.Lock(c, iri) - if err != nil { - return err - } - // WARNING: Unlock is not deferred - owns, err := a.db.Owns(c, iri) - unlock() // unlock even on error - if err != nil { - return err - } else if !owns { - continue - } - // Unlock by this point and in every branch above. - myIRIs = append(myIRIs, iri) - } - // Finally, load our IRIs to determine if they are a Collection or - // OrderedCollection. - // - // Load the unfiltered IRIs. - var colIRIs []*url.URL - col := make(map[string]itemser) - oCol := make(map[string]orderedItemser) - for _, iri := range myIRIs { - var unlock func() - unlock, err = a.db.Lock(c, iri) - if err != nil { - return err - } - // WARNING: Not Unlocked - t, err := a.db.Get(c, iri) - if err != nil { - return err - } - if streams.IsOrExtendsActivityStreamsOrderedCollection(t) { - if im, ok := t.(orderedItemser); ok { - oCol[iri.String()] = im - colIRIs = append(colIRIs, iri) - defer unlock() - } else { - unlock() // unlock instantly - } - } else if streams.IsOrExtendsActivityStreamsCollection(t) { - if im, ok := t.(itemser); ok { - col[iri.String()] = im - colIRIs = append(colIRIs, iri) - defer unlock() - } else { - unlock() // unlock instantly - } - } else { - unlock() // unlock instantly - } - } - // If we own none of the Collection IRIs in 'to', 'cc', or 'audience' - // then no need to do inbox forwarding. We have nothing to forward to. - if len(colIRIs) == 0 { - return nil - } - // 3. The values of 'inReplyTo', 'object', 'target', or 'tag' are owned - // by this server. This is only a boolean trigger: As soon as we get - // a hit that we own something, then we should do inbox forwarding. - maxDepth := a.s2s.MaxInboxForwardingRecursionDepth(c) - ownsValue, err := a.hasInboxForwardingValues(c, inboxIRI, activity, maxDepth, 0) - if err != nil { - return err - } - // If we don't own any of the 'inReplyTo', 'object', 'target', or 'tag' - // values, then no need to do inbox forwarding. - if !ownsValue { - return nil - } - // Do the inbox forwarding since the above conditions hold true. Support - // the behavior of letting the application filter out the resulting - // collections to be targeted. - toSend, err := a.s2s.FilterForwarding(c, colIRIs, activity) - if err != nil { - return err - } - recipients := make([]*url.URL, 0, len(toSend)) - for _, iri := range toSend { - if c, ok := col[iri.String()]; ok { - if it := c.GetActivityStreamsItems(); it != nil { - for iter := it.Begin(); iter != it.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - recipients = append(recipients, id) - } - } - } else if oc, ok := oCol[iri.String()]; ok { - if oit := oc.GetActivityStreamsOrderedItems(); oit != nil { - for iter := oit.Begin(); iter != oit.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - recipients = append(recipients, id) - } - } - } - } - return a.deliverToRecipients(c, inboxIRI, activity, recipients) -} - -// PostOutbox handles the side effects of adding the activity to the actor's -// outbox, and triggering side effects based on the activity's type. -// -// This implementation assumes all types are meant to be delivered except for -// the ActivityStreams Block type. -func (a *SideEffectActor) PostOutbox(c context.Context, activity Activity, outboxIRI *url.URL, rawJSON map[string]interface{}) (deliverable bool, err error) { - // TODO: Determine this if c2s is nil - deliverable = true - if a.c2s != nil { - var wrapped SocialWrappedCallbacks - var other []interface{} - wrapped, other, err = a.c2s.SocialCallbacks(c) - if err != nil { - return - } - // Populate side channels. - wrapped.db = a.db - wrapped.outboxIRI = outboxIRI - wrapped.rawActivity = rawJSON - wrapped.clock = a.clock - wrapped.newTransport = a.common.NewTransport - undeliverable := false - wrapped.undeliverable = &undeliverable - var res *streams.TypeResolver - res, err = streams.NewTypeResolver(wrapped.callbacks(other)...) - if err != nil { - return - } - if err = res.Resolve(c, activity); err != nil && !streams.IsUnmatchedErr(err) { - return - } else if streams.IsUnmatchedErr(err) { - deliverable = true - err = a.c2s.DefaultCallback(c, activity) - if err != nil { - return - } - } else { - deliverable = !undeliverable - } - } - err = a.addToOutbox(c, outboxIRI, activity) - return -} - -// AddNewIDs creates new 'id' entries on an activity and its objects if it is a -// Create activity. -func (a *SideEffectActor) AddNewIDs(c context.Context, activity Activity) error { - id, err := a.db.NewID(c, activity) - if err != nil { - return err - } - activityId := streams.NewJSONLDIdProperty() - activityId.Set(id) - activity.SetJSONLDId(activityId) - if streams.IsOrExtendsActivityStreamsCreate(activity) { - o, ok := activity.(objecter) - if !ok { - return fmt.Errorf("cannot add new id for Create: %T has no object property", activity) - } - if oProp := o.GetActivityStreamsObject(); oProp != nil { - for iter := oProp.Begin(); iter != oProp.End(); iter = iter.Next() { - t := iter.GetType() - if t == nil { - return fmt.Errorf("cannot add new id for object in Create: object is not embedded as a value literal") - } - id, err = a.db.NewID(c, t) - if err != nil { - return err - } - objId := streams.NewJSONLDIdProperty() - objId.Set(id) - t.SetJSONLDId(objId) - } - } - } - return nil -} - -// deliver will complete the peer-to-peer sending of a federated message to -// another server. -// -// Must be called if at least the federated protocol is supported. -func (a *SideEffectActor) Deliver(c context.Context, outboxIRI *url.URL, activity Activity) error { - recipients, err := a.prepare(c, outboxIRI, activity) - if err != nil { - return err - } - return a.deliverToRecipients(c, outboxIRI, activity, recipients) -} - -// WrapInCreate wraps an object with a Create activity. -func (a *SideEffectActor) WrapInCreate(c context.Context, obj vocab.Type, outboxIRI *url.URL) (create vocab.ActivityStreamsCreate, err error) { - var unlock func() - unlock, err = a.db.Lock(c, outboxIRI) - if err != nil { - return - } - // WARNING: No deferring the Unlock - actorIRI, err := a.db.ActorForOutbox(c, outboxIRI) - unlock() // unlock after regardless - if err != nil { - return - } - // Unlock the lock at this point and every branch above - return wrapInCreate(c, obj, actorIRI) -} - -// deliverToRecipients will take a prepared Activity and send it to specific -// recipients on behalf of an actor. -func (a *SideEffectActor) deliverToRecipients(c context.Context, boxIRI *url.URL, activity Activity, recipients []*url.URL) error { - // Call whichever serializer is - // set on the side effect actor. - m, err := a.Serialize(activity) - if err != nil { - return err - } - - tp, err := a.common.NewTransport(c, boxIRI, goFedUserAgent()) - if err != nil { - return err - } - - return tp.BatchDeliver(c, m, recipients) -} - -// addToOutbox adds the activity to the outbox and creates the activity in the -// internal database as its own entry. -func (a *SideEffectActor) addToOutbox(c context.Context, outboxIRI *url.URL, activity Activity) error { - // Set the activity in the database first. - id := activity.GetJSONLDId() - unlock, err := a.db.Lock(c, id.Get()) - if err != nil { - return err - } - // WARNING: Unlock not deferred - err = a.db.Create(c, activity) - unlock() // unlock after regardless - if err != nil { - return err - } - // WARNING: Unlock(c, id) should be called by this point and in every - // return before here. - // - // Acquire a lock to read the outbox. Defer release. - unlock, err = a.db.Lock(c, outboxIRI) - if err != nil { - return err - } - defer unlock() - outbox, err := a.db.GetOutbox(c, outboxIRI) - if err != nil { - return err - } - // Prepend the activity to the list of 'orderedItems'. - oi := outbox.GetActivityStreamsOrderedItems() - if oi == nil { - oi = streams.NewActivityStreamsOrderedItemsProperty() - } - oi.PrependIRI(id.Get()) - outbox.SetActivityStreamsOrderedItems(oi) - // Save in the database. - err = a.db.SetOutbox(c, outbox) - return err -} - -// addToInboxIfNew will add the activity to the inbox at the specified IRI if -// the activity's ID has not yet been added to the inbox. -// -// It does not add the activity to this database's know federated data. -// -// Returns true when the activity is novel. -func (a *SideEffectActor) addToInboxIfNew(c context.Context, inboxIRI *url.URL, activity Activity) (isNew bool, err error) { - // Acquire a lock to read the inbox. Defer release. - var unlock func() - unlock, err = a.db.Lock(c, inboxIRI) - if err != nil { - return - } - defer unlock() - // Obtain the id of the activity - id := activity.GetJSONLDId() - // If the inbox already contains the URL, early exit. - contains, err := a.db.InboxContains(c, inboxIRI, id.Get()) - if err != nil { - return - } else if contains { - return - } - // It is a new id, acquire the inbox. - isNew = true - inbox, err := a.db.GetInbox(c, inboxIRI) - if err != nil { - return - } - // Prepend the activity to the list of 'orderedItems'. - oi := inbox.GetActivityStreamsOrderedItems() - if oi == nil { - oi = streams.NewActivityStreamsOrderedItemsProperty() - } - oi.PrependIRI(id.Get()) - inbox.SetActivityStreamsOrderedItems(oi) - // Save in the database. - err = a.db.SetInbox(c, inbox) - return -} - -// Given an ActivityStreams value, recursively examines ownership of the id or -// href and the ones on properties applicable to inbox forwarding. -// -// Recursion may be limited by providing a 'maxDepth' greater than zero. A -// value of zero or a negative number will result in infinite recursion. -func (a *SideEffectActor) hasInboxForwardingValues(c context.Context, inboxIRI *url.URL, val vocab.Type, maxDepth, currDepth int) (bool, error) { - // Stop recurring if we are exceeding the maximum depth and the maximum - // is a positive number. - if maxDepth > 0 && currDepth >= maxDepth { - return false, nil - } - // Determine if we own the 'id' of any values on the properties we care - // about. - types, iris := getInboxForwardingValues(val) - // For IRIs, simply check if we own them. - for _, iri := range iris { - unlock, err := a.db.Lock(c, iri) - if err != nil { - return false, err - } - // WARNING: Unlock is not deferred - owns, err := a.db.Owns(c, iri) - unlock() // unlock after regardless - if err != nil { - return false, err - } else if owns { - return true, nil - } - // Unlock by this point and in every branch above - } - // For embedded literals, check the id. - for _, val := range types { - id, err := GetId(val) - if err != nil { - return false, err - } - var unlock func() - unlock, err = a.db.Lock(c, id) - if err != nil { - return false, err - } - // WARNING: Unlock is not deferred - owns, err := a.db.Owns(c, id) - unlock() // unlock after regardless - if err != nil { - return false, err - } else if owns { - return true, nil - } - // Unlock by this point and in every branch above - } - // Recur Preparation: Try fetching the IRIs so we can recur into them. - for _, iri := range iris { - // Dereferencing the IRI. - tport, err := a.common.NewTransport(c, inboxIRI, goFedUserAgent()) - if err != nil { - return false, err - } - resp, err := tport.Dereference(c, iri) - if err != nil { - // Do not fail the entire process if the data is - // missing. - continue - } - m, err := readActivityPubResp(resp) - if err != nil { - return false, err - } - t, err := streams.ToType(c, m) - if err != nil { - // Do not fail the entire process if we cannot handle - // the type. - continue - } - types = append(types, t) - } - // Recur. - for _, nextVal := range types { - if has, err := a.hasInboxForwardingValues(c, inboxIRI, nextVal, maxDepth, currDepth+1); err != nil { - return false, err - } else if has { - return true, nil - } - } - return false, nil -} - -// prepare takes a deliverableObject and returns a list of the final -// recipient inbox IRIs. Additionally, the deliverableObject will have -// any hidden hidden recipients ("bto" and "bcc") stripped from it. -// -// Only call if both the social and federated protocol are supported. -func (a *SideEffectActor) prepare( - ctx context.Context, - outboxIRI *url.URL, - activity Activity, -) ([]*url.URL, error) { - // Iterate through to, bto, cc, bcc, and audience - // to extract a slice of addressee IRIs / IDs. - // - // The resulting slice might look something like: - // - // [ - // "https://example.org/users/someone/followers", // <-- collection IRI - // "https://another.example.org/users/someone_else", // <-- actor IRI - // "[...]" // <-- etc - // ] - var actorsAndCollections []*url.URL - if to := activity.GetActivityStreamsTo(); to != nil { - for iter := to.Begin(); iter != to.End(); iter = iter.Next() { - var err error - actorsAndCollections, err = appendToActorsAndCollectionsIRIs( - iter, actorsAndCollections, - ) - if err != nil { - return nil, err - } - } - } - - if bto := activity.GetActivityStreamsBto(); bto != nil { - for iter := bto.Begin(); iter != bto.End(); iter = iter.Next() { - var err error - actorsAndCollections, err = appendToActorsAndCollectionsIRIs( - iter, actorsAndCollections, - ) - if err != nil { - return nil, err - } - } - } - - if cc := activity.GetActivityStreamsCc(); cc != nil { - for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() { - var err error - actorsAndCollections, err = appendToActorsAndCollectionsIRIs( - iter, actorsAndCollections, - ) - if err != nil { - return nil, err - } - } - } - - if bcc := activity.GetActivityStreamsBcc(); bcc != nil { - for iter := bcc.Begin(); iter != bcc.End(); iter = iter.Next() { - var err error - actorsAndCollections, err = appendToActorsAndCollectionsIRIs( - iter, actorsAndCollections, - ) - if err != nil { - return nil, err - } - } - } - - if audience := activity.GetActivityStreamsAudience(); audience != nil { - for iter := audience.Begin(); iter != audience.End(); iter = iter.Next() { - var err error - actorsAndCollections, err = appendToActorsAndCollectionsIRIs( - iter, actorsAndCollections, - ) - if err != nil { - return nil, err - } - } - } - - // PRE-SORTING - - // If the pre-delivery sort function is defined, - // call it now so that implementations can sort - // delivery order to their preferences. - if a.DeliveryRecipientPreSort != nil { - actorsAndCollections = a.DeliveryRecipientPreSort(actorsAndCollections) - } - - // We now need to dereference the actor or collection - // IRIs to derive inboxes that we can POST requests to. - var ( - inboxes = make([]*url.URL, 0, len(actorsAndCollections)) - derefdEntries = make(map[string]struct{}, len(actorsAndCollections)) - ) - - // First check if the implemented database logic - // can return any of these inboxes without having - // to make remote dereference calls (much cheaper). - for _, actorOrCollection := range actorsAndCollections { - actorOrCollectionStr := actorOrCollection.String() - if _, derefd := derefdEntries[actorOrCollectionStr]; derefd { - // Ignore potential duplicates - // we've already derefd to inbox(es). - continue - } - - // BEGIN LOCK - unlock, err := a.db.Lock(ctx, actorOrCollection) - if err != nil { - return nil, err - } - - // Try to get inbox(es) for this actor or collection. - gotInboxes, err := a.db.InboxesForIRI(ctx, actorOrCollection) - - // END LOCK - unlock() - - if err != nil { - return nil, err - } - - if len(gotInboxes) == 0 { - // No hit(s). - continue - } - - // We have one or more hits. - inboxes = append(inboxes, gotInboxes...) - - // Mark this actor or collection as deref'd. - derefdEntries[actorOrCollectionStr] = struct{}{} - } - - // Now look for any remaining actors/collections - // that weren't already dereferenced into inboxes - // with db calls; find these by making deref calls - // to remote instances. - // - // First get a transport to do the http calls. - t, err := a.common.NewTransport(ctx, outboxIRI, goFedUserAgent()) - if err != nil { - return nil, err - } - - // Make HTTP calls to unpack collection IRIs into - // Actor IRIs and then into Actor types, ignoring - // actors or collections we've already deref'd. - actorsFromRemote, err := a.resolveActors( - ctx, - t, - actorsAndCollections, - derefdEntries, - 0, a.s2s.MaxDeliveryRecursionDepth(ctx), - ) - if err != nil { - return nil, err - } - - // Release no-longer-needed collections. - clear(derefdEntries) - clear(actorsAndCollections) - - // Extract inbox IRI from each deref'd Actor (if any). - inboxesFromRemote, err := actorsToInboxIRIs(actorsFromRemote) - if err != nil { - return nil, err - } - - // Combine db-discovered inboxes and remote-discovered - // inboxes into a final list of destination inboxes. - inboxes = append(inboxes, inboxesFromRemote...) - - // POST FILTERING - - // Do a final pass of the inboxes to: - // - // 1. Deduplicate entries. - // 2. Ensure that the list of inboxes doesn't - // contain the inbox of whoever the outbox - // belongs to, no point delivering to oneself. - // - // To do this we first need to get the - // inbox IRI of this outbox's Actor. - - // BEGIN LOCK - unlock, err := a.db.Lock(ctx, outboxIRI) - if err != nil { - return nil, err - } - - // Get the IRI of the Actor who owns this outbox. - outboxActorIRI, err := a.db.ActorForOutbox(ctx, outboxIRI) - - // END LOCK - unlock() - - if err != nil { - return nil, err - } - - // BEGIN LOCK - unlock, err = a.db.Lock(ctx, outboxActorIRI) - if err != nil { - return nil, err - } - - // Now get the Actor who owns this outbox. - outboxActor, err := a.db.Get(ctx, outboxActorIRI) - - // END LOCK - unlock() - - if err != nil { - return nil, err - } - - // Extract the inbox IRI for the outbox Actor. - inboxOfOutboxActor, err := getInbox(outboxActor) - if err != nil { - return nil, err - } - - // Deduplicate the final inboxes slice, and filter - // out of the inbox of this outbox actor (if present). - inboxes = filterInboxIRIs(inboxes, inboxOfOutboxActor) - - // Now that we've derived inboxes to deliver - // the activity to, strip off any bto or bcc - // recipients, as per the AP spec requirements. - stripHiddenRecipients(activity) - - // All done! - return inboxes, nil -} - -// resolveActors takes a list of Actor id URIs and returns them as concrete -// instances of actorObject. It attempts to apply recursively when it encounters -// a target that is a Collection or OrderedCollection. -// -// Any IRI strings in the ignores map will be skipped (use this when -// you've already dereferenced some of the actorAndCollectionIRIs). -// -// If maxDepth is zero or negative, then recursion is infinitely applied. -// -// If a recipient is a Collection or OrderedCollection, then the server MUST -// dereference the collection, WITH the user's credentials. -// -// Note that this also applies to CollectionPage and OrderedCollectionPage. -func (a *SideEffectActor) resolveActors( - ctx context.Context, - t Transport, - actorAndCollectionIRIs []*url.URL, - ignores map[string]struct{}, - depth, maxDepth int, -) ([]vocab.Type, error) { - if maxDepth > 0 && depth >= maxDepth { - // Hit our max depth. - return nil, nil - } - - if len(actorAndCollectionIRIs) == 0 { - // Nothing to do. - return nil, nil - } - - // Optimistically assume 1:1 mapping of IRIs to actors. - actors := make([]vocab.Type, 0, len(actorAndCollectionIRIs)) - - // Deref each actorOrCollectionIRI if not ignored. - for _, actorOrCollectionIRI := range actorAndCollectionIRIs { - _, ignore := ignores[actorOrCollectionIRI.String()] - if ignore { - // Don't try to - // deref this one. - continue - } - - // TODO: Determine if more logic is needed here for - // inaccessible collections owned by peer servers. - actor, more, err := a.dereferenceForResolvingInboxes(ctx, t, actorOrCollectionIRI) - if err != nil { - // Missing recipient -- skip. - continue - } - - if actor != nil { - // Got a hit. - actors = append(actors, actor) - } - - // If this was a collection, get more. - recurActors, err := a.resolveActors( - ctx, - t, - more, - ignores, - depth+1, maxDepth, - ) - if err != nil { - return nil, err - } - - actors = append(actors, recurActors...) - } - - return actors, nil -} - -// dereferenceForResolvingInboxes dereferences an IRI solely for finding an -// actor's inbox IRI to deliver to. -// -// The returned actor could be nil, if it wasn't an actor (ex: a Collection or -// OrderedCollection). -func (a *SideEffectActor) dereferenceForResolvingInboxes(c context.Context, t Transport, actorIRI *url.URL) (actor vocab.Type, moreActorIRIs []*url.URL, err error) { - var resp *http.Response - resp, err = t.Dereference(c, actorIRI) - if err != nil { - return - } - var m map[string]interface{} - m, err = readActivityPubResp(resp) - if err != nil { - return - } - actor, err = streams.ToType(c, m) - if err != nil { - return - } - // Attempt to see if the 'actor' is really some sort of type that has - // an 'items' or 'orderedItems' property. - if v, ok := actor.(itemser); ok { - if i := v.GetActivityStreamsItems(); i != nil { - for iter := i.Begin(); iter != i.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - moreActorIRIs = append(moreActorIRIs, id) - } - } - actor = nil - } else if v, ok := actor.(orderedItemser); ok { - if i := v.GetActivityStreamsOrderedItems(); i != nil { - for iter := i.Begin(); iter != i.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - moreActorIRIs = append(moreActorIRIs, id) - } - } - actor = nil - } - return -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/social_protocol.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/social_protocol.go deleted file mode 100644 index 1f882b284..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/social_protocol.go +++ /dev/null @@ -1,83 +0,0 @@ -package pub - -import ( - "context" - "net/http" - - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// SocialProtocol contains behaviors an application needs to satisfy for the -// full ActivityPub C2S implementation to be supported by this library. -// -// It is only required if the client application wants to support the client-to- -// server, or social, protocol. -// -// It is passed to the library as a dependency injection from the client -// application. -type SocialProtocol interface { - // Hook callback after parsing the request body for a client request - // to the Actor's outbox. - // - // Can be used to set contextual information based on the - // ActivityStreams object received. - // - // Only called if the Social API is enabled. - // - // Warning: Neither authentication nor authorization has taken place at - // this time. Doing anything beyond setting contextual information is - // strongly discouraged. - // - // If an error is returned, it is passed back to the caller of - // PostOutbox. In this case, the DelegateActor implementation must not - // write a response to the ResponseWriter as is expected that the caller - // to PostOutbox will do so when handling the error. - PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error) - // AuthenticatePostOutbox delegates the authentication of a POST to an - // outbox. - // - // Only called if the Social API is enabled. - // - // If an error is returned, it is passed back to the caller of - // PostOutbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // SocialCallbacks returns the application logic that handles - // ActivityStreams received from C2S clients. - // - // Note that certain types of callbacks will be 'wrapped' with default - // behaviors supported natively by the library. Other callbacks - // compatible with streams.TypeResolver can be specified by 'other'. - // - // For example, setting the 'Create' field in the SocialWrappedCallbacks - // lets an application dependency inject additional behaviors they want - // to take place, including the default behavior supplied by this - // library. This is guaranteed to be compliant with the ActivityPub - // Social protocol. - // - // To override the default behavior, instead supply the function in - // 'other', which does not guarantee the application will be compliant - // with the ActivityPub Social Protocol. - // - // Applications are not expected to handle every single ActivityStreams - // type and extension. The unhandled ones are passed to DefaultCallback. - SocialCallbacks(c context.Context) (wrapped SocialWrappedCallbacks, other []interface{}, err error) - // DefaultCallback is called for types that go-fed can deserialize but - // are not handled by the application's callbacks returned in the - // Callbacks method. - // - // Applications are not expected to handle every single ActivityStreams - // type and extension, so the unhandled ones are passed to - // DefaultCallback. - DefaultCallback(c context.Context, activity Activity) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/social_wrapped_callbacks.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/social_wrapped_callbacks.go deleted file mode 100644 index 9f93a9c65..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/social_wrapped_callbacks.go +++ /dev/null @@ -1,534 +0,0 @@ -package pub - -import ( - "context" - "fmt" - "net/url" - - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// SocialWrappedCallbacks lists the callback functions that already have some -// side effect behavior provided by the pub library. -// -// These functions are wrapped for the Social Protocol. -type SocialWrappedCallbacks struct { - // Create handles additional side effects for the Create ActivityStreams - // type. - // - // The wrapping callback copies the actor(s) to the 'attributedTo' - // property and copies recipients between the Create activity and all - // objects. It then saves the entry in the database. - Create func(context.Context, vocab.ActivityStreamsCreate) error - // Update handles additional side effects for the Update ActivityStreams - // type. - // - // The wrapping callback applies new top-level values on an object to - // the stored objects. Any top-level null literals will be deleted on - // the stored objects as well. - Update func(context.Context, vocab.ActivityStreamsUpdate) error - // Delete handles additional side effects for the Delete ActivityStreams - // type. - // - // The wrapping callback replaces the object(s) with tombstones in the - // database. - Delete func(context.Context, vocab.ActivityStreamsDelete) error - // Follow handles additional side effects for the Follow ActivityStreams - // type. - // - // The wrapping callback only ensures the 'Follow' has at least one - // 'object' entry, but otherwise has no default side effect. - Follow func(context.Context, vocab.ActivityStreamsFollow) error - // Add handles additional side effects for the Add ActivityStreams - // type. - // - // - // The wrapping function will add the 'object' IRIs to a specific - // 'target' collection if the 'target' collection(s) live on this - // server. - Add func(context.Context, vocab.ActivityStreamsAdd) error - // Remove handles additional side effects for the Remove ActivityStreams - // type. - // - // The wrapping function will remove all 'object' IRIs from a specific - // 'target' collection if the 'target' collection(s) live on this - // server. - Remove func(context.Context, vocab.ActivityStreamsRemove) error - // Like handles additional side effects for the Like ActivityStreams - // type. - // - // The wrapping function will add the objects on the activity to the - // "liked" collection of this actor. - Like func(context.Context, vocab.ActivityStreamsLike) error - // Undo handles additional side effects for the Undo ActivityStreams - // type. - // - // - // The wrapping function ensures the 'actor' on the 'Undo' - // is be the same as the 'actor' on all Activities being undone. - // It enforces that the actors on the Undo must correspond to all of the - // 'object' actors in some manner. - // - // It is expected that the application will implement the proper - // reversal of activities that are being undone. - Undo func(context.Context, vocab.ActivityStreamsUndo) error - // Block handles additional side effects for the Block ActivityStreams - // type. - // - // The wrapping callback only ensures the 'Block' has at least one - // 'object' entry, but otherwise has no default side effect. It is up - // to the wrapped application function to properly enforce the new - // blocking behavior. - // - // Note that go-fed does not federate 'Block' activities received in the - // Social Protocol. - Block func(context.Context, vocab.ActivityStreamsBlock) error - - // Sidechannel data -- this is set at request handling time. These must - // be set before the callbacks are used. - - // db is the Database the SocialWrappedCallbacks should use. It must be - // set before calling the callbacks. - db Database - // outboxIRI is the outboxIRI that is handling this callback. - outboxIRI *url.URL - // rawActivity is the JSON map literal received when deserializing the - // request body. - rawActivity map[string]interface{} - // clock is the server's clock. - clock Clock - // newTransport creates a new Transport. - newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error) - // undeliverable is a sidechannel out, indicating if the handled activity - // should not be delivered to a peer. - // - // Its provided default value will always be used when a custom function - // is called. - undeliverable *bool -} - -// callbacks returns the WrappedCallbacks members into a single interface slice -// for use in streams.Resolver callbacks. -// -// If the given functions have a type that collides with the default behavior, -// then disable our default behavior -func (w SocialWrappedCallbacks) callbacks(fns []interface{}) []interface{} { - enableCreate := true - enableUpdate := true - enableDelete := true - enableFollow := true - enableAdd := true - enableRemove := true - enableLike := true - enableUndo := true - enableBlock := true - for _, fn := range fns { - switch fn.(type) { - default: - continue - case func(context.Context, vocab.ActivityStreamsCreate) error: - enableCreate = false - case func(context.Context, vocab.ActivityStreamsUpdate) error: - enableUpdate = false - case func(context.Context, vocab.ActivityStreamsDelete) error: - enableDelete = false - case func(context.Context, vocab.ActivityStreamsFollow) error: - enableFollow = false - case func(context.Context, vocab.ActivityStreamsAdd) error: - enableAdd = false - case func(context.Context, vocab.ActivityStreamsRemove) error: - enableRemove = false - case func(context.Context, vocab.ActivityStreamsLike) error: - enableLike = false - case func(context.Context, vocab.ActivityStreamsUndo) error: - enableUndo = false - case func(context.Context, vocab.ActivityStreamsBlock) error: - enableBlock = false - } - } - if enableCreate { - fns = append(fns, w.create) - } - if enableUpdate { - fns = append(fns, w.update) - } - if enableDelete { - fns = append(fns, w.deleteFn) - } - if enableFollow { - fns = append(fns, w.follow) - } - if enableAdd { - fns = append(fns, w.add) - } - if enableRemove { - fns = append(fns, w.remove) - } - if enableLike { - fns = append(fns, w.like) - } - if enableUndo { - fns = append(fns, w.undo) - } - if enableBlock { - fns = append(fns, w.block) - } - return fns -} - -// create implements the social Create activity side effects. -func (w SocialWrappedCallbacks) create(c context.Context, a vocab.ActivityStreamsCreate) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Obtain all actor IRIs. - actors := a.GetActivityStreamsActor() - createActorIds := make(map[string]*url.URL) - if actors != nil { - createActorIds = make(map[string]*url.URL, actors.Len()) - for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - createActorIds[id.String()] = id - } - } - // Obtain each object's 'attributedTo' IRIs. - objectAttributedToIds := make([]map[string]*url.URL, op.Len()) - for i := range objectAttributedToIds { - objectAttributedToIds[i] = make(map[string]*url.URL) - } - for i := 0; i < op.Len(); i++ { - t := op.At(i).GetType() - attrToer, ok := t.(attributedToer) - if !ok { - continue - } - attr := attrToer.GetActivityStreamsAttributedTo() - if attr == nil { - attr = streams.NewActivityStreamsAttributedToProperty() - attrToer.SetActivityStreamsAttributedTo(attr) - } - for iter := attr.Begin(); iter != attr.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objectAttributedToIds[i][id.String()] = id - } - } - // Put all missing actor IRIs onto all object attributedTo properties. - for k, v := range createActorIds { - for i, attributedToMap := range objectAttributedToIds { - if _, ok := attributedToMap[k]; !ok { - t := op.At(i).GetType() - attrToer, ok := t.(attributedToer) - if !ok { - continue - } - attr := attrToer.GetActivityStreamsAttributedTo() - attr.AppendIRI(v) - } - } - } - // Put all missing object attributedTo IRIs onto the actor property - // if there is one. - if actors != nil { - for _, attributedToMap := range objectAttributedToIds { - for k, v := range attributedToMap { - if _, ok := createActorIds[k]; !ok { - actors.AppendIRI(v) - } - } - } - } - // Copy over the 'to', 'bto', 'cc', 'bcc', and 'audience' recipients - // between the activity and all child objects and vice versa. - if err := normalizeRecipients(a); err != nil { - return err - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(i int) error { - obj := op.At(i).GetType() - id, err := GetId(obj) - if err != nil { - return err - } - var unlock func() - unlock, err = w.db.Lock(c, id) - if err != nil { - return err - } - defer unlock() - if err := w.db.Create(c, obj); err != nil { - return err - } - return nil - } - // Persist all objects we've created, which will include sensitive - // recipients such as 'bcc' and 'bto'. - for i := 0; i < op.Len(); i++ { - if err := loopFn(i); err != nil { - return err - } - } - if w.Create != nil { - return w.Create(c, a) - } - return nil -} - -// update implements the social Update activity side effects. -func (w SocialWrappedCallbacks) update(c context.Context, a vocab.ActivityStreamsUpdate) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Obtain all object ids, which should be owned by this server. - objIds := make([]*url.URL, 0, op.Len()) - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objIds = append(objIds, id) - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(idx int, loopId *url.URL) error { - unlock, err := w.db.Lock(c, loopId) - if err != nil { - return err - } - defer unlock() - t, err := w.db.Get(c, loopId) - if err != nil { - return err - } - m, err := t.Serialize() - if err != nil { - return err - } - // Copy over new top-level values. - objType := op.At(idx).GetType() - if objType == nil { - return fmt.Errorf("object at index %d is not a literal type value", idx) - } - newM, err := objType.Serialize() - if err != nil { - return err - } - for k, v := range newM { - m[k] = v - } - // Delete top-level values where the raw Activity had nils. - for k, v := range w.rawActivity { - if _, ok := m[k]; v == nil && ok { - delete(m, k) - } - } - newT, err := streams.ToType(c, m) - if err != nil { - return err - } - if err = w.db.Update(c, newT); err != nil { - return err - } - return nil - } - for i, id := range objIds { - if err := loopFn(i, id); err != nil { - return err - } - } - if w.Update != nil { - return w.Update(c, a) - } - return nil -} - -// deleteFn implements the social Delete activity side effects. -func (w SocialWrappedCallbacks) deleteFn(c context.Context, a vocab.ActivityStreamsDelete) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Obtain all object ids, which should be owned by this server. - objIds := make([]*url.URL, 0, op.Len()) - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objIds = append(objIds, id) - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(idx int, loopId *url.URL) error { - unlock, err := w.db.Lock(c, loopId) - if err != nil { - return err - } - defer unlock() - t, err := w.db.Get(c, loopId) - if err != nil { - return err - } - tomb := toTombstone(t, loopId, w.clock.Now()) - if err := w.db.Update(c, tomb); err != nil { - return err - } - return nil - } - for i, id := range objIds { - if err := loopFn(i, id); err != nil { - return err - } - } - if w.Delete != nil { - return w.Delete(c, a) - } - return nil -} - -// follow implements the social Follow activity side effects. -func (w SocialWrappedCallbacks) follow(c context.Context, a vocab.ActivityStreamsFollow) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - if w.Follow != nil { - return w.Follow(c, a) - } - return nil -} - -// add implements the social Add activity side effects. -func (w SocialWrappedCallbacks) add(c context.Context, a vocab.ActivityStreamsAdd) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - target := a.GetActivityStreamsTarget() - if target == nil || target.Len() == 0 { - return ErrTargetRequired - } - if err := add(c, op, target, w.db); err != nil { - return err - } - if w.Add != nil { - return w.Add(c, a) - } - return nil -} - -// remove implements the social Remove activity side effects. -func (w SocialWrappedCallbacks) remove(c context.Context, a vocab.ActivityStreamsRemove) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - target := a.GetActivityStreamsTarget() - if target == nil || target.Len() == 0 { - return ErrTargetRequired - } - if err := remove(c, op, target, w.db); err != nil { - return err - } - if w.Remove != nil { - return w.Remove(c, a) - } - return nil -} - -// like implements the social Like activity side effects. -func (w SocialWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsLike) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Get this actor's IRI. - unlock, err := w.db.Lock(c, w.outboxIRI) - if err != nil { - return err - } - // WARNING: Unlock not deferred. - actorIRI, err := w.db.ActorForOutbox(c, w.outboxIRI) - unlock() // unlock even on error - if err != nil { - return err - } - // Unlock must be called by now and every branch above. - // - // Now obtain this actor's 'liked' collection. - unlock, err = w.db.Lock(c, actorIRI) - if err != nil { - return err - } - defer unlock() - liked, err := w.db.Liked(c, actorIRI) - if err != nil { - return err - } - likedItems := liked.GetActivityStreamsItems() - if likedItems == nil { - likedItems = streams.NewActivityStreamsItemsProperty() - liked.SetActivityStreamsItems(likedItems) - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - objId, err := ToId(iter) - if err != nil { - return err - } - likedItems.PrependIRI(objId) - } - err = w.db.Update(c, liked) - if err != nil { - return err - } - if w.Like != nil { - return w.Like(c, a) - } - return nil -} - -// undo implements the social Undo activity side effects. -func (w SocialWrappedCallbacks) undo(c context.Context, a vocab.ActivityStreamsUndo) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - actors := a.GetActivityStreamsActor() - if err := mustHaveActivityActorsMatchObjectActors(c, actors, op, w.newTransport, w.outboxIRI); err != nil { - return err - } - if w.Undo != nil { - return w.Undo(c, a) - } - return nil -} - -// block implements the social Block activity side effects. -func (w SocialWrappedCallbacks) block(c context.Context, a vocab.ActivityStreamsBlock) error { - *w.undeliverable = true - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - if w.Block != nil { - return w.Block(c, a) - } - return nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/transport.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/transport.go deleted file mode 100644 index 101ff5c07..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/transport.go +++ /dev/null @@ -1,219 +0,0 @@ -package pub - -import ( - "bytes" - "context" - "crypto" - "encoding/json" - "fmt" - "net/http" - "net/url" - "strings" - "sync" - - "github.com/go-fed/httpsig" -) - -const ( - // acceptHeaderValue is the Accept header value indicating that the - // response should contain an ActivityStreams object. - acceptHeaderValue = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" -) - -// isSuccess returns true if the HTTP status code is either OK, Created, or -// Accepted. -func isSuccess(code int) bool { - return code == http.StatusOK || - code == http.StatusCreated || - code == http.StatusAccepted -} - -// Transport makes ActivityStreams calls to other servers in order to send or -// receive ActivityStreams data. -// -// It is responsible for setting the appropriate request headers, signing the -// requests if needed, and facilitating the traffic between this server and -// another. -// -// The transport is exclusively used to issue requests on behalf of an actor, -// and is never sending requests on behalf of the server in general. -// -// It may be reused multiple times, but never concurrently. -type Transport interface { - // Dereference fetches the ActivityStreams object located at this IRI with - // a GET request. Note that Response will only be returned on status = OK. - Dereference(c context.Context, iri *url.URL) (*http.Response, error) - - // Deliver sends an ActivityStreams object. - Deliver(c context.Context, obj map[string]interface{}, to *url.URL) error - - // BatchDeliver sends an ActivityStreams object to multiple recipients. - BatchDeliver(c context.Context, obj map[string]interface{}, recipients []*url.URL) error -} - -// Transport must be implemented by HttpSigTransport. -var _ Transport = &HttpSigTransport{} - -// HttpSigTransport makes a dereference call using HTTP signatures to -// authenticate the request on behalf of a particular actor. -// -// No rate limiting is applied. -// -// Only one request is tried per call. -type HttpSigTransport struct { - client HttpClient - appAgent string - gofedAgent string - clock Clock - getSigner httpsig.Signer - getSignerMu *sync.Mutex - postSigner httpsig.Signer - postSignerMu *sync.Mutex - pubKeyId string - privKey crypto.PrivateKey -} - -// NewHttpSigTransport returns a new Transport. -// -// It sends requests specifically on behalf of a specific actor on this server. -// The actor's credentials are used to add an HTTP Signature to requests, which -// requires an actor's private key, a unique identifier for their public key, -// and an HTTP Signature signing algorithm. -// -// The client lets users issue requests through any HTTP client, including the -// standard library's HTTP client. -// -// The appAgent uniquely identifies the calling application's requests, so peers -// may aid debugging the requests incoming from this server. Note that the -// agent string will also include one for go-fed, so at minimum peer servers can -// reach out to the go-fed library to aid in notifying implementors of malformed -// or unsupported requests. -func NewHttpSigTransport( - client HttpClient, - appAgent string, - clock Clock, - getSigner, postSigner httpsig.Signer, - pubKeyId string, - privKey crypto.PrivateKey) *HttpSigTransport { - return &HttpSigTransport{ - client: client, - appAgent: appAgent, - gofedAgent: goFedUserAgent(), - clock: clock, - getSigner: getSigner, - getSignerMu: &sync.Mutex{}, - postSigner: postSigner, - postSignerMu: &sync.Mutex{}, - pubKeyId: pubKeyId, - privKey: privKey, - } -} - -// Dereference sends a GET request signed with an HTTP Signature to obtain an ActivityStreams value. -func (h HttpSigTransport) Dereference(c context.Context, iri *url.URL) (*http.Response, error) { - req, err := http.NewRequest("GET", iri.String(), nil) - if err != nil { - return nil, err - } - req = req.WithContext(c) - req.Header.Add(acceptHeader, acceptHeaderValue) - req.Header.Add("Accept-Charset", "utf-8") - req.Header.Add("Date", h.clock.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT") - req.Header.Add("User-Agent", fmt.Sprintf("%s %s", h.appAgent, h.gofedAgent)) - req.Header.Set("Host", iri.Host) - h.getSignerMu.Lock() - err = h.getSigner.SignRequest(h.privKey, h.pubKeyId, req, nil) - h.getSignerMu.Unlock() - if err != nil { - return nil, err - } - resp, err := h.client.Do(req) - if err != nil { - return nil, err - } - if resp.StatusCode != http.StatusOK { - _ = resp.Body.Close() - return nil, fmt.Errorf("GET request to %s failed (%d): %s", iri.String(), resp.StatusCode, resp.Status) - } - return resp, nil -} - -// Deliver sends a POST request with an HTTP Signature. -func (h HttpSigTransport) Deliver(c context.Context, data map[string]interface{}, to *url.URL) error { - b, err := json.Marshal(data) - if err != nil { - return err - } - return h.deliver(c, b, to) -} - -// BatchDeliver sends concurrent POST requests. Returns an error if any of the requests had an error. -func (h HttpSigTransport) BatchDeliver(c context.Context, data map[string]interface{}, recipients []*url.URL) error { - b, err := json.Marshal(data) - if err != nil { - return err - } - var wg sync.WaitGroup - errCh := make(chan error, len(recipients)) - for _, recipient := range recipients { - wg.Add(1) - go func(r *url.URL) { - defer wg.Done() - if err := h.deliver(c, b, r); err != nil { - errCh <- err - } - }(recipient) - } - wg.Wait() - errs := make([]string, 0, len(recipients)) -outer: - for { - select { - case e := <-errCh: - errs = append(errs, e.Error()) - default: - break outer - } - } - if len(errs) > 0 { - return fmt.Errorf("batch deliver had at least one failure: %s", strings.Join(errs, "; ")) - } - return nil -} - -func (h HttpSigTransport) deliver(c context.Context, b []byte, to *url.URL) error { - req, err := http.NewRequest("POST", to.String(), bytes.NewReader(b)) - if err != nil { - return err - } - req = req.WithContext(c) - req.Header.Add(contentTypeHeader, contentTypeHeaderValue) - req.Header.Add("Accept-Charset", "utf-8") - req.Header.Add("Date", h.clock.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT") - req.Header.Add("User-Agent", fmt.Sprintf("%s %s", h.appAgent, h.gofedAgent)) - req.Header.Set("Host", to.Host) - h.postSignerMu.Lock() - err = h.postSigner.SignRequest(h.privKey, h.pubKeyId, req, b) - h.postSignerMu.Unlock() - if err != nil { - return err - } - resp, err := h.client.Do(req) - if err != nil { - return err - } - defer resp.Body.Close() - if !isSuccess(resp.StatusCode) { - return fmt.Errorf("POST request to %s failed (%d): %s", to.String(), resp.StatusCode, resp.Status) - } - return nil -} - -// HttpClient sends http requests, and is an abstraction only needed by the -// HttpSigTransport. The standard library's Client satisfies this interface. -type HttpClient interface { - Do(req *http.Request) (*http.Response, error) -} - -// HttpClient must be implemented by http.Client. -var _ HttpClient = &http.Client{} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/util.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/util.go deleted file mode 100644 index 1a5ea7640..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/util.go +++ /dev/null @@ -1,1077 +0,0 @@ -package pub - -import ( - "bytes" - "context" - "crypto/sha256" - "encoding/base64" - "encoding/json" - "errors" - "fmt" - "io" - "net/http" - "net/url" - "strings" - "time" - - "codeberg.org/superseriousbusiness/activity/streams" - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -var ( - // ErrObjectRequired indicates the activity needs its object property - // set. Can be returned by DelegateActor's PostInbox or PostOutbox so a - // Bad Request response is set. - ErrObjectRequired = errors.New("object property required on the provided activity") - // ErrTargetRequired indicates the activity needs its target property - // set. Can be returned by DelegateActor's PostInbox or PostOutbox so a - // Bad Request response is set. - ErrTargetRequired = errors.New("target property required on the provided activity") -) - -// activityStreamsMediaTypes contains all of the accepted ActivityStreams media -// types. Generated at init time. -var activityStreamsMediaTypes []string - -func init() { - activityStreamsMediaTypes = []string{ - "application/activity+json", - } - jsonLdType := "application/ld+json" - for _, semi := range []string{";", " ;", " ; ", "; "} { - for _, profile := range []string{ - "profile=https://www.w3.org/ns/activitystreams", - "profile=\"https://www.w3.org/ns/activitystreams\"", - } { - activityStreamsMediaTypes = append( - activityStreamsMediaTypes, - fmt.Sprintf("%s%s%s", jsonLdType, semi, profile)) - } - } -} - -// headerIsActivityPubMediaType returns true if the header string contains one -// of the accepted ActivityStreams media types. -// -// Note we don't try to build a comprehensive parser and instead accept a -// tolerable amount of whitespace since the HTTP specification is ambiguous -// about the format and significance of whitespace. -func headerIsActivityPubMediaType(header string) bool { - for _, mediaType := range activityStreamsMediaTypes { - if strings.Contains(header, mediaType) { - return true - } - } - return false -} - -const ( - // The Content-Type header. - contentTypeHeader = "Content-Type" - // The Accept header. - acceptHeader = "Accept" -) - -// readActivityPubReq reads ActivityPub data from an incoming request, handling body close. -func readActivityPubReq(req *http.Request) (map[string]interface{}, error) { - // Ensure closed when done. - defer req.Body.Close() - - var m map[string]interface{} - - // Wrap body in a JSON decoder. - dec := json.NewDecoder(req.Body) - - // Decode JSON body as "raw" AP data map. - if err := dec.Decode(&m); err != nil { - return nil, err - } - - // Perform a final second decode to ensure no trailing - // garbage data or second JSON value (indicates malformed). - if err := dec.Decode(&struct{}{}); err != io.EOF { - return nil, errors.New("trailing data after json") - } - - return m, nil -} - -// readActivityPubResp reads ActivityPub data from a dereference response, handling media type check and body close. -func readActivityPubResp(resp *http.Response) (map[string]interface{}, error) { - // Ensure closed when done. - defer resp.Body.Close() - - // Check the incoming response media type is the expected ActivityPub content-type. - if mediaType := resp.Header.Get("Content-Type"); !headerIsActivityPubMediaType(mediaType) { - return nil, fmt.Errorf("%s %s resp was not ActivityPub media type: %s", resp.Request.Method, resp.Request.URL, mediaType) - } - - var m map[string]interface{} - - // Wrap body in a JSON decoder. - dec := json.NewDecoder(resp.Body) - - // Decode JSON body as "raw" AP data map. - if err := dec.Decode(&m); err != nil { - return nil, err - } - - // Perform a final second decode to ensure no trailing - // garbage data or second JSON value (indicates malformed). - if err := dec.Decode(&struct{}{}); err != io.EOF { - return nil, errors.New("trailing data after json") - } - - return m, nil -} - -// isActivityPubPost returns true if the request is a POST request that has the -// ActivityStreams content type header -func isActivityPubPost(r *http.Request) bool { - return r.Method == "POST" && headerIsActivityPubMediaType(r.Header.Get(contentTypeHeader)) -} - -// isActivityPubGet returns true if the request is a GET request that has the -// ActivityStreams content type header -func isActivityPubGet(r *http.Request) bool { - return r.Method == "GET" && headerIsActivityPubMediaType(r.Header.Get(acceptHeader)) -} - -// dedupeOrderedItems deduplicates the 'orderedItems' within an ordered -// collection type. Deduplication happens by the 'id' property. -func dedupeOrderedItems(oc orderedItemser) error { - oi := oc.GetActivityStreamsOrderedItems() - if oi == nil { - return nil - } - seen := make(map[string]bool, oi.Len()) - for i := 0; i < oi.Len(); { - var id *url.URL - - iter := oi.At(i) - asType := iter.GetType() - if asType != nil { - var err error - id, err = GetId(asType) - if err != nil { - return err - } - } else if iter.IsIRI() { - id = iter.GetIRI() - } else { - return fmt.Errorf("element %d in OrderedCollection does not have an ID nor is an IRI", i) - } - if seen[id.String()] { - oi.Remove(i) - } else { - seen[id.String()] = true - i++ - } - } - return nil -} - -const ( - // The Location header - locationHeader = "Location" - // Contains the ActivityStreams Content-Type value. - contentTypeHeaderValue = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" - // The Date header. - dateHeader = "Date" - // The Digest header. - digestHeader = "Digest" - // The delimiter used in the Digest header. - digestDelimiter = "=" - // SHA-256 string for the Digest header. - sha256Digest = "SHA-256" -) - -// addResponseHeaders sets headers needed in the HTTP response, such but not -// limited to the Content-Type, Date, and Digest headers. -func addResponseHeaders(h http.Header, c Clock, responseContent []byte) { - h.Set(contentTypeHeader, contentTypeHeaderValue) - // RFC 7231 §7.1.1.2 - h.Set(dateHeader, c.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT") - // RFC 3230 and RFC 5843 - var b bytes.Buffer - b.WriteString(sha256Digest) - b.WriteString(digestDelimiter) - hashed := sha256.Sum256(responseContent) - b.WriteString(base64.StdEncoding.EncodeToString(hashed[:])) - h.Set(digestHeader, b.String()) -} - -// IdProperty is a property that can readily have its id obtained -type IdProperty interface { - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() vocab.Type - // IsIRI returns true if this property is an IRI. - IsIRI() bool -} - -// ToId returns an IdProperty's id. -func ToId(i IdProperty) (*url.URL, error) { - if i.GetType() != nil { - return GetId(i.GetType()) - } else if i.IsIRI() { - return i.GetIRI(), nil - } - return nil, fmt.Errorf("cannot determine id of activitystreams property") -} - -// GetId will attempt to find the 'id' property or, if it happens to be a -// Link or derived from Link type, the 'href' property instead. -// -// Returns an error if the id is not set and either the 'href' property is not -// valid on this type, or it is also not set. -func GetId(t vocab.Type) (*url.URL, error) { - if id := t.GetJSONLDId(); id != nil { - return id.Get(), nil - } else if h, ok := t.(hrefer); ok { - if href := h.GetActivityStreamsHref(); href != nil { - return href.Get(), nil - } - } - return nil, fmt.Errorf("cannot determine id of activitystreams value") -} - -// getInboxForwardingValues obtains the 'inReplyTo', 'object', 'target', and -// 'tag' values on an ActivityStreams value. -func getInboxForwardingValues(o vocab.Type) (t []vocab.Type, iri []*url.URL) { - // 'inReplyTo' - if i, ok := o.(inReplyToer); ok { - if irt := i.GetActivityStreamsInReplyTo(); irt != nil { - for iter := irt.Begin(); iter != irt.End(); iter = iter.Next() { - if tv := iter.GetType(); tv != nil { - t = append(t, tv) - } else { - iri = append(iri, iter.GetIRI()) - } - } - } - } - // 'tag' - if i, ok := o.(tagger); ok { - if tag := i.GetActivityStreamsTag(); tag != nil { - for iter := tag.Begin(); iter != tag.End(); iter = iter.Next() { - if tv := iter.GetType(); tv != nil { - t = append(t, tv) - } else { - iri = append(iri, iter.GetIRI()) - } - } - } - } - // 'object' - if i, ok := o.(objecter); ok { - if obj := i.GetActivityStreamsObject(); obj != nil { - for iter := obj.Begin(); iter != obj.End(); iter = iter.Next() { - if tv := iter.GetType(); tv != nil { - t = append(t, tv) - } else { - iri = append(iri, iter.GetIRI()) - } - } - } - } - // 'target' - if i, ok := o.(targeter); ok { - if tar := i.GetActivityStreamsTarget(); tar != nil { - for iter := tar.Begin(); iter != tar.End(); iter = iter.Next() { - if tv := iter.GetType(); tv != nil { - t = append(t, tv) - } else { - iri = append(iri, iter.GetIRI()) - } - } - } - } - return -} - -// wrapInCreate will automatically wrap the provided object in a Create -// activity. This will copy over the 'to', 'bto', 'cc', 'bcc', and 'audience' -// properties. It will also copy over the published time if present. -func wrapInCreate(ctx context.Context, o vocab.Type, actor *url.URL) (c vocab.ActivityStreamsCreate, err error) { - c = streams.NewActivityStreamsCreate() - // Object property - oProp := streams.NewActivityStreamsObjectProperty() - oProp.AppendType(o) - c.SetActivityStreamsObject(oProp) - // Actor Property - actorProp := streams.NewActivityStreamsActorProperty() - actorProp.AppendIRI(actor) - c.SetActivityStreamsActor(actorProp) - // Published Property - if v, ok := o.(publisheder); ok { - c.SetActivityStreamsPublished(v.GetActivityStreamsPublished()) - } - // Copying over properties. - if v, ok := o.(toer); ok { - if to := v.GetActivityStreamsTo(); to != nil { - activityTo := streams.NewActivityStreamsToProperty() - for iter := to.Begin(); iter != to.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - activityTo.AppendIRI(id) - } - c.SetActivityStreamsTo(activityTo) - } - } - if v, ok := o.(btoer); ok { - if bto := v.GetActivityStreamsBto(); bto != nil { - activityBto := streams.NewActivityStreamsBtoProperty() - for iter := bto.Begin(); iter != bto.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - activityBto.AppendIRI(id) - } - c.SetActivityStreamsBto(activityBto) - } - } - if v, ok := o.(ccer); ok { - if cc := v.GetActivityStreamsCc(); cc != nil { - activityCc := streams.NewActivityStreamsCcProperty() - for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - activityCc.AppendIRI(id) - } - c.SetActivityStreamsCc(activityCc) - } - } - if v, ok := o.(bccer); ok { - if bcc := v.GetActivityStreamsBcc(); bcc != nil { - activityBcc := streams.NewActivityStreamsBccProperty() - for iter := bcc.Begin(); iter != bcc.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - activityBcc.AppendIRI(id) - } - c.SetActivityStreamsBcc(activityBcc) - } - } - if v, ok := o.(audiencer); ok { - if aud := v.GetActivityStreamsAudience(); aud != nil { - activityAudience := streams.NewActivityStreamsAudienceProperty() - for iter := aud.Begin(); iter != aud.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - activityAudience.AppendIRI(id) - } - c.SetActivityStreamsAudience(activityAudience) - } - } - return -} - -const ( - // PublicActivityPubIRI is the IRI that indicates an Activity is meant - // to be visible for general public consumption. - PublicActivityPubIRI = "https://www.w3.org/ns/activitystreams#Public" - publicJsonLD = "Public" - publicJsonLDAS = "as:Public" -) - -// IsPublic determines if an IRI string is the Public collection as defined in -// the spec, including JSON-LD compliant collections. -func IsPublic(s string) bool { - return s == PublicActivityPubIRI || s == publicJsonLD || s == publicJsonLDAS -} - -// Derives an ID URI from the given IdProperty and, if it's not the -// magic AP Public IRI, appends it to the actorsAndCollections slice. -func appendToActorsAndCollectionsIRIs( - iter IdProperty, - actorsAndCollections []*url.URL, -) ([]*url.URL, error) { - id, err := ToId(iter) - if err != nil { - return nil, err - } - - // Ignore Public IRI as we - // can't deliver to it directly. - if !IsPublic(id.String()) { - actorsAndCollections = append(actorsAndCollections, id) - } - - return actorsAndCollections, nil -} - -// actorsToInboxIRIs extracts the 'inbox' IRIs from actor types. -func actorsToInboxIRIs(t []vocab.Type) (u []*url.URL, err error) { - for _, elem := range t { - var iri *url.URL - iri, err = getInbox(elem) - if err != nil { - return - } - u = append(u, iri) - } - return -} - -// getInbox extracts the 'inbox' IRI from an actor type. -func getInbox(t vocab.Type) (u *url.URL, err error) { - ib, ok := t.(inboxer) - if !ok { - err = fmt.Errorf("actor type %T has no inbox", t) - return - } - inbox := ib.GetActivityStreamsInbox() - return ToId(inbox) -} - -// filterInboxIRIs will deduplicate the given inboxes -// slice, while also leaving out any filtered IRIs. -func filterInboxIRIs( - inboxes []*url.URL, - filtered ...*url.URL, -) []*url.URL { - // Prepopulate the ignored map with each filtered IRI. - ignored := make(map[string]struct{}, len(filtered)+len(inboxes)) - for _, filteredIRI := range filtered { - ignored[filteredIRI.String()] = struct{}{} - } - - deduped := make([]*url.URL, 0, len(inboxes)) - for _, inbox := range inboxes { - inboxStr := inbox.String() - _, ignore := ignored[inboxStr] - if ignore { - // We already included - // this URI in out, or - // we should ignore it. - continue - } - - // Include this IRI in output, and - // add entry to the ignored map to - // ensure we don't include it again. - deduped = append(deduped, inbox) - ignored[inboxStr] = struct{}{} - } - - return deduped -} - -// stripHiddenRecipients removes "bto" and "bcc" from the activity. -// -// Note that this requirement of the specification is under "Section 6: Client -// to Server Interactions", the Social API, and not the Federative API. -func stripHiddenRecipients(activity Activity) { - activity.SetActivityStreamsBto(nil) - activity.SetActivityStreamsBcc(nil) - op := activity.GetActivityStreamsObject() - if op != nil { - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if v, ok := iter.GetType().(btoer); ok { - v.SetActivityStreamsBto(nil) - } - if v, ok := iter.GetType().(bccer); ok { - v.SetActivityStreamsBcc(nil) - } - } - } -} - -// mustHaveActivityOriginMatchObjects ensures that the Host in the activity id -// IRI matches all of the Hosts in the object id IRIs. -func mustHaveActivityOriginMatchObjects(a Activity) error { - originIRI, err := GetId(a) - if err != nil { - return err - } - originHost := originIRI.Host - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return nil - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - iri, err := ToId(iter) - if err != nil { - return err - } - if originHost != iri.Host { - return fmt.Errorf("object %q: not in activity origin", iri) - } - } - return nil -} - -// normalizeRecipients ensures the activity and object have the same 'to', -// 'bto', 'cc', 'bcc', and 'audience' properties. Copy the Activity's recipients -// to objects, and the objects to the activity, but does NOT copy objects' -// recipients to each other. -func normalizeRecipients(a vocab.ActivityStreamsCreate) error { - // Phase 0: Acquire all recipients on the activity. - // - // Obtain the actorTo map - actorToMap := make(map[string]*url.URL) - actorTo := a.GetActivityStreamsTo() - if actorTo == nil { - actorTo = streams.NewActivityStreamsToProperty() - a.SetActivityStreamsTo(actorTo) - } - for iter := actorTo.Begin(); iter != actorTo.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - actorToMap[id.String()] = id - } - // Obtain the actorBto map - actorBtoMap := make(map[string]*url.URL) - actorBto := a.GetActivityStreamsBto() - if actorBto == nil { - actorBto = streams.NewActivityStreamsBtoProperty() - a.SetActivityStreamsBto(actorBto) - } - for iter := actorBto.Begin(); iter != actorBto.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - actorBtoMap[id.String()] = id - } - // Obtain the actorCc map - actorCcMap := make(map[string]*url.URL) - actorCc := a.GetActivityStreamsCc() - if actorCc == nil { - actorCc = streams.NewActivityStreamsCcProperty() - a.SetActivityStreamsCc(actorCc) - } - for iter := actorCc.Begin(); iter != actorCc.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - actorCcMap[id.String()] = id - } - // Obtain the actorBcc map - actorBccMap := make(map[string]*url.URL) - actorBcc := a.GetActivityStreamsBcc() - if actorBcc == nil { - actorBcc = streams.NewActivityStreamsBccProperty() - a.SetActivityStreamsBcc(actorBcc) - } - for iter := actorBcc.Begin(); iter != actorBcc.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - actorBccMap[id.String()] = id - } - // Obtain the actorAudience map - actorAudienceMap := make(map[string]*url.URL) - actorAudience := a.GetActivityStreamsAudience() - if actorAudience == nil { - actorAudience = streams.NewActivityStreamsAudienceProperty() - a.SetActivityStreamsAudience(actorAudience) - } - for iter := actorAudience.Begin(); iter != actorAudience.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - actorAudienceMap[id.String()] = id - } - // Obtain the objects maps for each recipient type. - o := a.GetActivityStreamsObject() - objsTo := make([]map[string]*url.URL, o.Len()) - objsBto := make([]map[string]*url.URL, o.Len()) - objsCc := make([]map[string]*url.URL, o.Len()) - objsBcc := make([]map[string]*url.URL, o.Len()) - objsAudience := make([]map[string]*url.URL, o.Len()) - for i := 0; i < o.Len(); i++ { - iter := o.At(i) - // Phase 1: Acquire all existing recipients on the object. - // - // Object to - objsTo[i] = make(map[string]*url.URL) - var oTo vocab.ActivityStreamsToProperty - if tr, ok := iter.GetType().(toer); !ok { - return fmt.Errorf("the Create object at %d has no 'to' property", i) - } else { - oTo = tr.GetActivityStreamsTo() - if oTo == nil { - oTo = streams.NewActivityStreamsToProperty() - tr.SetActivityStreamsTo(oTo) - } - } - for iter := oTo.Begin(); iter != oTo.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objsTo[i][id.String()] = id - } - // Object bto - objsBto[i] = make(map[string]*url.URL) - var oBto vocab.ActivityStreamsBtoProperty - if tr, ok := iter.GetType().(btoer); !ok { - return fmt.Errorf("the Create object at %d has no 'bto' property", i) - } else { - oBto = tr.GetActivityStreamsBto() - if oBto == nil { - oBto = streams.NewActivityStreamsBtoProperty() - tr.SetActivityStreamsBto(oBto) - } - } - for iter := oBto.Begin(); iter != oBto.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objsBto[i][id.String()] = id - } - // Object cc - objsCc[i] = make(map[string]*url.URL) - var oCc vocab.ActivityStreamsCcProperty - if tr, ok := iter.GetType().(ccer); !ok { - return fmt.Errorf("the Create object at %d has no 'cc' property", i) - } else { - oCc = tr.GetActivityStreamsCc() - if oCc == nil { - oCc = streams.NewActivityStreamsCcProperty() - tr.SetActivityStreamsCc(oCc) - } - } - for iter := oCc.Begin(); iter != oCc.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objsCc[i][id.String()] = id - } - // Object bcc - objsBcc[i] = make(map[string]*url.URL) - var oBcc vocab.ActivityStreamsBccProperty - if tr, ok := iter.GetType().(bccer); !ok { - return fmt.Errorf("the Create object at %d has no 'bcc' property", i) - } else { - oBcc = tr.GetActivityStreamsBcc() - if oBcc == nil { - oBcc = streams.NewActivityStreamsBccProperty() - tr.SetActivityStreamsBcc(oBcc) - } - } - for iter := oBcc.Begin(); iter != oBcc.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objsBcc[i][id.String()] = id - } - // Object audience - objsAudience[i] = make(map[string]*url.URL) - var oAudience vocab.ActivityStreamsAudienceProperty - if tr, ok := iter.GetType().(audiencer); !ok { - return fmt.Errorf("the Create object at %d has no 'audience' property", i) - } else { - oAudience = tr.GetActivityStreamsAudience() - if oAudience == nil { - oAudience = streams.NewActivityStreamsAudienceProperty() - tr.SetActivityStreamsAudience(oAudience) - } - } - for iter := oAudience.Begin(); iter != oAudience.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objsAudience[i][id.String()] = id - } - // Phase 2: Apply missing recipients to the object from the - // activity. - // - // Activity to -> Object to - for k, v := range actorToMap { - if _, ok := objsTo[i][k]; !ok { - oTo.AppendIRI(v) - } - } - // Activity bto -> Object bto - for k, v := range actorBtoMap { - if _, ok := objsBto[i][k]; !ok { - oBto.AppendIRI(v) - } - } - // Activity cc -> Object cc - for k, v := range actorCcMap { - if _, ok := objsCc[i][k]; !ok { - oCc.AppendIRI(v) - } - } - // Activity bcc -> Object bcc - for k, v := range actorBccMap { - if _, ok := objsBcc[i][k]; !ok { - oBcc.AppendIRI(v) - } - } - // Activity audience -> Object audience - for k, v := range actorAudienceMap { - if _, ok := objsAudience[i][k]; !ok { - oAudience.AppendIRI(v) - } - } - } - // Phase 3: Apply missing recipients to the activity from the objects. - // - // Object to -> Activity to - for i := 0; i < len(objsTo); i++ { - for k, v := range objsTo[i] { - if _, ok := actorToMap[k]; !ok { - actorTo.AppendIRI(v) - } - } - } - // Object bto -> Activity bto - for i := 0; i < len(objsBto); i++ { - for k, v := range objsBto[i] { - if _, ok := actorBtoMap[k]; !ok { - actorBto.AppendIRI(v) - } - } - } - // Object cc -> Activity cc - for i := 0; i < len(objsCc); i++ { - for k, v := range objsCc[i] { - if _, ok := actorCcMap[k]; !ok { - actorCc.AppendIRI(v) - } - } - } - // Object bcc -> Activity bcc - for i := 0; i < len(objsBcc); i++ { - for k, v := range objsBcc[i] { - if _, ok := actorBccMap[k]; !ok { - actorBcc.AppendIRI(v) - } - } - } - // Object audience -> Activity audience - for i := 0; i < len(objsAudience); i++ { - for k, v := range objsAudience[i] { - if _, ok := actorAudienceMap[k]; !ok { - actorAudience.AppendIRI(v) - } - } - } - return nil -} - -// toTombstone creates a Tombstone object for the given ActivityStreams value. -func toTombstone(obj vocab.Type, id *url.URL, now time.Time) vocab.ActivityStreamsTombstone { - tomb := streams.NewActivityStreamsTombstone() - // id property - idProp := streams.NewJSONLDIdProperty() - idProp.Set(id) - tomb.SetJSONLDId(idProp) - // formerType property - former := streams.NewActivityStreamsFormerTypeProperty() - tomb.SetActivityStreamsFormerType(former) - // Populate Former Type - former.AppendXMLSchemaString(obj.GetTypeName()) - // Copy over the published property if it existed - if pubber, ok := obj.(publisheder); ok { - if pub := pubber.GetActivityStreamsPublished(); pub != nil { - tomb.SetActivityStreamsPublished(pub) - } - } - // Copy over the updated property if it existed - if upder, ok := obj.(updateder); ok { - if upd := upder.GetActivityStreamsUpdated(); upd != nil { - tomb.SetActivityStreamsUpdated(upd) - } - } - // Set deleted time to now. - deleted := streams.NewActivityStreamsDeletedProperty() - deleted.Set(now) - tomb.SetActivityStreamsDeleted(deleted) - return tomb -} - -// mustHaveActivityActorsMatchObjectActors ensures that the actors on types in -// the 'object' property are all listed in the 'actor' property. -func mustHaveActivityActorsMatchObjectActors(c context.Context, - actors vocab.ActivityStreamsActorProperty, - op vocab.ActivityStreamsObjectProperty, - newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error), - boxIRI *url.URL, -) error { - activityActorMap := make(map[string]bool, actors.Len()) - for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - activityActorMap[id.String()] = true - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - iri, err := ToId(iter) - if err != nil { - return err - } - // Attempt to dereference the IRI, regardless whether it is a - // type or IRI - tport, err := newTransport(c, boxIRI, goFedUserAgent()) - if err != nil { - return err - } - resp, err := tport.Dereference(c, iri) - if err != nil { - return err - } - m, err := readActivityPubResp(resp) - if err != nil { - return err - } - t, err := streams.ToType(c, m) - if err != nil { - return err - } - ac, ok := t.(actorer) - if !ok { - return fmt.Errorf("cannot verify actors: object value has no 'actor' property") - } - objActors := ac.GetActivityStreamsActor() - for iter := objActors.Begin(); iter != objActors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - if !activityActorMap[id.String()] { - return fmt.Errorf("activity does not have all actors from its object's actors") - } - } - } - return nil -} - -// add implements the logic of adding object ids to a target Collection or -// OrderedCollection. This logic is shared by both the C2S and S2S protocols. -func add(c context.Context, - op vocab.ActivityStreamsObjectProperty, - target vocab.ActivityStreamsTargetProperty, - db Database, -) error { - opIds := make([]*url.URL, 0, op.Len()) - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - opIds = append(opIds, id) - } - targetIds := make([]*url.URL, 0, op.Len()) - for iter := target.Begin(); iter != target.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - targetIds = append(targetIds, id) - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(t *url.URL) error { - unlock, err := db.Lock(c, t) - if err != nil { - return err - } - defer unlock() - if owns, err := db.Owns(c, t); err != nil { - return err - } else if !owns { - return nil - } - tp, err := db.Get(c, t) - if err != nil { - return err - } - if streams.IsOrExtendsActivityStreamsOrderedCollection(tp) { - oi, ok := tp.(orderedItemser) - if !ok { - return fmt.Errorf("type extending from OrderedCollection cannot convert to orderedItemser interface") - } - oiProp := oi.GetActivityStreamsOrderedItems() - if oiProp == nil { - oiProp = streams.NewActivityStreamsOrderedItemsProperty() - oi.SetActivityStreamsOrderedItems(oiProp) - } - for _, objId := range opIds { - oiProp.AppendIRI(objId) - } - } else if streams.IsOrExtendsActivityStreamsCollection(tp) { - i, ok := tp.(itemser) - if !ok { - return fmt.Errorf("type extending from Collection cannot convert to itemser interface") - } - iProp := i.GetActivityStreamsItems() - if iProp == nil { - iProp = streams.NewActivityStreamsItemsProperty() - i.SetActivityStreamsItems(iProp) - } - for _, objId := range opIds { - iProp.AppendIRI(objId) - } - } else { - return fmt.Errorf("target in Add is neither a Collection nor an OrderedCollection") - } - err = db.Update(c, tp) - if err != nil { - return err - } - return nil - } - for _, t := range targetIds { - if err := loopFn(t); err != nil { - return err - } - } - return nil -} - -// remove implements the logic of removing object ids to a target Collection or -// OrderedCollection. This logic is shared by both the C2S and S2S protocols. -func remove(c context.Context, - op vocab.ActivityStreamsObjectProperty, - target vocab.ActivityStreamsTargetProperty, - db Database, -) error { - opIds := make(map[string]bool, op.Len()) - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - opIds[id.String()] = true - } - targetIds := make([]*url.URL, 0, op.Len()) - for iter := target.Begin(); iter != target.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - targetIds = append(targetIds, id) - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(t *url.URL) error { - unlock, err := db.Lock(c, t) - if err != nil { - return err - } - defer unlock() - if owns, err := db.Owns(c, t); err != nil { - return err - } else if !owns { - return nil - } - tp, err := db.Get(c, t) - if err != nil { - return err - } - if streams.IsOrExtendsActivityStreamsOrderedCollection(tp) { - oi, ok := tp.(orderedItemser) - if !ok { - return fmt.Errorf("type extending from OrderedCollection cannot convert to orderedItemser interface") - } - oiProp := oi.GetActivityStreamsOrderedItems() - if oiProp != nil { - for i := 0; i < oiProp.Len(); /*Conditional*/ { - id, err := ToId(oiProp.At(i)) - if err != nil { - return err - } - if opIds[id.String()] { - oiProp.Remove(i) - } else { - i++ - } - } - } - } else if streams.IsOrExtendsActivityStreamsCollection(tp) { - i, ok := tp.(itemser) - if !ok { - return fmt.Errorf("type extending from Collection cannot convert to itemser interface") - } - iProp := i.GetActivityStreamsItems() - if iProp != nil { - for i := 0; i < iProp.Len(); /*Conditional*/ { - id, err := ToId(iProp.At(i)) - if err != nil { - return err - } - if opIds[id.String()] { - iProp.Remove(i) - } else { - i++ - } - } - } - } else { - return fmt.Errorf("target in Remove is neither a Collection nor an OrderedCollection") - } - err = db.Update(c, tp) - if err != nil { - return err - } - return nil - } - for _, t := range targetIds { - if err := loopFn(t); err != nil { - return err - } - } - return nil -} - -// clearSensitiveFields removes the 'bto' and 'bcc' entries on the given value -// and recursively on every 'object' property value. -func clearSensitiveFields(obj vocab.Type) { - if t, ok := obj.(btoer); ok { - t.SetActivityStreamsBto(nil) - } - if t, ok := obj.(bccer); ok { - t.SetActivityStreamsBcc(nil) - } - if t, ok := obj.(objecter); ok { - op := t.GetActivityStreamsObject() - if op != nil { - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - clearSensitiveFields(iter.GetType()) - } - } - } -} - -// requestId forms an ActivityPub id based on the HTTP request. Always assumes -// that the id is HTTPS. -func requestId(r *http.Request, scheme string) *url.URL { - id := r.URL - id.Host = r.Host - id.Scheme = scheme - return id -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/pub/version.go b/vendor/codeberg.org/superseriousbusiness/activity/pub/version.go deleted file mode 100644 index 23b958ce5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/pub/version.go +++ /dev/null @@ -1,15 +0,0 @@ -package pub - -import ( - "fmt" -) - -const ( - // Version string, used in the User-Agent - version = "v1.0.0" -) - -// goFedUserAgent returns the user agent string for the go-fed library. -func goFedUserAgent() string { - return fmt.Sprintf("(go-fed/activity %s)", version) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/README.md b/vendor/codeberg.org/superseriousbusiness/activity/streams/README.md deleted file mode 100644 index 00ae95d85..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/README.md +++ /dev/null @@ -1,152 +0,0 @@ -# streams - -ActivityStreams vocabularies automatically code-generated with `astool`. - -## Reference & Tutorial - -The [go-fed website](https://go-fed.org/) contains tutorials and reference -materials, in addition to the rest of this README. - -## How To Use - -``` -go get github.com/go-fed/activity -``` - -All generated types and properties are interfaces in -`github.com/go-fed/streams/vocab`, but note that the constructors and supporting -functions live in `github.com/go-fed/streams`. - -To create a type and set properties: - -```golang -var actorURL *url.URL = // ... - -// A new "Create" Activity. -create := streams.NewActivityStreamsCreate() -// A new "actor" property. -actor := streams.NewActivityStreamsActorProperty() -actor.AppendIRI(actorURL) -// Set the "actor" property on the "Create" Activity. -create.SetActivityStreamsActor(actor) -``` - -To process properties on a type: - -```golang -// Returns true if the "Update" has at least one "object" with an IRI value. -func hasObjectWithIRIValue(update vocab.ActivityStreamsUpdate) bool { - objectProperty := update.GetActivityStreamsObject() - // Any property may be nil if it was either empty in the original JSON or - // never set on the golang type. - if objectProperty == nil { - return false - } - // The "object" property is non-functional: it could have multiple values. The - // generated code has slightly different methods for a functional property - // versus a non-functional one. - // - // While it may be easy to ignore multiple values in other languages - // (accidentally or purposefully), go-fed is designed to make it hard to do - // so. - for iter := objectProperty.Begin(); iter != objectProperty.End(); iter = iter.Next() { - // If this particular value is an IRI, return true. - if iter.IsIRI() { - return true - } - } - // All values are literal embedded values and not IRIs. - return false -} -``` - -The ActivityStreams type hierarchy of "extends" and "disjoint" is not the same -as the Object Oriented definition of inheritance. It is also not the same as -golang's interface duck-typing. Helper functions are provided to guarantee that -an application's logic can correctly apply the type hierarchy. - -```golang -thing := // Pick a type from streams.NewActivityStreams() -if streams.ActivityStreamsObjectIsDisjointWith(thing) { - fmt.Printf("The \"Object\" type is Disjoint with the %T type.\n", thing) -} -if streams.ActivityStreamsLinkIsExtendedBy(thing) { - fmt.Printf("The %T type Extends from the \"Link\" type.\n", thing) -} -if streams.ActivityStreamsActivityExtends(thing) { - fmt.Printf("The \"Activity\" type extends from the %T type.\n", thing) -} -``` - -When given a generic JSON payload, it can be resolved to a concrete type by -creating a `streams.JSONResolver` and giving it a callback function that accepts -the interesting concrete type: - -```golang -// Callbacks must be in the form: -// func(context.Context, ) error -createCallback := func(c context.Context, create vocab.ActivityStreamsCreate) error { - // Do something with 'create' - fmt.Printf("createCallback called: %T\n", create) - return nil -} -updateCallback := func(c context.Context, update vocab.ActivityStreamsUpdate) error { - // Do something with 'update' - fmt.Printf("updateCallback called: %T\n", update) - return nil -} -jsonResolver, err := streams.NewJSONResolver(createCallback, updateCallback) -if err != nil { - // Something in the setup was wrong. For example, a callback has an - // unsupported signature and would never be called - panic(err) -} -// Create a context, which allows you to pass data opaquely through the -// JSONResolver. -c := context.Background() -// Example 15 of the ActivityStreams specification. -b := []byte(`{ - "@context": "https://www.w3.org/ns/activitystreams", - "summary": "Sally created a note", - "type": "Create", - "actor": { - "type": "Person", - "name": "Sally" - }, - "object": { - "type": "Note", - "name": "A Simple Note", - "content": "This is a simple note" - } -}`) -var jsonMap map[string]interface{} -if err = json.Unmarshal(b, &jsonMap); err != nil { - panic(err) -} -// The createCallback function will be called. -err = jsonResolver.Resolve(c, jsonMap) -if err != nil && !streams.IsUnmatchedErr(err) { - // Something went wrong - panic(err) -} else if streams.IsUnmatchedErr(err) { - // Everything went right but the callback didn't match or the ActivityStreams - // type is one that wasn't code generated. - fmt.Println("No match: ", err) -} -``` - -A `streams.TypeResolver` is similar but uses the golang types instead. It -accepts the generic `vocab.Type`. This is the abstraction when needing to handle -any ActivityStreams type. The function `ToType` can convert a JSON-decoded-map -into this kind of value if needed. - -A `streams.PredicatedTypeResolver` lets you apply a boolean predicate function -that acts as a check whether a callback is allowed to be invoked. - -## FAQ - -### Why Are Empty Properties Nil And Not Zero-Valued? - -Due to implementation design decisions, it would require a lot of plumbing to -ensure this would work properly. It would also require allocation of a -non-trivial amount of memory. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go deleted file mode 100644 index 4c40dabb3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go +++ /dev/null @@ -1,552 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -// ActivityStreamsAcceptName is the string literal of the name for the Accept type in the ActivityStreams vocabulary. -var ActivityStreamsAcceptName string = "Accept" - -// ActivityStreamsActivityName is the string literal of the name for the Activity type in the ActivityStreams vocabulary. -var ActivityStreamsActivityName string = "Activity" - -// ActivityStreamsAddName is the string literal of the name for the Add type in the ActivityStreams vocabulary. -var ActivityStreamsAddName string = "Add" - -// FunkwhaleAlbumName is the string literal of the name for the Album type in the Funkwhale vocabulary. -var FunkwhaleAlbumName string = "Album" - -// ActivityStreamsAnnounceName is the string literal of the name for the Announce type in the ActivityStreams vocabulary. -var ActivityStreamsAnnounceName string = "Announce" - -// GoToSocialAnnounceApprovalName is the string literal of the name for the AnnounceApproval type in the GoToSocial vocabulary. -var GoToSocialAnnounceApprovalName string = "AnnounceApproval" - -// GoToSocialAnnounceAuthorizationName is the string literal of the name for the AnnounceAuthorization type in the GoToSocial vocabulary. -var GoToSocialAnnounceAuthorizationName string = "AnnounceAuthorization" - -// GoToSocialAnnounceRequestName is the string literal of the name for the AnnounceRequest type in the GoToSocial vocabulary. -var GoToSocialAnnounceRequestName string = "AnnounceRequest" - -// ActivityStreamsApplicationName is the string literal of the name for the Application type in the ActivityStreams vocabulary. -var ActivityStreamsApplicationName string = "Application" - -// ActivityStreamsArriveName is the string literal of the name for the Arrive type in the ActivityStreams vocabulary. -var ActivityStreamsArriveName string = "Arrive" - -// ActivityStreamsArticleName is the string literal of the name for the Article type in the ActivityStreams vocabulary. -var ActivityStreamsArticleName string = "Article" - -// FunkwhaleArtistName is the string literal of the name for the Artist type in the Funkwhale vocabulary. -var FunkwhaleArtistName string = "Artist" - -// ActivityStreamsAudioName is the string literal of the name for the Audio type in the ActivityStreams vocabulary. -var ActivityStreamsAudioName string = "Audio" - -// ActivityStreamsBlockName is the string literal of the name for the Block type in the ActivityStreams vocabulary. -var ActivityStreamsBlockName string = "Block" - -// GoToSocialCanAnnounceName is the string literal of the name for the CanAnnounce type in the GoToSocial vocabulary. -var GoToSocialCanAnnounceName string = "CanAnnounce" - -// GoToSocialCanLikeName is the string literal of the name for the CanLike type in the GoToSocial vocabulary. -var GoToSocialCanLikeName string = "CanLike" - -// GoToSocialCanQuoteName is the string literal of the name for the CanQuote type in the GoToSocial vocabulary. -var GoToSocialCanQuoteName string = "CanQuote" - -// GoToSocialCanReplyName is the string literal of the name for the CanReply type in the GoToSocial vocabulary. -var GoToSocialCanReplyName string = "CanReply" - -// ActivityStreamsCollectionName is the string literal of the name for the Collection type in the ActivityStreams vocabulary. -var ActivityStreamsCollectionName string = "Collection" - -// ActivityStreamsCollectionPageName is the string literal of the name for the CollectionPage type in the ActivityStreams vocabulary. -var ActivityStreamsCollectionPageName string = "CollectionPage" - -// ActivityStreamsCreateName is the string literal of the name for the Create type in the ActivityStreams vocabulary. -var ActivityStreamsCreateName string = "Create" - -// ActivityStreamsDeleteName is the string literal of the name for the Delete type in the ActivityStreams vocabulary. -var ActivityStreamsDeleteName string = "Delete" - -// ActivityStreamsDislikeName is the string literal of the name for the Dislike type in the ActivityStreams vocabulary. -var ActivityStreamsDislikeName string = "Dislike" - -// ActivityStreamsDocumentName is the string literal of the name for the Document type in the ActivityStreams vocabulary. -var ActivityStreamsDocumentName string = "Document" - -// TootEmojiName is the string literal of the name for the Emoji type in the Toot vocabulary. -var TootEmojiName string = "Emoji" - -// ActivityStreamsEndpointsName is the string literal of the name for the Endpoints type in the ActivityStreams vocabulary. -var ActivityStreamsEndpointsName string = "Endpoints" - -// ActivityStreamsEventName is the string literal of the name for the Event type in the ActivityStreams vocabulary. -var ActivityStreamsEventName string = "Event" - -// ActivityStreamsFlagName is the string literal of the name for the Flag type in the ActivityStreams vocabulary. -var ActivityStreamsFlagName string = "Flag" - -// ActivityStreamsFollowName is the string literal of the name for the Follow type in the ActivityStreams vocabulary. -var ActivityStreamsFollowName string = "Follow" - -// ActivityStreamsGroupName is the string literal of the name for the Group type in the ActivityStreams vocabulary. -var ActivityStreamsGroupName string = "Group" - -// TootHashtagName is the string literal of the name for the Hashtag type in the Toot vocabulary. -var TootHashtagName string = "Hashtag" - -// TootIdentityProofName is the string literal of the name for the IdentityProof type in the Toot vocabulary. -var TootIdentityProofName string = "IdentityProof" - -// ActivityStreamsIgnoreName is the string literal of the name for the Ignore type in the ActivityStreams vocabulary. -var ActivityStreamsIgnoreName string = "Ignore" - -// ActivityStreamsImageName is the string literal of the name for the Image type in the ActivityStreams vocabulary. -var ActivityStreamsImageName string = "Image" - -// GoToSocialInteractionPolicyName is the string literal of the name for the InteractionPolicy type in the GoToSocial vocabulary. -var GoToSocialInteractionPolicyName string = "InteractionPolicy" - -// ActivityStreamsIntransitiveActivityName is the string literal of the name for the IntransitiveActivity type in the ActivityStreams vocabulary. -var ActivityStreamsIntransitiveActivityName string = "IntransitiveActivity" - -// ActivityStreamsInviteName is the string literal of the name for the Invite type in the ActivityStreams vocabulary. -var ActivityStreamsInviteName string = "Invite" - -// ActivityStreamsJoinName is the string literal of the name for the Join type in the ActivityStreams vocabulary. -var ActivityStreamsJoinName string = "Join" - -// ActivityStreamsLeaveName is the string literal of the name for the Leave type in the ActivityStreams vocabulary. -var ActivityStreamsLeaveName string = "Leave" - -// FunkwhaleLibraryName is the string literal of the name for the Library type in the Funkwhale vocabulary. -var FunkwhaleLibraryName string = "Library" - -// ActivityStreamsLikeName is the string literal of the name for the Like type in the ActivityStreams vocabulary. -var ActivityStreamsLikeName string = "Like" - -// GoToSocialLikeApprovalName is the string literal of the name for the LikeApproval type in the GoToSocial vocabulary. -var GoToSocialLikeApprovalName string = "LikeApproval" - -// GoToSocialLikeAuthorizationName is the string literal of the name for the LikeAuthorization type in the GoToSocial vocabulary. -var GoToSocialLikeAuthorizationName string = "LikeAuthorization" - -// GoToSocialLikeRequestName is the string literal of the name for the LikeRequest type in the GoToSocial vocabulary. -var GoToSocialLikeRequestName string = "LikeRequest" - -// ActivityStreamsLinkName is the string literal of the name for the Link type in the ActivityStreams vocabulary. -var ActivityStreamsLinkName string = "Link" - -// ActivityStreamsListenName is the string literal of the name for the Listen type in the ActivityStreams vocabulary. -var ActivityStreamsListenName string = "Listen" - -// ActivityStreamsMentionName is the string literal of the name for the Mention type in the ActivityStreams vocabulary. -var ActivityStreamsMentionName string = "Mention" - -// ActivityStreamsMoveName is the string literal of the name for the Move type in the ActivityStreams vocabulary. -var ActivityStreamsMoveName string = "Move" - -// ActivityStreamsNoteName is the string literal of the name for the Note type in the ActivityStreams vocabulary. -var ActivityStreamsNoteName string = "Note" - -// ActivityStreamsObjectName is the string literal of the name for the Object type in the ActivityStreams vocabulary. -var ActivityStreamsObjectName string = "Object" - -// ActivityStreamsOfferName is the string literal of the name for the Offer type in the ActivityStreams vocabulary. -var ActivityStreamsOfferName string = "Offer" - -// ActivityStreamsOrderedCollectionName is the string literal of the name for the OrderedCollection type in the ActivityStreams vocabulary. -var ActivityStreamsOrderedCollectionName string = "OrderedCollection" - -// ActivityStreamsOrderedCollectionPageName is the string literal of the name for the OrderedCollectionPage type in the ActivityStreams vocabulary. -var ActivityStreamsOrderedCollectionPageName string = "OrderedCollectionPage" - -// ActivityStreamsOrganizationName is the string literal of the name for the Organization type in the ActivityStreams vocabulary. -var ActivityStreamsOrganizationName string = "Organization" - -// ActivityStreamsPageName is the string literal of the name for the Page type in the ActivityStreams vocabulary. -var ActivityStreamsPageName string = "Page" - -// ActivityStreamsPersonName is the string literal of the name for the Person type in the ActivityStreams vocabulary. -var ActivityStreamsPersonName string = "Person" - -// ActivityStreamsPlaceName is the string literal of the name for the Place type in the ActivityStreams vocabulary. -var ActivityStreamsPlaceName string = "Place" - -// ActivityStreamsProfileName is the string literal of the name for the Profile type in the ActivityStreams vocabulary. -var ActivityStreamsProfileName string = "Profile" - -// SchemaPropertyValueName is the string literal of the name for the PropertyValue type in the Schema vocabulary. -var SchemaPropertyValueName string = "PropertyValue" - -// W3IDSecurityV1PublicKeyName is the string literal of the name for the PublicKey type in the W3IDSecurityV1 vocabulary. -var W3IDSecurityV1PublicKeyName string = "PublicKey" - -// ActivityStreamsQuestionName is the string literal of the name for the Question type in the ActivityStreams vocabulary. -var ActivityStreamsQuestionName string = "Question" - -// ActivityStreamsReadName is the string literal of the name for the Read type in the ActivityStreams vocabulary. -var ActivityStreamsReadName string = "Read" - -// ActivityStreamsRejectName is the string literal of the name for the Reject type in the ActivityStreams vocabulary. -var ActivityStreamsRejectName string = "Reject" - -// ActivityStreamsRelationshipName is the string literal of the name for the Relationship type in the ActivityStreams vocabulary. -var ActivityStreamsRelationshipName string = "Relationship" - -// ActivityStreamsRemoveName is the string literal of the name for the Remove type in the ActivityStreams vocabulary. -var ActivityStreamsRemoveName string = "Remove" - -// GoToSocialReplyApprovalName is the string literal of the name for the ReplyApproval type in the GoToSocial vocabulary. -var GoToSocialReplyApprovalName string = "ReplyApproval" - -// GoToSocialReplyAuthorizationName is the string literal of the name for the ReplyAuthorization type in the GoToSocial vocabulary. -var GoToSocialReplyAuthorizationName string = "ReplyAuthorization" - -// GoToSocialReplyRequestName is the string literal of the name for the ReplyRequest type in the GoToSocial vocabulary. -var GoToSocialReplyRequestName string = "ReplyRequest" - -// ActivityStreamsServiceName is the string literal of the name for the Service type in the ActivityStreams vocabulary. -var ActivityStreamsServiceName string = "Service" - -// ActivityStreamsTentativeAcceptName is the string literal of the name for the TentativeAccept type in the ActivityStreams vocabulary. -var ActivityStreamsTentativeAcceptName string = "TentativeAccept" - -// ActivityStreamsTentativeRejectName is the string literal of the name for the TentativeReject type in the ActivityStreams vocabulary. -var ActivityStreamsTentativeRejectName string = "TentativeReject" - -// ActivityStreamsTombstoneName is the string literal of the name for the Tombstone type in the ActivityStreams vocabulary. -var ActivityStreamsTombstoneName string = "Tombstone" - -// FunkwhaleTrackName is the string literal of the name for the Track type in the Funkwhale vocabulary. -var FunkwhaleTrackName string = "Track" - -// ActivityStreamsTravelName is the string literal of the name for the Travel type in the ActivityStreams vocabulary. -var ActivityStreamsTravelName string = "Travel" - -// ActivityStreamsUndoName is the string literal of the name for the Undo type in the ActivityStreams vocabulary. -var ActivityStreamsUndoName string = "Undo" - -// ActivityStreamsUpdateName is the string literal of the name for the Update type in the ActivityStreams vocabulary. -var ActivityStreamsUpdateName string = "Update" - -// ActivityStreamsVideoName is the string literal of the name for the Video type in the ActivityStreams vocabulary. -var ActivityStreamsVideoName string = "Video" - -// ActivityStreamsViewName is the string literal of the name for the View type in the ActivityStreams vocabulary. -var ActivityStreamsViewName string = "View" - -// ActivityStreamsAccuracyPropertyName is the string literal of the name for the accuracy property in the ActivityStreams vocabulary. -var ActivityStreamsAccuracyPropertyName string = "accuracy" - -// ActivityStreamsActorPropertyName is the string literal of the name for the actor property in the ActivityStreams vocabulary. -var ActivityStreamsActorPropertyName string = "actor" - -// ActivityStreamsAlsoKnownAsPropertyName is the string literal of the name for the alsoKnownAs property in the ActivityStreams vocabulary. -var ActivityStreamsAlsoKnownAsPropertyName string = "alsoKnownAs" - -// ActivityStreamsAltitudePropertyName is the string literal of the name for the altitude property in the ActivityStreams vocabulary. -var ActivityStreamsAltitudePropertyName string = "altitude" - -// GoToSocialAlwaysPropertyName is the string literal of the name for the always property in the GoToSocial vocabulary. -var GoToSocialAlwaysPropertyName string = "always" - -// ActivityStreamsAnyOfPropertyName is the string literal of the name for the anyOf property in the ActivityStreams vocabulary. -var ActivityStreamsAnyOfPropertyName string = "anyOf" - -// GoToSocialApprovalRequiredPropertyName is the string literal of the name for the approvalRequired property in the GoToSocial vocabulary. -var GoToSocialApprovalRequiredPropertyName string = "approvalRequired" - -// GoToSocialApprovedByPropertyName is the string literal of the name for the approvedBy property in the GoToSocial vocabulary. -var GoToSocialApprovedByPropertyName string = "approvedBy" - -// ActivityStreamsAttachmentPropertyName is the string literal of the name for the attachment property in the ActivityStreams vocabulary. -var ActivityStreamsAttachmentPropertyName string = "attachment" - -// ActivityStreamsAttributedToPropertyName is the string literal of the name for the attributedTo property in the ActivityStreams vocabulary. -var ActivityStreamsAttributedToPropertyName string = "attributedTo" - -// ActivityStreamsAudiencePropertyName is the string literal of the name for the audience property in the ActivityStreams vocabulary. -var ActivityStreamsAudiencePropertyName string = "audience" - -// GoToSocialAutomaticApprovalPropertyName is the string literal of the name for the automaticApproval property in the GoToSocial vocabulary. -var GoToSocialAutomaticApprovalPropertyName string = "automaticApproval" - -// ActivityStreamsBccPropertyName is the string literal of the name for the bcc property in the ActivityStreams vocabulary. -var ActivityStreamsBccPropertyName string = "bcc" - -// TootBlurhashPropertyName is the string literal of the name for the blurhash property in the Toot vocabulary. -var TootBlurhashPropertyName string = "blurhash" - -// ActivityStreamsBtoPropertyName is the string literal of the name for the bto property in the ActivityStreams vocabulary. -var ActivityStreamsBtoPropertyName string = "bto" - -// GoToSocialCanAnnouncePropertyName is the string literal of the name for the canAnnounce property in the GoToSocial vocabulary. -var GoToSocialCanAnnouncePropertyName string = "canAnnounce" - -// GoToSocialCanLikePropertyName is the string literal of the name for the canLike property in the GoToSocial vocabulary. -var GoToSocialCanLikePropertyName string = "canLike" - -// GoToSocialCanQuotePropertyName is the string literal of the name for the canQuote property in the GoToSocial vocabulary. -var GoToSocialCanQuotePropertyName string = "canQuote" - -// GoToSocialCanReplyPropertyName is the string literal of the name for the canReply property in the GoToSocial vocabulary. -var GoToSocialCanReplyPropertyName string = "canReply" - -// ActivityStreamsCcPropertyName is the string literal of the name for the cc property in the ActivityStreams vocabulary. -var ActivityStreamsCcPropertyName string = "cc" - -// ActivityStreamsClosedPropertyName is the string literal of the name for the closed property in the ActivityStreams vocabulary. -var ActivityStreamsClosedPropertyName string = "closed" - -// ActivityStreamsContentPropertyName is the string literal of the name for the content property in the ActivityStreams vocabulary. -var ActivityStreamsContentPropertyName string = "content" - -// ActivityStreamsContentPropertyMapName is the string literal of the name for the content property in the ActivityStreams vocabulary when it is a natural language map. -var ActivityStreamsContentPropertyMapName string = "contentMap" - -// ActivityStreamsContextPropertyName is the string literal of the name for the context property in the ActivityStreams vocabulary. -var ActivityStreamsContextPropertyName string = "context" - -// ActivityStreamsCurrentPropertyName is the string literal of the name for the current property in the ActivityStreams vocabulary. -var ActivityStreamsCurrentPropertyName string = "current" - -// ActivityStreamsDeletedPropertyName is the string literal of the name for the deleted property in the ActivityStreams vocabulary. -var ActivityStreamsDeletedPropertyName string = "deleted" - -// ActivityStreamsDescribesPropertyName is the string literal of the name for the describes property in the ActivityStreams vocabulary. -var ActivityStreamsDescribesPropertyName string = "describes" - -// TootDiscoverablePropertyName is the string literal of the name for the discoverable property in the Toot vocabulary. -var TootDiscoverablePropertyName string = "discoverable" - -// ActivityStreamsDurationPropertyName is the string literal of the name for the duration property in the ActivityStreams vocabulary. -var ActivityStreamsDurationPropertyName string = "duration" - -// ActivityStreamsEndTimePropertyName is the string literal of the name for the endTime property in the ActivityStreams vocabulary. -var ActivityStreamsEndTimePropertyName string = "endTime" - -// ActivityStreamsEndpointsPropertyName is the string literal of the name for the endpoints property in the ActivityStreams vocabulary. -var ActivityStreamsEndpointsPropertyName string = "endpoints" - -// TootFeaturedPropertyName is the string literal of the name for the featured property in the Toot vocabulary. -var TootFeaturedPropertyName string = "featured" - -// ActivityStreamsFirstPropertyName is the string literal of the name for the first property in the ActivityStreams vocabulary. -var ActivityStreamsFirstPropertyName string = "first" - -// TootFocalPointPropertyName is the string literal of the name for the focalPoint property in the Toot vocabulary. -var TootFocalPointPropertyName string = "focalPoint" - -// ActivityStreamsFollowersPropertyName is the string literal of the name for the followers property in the ActivityStreams vocabulary. -var ActivityStreamsFollowersPropertyName string = "followers" - -// ActivityStreamsFollowingPropertyName is the string literal of the name for the following property in the ActivityStreams vocabulary. -var ActivityStreamsFollowingPropertyName string = "following" - -// ActivityStreamsFormerTypePropertyName is the string literal of the name for the formerType property in the ActivityStreams vocabulary. -var ActivityStreamsFormerTypePropertyName string = "formerType" - -// ActivityStreamsGeneratorPropertyName is the string literal of the name for the generator property in the ActivityStreams vocabulary. -var ActivityStreamsGeneratorPropertyName string = "generator" - -// ActivityStreamsHeightPropertyName is the string literal of the name for the height property in the ActivityStreams vocabulary. -var ActivityStreamsHeightPropertyName string = "height" - -// ActivityStreamsHrefPropertyName is the string literal of the name for the href property in the ActivityStreams vocabulary. -var ActivityStreamsHrefPropertyName string = "href" - -// ActivityStreamsHreflangPropertyName is the string literal of the name for the hreflang property in the ActivityStreams vocabulary. -var ActivityStreamsHreflangPropertyName string = "hreflang" - -// ActivityStreamsIconPropertyName is the string literal of the name for the icon property in the ActivityStreams vocabulary. -var ActivityStreamsIconPropertyName string = "icon" - -// ActivityStreamsImagePropertyName is the string literal of the name for the image property in the ActivityStreams vocabulary. -var ActivityStreamsImagePropertyName string = "image" - -// ActivityStreamsInReplyToPropertyName is the string literal of the name for the inReplyTo property in the ActivityStreams vocabulary. -var ActivityStreamsInReplyToPropertyName string = "inReplyTo" - -// ActivityStreamsInboxPropertyName is the string literal of the name for the inbox property in the ActivityStreams vocabulary. -var ActivityStreamsInboxPropertyName string = "inbox" - -// TootIndexablePropertyName is the string literal of the name for the indexable property in the Toot vocabulary. -var TootIndexablePropertyName string = "indexable" - -// ActivityStreamsInstrumentPropertyName is the string literal of the name for the instrument property in the ActivityStreams vocabulary. -var ActivityStreamsInstrumentPropertyName string = "instrument" - -// GoToSocialInteractingObjectPropertyName is the string literal of the name for the interactingObject property in the GoToSocial vocabulary. -var GoToSocialInteractingObjectPropertyName string = "interactingObject" - -// GoToSocialInteractionPolicyPropertyName is the string literal of the name for the interactionPolicy property in the GoToSocial vocabulary. -var GoToSocialInteractionPolicyPropertyName string = "interactionPolicy" - -// GoToSocialInteractionTargetPropertyName is the string literal of the name for the interactionTarget property in the GoToSocial vocabulary. -var GoToSocialInteractionTargetPropertyName string = "interactionTarget" - -// ActivityStreamsItemsPropertyName is the string literal of the name for the items property in the ActivityStreams vocabulary. -var ActivityStreamsItemsPropertyName string = "items" - -// ActivityStreamsLastPropertyName is the string literal of the name for the last property in the ActivityStreams vocabulary. -var ActivityStreamsLastPropertyName string = "last" - -// ActivityStreamsLatitudePropertyName is the string literal of the name for the latitude property in the ActivityStreams vocabulary. -var ActivityStreamsLatitudePropertyName string = "latitude" - -// ActivityStreamsLikedPropertyName is the string literal of the name for the liked property in the ActivityStreams vocabulary. -var ActivityStreamsLikedPropertyName string = "liked" - -// ActivityStreamsLikesPropertyName is the string literal of the name for the likes property in the ActivityStreams vocabulary. -var ActivityStreamsLikesPropertyName string = "likes" - -// ActivityStreamsLocationPropertyName is the string literal of the name for the location property in the ActivityStreams vocabulary. -var ActivityStreamsLocationPropertyName string = "location" - -// ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary. -var ActivityStreamsLongitudePropertyName string = "longitude" - -// GoToSocialManualApprovalPropertyName is the string literal of the name for the manualApproval property in the GoToSocial vocabulary. -var GoToSocialManualApprovalPropertyName string = "manualApproval" - -// ActivityStreamsManuallyApprovesFollowersPropertyName is the string literal of the name for the manuallyApprovesFollowers property in the ActivityStreams vocabulary. -var ActivityStreamsManuallyApprovesFollowersPropertyName string = "manuallyApprovesFollowers" - -// ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary. -var ActivityStreamsMediaTypePropertyName string = "mediaType" - -// ActivityStreamsMovedToPropertyName is the string literal of the name for the movedTo property in the ActivityStreams vocabulary. -var ActivityStreamsMovedToPropertyName string = "movedTo" - -// ActivityStreamsNamePropertyName is the string literal of the name for the name property in the ActivityStreams vocabulary. -var ActivityStreamsNamePropertyName string = "name" - -// ActivityStreamsNamePropertyMapName is the string literal of the name for the name property in the ActivityStreams vocabulary when it is a natural language map. -var ActivityStreamsNamePropertyMapName string = "nameMap" - -// ActivityStreamsNextPropertyName is the string literal of the name for the next property in the ActivityStreams vocabulary. -var ActivityStreamsNextPropertyName string = "next" - -// ActivityStreamsObjectPropertyName is the string literal of the name for the object property in the ActivityStreams vocabulary. -var ActivityStreamsObjectPropertyName string = "object" - -// ActivityStreamsOneOfPropertyName is the string literal of the name for the oneOf property in the ActivityStreams vocabulary. -var ActivityStreamsOneOfPropertyName string = "oneOf" - -// ActivityStreamsOrderedItemsPropertyName is the string literal of the name for the orderedItems property in the ActivityStreams vocabulary. -var ActivityStreamsOrderedItemsPropertyName string = "orderedItems" - -// ActivityStreamsOriginPropertyName is the string literal of the name for the origin property in the ActivityStreams vocabulary. -var ActivityStreamsOriginPropertyName string = "origin" - -// ActivityStreamsOutboxPropertyName is the string literal of the name for the outbox property in the ActivityStreams vocabulary. -var ActivityStreamsOutboxPropertyName string = "outbox" - -// W3IDSecurityV1OwnerPropertyName is the string literal of the name for the owner property in the W3IDSecurityV1 vocabulary. -var W3IDSecurityV1OwnerPropertyName string = "owner" - -// ActivityStreamsPartOfPropertyName is the string literal of the name for the partOf property in the ActivityStreams vocabulary. -var ActivityStreamsPartOfPropertyName string = "partOf" - -// ActivityStreamsPreferredUsernamePropertyName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary. -var ActivityStreamsPreferredUsernamePropertyName string = "preferredUsername" - -// ActivityStreamsPreferredUsernamePropertyMapName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary when it is a natural language map. -var ActivityStreamsPreferredUsernamePropertyMapName string = "preferredUsernameMap" - -// ActivityStreamsPrevPropertyName is the string literal of the name for the prev property in the ActivityStreams vocabulary. -var ActivityStreamsPrevPropertyName string = "prev" - -// ActivityStreamsPreviewPropertyName is the string literal of the name for the preview property in the ActivityStreams vocabulary. -var ActivityStreamsPreviewPropertyName string = "preview" - -// W3IDSecurityV1PublicKeyPropertyName is the string literal of the name for the publicKey property in the W3IDSecurityV1 vocabulary. -var W3IDSecurityV1PublicKeyPropertyName string = "publicKey" - -// W3IDSecurityV1PublicKeyPemPropertyName is the string literal of the name for the publicKeyPem property in the W3IDSecurityV1 vocabulary. -var W3IDSecurityV1PublicKeyPemPropertyName string = "publicKeyPem" - -// ActivityStreamsPublishedPropertyName is the string literal of the name for the published property in the ActivityStreams vocabulary. -var ActivityStreamsPublishedPropertyName string = "published" - -// ActivityStreamsRadiusPropertyName is the string literal of the name for the radius property in the ActivityStreams vocabulary. -var ActivityStreamsRadiusPropertyName string = "radius" - -// ActivityStreamsRelPropertyName is the string literal of the name for the rel property in the ActivityStreams vocabulary. -var ActivityStreamsRelPropertyName string = "rel" - -// ActivityStreamsRelationshipPropertyName is the string literal of the name for the relationship property in the ActivityStreams vocabulary. -var ActivityStreamsRelationshipPropertyName string = "relationship" - -// ActivityStreamsRepliesPropertyName is the string literal of the name for the replies property in the ActivityStreams vocabulary. -var ActivityStreamsRepliesPropertyName string = "replies" - -// ActivityStreamsResultPropertyName is the string literal of the name for the result property in the ActivityStreams vocabulary. -var ActivityStreamsResultPropertyName string = "result" - -// ActivityStreamsSensitivePropertyName is the string literal of the name for the sensitive property in the ActivityStreams vocabulary. -var ActivityStreamsSensitivePropertyName string = "sensitive" - -// ActivityStreamsSharedInboxPropertyName is the string literal of the name for the sharedInbox property in the ActivityStreams vocabulary. -var ActivityStreamsSharedInboxPropertyName string = "sharedInbox" - -// ActivityStreamsSharesPropertyName is the string literal of the name for the shares property in the ActivityStreams vocabulary. -var ActivityStreamsSharesPropertyName string = "shares" - -// TootSignatureAlgorithmPropertyName is the string literal of the name for the signatureAlgorithm property in the Toot vocabulary. -var TootSignatureAlgorithmPropertyName string = "signatureAlgorithm" - -// TootSignatureValuePropertyName is the string literal of the name for the signatureValue property in the Toot vocabulary. -var TootSignatureValuePropertyName string = "signatureValue" - -// ActivityStreamsSourcePropertyName is the string literal of the name for the source property in the ActivityStreams vocabulary. -var ActivityStreamsSourcePropertyName string = "source" - -// ActivityStreamsStartIndexPropertyName is the string literal of the name for the startIndex property in the ActivityStreams vocabulary. -var ActivityStreamsStartIndexPropertyName string = "startIndex" - -// ActivityStreamsStartTimePropertyName is the string literal of the name for the startTime property in the ActivityStreams vocabulary. -var ActivityStreamsStartTimePropertyName string = "startTime" - -// ActivityStreamsStreamsPropertyName is the string literal of the name for the streams property in the ActivityStreams vocabulary. -var ActivityStreamsStreamsPropertyName string = "streams" - -// ActivityStreamsSubjectPropertyName is the string literal of the name for the subject property in the ActivityStreams vocabulary. -var ActivityStreamsSubjectPropertyName string = "subject" - -// ActivityStreamsSummaryPropertyName is the string literal of the name for the summary property in the ActivityStreams vocabulary. -var ActivityStreamsSummaryPropertyName string = "summary" - -// ActivityStreamsSummaryPropertyMapName is the string literal of the name for the summary property in the ActivityStreams vocabulary when it is a natural language map. -var ActivityStreamsSummaryPropertyMapName string = "summaryMap" - -// ActivityStreamsTagPropertyName is the string literal of the name for the tag property in the ActivityStreams vocabulary. -var ActivityStreamsTagPropertyName string = "tag" - -// ActivityStreamsTargetPropertyName is the string literal of the name for the target property in the ActivityStreams vocabulary. -var ActivityStreamsTargetPropertyName string = "target" - -// ActivityStreamsToPropertyName is the string literal of the name for the to property in the ActivityStreams vocabulary. -var ActivityStreamsToPropertyName string = "to" - -// ActivityStreamsTotalItemsPropertyName is the string literal of the name for the totalItems property in the ActivityStreams vocabulary. -var ActivityStreamsTotalItemsPropertyName string = "totalItems" - -// ActivityStreamsUnitsPropertyName is the string literal of the name for the units property in the ActivityStreams vocabulary. -var ActivityStreamsUnitsPropertyName string = "units" - -// ActivityStreamsUpdatedPropertyName is the string literal of the name for the updated property in the ActivityStreams vocabulary. -var ActivityStreamsUpdatedPropertyName string = "updated" - -// ActivityStreamsUrlPropertyName is the string literal of the name for the url property in the ActivityStreams vocabulary. -var ActivityStreamsUrlPropertyName string = "url" - -// SchemaValuePropertyName is the string literal of the name for the value property in the Schema vocabulary. -var SchemaValuePropertyName string = "value" - -// TootVotersCountPropertyName is the string literal of the name for the votersCount property in the Toot vocabulary. -var TootVotersCountPropertyName string = "votersCount" - -// ActivityStreamsWidthPropertyName is the string literal of the name for the width property in the ActivityStreams vocabulary. -var ActivityStreamsWidthPropertyName string = "width" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_doc.go deleted file mode 100644 index 40fce7258..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_doc.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package streams contains constructors and functions necessary for applications -// to serialize, deserialize, and use ActivityStreams types in Go. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is useful to three classes of developers: end-user-application -// developers, specification writers creating an ActivityStream Extension, and -// ActivityPub implementors wanting to create an alternate ActivityStreams -// implementation that still satisfies the interfaces generated by the go-fed -// tool. -// -// Application developers should limit their use to the Resolver type, the -// constructors beginning with "New", the "Extends" functions, the -// "DisjointWith" functions, the "ExtendedBy" functions, and any interfaces -// returned in those functions in this package. This lets applications use -// Resolvers to Deserialize or Dispatch specific types. The types themselves -// can Serialize as needed. The "Extends", "DisjointWith", and "ExtendedBy" -// functions help navigate the ActivityStreams hierarchy since it is not -// equivalent to object-oriented inheritance. -// -// When creating an ActivityStreams extension, developers will want to ensure -// that the generated code builds correctly and check that the properties, -// types, extensions, and disjointedness is set up correctly. Writing unit -// tests with concrete types is then the next step. If the tool has an error -// generating this code, a fix is needed in the tool as it is likely there is -// a new RDF type being used in the extension that the tool does not know how -// to resolve. Thus, most development will focus on the go-fed tool itself. -// -// Finally, ActivityStreams implementors that want drop-in replacement while -// still using the generated interfaces are highly encouraged to examine the -// Manager type in this package (in addition to the constructors) as these are -// the locations where concrete types are instantiated. When supplying a -// different type in these two locations, the other generated code will -// propagate it throughout the rest of an application. The Manager is -// instantiated as a singleton at init time in this library. It is then -// injected into each implementation library so they can deserialize their -// needed types without relying on the underlying concrete type. -// -// Subdirectories of this package include implementation files and functions -// that are not intended to be directly linked to applications, but are used -// by this particular package. It is strongly recommended to only use the -// property interfaces and type interfaces in subdirectories and limiting -// concrete types to those in this package. The go-fed tool is likely to -// contain a pruning feature in the future which will analyze an application -// and eliminate code that would be dead if it were to be generated which -// reduces the compilation time, compilation resources, and binary size of an -// application. Such a feature will not be compatible with applications that -// use the concrete implementation types. -package streams diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go deleted file mode 100644 index 5b55dee31..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go +++ /dev/null @@ -1,457 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyaccuracy "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy" - propertyactor "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor" - propertyalsoknownas "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas" - propertyaltitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude" - propertyanyof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof" - propertyattachment "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment" - propertyattributedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto" - propertyaudience "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience" - propertybcc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc" - propertybto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto" - propertycc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc" - propertyclosed "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed" - propertycontent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content" - propertycontext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context" - propertycurrent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current" - propertydeleted "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted" - propertydescribes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes" - propertyduration "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration" - propertyendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints" - propertyendtime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime" - propertyfirst "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first" - propertyfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers" - propertyfollowing "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following" - propertyformertype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype" - propertygenerator "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator" - propertyheight "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height" - propertyhref "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href" - propertyhreflang "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang" - propertyicon "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon" - propertyimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image" - propertyinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox" - propertyinreplyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto" - propertyinstrument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument" - propertyitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items" - propertylast "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last" - propertylatitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude" - propertyliked "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked" - propertylikes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes" - propertylocation "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location" - propertylongitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude" - propertymanuallyapprovesfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" - propertymediatype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype" - propertymovedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto" - propertyname "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name" - propertynext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next" - propertyobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object" - propertyoneof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof" - propertyordereditems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems" - propertyorigin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin" - propertyoutbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox" - propertypartof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof" - propertypreferredusername "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername" - propertyprev "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev" - propertypreview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview" - propertypublished "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published" - propertyradius "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius" - propertyrel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel" - propertyrelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship" - propertyreplies "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies" - propertyresult "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result" - propertysensitive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive" - propertysharedinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox" - propertyshares "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares" - propertysource "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source" - propertystartindex "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex" - propertystarttime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime" - propertystreams "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams" - propertysubject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject" - propertysummary "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary" - propertytag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag" - propertytarget "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target" - propertyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to" - propertytotalitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems" - propertyunits "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units" - propertyupdated "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated" - propertyurl "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url" - propertywidth "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width" - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always" - propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired" - propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby" - propertyautomaticapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval" - propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce" - propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike" - propertycanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote" - propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply" - propertyinteractingobject "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject" - propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy" - propertyinteractiontarget "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget" - propertymanualapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval" - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization" - typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization" - typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization" - typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest" - propertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value" - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - propertyblurhash "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash" - propertydiscoverable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable" - propertyfeatured "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured" - propertyfocalpoint "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint" - propertyindexable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable" - propertysignaturealgorithm "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm" - propertysignaturevalue "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue" - propertyvoterscount "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount" - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - propertyowner "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner" - propertypublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey" - propertypublickeypem "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem" - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" -) - -var mgr *Manager - -// init handles the 'magic' of creating a Manager and dependency-injecting it into -// every other code-generated package. This gives the implementations access -// to create any type needed to deserialize, without relying on the other -// specific concrete implementations. In order to replace a go-fed created -// type with your own, be sure to have the manager call your own -// implementation's deserialize functions instead of the built-in type. -// Finally, each implementation views the Manager as an interface with only a -// subset of funcitons available. This means this Manager implements the union -// of those interfaces. -func init() { - mgr = &Manager{} - propertyaccuracy.SetManager(mgr) - propertyactor.SetManager(mgr) - propertyalsoknownas.SetManager(mgr) - propertyaltitude.SetManager(mgr) - propertyanyof.SetManager(mgr) - propertyattachment.SetManager(mgr) - propertyattributedto.SetManager(mgr) - propertyaudience.SetManager(mgr) - propertybcc.SetManager(mgr) - propertybto.SetManager(mgr) - propertycc.SetManager(mgr) - propertyclosed.SetManager(mgr) - propertycontent.SetManager(mgr) - propertycontext.SetManager(mgr) - propertycurrent.SetManager(mgr) - propertydeleted.SetManager(mgr) - propertydescribes.SetManager(mgr) - propertyduration.SetManager(mgr) - propertyendpoints.SetManager(mgr) - propertyendtime.SetManager(mgr) - propertyfirst.SetManager(mgr) - propertyfollowers.SetManager(mgr) - propertyfollowing.SetManager(mgr) - propertyformertype.SetManager(mgr) - propertygenerator.SetManager(mgr) - propertyheight.SetManager(mgr) - propertyhref.SetManager(mgr) - propertyhreflang.SetManager(mgr) - propertyicon.SetManager(mgr) - propertyimage.SetManager(mgr) - propertyinbox.SetManager(mgr) - propertyinreplyto.SetManager(mgr) - propertyinstrument.SetManager(mgr) - propertyitems.SetManager(mgr) - propertylast.SetManager(mgr) - propertylatitude.SetManager(mgr) - propertyliked.SetManager(mgr) - propertylikes.SetManager(mgr) - propertylocation.SetManager(mgr) - propertylongitude.SetManager(mgr) - propertymanuallyapprovesfollowers.SetManager(mgr) - propertymediatype.SetManager(mgr) - propertymovedto.SetManager(mgr) - propertyname.SetManager(mgr) - propertynext.SetManager(mgr) - propertyobject.SetManager(mgr) - propertyoneof.SetManager(mgr) - propertyordereditems.SetManager(mgr) - propertyorigin.SetManager(mgr) - propertyoutbox.SetManager(mgr) - propertypartof.SetManager(mgr) - propertypreferredusername.SetManager(mgr) - propertyprev.SetManager(mgr) - propertypreview.SetManager(mgr) - propertypublished.SetManager(mgr) - propertyradius.SetManager(mgr) - propertyrel.SetManager(mgr) - propertyrelationship.SetManager(mgr) - propertyreplies.SetManager(mgr) - propertyresult.SetManager(mgr) - propertysensitive.SetManager(mgr) - propertysharedinbox.SetManager(mgr) - propertyshares.SetManager(mgr) - propertysource.SetManager(mgr) - propertystartindex.SetManager(mgr) - propertystarttime.SetManager(mgr) - propertystreams.SetManager(mgr) - propertysubject.SetManager(mgr) - propertysummary.SetManager(mgr) - propertytag.SetManager(mgr) - propertytarget.SetManager(mgr) - propertyto.SetManager(mgr) - propertytotalitems.SetManager(mgr) - propertyunits.SetManager(mgr) - propertyupdated.SetManager(mgr) - propertyurl.SetManager(mgr) - propertywidth.SetManager(mgr) - typeaccept.SetManager(mgr) - typeactivity.SetManager(mgr) - typeadd.SetManager(mgr) - typeannounce.SetManager(mgr) - typeapplication.SetManager(mgr) - typearrive.SetManager(mgr) - typearticle.SetManager(mgr) - typeaudio.SetManager(mgr) - typeblock.SetManager(mgr) - typecollection.SetManager(mgr) - typecollectionpage.SetManager(mgr) - typecreate.SetManager(mgr) - typedelete.SetManager(mgr) - typedislike.SetManager(mgr) - typedocument.SetManager(mgr) - typeendpoints.SetManager(mgr) - typeevent.SetManager(mgr) - typeflag.SetManager(mgr) - typefollow.SetManager(mgr) - typegroup.SetManager(mgr) - typeignore.SetManager(mgr) - typeimage.SetManager(mgr) - typeintransitiveactivity.SetManager(mgr) - typeinvite.SetManager(mgr) - typejoin.SetManager(mgr) - typeleave.SetManager(mgr) - typelike.SetManager(mgr) - typelink.SetManager(mgr) - typelisten.SetManager(mgr) - typemention.SetManager(mgr) - typemove.SetManager(mgr) - typenote.SetManager(mgr) - typeobject.SetManager(mgr) - typeoffer.SetManager(mgr) - typeorderedcollection.SetManager(mgr) - typeorderedcollectionpage.SetManager(mgr) - typeorganization.SetManager(mgr) - typepage.SetManager(mgr) - typeperson.SetManager(mgr) - typeplace.SetManager(mgr) - typeprofile.SetManager(mgr) - typequestion.SetManager(mgr) - typeread.SetManager(mgr) - typereject.SetManager(mgr) - typerelationship.SetManager(mgr) - typeremove.SetManager(mgr) - typeservice.SetManager(mgr) - typetentativeaccept.SetManager(mgr) - typetentativereject.SetManager(mgr) - typetombstone.SetManager(mgr) - typetravel.SetManager(mgr) - typeundo.SetManager(mgr) - typeupdate.SetManager(mgr) - typevideo.SetManager(mgr) - typeview.SetManager(mgr) - typealbum.SetManager(mgr) - typeartist.SetManager(mgr) - typelibrary.SetManager(mgr) - typetrack.SetManager(mgr) - propertyalways.SetManager(mgr) - propertyapprovalrequired.SetManager(mgr) - propertyapprovedby.SetManager(mgr) - propertyautomaticapproval.SetManager(mgr) - propertycanannounce.SetManager(mgr) - propertycanlike.SetManager(mgr) - propertycanquote.SetManager(mgr) - propertycanreply.SetManager(mgr) - propertyinteractingobject.SetManager(mgr) - propertyinteractionpolicy.SetManager(mgr) - propertyinteractiontarget.SetManager(mgr) - propertymanualapproval.SetManager(mgr) - typeannounceapproval.SetManager(mgr) - typeannounceauthorization.SetManager(mgr) - typeannouncerequest.SetManager(mgr) - typecanannounce.SetManager(mgr) - typecanlike.SetManager(mgr) - typecanquote.SetManager(mgr) - typecanreply.SetManager(mgr) - typeinteractionpolicy.SetManager(mgr) - typelikeapproval.SetManager(mgr) - typelikeauthorization.SetManager(mgr) - typelikerequest.SetManager(mgr) - typereplyapproval.SetManager(mgr) - typereplyauthorization.SetManager(mgr) - typereplyrequest.SetManager(mgr) - propertyvalue.SetManager(mgr) - typepropertyvalue.SetManager(mgr) - propertyblurhash.SetManager(mgr) - propertydiscoverable.SetManager(mgr) - propertyfeatured.SetManager(mgr) - propertyfocalpoint.SetManager(mgr) - propertyindexable.SetManager(mgr) - propertysignaturealgorithm.SetManager(mgr) - propertysignaturevalue.SetManager(mgr) - propertyvoterscount.SetManager(mgr) - typeemoji.SetManager(mgr) - typehashtag.SetManager(mgr) - typeidentityproof.SetManager(mgr) - propertyowner.SetManager(mgr) - propertypublickey.SetManager(mgr) - propertypublickeypem.SetManager(mgr) - typepublickey.SetManager(mgr) - typeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeadd.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeapplication.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typearrive.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typearticle.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeaudio.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeblock.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecollection.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecreate.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typedelete.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typedislike.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typedocument.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeendpoints.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeevent.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeflag.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typefollow.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typegroup.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeignore.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeimage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeintransitiveactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeinvite.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typejoin.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeleave.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelike.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelink.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelisten.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typemention.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typemove.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typenote.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeobject.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeoffer.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeorderedcollection.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeorderedcollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeorganization.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typepage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeperson.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeplace.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeprofile.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typequestion.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeread.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typereject.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typerelationship.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeremove.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeservice.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetentativeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetentativereject.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetombstone.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetravel.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeundo.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typealbum.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeartist.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelibrary.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetrack.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeannounceapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeannounceauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeannouncerequest.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecanannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecanlike.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecanquote.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecanreply.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeinteractionpolicy.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelikeapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelikeauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelikerequest.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typereplyapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typereplyauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typereplyrequest.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typepropertyvalue.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typehashtag.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go deleted file mode 100644 index ca0191faf..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go +++ /dev/null @@ -1,1187 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "context" - "errors" - "fmt" - "strings" -) - -// JSONResolver resolves a JSON-deserialized map into its concrete ActivityStreams -// type -type JSONResolver struct { - callbacks []interface{} -} - -// NewJSONResolver creates a new Resolver that takes a JSON-deserialized generic -// map and determines the correct concrete Go type. The callback function is -// guaranteed to receive a value whose underlying ActivityStreams type matches -// the concrete interface name in its signature. The callback functions must -// be of the form: -// -// func(context.Context, ) error -// -// where TypeInterface is the code-generated interface for an ActivityStream -// type. An error is returned if a callback function does not match this -// signature. -func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { - for _, cb := range callbacks { - // Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail. - switch cb.(type) { - case func(context.Context, vocab.ActivityStreamsAccept) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsActivity) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAdd) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.FunkwhaleAlbum) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAnnounce) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialAnnounceApproval) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialAnnounceAuthorization) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialAnnounceRequest) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsApplication) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsArrive) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsArticle) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.FunkwhaleArtist) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAudio) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsBlock) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialCanAnnounce) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialCanLike) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialCanQuote) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialCanReply) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollection) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollectionPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCreate) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDelete) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDislike) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDocument) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.TootEmoji) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsEndpoints) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsEvent) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsFlag) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsFollow) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsGroup) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.TootHashtag) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.TootIdentityProof) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsIgnore) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsImage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialInteractionPolicy) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsInvite) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsJoin) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLeave) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.FunkwhaleLibrary) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLike) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialLikeApproval) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialLikeAuthorization) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialLikeRequest) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLink) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsListen) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsMention) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsMove) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsNote) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsObject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOffer) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollection) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrganization) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPerson) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPlace) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsProfile) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.SchemaPropertyValue) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.W3IDSecurityV1PublicKey) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsQuestion) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRead) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsReject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRelationship) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRemove) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialReplyApproval) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialReplyAuthorization) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialReplyRequest) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsService) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeAccept) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeReject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTombstone) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.FunkwhaleTrack) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTravel) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsUndo) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsUpdate) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsVideo) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsView) error: - // Do nothing, this callback has a correct signature. - default: - return nil, errors.New("a callback function is of the wrong signature and would never be called") - } - } - return &JSONResolver{callbacks: callbacks}, nil -} - -// toAliasMap converts a JSONLD context into a map of vocabulary name to alias. -func toAliasMap(i interface{}) (m map[string]string) { - m = make(map[string]string) - toHttpHttpsFn := func(s string) (ok bool, http, https string) { - if strings.HasPrefix(s, "http://") { - ok = true - http = s - https = "https" + strings.TrimPrefix(s, "http") - } else if strings.HasPrefix(s, "https://") { - ok = true - https = s - http = "http" + strings.TrimPrefix(s, "https") - } - return - } - switch v := i.(type) { - case string: - // Single entry, no alias. - if ok, http, https := toHttpHttpsFn(v); ok { - m[http] = "" - m[https] = "" - } else { - m[v] = "" - } - case []interface{}: - // Recursively apply. - for _, elem := range v { - r := toAliasMap(elem) - for k, val := range r { - m[k] = val - } - } - case map[string]interface{}: - // Map any aliases. - for k, val := range v { - // Only handle string aliases. - switch conc := val.(type) { - case string: - m[k] = conc - } - } - } - return -} - -// Resolve determines the ActivityStreams type of the payload, then applies the -// first callback function whose signature accepts the ActivityStreams value's -// type. This strictly assures that the callback function will only be passed -// ActivityStream objects whose type matches its interface. Returns an error -// if the ActivityStreams type does not match callbackers or is not a type -// handled by the generated code. If multiple types are present, it will check -// each one in order and apply only the first one. It returns an unhandled -// error for a multi-typed object if none of the types were able to be handled. -func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) error { - typeValue, ok := m["type"] - if !ok { - return fmt.Errorf("cannot determine ActivityStreams type: 'type' property is missing") - } - rawContext, ok := m["@context"] - if !ok { - return fmt.Errorf("cannot determine ActivityStreams type: '@context' is missing") - } - aliasMap := toAliasMap(rawContext) - // Begin: Private lambda to handle a single string "type" value. Makes code generation easier. - handleFn := func(typeString string) error { - ActivityStreamsAlias, ok := aliasMap["https://www.w3.org/ns/activitystreams"] - if !ok { - ActivityStreamsAlias = aliasMap["http://www.w3.org/ns/activitystreams"] - } - if len(ActivityStreamsAlias) > 0 { - ActivityStreamsAlias += ":" - } - FunkwhaleAlias, ok := aliasMap["https://funkwhale.audio/ns"] - if !ok { - FunkwhaleAlias = aliasMap["http://funkwhale.audio/ns"] - } - if len(FunkwhaleAlias) > 0 { - FunkwhaleAlias += ":" - } - GoToSocialAlias, ok := aliasMap["https://gotosocial.org/ns"] - if !ok { - GoToSocialAlias = aliasMap["http://gotosocial.org/ns"] - } - if len(GoToSocialAlias) > 0 { - GoToSocialAlias += ":" - } - TootAlias, ok := aliasMap["https://joinmastodon.org/ns"] - if !ok { - TootAlias = aliasMap["http://joinmastodon.org/ns"] - } - if len(TootAlias) > 0 { - TootAlias += ":" - } - SchemaAlias, ok := aliasMap["https://schema.org"] - if !ok { - SchemaAlias = aliasMap["http://schema.org"] - } - if len(SchemaAlias) > 0 { - SchemaAlias += ":" - } - W3IDSecurityV1Alias, ok := aliasMap["https://w3id.org/security/v1"] - if !ok { - W3IDSecurityV1Alias = aliasMap["http://w3id.org/security/v1"] - } - if len(W3IDSecurityV1Alias) > 0 { - W3IDSecurityV1Alias += ":" - } - - if typeString == ActivityStreamsAlias+"Accept" { - v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAccept) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Activity" { - v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsActivity) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Add" { - v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAdd) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == FunkwhaleAlias+"Album" { - v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.FunkwhaleAlbum) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Announce" { - v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"AnnounceApproval" { - v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceApproval) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"AnnounceAuthorization" { - v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"AnnounceRequest" { - v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceRequest) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Application" { - v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Arrive" { - v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArrive) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Article" { - v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArticle) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == FunkwhaleAlias+"Artist" { - v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.FunkwhaleArtist) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Audio" { - v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Block" { - v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsBlock) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"CanAnnounce" { - v, err := mgr.DeserializeCanAnnounceGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialCanAnnounce) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"CanLike" { - v, err := mgr.DeserializeCanLikeGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialCanLike) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"CanQuote" { - v, err := mgr.DeserializeCanQuoteGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialCanQuote) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"CanReply" { - v, err := mgr.DeserializeCanReplyGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialCanReply) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Collection" { - v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"CollectionPage" { - v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollectionPage) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Create" { - v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Delete" { - v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDelete) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Dislike" { - v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDislike) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Document" { - v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDocument) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == TootAlias+"Emoji" { - v, err := mgr.DeserializeEmojiToot()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.TootEmoji) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Endpoints" { - v, err := mgr.DeserializeEndpointsActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEndpoints) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Event" { - v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEvent) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Flag" { - v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFlag) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Follow" { - v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFollow) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Group" { - v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsGroup) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == TootAlias+"Hashtag" { - v, err := mgr.DeserializeHashtagToot()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.TootHashtag) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == TootAlias+"IdentityProof" { - v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.TootIdentityProof) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Ignore" { - v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIgnore) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Image" { - v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsImage) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"InteractionPolicy" { - v, err := mgr.DeserializeInteractionPolicyGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialInteractionPolicy) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"IntransitiveActivity" { - v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Invite" { - v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsInvite) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Join" { - v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsJoin) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Leave" { - v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLeave) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == FunkwhaleAlias+"Library" { - v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.FunkwhaleLibrary) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Like" { - v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"LikeApproval" { - v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeApproval) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"LikeAuthorization" { - v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeAuthorization) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"LikeRequest" { - v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeRequest) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Link" { - v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Listen" { - v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsListen) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Mention" { - v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMention) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Move" { - v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMove) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Note" { - v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsNote) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Object" { - v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsObject) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Offer" { - v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOffer) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"OrderedCollection" { - v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollection) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"OrderedCollectionPage" { - v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Organization" { - v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrganization) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Page" { - v, err := mgr.DeserializePageActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPage) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Person" { - v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPerson) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Place" { - v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPlace) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Profile" { - v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsProfile) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == SchemaAlias+"PropertyValue" { - v, err := mgr.DeserializePropertyValueSchema()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.SchemaPropertyValue) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == W3IDSecurityV1Alias+"PublicKey" { - v, err := mgr.DeserializePublicKeyW3IDSecurityV1()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.W3IDSecurityV1PublicKey) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Question" { - v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Read" { - v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRead) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Reject" { - v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsReject) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Relationship" { - v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRelationship) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Remove" { - v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRemove) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"ReplyApproval" { - v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyApproval) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"ReplyAuthorization" { - v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyAuthorization) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == GoToSocialAlias+"ReplyRequest" { - v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyRequest) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Service" { - v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"TentativeAccept" { - v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeAccept) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"TentativeReject" { - v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeReject) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Tombstone" { - v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == FunkwhaleAlias+"Track" { - v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.FunkwhaleTrack) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Travel" { - v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Undo" { - v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUndo) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Update" { - v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUpdate) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Video" { - v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsVideo) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"View" { - v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsView) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else { - return ErrUnhandledType - } - } - // End: Private lambda - if typeStr, ok := typeValue.(string); ok { - return handleFn(typeStr) - } else if typeIArr, ok := typeValue.([]interface{}); ok { - for _, typeI := range typeIArr { - if typeStr, ok := typeI.(string); ok { - if err := handleFn(typeStr); err == nil { - return nil - } else if err == ErrUnhandledType { - // Keep trying other types: only if all fail do we return this error. - continue - } else { - return err - } - } - } - return ErrUnhandledType - } else { - return ErrUnhandledType - } -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go deleted file mode 100644 index 9f06e9b07..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go +++ /dev/null @@ -1,2528 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyaccuracy "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy" - propertyactor "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor" - propertyalsoknownas "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas" - propertyaltitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude" - propertyanyof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof" - propertyattachment "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment" - propertyattributedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto" - propertyaudience "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience" - propertybcc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc" - propertybto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto" - propertycc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc" - propertyclosed "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed" - propertycontent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content" - propertycontext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context" - propertycurrent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current" - propertydeleted "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted" - propertydescribes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes" - propertyduration "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration" - propertyendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints" - propertyendtime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime" - propertyfirst "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first" - propertyfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers" - propertyfollowing "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following" - propertyformertype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype" - propertygenerator "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator" - propertyheight "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height" - propertyhref "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href" - propertyhreflang "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang" - propertyicon "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon" - propertyimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image" - propertyinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox" - propertyinreplyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto" - propertyinstrument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument" - propertyitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items" - propertylast "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last" - propertylatitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude" - propertyliked "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked" - propertylikes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes" - propertylocation "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location" - propertylongitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude" - propertymanuallyapprovesfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" - propertymediatype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype" - propertymovedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto" - propertyname "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name" - propertynext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next" - propertyobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object" - propertyoneof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof" - propertyordereditems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems" - propertyorigin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin" - propertyoutbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox" - propertypartof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof" - propertypreferredusername "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername" - propertyprev "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev" - propertypreview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview" - propertypublished "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published" - propertyradius "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius" - propertyrel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel" - propertyrelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship" - propertyreplies "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies" - propertyresult "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result" - propertysensitive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive" - propertysharedinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox" - propertyshares "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares" - propertysource "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source" - propertystartindex "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex" - propertystarttime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime" - propertystreams "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams" - propertysubject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject" - propertysummary "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary" - propertytag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag" - propertytarget "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target" - propertyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to" - propertytotalitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems" - propertyunits "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units" - propertyupdated "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated" - propertyurl "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url" - propertywidth "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width" - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always" - propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired" - propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby" - propertyautomaticapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval" - propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce" - propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike" - propertycanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote" - propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply" - propertyinteractingobject "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject" - propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy" - propertyinteractiontarget "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget" - propertymanualapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval" - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization" - typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization" - typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization" - typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest" - propertyid "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id" - propertytype "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type" - propertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value" - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - propertyblurhash "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash" - propertydiscoverable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable" - propertyfeatured "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured" - propertyfocalpoint "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint" - propertyindexable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable" - propertysignaturealgorithm "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm" - propertysignaturevalue "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue" - propertyvoterscount "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount" - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - propertyowner "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner" - propertypublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey" - propertypublickeypem "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem" - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// Manager manages interface types and deserializations for use by generated code. -// Application code implicitly uses this manager at run-time to create -// concrete implementations of the interfaces. -type Manager struct { -} - -// DeserializeAcceptActivityStreams returns the deserialization method for the -// "ActivityStreamsAccept" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAccept, error) { - i, err := typeaccept.DeserializeAccept(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAccuracyPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsAccuracyProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeAccuracyPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccuracyProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAccuracyProperty, error) { - i, err := propertyaccuracy.DeserializeAccuracyProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeActivityActivityStreams returns the deserialization method for the -// "ActivityStreamsActivity" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsActivity, error) { - i, err := typeactivity.DeserializeActivity(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeActorPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsActorProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsActorProperty, error) { - i, err := propertyactor.DeserializeActorProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAddActivityStreams returns the deserialization method for the -// "ActivityStreamsAdd" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAdd, error) { - i, err := typeadd.DeserializeAdd(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAlbumFunkwhale returns the deserialization method for the -// "FunkwhaleAlbum" non-functional property in the vocabulary "Funkwhale" -func (this Manager) DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleAlbum, error) { - i, err := typealbum.DeserializeAlbum(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAlsoKnownAsPropertyActivityStreams returns the deserialization -// method for the "ActivityStreamsAlsoKnownAsProperty" non-functional property -// in the vocabulary "ActivityStreams" -func (this Manager) DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error) { - i, err := propertyalsoknownas.DeserializeAlsoKnownAsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAltitudePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsAltitudeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) { - i, err := propertyaltitude.DeserializeAltitudeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAlwaysPropertyGoToSocial returns the deserialization method for the -// "GoToSocialAlwaysProperty" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAlwaysProperty, error) { - i, err := propertyalways.DeserializeAlwaysProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAnnounceActivityStreams returns the deserialization method for the -// "ActivityStreamsAnnounce" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAnnounce, error) { - i, err := typeannounce.DeserializeAnnounce(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAnnounceApprovalGoToSocial returns the deserialization method for -// the "GoToSocialAnnounceApproval" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceApproval, error) { - i, err := typeannounceapproval.DeserializeAnnounceApproval(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAnnounceAuthorizationGoToSocial returns the deserialization method -// for the "GoToSocialAnnounceAuthorization" non-functional property in the -// vocabulary "GoToSocial" -func (this Manager) DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) { - i, err := typeannounceauthorization.DeserializeAnnounceAuthorization(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAnnounceRequestGoToSocial returns the deserialization method for the -// "GoToSocialAnnounceRequest" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAnnounceRequest, error) { - i, err := typeannouncerequest.DeserializeAnnounceRequest(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAnyOfPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsAnyOfProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeAnyOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) { - i, err := propertyanyof.DeserializeAnyOfProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeApplicationActivityStreams returns the deserialization method for -// the "ActivityStreamsApplication" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsApplication, error) { - i, err := typeapplication.DeserializeApplication(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeApprovalRequiredPropertyGoToSocial returns the deserialization -// method for the "GoToSocialApprovalRequiredProperty" non-functional property -// in the vocabulary "GoToSocial" -func (this Manager) DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) { - i, err := propertyapprovalrequired.DeserializeApprovalRequiredProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeApprovedByPropertyGoToSocial returns the deserialization method for -// the "GoToSocialApprovedByProperty" non-functional property in the -// vocabulary "GoToSocial" -func (this Manager) DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialApprovedByProperty, error) { - i, err := propertyapprovedby.DeserializeApprovedByProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeArriveActivityStreams returns the deserialization method for the -// "ActivityStreamsArrive" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsArrive, error) { - i, err := typearrive.DeserializeArrive(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeArticleActivityStreams returns the deserialization method for the -// "ActivityStreamsArticle" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsArticle, error) { - i, err := typearticle.DeserializeArticle(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeArtistFunkwhale returns the deserialization method for the -// "FunkwhaleArtist" non-functional property in the vocabulary "Funkwhale" -func (this Manager) DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleArtist, error) { - i, err := typeartist.DeserializeArtist(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAttachmentPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsAttachmentProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) { - i, err := propertyattachment.DeserializeAttachmentProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAttributedToPropertyActivityStreams returns the deserialization -// method for the "ActivityStreamsAttributedToProperty" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) { - i, err := propertyattributedto.DeserializeAttributedToProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAudiencePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsAudienceProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAudienceProperty, error) { - i, err := propertyaudience.DeserializeAudienceProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAudioActivityStreams returns the deserialization method for the -// "ActivityStreamsAudio" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAudio, error) { - i, err := typeaudio.DeserializeAudio(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAutomaticApprovalPropertyGoToSocial returns the deserialization -// method for the "GoToSocialAutomaticApprovalProperty" non-functional -// property in the vocabulary "GoToSocial" -func (this Manager) DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) { - i, err := propertyautomaticapproval.DeserializeAutomaticApprovalProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeBccPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsBccProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBccProperty, error) { - i, err := propertybcc.DeserializeBccProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeBlockActivityStreams returns the deserialization method for the -// "ActivityStreamsBlock" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBlock, error) { - i, err := typeblock.DeserializeBlock(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeBlurhashPropertyToot returns the deserialization method for the -// "TootBlurhashProperty" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootBlurhashProperty, error) { - i, err := propertyblurhash.DeserializeBlurhashProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeBtoPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsBtoProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBtoProperty, error) { - i, err := propertybto.DeserializeBtoProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCanAnnounceGoToSocial returns the deserialization method for the -// "GoToSocialCanAnnounce" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeCanAnnounceGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanAnnounce, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanAnnounce, error) { - i, err := typecanannounce.DeserializeCanAnnounce(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCanAnnouncePropertyGoToSocial returns the deserialization method for -// the "GoToSocialCanAnnounceProperty" non-functional property in the -// vocabulary "GoToSocial" -func (this Manager) DeserializeCanAnnouncePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanAnnounceProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanAnnounceProperty, error) { - i, err := propertycanannounce.DeserializeCanAnnounceProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCanLikeGoToSocial returns the deserialization method for the -// "GoToSocialCanLike" non-functional property in the vocabulary "GoToSocial" -func (this Manager) DeserializeCanLikeGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanLike, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanLike, error) { - i, err := typecanlike.DeserializeCanLike(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCanLikePropertyGoToSocial returns the deserialization method for the -// "GoToSocialCanLikeProperty" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeCanLikePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanLikeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanLikeProperty, error) { - i, err := propertycanlike.DeserializeCanLikeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCanQuoteGoToSocial returns the deserialization method for the -// "GoToSocialCanQuote" non-functional property in the vocabulary "GoToSocial" -func (this Manager) DeserializeCanQuoteGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuote, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuote, error) { - i, err := typecanquote.DeserializeCanQuote(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCanQuotePropertyGoToSocial returns the deserialization method for -// the "GoToSocialCanQuoteProperty" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeCanQuotePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuoteProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuoteProperty, error) { - i, err := propertycanquote.DeserializeCanQuoteProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCanReplyGoToSocial returns the deserialization method for the -// "GoToSocialCanReply" non-functional property in the vocabulary "GoToSocial" -func (this Manager) DeserializeCanReplyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanReply, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanReply, error) { - i, err := typecanreply.DeserializeCanReply(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCanReplyPropertyGoToSocial returns the deserialization method for -// the "GoToSocialCanReplyProperty" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeCanReplyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanReplyProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanReplyProperty, error) { - i, err := propertycanreply.DeserializeCanReplyProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCcPropertyActivityStreams returns the deserialization method for the -// "ActivityStreamsCcProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCcProperty, error) { - i, err := propertycc.DeserializeCcProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeClosedPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsClosedProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeClosedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsClosedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsClosedProperty, error) { - i, err := propertyclosed.DeserializeClosedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCollectionActivityStreams returns the deserialization method for the -// "ActivityStreamsCollection" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCollection, error) { - i, err := typecollection.DeserializeCollection(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCollectionPageActivityStreams returns the deserialization method for -// the "ActivityStreamsCollectionPage" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCollectionPage, error) { - i, err := typecollectionpage.DeserializeCollectionPage(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeContentPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsContentProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContentProperty, error) { - i, err := propertycontent.DeserializeContentProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeContextPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsContextProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContextProperty, error) { - i, err := propertycontext.DeserializeContextProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCreateActivityStreams returns the deserialization method for the -// "ActivityStreamsCreate" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCreate, error) { - i, err := typecreate.DeserializeCreate(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCurrentPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsCurrentProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeCurrentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCurrentProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCurrentProperty, error) { - i, err := propertycurrent.DeserializeCurrentProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDeleteActivityStreams returns the deserialization method for the -// "ActivityStreamsDelete" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDelete, error) { - i, err := typedelete.DeserializeDelete(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDeletedPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsDeletedProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeDeletedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDeletedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDeletedProperty, error) { - i, err := propertydeleted.DeserializeDeletedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDescribesPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsDescribesProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeDescribesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDescribesProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDescribesProperty, error) { - i, err := propertydescribes.DeserializeDescribesProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDiscoverablePropertyToot returns the deserialization method for the -// "TootDiscoverableProperty" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootDiscoverableProperty, error) { - i, err := propertydiscoverable.DeserializeDiscoverableProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDislikeActivityStreams returns the deserialization method for the -// "ActivityStreamsDislike" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDislike, error) { - i, err := typedislike.DeserializeDislike(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDocumentActivityStreams returns the deserialization method for the -// "ActivityStreamsDocument" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDocument, error) { - i, err := typedocument.DeserializeDocument(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDurationPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsDurationProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDurationProperty, error) { - i, err := propertyduration.DeserializeDurationProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeEmojiToot returns the deserialization method for the "TootEmoji" -// non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootEmoji, error) { - i, err := typeemoji.DeserializeEmoji(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeEndTimePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsEndTimeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) { - i, err := propertyendtime.DeserializeEndTimeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeEndpointsActivityStreams returns the deserialization method for the -// "ActivityStreamsEndpoints" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeEndpointsActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpoints, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEndpoints, error) { - i, err := typeendpoints.DeserializeEndpoints(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeEndpointsPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsEndpointsProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEndpointsProperty, error) { - i, err := propertyendpoints.DeserializeEndpointsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeEventActivityStreams returns the deserialization method for the -// "ActivityStreamsEvent" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEvent, error) { - i, err := typeevent.DeserializeEvent(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFeaturedPropertyToot returns the deserialization method for the -// "TootFeaturedProperty" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeFeaturedPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFeaturedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootFeaturedProperty, error) { - i, err := propertyfeatured.DeserializeFeaturedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFirstPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsFirstProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeFirstPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFirstProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFirstProperty, error) { - i, err := propertyfirst.DeserializeFirstProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFlagActivityStreams returns the deserialization method for the -// "ActivityStreamsFlag" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFlag, error) { - i, err := typeflag.DeserializeFlag(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFocalPointPropertyToot returns the deserialization method for the -// "TootFocalPointProperty" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootFocalPointProperty, error) { - i, err := propertyfocalpoint.DeserializeFocalPointProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFollowActivityStreams returns the deserialization method for the -// "ActivityStreamsFollow" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollow, error) { - i, err := typefollow.DeserializeFollow(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFollowersPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsFollowersProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowersProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollowersProperty, error) { - i, err := propertyfollowers.DeserializeFollowersProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFollowingPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsFollowingProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeFollowingPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowingProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollowingProperty, error) { - i, err := propertyfollowing.DeserializeFollowingProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFormerTypePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsFormerTypeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeFormerTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) { - i, err := propertyformertype.DeserializeFormerTypeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeGeneratorPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsGeneratorProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) { - i, err := propertygenerator.DeserializeGeneratorProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeGroupActivityStreams returns the deserialization method for the -// "ActivityStreamsGroup" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsGroup, error) { - i, err := typegroup.DeserializeGroup(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeHashtagToot returns the deserialization method for the "TootHashtag" -// non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootHashtag, error) { - i, err := typehashtag.DeserializeHashtag(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeHeightPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsHeightProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeHeightPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHeightProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHeightProperty, error) { - i, err := propertyheight.DeserializeHeightProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeHrefPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsHrefProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeHrefPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHrefProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHrefProperty, error) { - i, err := propertyhref.DeserializeHrefProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeHreflangPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsHreflangProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeHreflangPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHreflangProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHreflangProperty, error) { - i, err := propertyhreflang.DeserializeHreflangProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIconPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsIconProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIconProperty, error) { - i, err := propertyicon.DeserializeIconProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIdPropertyJSONLD returns the deserialization method for the -// "JSONLDIdProperty" non-functional property in the vocabulary "JSONLD" -func (this Manager) DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDIdProperty, error) { - i, err := propertyid.DeserializeIdProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIdentityProofToot returns the deserialization method for the -// "TootIdentityProof" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootIdentityProof, error) { - i, err := typeidentityproof.DeserializeIdentityProof(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIgnoreActivityStreams returns the deserialization method for the -// "ActivityStreamsIgnore" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIgnore, error) { - i, err := typeignore.DeserializeIgnore(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeImageActivityStreams returns the deserialization method for the -// "ActivityStreamsImage" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsImage, error) { - i, err := typeimage.DeserializeImage(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeImagePropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsImageProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsImageProperty, error) { - i, err := propertyimage.DeserializeImageProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInReplyToPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsInReplyToProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) { - i, err := propertyinreplyto.DeserializeInReplyToProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInboxPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsInboxProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInboxProperty, error) { - i, err := propertyinbox.DeserializeInboxProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIndexablePropertyToot returns the deserialization method for the -// "TootIndexableProperty" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootIndexableProperty, error) { - i, err := propertyindexable.DeserializeIndexableProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInstrumentPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsInstrumentProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) { - i, err := propertyinstrument.DeserializeInstrumentProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInteractingObjectPropertyGoToSocial returns the deserialization -// method for the "GoToSocialInteractingObjectProperty" non-functional -// property in the vocabulary "GoToSocial" -func (this Manager) DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) { - i, err := propertyinteractingobject.DeserializeInteractingObjectProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInteractionPolicyGoToSocial returns the deserialization method for -// the "GoToSocialInteractionPolicy" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeInteractionPolicyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicy, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionPolicy, error) { - i, err := typeinteractionpolicy.DeserializeInteractionPolicy(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInteractionPolicyPropertyGoToSocial returns the deserialization -// method for the "GoToSocialInteractionPolicyProperty" non-functional -// property in the vocabulary "GoToSocial" -func (this Manager) DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error) { - i, err := propertyinteractionpolicy.DeserializeInteractionPolicyProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInteractionTargetPropertyGoToSocial returns the deserialization -// method for the "GoToSocialInteractionTargetProperty" non-functional -// property in the vocabulary "GoToSocial" -func (this Manager) DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) { - i, err := propertyinteractiontarget.DeserializeInteractionTargetProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIntransitiveActivityActivityStreams returns the deserialization -// method for the "ActivityStreamsIntransitiveActivity" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) { - i, err := typeintransitiveactivity.DeserializeIntransitiveActivity(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInviteActivityStreams returns the deserialization method for the -// "ActivityStreamsInvite" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInvite, error) { - i, err := typeinvite.DeserializeInvite(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeItemsPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsItemsProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsItemsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsItemsProperty, error) { - i, err := propertyitems.DeserializeItemsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeJoinActivityStreams returns the deserialization method for the -// "ActivityStreamsJoin" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsJoin, error) { - i, err := typejoin.DeserializeJoin(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLastPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsLastProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeLastPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLastProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLastProperty, error) { - i, err := propertylast.DeserializeLastProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLatitudePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsLatitudeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeLatitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLatitudeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLatitudeProperty, error) { - i, err := propertylatitude.DeserializeLatitudeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLeaveActivityStreams returns the deserialization method for the -// "ActivityStreamsLeave" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLeave, error) { - i, err := typeleave.DeserializeLeave(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLibraryFunkwhale returns the deserialization method for the -// "FunkwhaleLibrary" non-functional property in the vocabulary "Funkwhale" -func (this Manager) DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleLibrary, error) { - i, err := typelibrary.DeserializeLibrary(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLikeActivityStreams returns the deserialization method for the -// "ActivityStreamsLike" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLike, error) { - i, err := typelike.DeserializeLike(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLikeApprovalGoToSocial returns the deserialization method for the -// "GoToSocialLikeApproval" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeApproval, error) { - i, err := typelikeapproval.DeserializeLikeApproval(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLikeAuthorizationGoToSocial returns the deserialization method for -// the "GoToSocialLikeAuthorization" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeAuthorization, error) { - i, err := typelikeauthorization.DeserializeLikeAuthorization(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLikeRequestGoToSocial returns the deserialization method for the -// "GoToSocialLikeRequest" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialLikeRequest, error) { - i, err := typelikerequest.DeserializeLikeRequest(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLikedPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsLikedProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeLikedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLikedProperty, error) { - i, err := propertyliked.DeserializeLikedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLikesPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsLikesProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLikesProperty, error) { - i, err := propertylikes.DeserializeLikesProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLinkActivityStreams returns the deserialization method for the -// "ActivityStreamsLink" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLink, error) { - i, err := typelink.DeserializeLink(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeListenActivityStreams returns the deserialization method for the -// "ActivityStreamsListen" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsListen, error) { - i, err := typelisten.DeserializeListen(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLocationPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsLocationProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLocationProperty, error) { - i, err := propertylocation.DeserializeLocationProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLongitudePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsLongitudeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeLongitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLongitudeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLongitudeProperty, error) { - i, err := propertylongitude.DeserializeLongitudeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeManualApprovalPropertyGoToSocial returns the deserialization method -// for the "GoToSocialManualApprovalProperty" non-functional property in the -// vocabulary "GoToSocial" -func (this Manager) DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialManualApprovalProperty, error) { - i, err := propertymanualapproval.DeserializeManualApprovalProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the -// deserialization method for the -// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional property -// in the vocabulary "ActivityStreams" -func (this Manager) DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) { - i, err := propertymanuallyapprovesfollowers.DeserializeManuallyApprovesFollowersProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeMediaTypePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsMediaTypeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) { - i, err := propertymediatype.DeserializeMediaTypeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeMentionActivityStreams returns the deserialization method for the -// "ActivityStreamsMention" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMention, error) { - i, err := typemention.DeserializeMention(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeMoveActivityStreams returns the deserialization method for the -// "ActivityStreamsMove" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMove, error) { - i, err := typemove.DeserializeMove(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeMovedToPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsMovedToProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMovedToProperty, error) { - i, err := propertymovedto.DeserializeMovedToProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeNamePropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsNameProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNameProperty, error) { - i, err := propertyname.DeserializeNameProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeNextPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsNextProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeNextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNextProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNextProperty, error) { - i, err := propertynext.DeserializeNextProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeNoteActivityStreams returns the deserialization method for the -// "ActivityStreamsNote" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNote, error) { - i, err := typenote.DeserializeNote(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeObjectActivityStreams returns the deserialization method for the -// "ActivityStreamsObject" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsObject, error) { - i, err := typeobject.DeserializeObject(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeObjectPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsObjectProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsObjectProperty, error) { - i, err := propertyobject.DeserializeObjectProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOfferActivityStreams returns the deserialization method for the -// "ActivityStreamsOffer" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOffer, error) { - i, err := typeoffer.DeserializeOffer(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOneOfPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsOneOfProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeOneOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOneOfProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOneOfProperty, error) { - i, err := propertyoneof.DeserializeOneOfProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOrderedCollectionActivityStreams returns the deserialization method -// for the "ActivityStreamsOrderedCollection" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedCollection, error) { - i, err := typeorderedcollection.DeserializeOrderedCollection(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOrderedCollectionPageActivityStreams returns the deserialization -// method for the "ActivityStreamsOrderedCollectionPage" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) { - i, err := typeorderedcollectionpage.DeserializeOrderedCollectionPage(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOrderedItemsPropertyActivityStreams returns the deserialization -// method for the "ActivityStreamsOrderedItemsProperty" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializeOrderedItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) { - i, err := propertyordereditems.DeserializeOrderedItemsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOrganizationActivityStreams returns the deserialization method for -// the "ActivityStreamsOrganization" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrganization, error) { - i, err := typeorganization.DeserializeOrganization(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOriginPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsOriginProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOriginProperty, error) { - i, err := propertyorigin.DeserializeOriginProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOutboxPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsOutboxProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeOutboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOutboxProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOutboxProperty, error) { - i, err := propertyoutbox.DeserializeOutboxProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOwnerPropertyW3IDSecurityV1 returns the deserialization method for -// the "W3IDSecurityV1OwnerProperty" non-functional property in the vocabulary -// "W3IDSecurityV1" -func (this Manager) DeserializeOwnerPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) { - i, err := propertyowner.DeserializeOwnerProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePageActivityStreams returns the deserialization method for the -// "ActivityStreamsPage" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPage, error) { - i, err := typepage.DeserializePage(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePartOfPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsPartOfProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializePartOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPartOfProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPartOfProperty, error) { - i, err := propertypartof.DeserializePartOfProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePersonActivityStreams returns the deserialization method for the -// "ActivityStreamsPerson" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPerson, error) { - i, err := typeperson.DeserializePerson(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePlaceActivityStreams returns the deserialization method for the -// "ActivityStreamsPlace" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPlace, error) { - i, err := typeplace.DeserializePlace(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePreferredUsernamePropertyActivityStreams returns the deserialization -// method for the "ActivityStreamsPreferredUsernameProperty" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializePreferredUsernamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) { - i, err := propertypreferredusername.DeserializePreferredUsernameProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePrevPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsPrevProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializePrevPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPrevProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPrevProperty, error) { - i, err := propertyprev.DeserializePrevProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePreviewPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsPreviewProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPreviewProperty, error) { - i, err := propertypreview.DeserializePreviewProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeProfileActivityStreams returns the deserialization method for the -// "ActivityStreamsProfile" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsProfile, error) { - i, err := typeprofile.DeserializeProfile(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePropertyValueSchema returns the deserialization method for the -// "SchemaPropertyValue" non-functional property in the vocabulary "Schema" -func (this Manager) DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SchemaPropertyValue, error) { - i, err := typepropertyvalue.DeserializePropertyValue(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePublicKeyPemPropertyW3IDSecurityV1 returns the deserialization -// method for the "W3IDSecurityV1PublicKeyPemProperty" non-functional property -// in the vocabulary "W3IDSecurityV1" -func (this Manager) DeserializePublicKeyPemPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) { - i, err := propertypublickeypem.DeserializePublicKeyPemProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePublicKeyPropertyW3IDSecurityV1 returns the deserialization method -// for the "W3IDSecurityV1PublicKeyProperty" non-functional property in the -// vocabulary "W3IDSecurityV1" -func (this Manager) DeserializePublicKeyPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) { - i, err := propertypublickey.DeserializePublicKeyProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePublicKeyW3IDSecurityV1 returns the deserialization method for the -// "W3IDSecurityV1PublicKey" non-functional property in the vocabulary -// "W3IDSecurityV1" -func (this Manager) DeserializePublicKeyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKey, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKey, error) { - i, err := typepublickey.DeserializePublicKey(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePublishedPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsPublishedProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPublishedProperty, error) { - i, err := propertypublished.DeserializePublishedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeQuestionActivityStreams returns the deserialization method for the -// "ActivityStreamsQuestion" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsQuestion, error) { - i, err := typequestion.DeserializeQuestion(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRadiusPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsRadiusProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeRadiusPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRadiusProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRadiusProperty, error) { - i, err := propertyradius.DeserializeRadiusProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeReadActivityStreams returns the deserialization method for the -// "ActivityStreamsRead" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRead, error) { - i, err := typeread.DeserializeRead(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRejectActivityStreams returns the deserialization method for the -// "ActivityStreamsReject" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsReject, error) { - i, err := typereject.DeserializeReject(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRelPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsRelProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeRelPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelProperty, error) { - i, err := propertyrel.DeserializeRelProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRelationshipActivityStreams returns the deserialization method for -// the "ActivityStreamsRelationship" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelationship, error) { - i, err := typerelationship.DeserializeRelationship(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRelationshipPropertyActivityStreams returns the deserialization -// method for the "ActivityStreamsRelationshipProperty" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializeRelationshipPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) { - i, err := propertyrelationship.DeserializeRelationshipProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRemoveActivityStreams returns the deserialization method for the -// "ActivityStreamsRemove" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRemove, error) { - i, err := typeremove.DeserializeRemove(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRepliesPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsRepliesProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRepliesProperty, error) { - i, err := propertyreplies.DeserializeRepliesProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeReplyApprovalGoToSocial returns the deserialization method for the -// "GoToSocialReplyApproval" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyApproval, error) { - i, err := typereplyapproval.DeserializeReplyApproval(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeReplyAuthorizationGoToSocial returns the deserialization method for -// the "GoToSocialReplyAuthorization" non-functional property in the -// vocabulary "GoToSocial" -func (this Manager) DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyAuthorization, error) { - i, err := typereplyauthorization.DeserializeReplyAuthorization(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeReplyRequestGoToSocial returns the deserialization method for the -// "GoToSocialReplyRequest" non-functional property in the vocabulary -// "GoToSocial" -func (this Manager) DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialReplyRequest, error) { - i, err := typereplyrequest.DeserializeReplyRequest(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeResultPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsResultProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsResultProperty, error) { - i, err := propertyresult.DeserializeResultProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSensitivePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsSensitiveProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) { - i, err := propertysensitive.DeserializeSensitiveProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeServiceActivityStreams returns the deserialization method for the -// "ActivityStreamsService" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsService, error) { - i, err := typeservice.DeserializeService(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSharedInboxPropertyActivityStreams returns the deserialization -// method for the "ActivityStreamsSharedInboxProperty" non-functional property -// in the vocabulary "ActivityStreams" -func (this Manager) DeserializeSharedInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharedInboxProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSharedInboxProperty, error) { - i, err := propertysharedinbox.DeserializeSharedInboxProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSharesPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsSharesProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSharesProperty, error) { - i, err := propertyshares.DeserializeSharesProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSignatureAlgorithmPropertyToot returns the deserialization method -// for the "TootSignatureAlgorithmProperty" non-functional property in the -// vocabulary "Toot" -func (this Manager) DeserializeSignatureAlgorithmPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureAlgorithmProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootSignatureAlgorithmProperty, error) { - i, err := propertysignaturealgorithm.DeserializeSignatureAlgorithmProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSignatureValuePropertyToot returns the deserialization method for -// the "TootSignatureValueProperty" non-functional property in the vocabulary -// "Toot" -func (this Manager) DeserializeSignatureValuePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureValueProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootSignatureValueProperty, error) { - i, err := propertysignaturevalue.DeserializeSignatureValueProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSourcePropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsSourceProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSourceProperty, error) { - i, err := propertysource.DeserializeSourceProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeStartIndexPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsStartIndexProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeStartIndexPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartIndexProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStartIndexProperty, error) { - i, err := propertystartindex.DeserializeStartIndexProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeStartTimePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsStartTimeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) { - i, err := propertystarttime.DeserializeStartTimeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeStreamsPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsStreamsProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeStreamsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStreamsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStreamsProperty, error) { - i, err := propertystreams.DeserializeStreamsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSubjectPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsSubjectProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeSubjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSubjectProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSubjectProperty, error) { - i, err := propertysubject.DeserializeSubjectProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSummaryPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsSummaryProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSummaryProperty, error) { - i, err := propertysummary.DeserializeSummaryProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTagPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsTagProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTagProperty, error) { - i, err := propertytag.DeserializeTagProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTargetPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsTargetProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTargetProperty, error) { - i, err := propertytarget.DeserializeTargetProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTentativeAcceptActivityStreams returns the deserialization method -// for the "ActivityStreamsTentativeAccept" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTentativeAccept, error) { - i, err := typetentativeaccept.DeserializeTentativeAccept(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTentativeRejectActivityStreams returns the deserialization method -// for the "ActivityStreamsTentativeReject" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTentativeReject, error) { - i, err := typetentativereject.DeserializeTentativeReject(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeToPropertyActivityStreams returns the deserialization method for the -// "ActivityStreamsToProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsToProperty, error) { - i, err := propertyto.DeserializeToProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTombstoneActivityStreams returns the deserialization method for the -// "ActivityStreamsTombstone" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTombstone, error) { - i, err := typetombstone.DeserializeTombstone(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTotalItemsPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsTotalItemsProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) { - i, err := propertytotalitems.DeserializeTotalItemsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTrackFunkwhale returns the deserialization method for the -// "FunkwhaleTrack" non-functional property in the vocabulary "Funkwhale" -func (this Manager) DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleTrack, error) { - i, err := typetrack.DeserializeTrack(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTravelActivityStreams returns the deserialization method for the -// "ActivityStreamsTravel" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTravel, error) { - i, err := typetravel.DeserializeTravel(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTypePropertyJSONLD returns the deserialization method for the -// "JSONLDTypeProperty" non-functional property in the vocabulary "JSONLD" -func (this Manager) DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDTypeProperty, error) { - i, err := propertytype.DeserializeTypeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeUndoActivityStreams returns the deserialization method for the -// "ActivityStreamsUndo" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUndo, error) { - i, err := typeundo.DeserializeUndo(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeUnitsPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsUnitsProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeUnitsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUnitsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUnitsProperty, error) { - i, err := propertyunits.DeserializeUnitsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeUpdateActivityStreams returns the deserialization method for the -// "ActivityStreamsUpdate" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUpdate, error) { - i, err := typeupdate.DeserializeUpdate(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeUpdatedPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsUpdatedProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) { - i, err := propertyupdated.DeserializeUpdatedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeUrlPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsUrlProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUrlProperty, error) { - i, err := propertyurl.DeserializeUrlProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeValuePropertySchema returns the deserialization method for the -// "SchemaValueProperty" non-functional property in the vocabulary "Schema" -func (this Manager) DeserializeValuePropertySchema() func(map[string]interface{}, map[string]string) (vocab.SchemaValueProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SchemaValueProperty, error) { - i, err := propertyvalue.DeserializeValueProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeVideoActivityStreams returns the deserialization method for the -// "ActivityStreamsVideo" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsVideo, error) { - i, err := typevideo.DeserializeVideo(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeViewActivityStreams returns the deserialization method for the -// "ActivityStreamsView" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsView, error) { - i, err := typeview.DeserializeView(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeVotersCountPropertyToot returns the deserialization method for the -// "TootVotersCountProperty" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeVotersCountPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootVotersCountProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootVotersCountProperty, error) { - i, err := propertyvoterscount.DeserializeVotersCountProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeWidthPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsWidthProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeWidthPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsWidthProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsWidthProperty, error) { - i, err := propertywidth.DeserializeWidthProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_disjoint.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_disjoint.go deleted file mode 100644 index e89f26763..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_disjoint.go +++ /dev/null @@ -1,392 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// ActivityStreamsAcceptIsDisjointWith returns true if Accept is disjoint with the -// other's type. -func ActivityStreamsAcceptIsDisjointWith(other vocab.Type) bool { - return typeaccept.AcceptIsDisjointWith(other) -} - -// ActivityStreamsActivityIsDisjointWith returns true if Activity is disjoint with -// the other's type. -func ActivityStreamsActivityIsDisjointWith(other vocab.Type) bool { - return typeactivity.ActivityIsDisjointWith(other) -} - -// ActivityStreamsAddIsDisjointWith returns true if Add is disjoint with the -// other's type. -func ActivityStreamsAddIsDisjointWith(other vocab.Type) bool { - return typeadd.AddIsDisjointWith(other) -} - -// ActivityStreamsAnnounceIsDisjointWith returns true if Announce is disjoint with -// the other's type. -func ActivityStreamsAnnounceIsDisjointWith(other vocab.Type) bool { - return typeannounce.AnnounceIsDisjointWith(other) -} - -// ActivityStreamsApplicationIsDisjointWith returns true if Application is -// disjoint with the other's type. -func ActivityStreamsApplicationIsDisjointWith(other vocab.Type) bool { - return typeapplication.ApplicationIsDisjointWith(other) -} - -// ActivityStreamsArriveIsDisjointWith returns true if Arrive is disjoint with the -// other's type. -func ActivityStreamsArriveIsDisjointWith(other vocab.Type) bool { - return typearrive.ArriveIsDisjointWith(other) -} - -// ActivityStreamsArticleIsDisjointWith returns true if Article is disjoint with -// the other's type. -func ActivityStreamsArticleIsDisjointWith(other vocab.Type) bool { - return typearticle.ArticleIsDisjointWith(other) -} - -// ActivityStreamsAudioIsDisjointWith returns true if Audio is disjoint with the -// other's type. -func ActivityStreamsAudioIsDisjointWith(other vocab.Type) bool { - return typeaudio.AudioIsDisjointWith(other) -} - -// ActivityStreamsBlockIsDisjointWith returns true if Block is disjoint with the -// other's type. -func ActivityStreamsBlockIsDisjointWith(other vocab.Type) bool { - return typeblock.BlockIsDisjointWith(other) -} - -// ActivityStreamsCollectionIsDisjointWith returns true if Collection is disjoint -// with the other's type. -func ActivityStreamsCollectionIsDisjointWith(other vocab.Type) bool { - return typecollection.CollectionIsDisjointWith(other) -} - -// ActivityStreamsCollectionPageIsDisjointWith returns true if CollectionPage is -// disjoint with the other's type. -func ActivityStreamsCollectionPageIsDisjointWith(other vocab.Type) bool { - return typecollectionpage.CollectionPageIsDisjointWith(other) -} - -// ActivityStreamsCreateIsDisjointWith returns true if Create is disjoint with the -// other's type. -func ActivityStreamsCreateIsDisjointWith(other vocab.Type) bool { - return typecreate.CreateIsDisjointWith(other) -} - -// ActivityStreamsDeleteIsDisjointWith returns true if Delete is disjoint with the -// other's type. -func ActivityStreamsDeleteIsDisjointWith(other vocab.Type) bool { - return typedelete.DeleteIsDisjointWith(other) -} - -// ActivityStreamsDislikeIsDisjointWith returns true if Dislike is disjoint with -// the other's type. -func ActivityStreamsDislikeIsDisjointWith(other vocab.Type) bool { - return typedislike.DislikeIsDisjointWith(other) -} - -// ActivityStreamsDocumentIsDisjointWith returns true if Document is disjoint with -// the other's type. -func ActivityStreamsDocumentIsDisjointWith(other vocab.Type) bool { - return typedocument.DocumentIsDisjointWith(other) -} - -// ActivityStreamsEndpointsIsDisjointWith returns true if Endpoints is disjoint -// with the other's type. -func ActivityStreamsEndpointsIsDisjointWith(other vocab.Type) bool { - return typeendpoints.EndpointsIsDisjointWith(other) -} - -// ActivityStreamsEventIsDisjointWith returns true if Event is disjoint with the -// other's type. -func ActivityStreamsEventIsDisjointWith(other vocab.Type) bool { - return typeevent.EventIsDisjointWith(other) -} - -// ActivityStreamsFlagIsDisjointWith returns true if Flag is disjoint with the -// other's type. -func ActivityStreamsFlagIsDisjointWith(other vocab.Type) bool { - return typeflag.FlagIsDisjointWith(other) -} - -// ActivityStreamsFollowIsDisjointWith returns true if Follow is disjoint with the -// other's type. -func ActivityStreamsFollowIsDisjointWith(other vocab.Type) bool { - return typefollow.FollowIsDisjointWith(other) -} - -// ActivityStreamsGroupIsDisjointWith returns true if Group is disjoint with the -// other's type. -func ActivityStreamsGroupIsDisjointWith(other vocab.Type) bool { - return typegroup.GroupIsDisjointWith(other) -} - -// ActivityStreamsIgnoreIsDisjointWith returns true if Ignore is disjoint with the -// other's type. -func ActivityStreamsIgnoreIsDisjointWith(other vocab.Type) bool { - return typeignore.IgnoreIsDisjointWith(other) -} - -// ActivityStreamsImageIsDisjointWith returns true if Image is disjoint with the -// other's type. -func ActivityStreamsImageIsDisjointWith(other vocab.Type) bool { - return typeimage.ImageIsDisjointWith(other) -} - -// ActivityStreamsIntransitiveActivityIsDisjointWith returns true if -// IntransitiveActivity is disjoint with the other's type. -func ActivityStreamsIntransitiveActivityIsDisjointWith(other vocab.Type) bool { - return typeintransitiveactivity.IntransitiveActivityIsDisjointWith(other) -} - -// ActivityStreamsInviteIsDisjointWith returns true if Invite is disjoint with the -// other's type. -func ActivityStreamsInviteIsDisjointWith(other vocab.Type) bool { - return typeinvite.InviteIsDisjointWith(other) -} - -// ActivityStreamsJoinIsDisjointWith returns true if Join is disjoint with the -// other's type. -func ActivityStreamsJoinIsDisjointWith(other vocab.Type) bool { - return typejoin.JoinIsDisjointWith(other) -} - -// ActivityStreamsLeaveIsDisjointWith returns true if Leave is disjoint with the -// other's type. -func ActivityStreamsLeaveIsDisjointWith(other vocab.Type) bool { - return typeleave.LeaveIsDisjointWith(other) -} - -// ActivityStreamsLikeIsDisjointWith returns true if Like is disjoint with the -// other's type. -func ActivityStreamsLikeIsDisjointWith(other vocab.Type) bool { - return typelike.LikeIsDisjointWith(other) -} - -// ActivityStreamsLinkIsDisjointWith returns true if Link is disjoint with the -// other's type. -func ActivityStreamsLinkIsDisjointWith(other vocab.Type) bool { - return typelink.LinkIsDisjointWith(other) -} - -// ActivityStreamsListenIsDisjointWith returns true if Listen is disjoint with the -// other's type. -func ActivityStreamsListenIsDisjointWith(other vocab.Type) bool { - return typelisten.ListenIsDisjointWith(other) -} - -// ActivityStreamsMentionIsDisjointWith returns true if Mention is disjoint with -// the other's type. -func ActivityStreamsMentionIsDisjointWith(other vocab.Type) bool { - return typemention.MentionIsDisjointWith(other) -} - -// ActivityStreamsMoveIsDisjointWith returns true if Move is disjoint with the -// other's type. -func ActivityStreamsMoveIsDisjointWith(other vocab.Type) bool { - return typemove.MoveIsDisjointWith(other) -} - -// ActivityStreamsNoteIsDisjointWith returns true if Note is disjoint with the -// other's type. -func ActivityStreamsNoteIsDisjointWith(other vocab.Type) bool { - return typenote.NoteIsDisjointWith(other) -} - -// ActivityStreamsObjectIsDisjointWith returns true if Object is disjoint with the -// other's type. -func ActivityStreamsObjectIsDisjointWith(other vocab.Type) bool { - return typeobject.ObjectIsDisjointWith(other) -} - -// ActivityStreamsOfferIsDisjointWith returns true if Offer is disjoint with the -// other's type. -func ActivityStreamsOfferIsDisjointWith(other vocab.Type) bool { - return typeoffer.OfferIsDisjointWith(other) -} - -// ActivityStreamsOrderedCollectionIsDisjointWith returns true if -// OrderedCollection is disjoint with the other's type. -func ActivityStreamsOrderedCollectionIsDisjointWith(other vocab.Type) bool { - return typeorderedcollection.OrderedCollectionIsDisjointWith(other) -} - -// ActivityStreamsOrderedCollectionPageIsDisjointWith returns true if -// OrderedCollectionPage is disjoint with the other's type. -func ActivityStreamsOrderedCollectionPageIsDisjointWith(other vocab.Type) bool { - return typeorderedcollectionpage.OrderedCollectionPageIsDisjointWith(other) -} - -// ActivityStreamsOrganizationIsDisjointWith returns true if Organization is -// disjoint with the other's type. -func ActivityStreamsOrganizationIsDisjointWith(other vocab.Type) bool { - return typeorganization.OrganizationIsDisjointWith(other) -} - -// ActivityStreamsPageIsDisjointWith returns true if Page is disjoint with the -// other's type. -func ActivityStreamsPageIsDisjointWith(other vocab.Type) bool { - return typepage.PageIsDisjointWith(other) -} - -// ActivityStreamsPersonIsDisjointWith returns true if Person is disjoint with the -// other's type. -func ActivityStreamsPersonIsDisjointWith(other vocab.Type) bool { - return typeperson.PersonIsDisjointWith(other) -} - -// ActivityStreamsPlaceIsDisjointWith returns true if Place is disjoint with the -// other's type. -func ActivityStreamsPlaceIsDisjointWith(other vocab.Type) bool { - return typeplace.PlaceIsDisjointWith(other) -} - -// ActivityStreamsProfileIsDisjointWith returns true if Profile is disjoint with -// the other's type. -func ActivityStreamsProfileIsDisjointWith(other vocab.Type) bool { - return typeprofile.ProfileIsDisjointWith(other) -} - -// ActivityStreamsQuestionIsDisjointWith returns true if Question is disjoint with -// the other's type. -func ActivityStreamsQuestionIsDisjointWith(other vocab.Type) bool { - return typequestion.QuestionIsDisjointWith(other) -} - -// ActivityStreamsReadIsDisjointWith returns true if Read is disjoint with the -// other's type. -func ActivityStreamsReadIsDisjointWith(other vocab.Type) bool { - return typeread.ReadIsDisjointWith(other) -} - -// ActivityStreamsRejectIsDisjointWith returns true if Reject is disjoint with the -// other's type. -func ActivityStreamsRejectIsDisjointWith(other vocab.Type) bool { - return typereject.RejectIsDisjointWith(other) -} - -// ActivityStreamsRelationshipIsDisjointWith returns true if Relationship is -// disjoint with the other's type. -func ActivityStreamsRelationshipIsDisjointWith(other vocab.Type) bool { - return typerelationship.RelationshipIsDisjointWith(other) -} - -// ActivityStreamsRemoveIsDisjointWith returns true if Remove is disjoint with the -// other's type. -func ActivityStreamsRemoveIsDisjointWith(other vocab.Type) bool { - return typeremove.RemoveIsDisjointWith(other) -} - -// ActivityStreamsServiceIsDisjointWith returns true if Service is disjoint with -// the other's type. -func ActivityStreamsServiceIsDisjointWith(other vocab.Type) bool { - return typeservice.ServiceIsDisjointWith(other) -} - -// ActivityStreamsTentativeAcceptIsDisjointWith returns true if TentativeAccept is -// disjoint with the other's type. -func ActivityStreamsTentativeAcceptIsDisjointWith(other vocab.Type) bool { - return typetentativeaccept.TentativeAcceptIsDisjointWith(other) -} - -// ActivityStreamsTentativeRejectIsDisjointWith returns true if TentativeReject is -// disjoint with the other's type. -func ActivityStreamsTentativeRejectIsDisjointWith(other vocab.Type) bool { - return typetentativereject.TentativeRejectIsDisjointWith(other) -} - -// ActivityStreamsTombstoneIsDisjointWith returns true if Tombstone is disjoint -// with the other's type. -func ActivityStreamsTombstoneIsDisjointWith(other vocab.Type) bool { - return typetombstone.TombstoneIsDisjointWith(other) -} - -// ActivityStreamsTravelIsDisjointWith returns true if Travel is disjoint with the -// other's type. -func ActivityStreamsTravelIsDisjointWith(other vocab.Type) bool { - return typetravel.TravelIsDisjointWith(other) -} - -// ActivityStreamsUndoIsDisjointWith returns true if Undo is disjoint with the -// other's type. -func ActivityStreamsUndoIsDisjointWith(other vocab.Type) bool { - return typeundo.UndoIsDisjointWith(other) -} - -// ActivityStreamsUpdateIsDisjointWith returns true if Update is disjoint with the -// other's type. -func ActivityStreamsUpdateIsDisjointWith(other vocab.Type) bool { - return typeupdate.UpdateIsDisjointWith(other) -} - -// ActivityStreamsVideoIsDisjointWith returns true if Video is disjoint with the -// other's type. -func ActivityStreamsVideoIsDisjointWith(other vocab.Type) bool { - return typevideo.VideoIsDisjointWith(other) -} - -// ActivityStreamsViewIsDisjointWith returns true if View is disjoint with the -// other's type. -func ActivityStreamsViewIsDisjointWith(other vocab.Type) bool { - return typeview.ViewIsDisjointWith(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extendedby.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extendedby.go deleted file mode 100644 index 22cf4171c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extendedby.go +++ /dev/null @@ -1,447 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// ActivityStreamsAcceptIsExtendedBy returns true if the other's type extends from -// Accept. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsAcceptIsExtendedBy(other vocab.Type) bool { - return typeaccept.AcceptIsExtendedBy(other) -} - -// ActivityStreamsActivityIsExtendedBy returns true if the other's type extends -// from Activity. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsActivityIsExtendedBy(other vocab.Type) bool { - return typeactivity.ActivityIsExtendedBy(other) -} - -// ActivityStreamsAddIsExtendedBy returns true if the other's type extends from -// Add. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsAddIsExtendedBy(other vocab.Type) bool { - return typeadd.AddIsExtendedBy(other) -} - -// ActivityStreamsAnnounceIsExtendedBy returns true if the other's type extends -// from Announce. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsAnnounceIsExtendedBy(other vocab.Type) bool { - return typeannounce.AnnounceIsExtendedBy(other) -} - -// ActivityStreamsApplicationIsExtendedBy returns true if the other's type extends -// from Application. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsApplicationIsExtendedBy(other vocab.Type) bool { - return typeapplication.ApplicationIsExtendedBy(other) -} - -// ActivityStreamsArriveIsExtendedBy returns true if the other's type extends from -// Arrive. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsArriveIsExtendedBy(other vocab.Type) bool { - return typearrive.ArriveIsExtendedBy(other) -} - -// ActivityStreamsArticleIsExtendedBy returns true if the other's type extends -// from Article. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsArticleIsExtendedBy(other vocab.Type) bool { - return typearticle.ArticleIsExtendedBy(other) -} - -// ActivityStreamsAudioIsExtendedBy returns true if the other's type extends from -// Audio. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsAudioIsExtendedBy(other vocab.Type) bool { - return typeaudio.AudioIsExtendedBy(other) -} - -// ActivityStreamsBlockIsExtendedBy returns true if the other's type extends from -// Block. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsBlockIsExtendedBy(other vocab.Type) bool { - return typeblock.BlockIsExtendedBy(other) -} - -// ActivityStreamsCollectionIsExtendedBy returns true if the other's type extends -// from Collection. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsCollectionIsExtendedBy(other vocab.Type) bool { - return typecollection.CollectionIsExtendedBy(other) -} - -// ActivityStreamsCollectionPageIsExtendedBy returns true if the other's type -// extends from CollectionPage. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func ActivityStreamsCollectionPageIsExtendedBy(other vocab.Type) bool { - return typecollectionpage.CollectionPageIsExtendedBy(other) -} - -// ActivityStreamsCreateIsExtendedBy returns true if the other's type extends from -// Create. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsCreateIsExtendedBy(other vocab.Type) bool { - return typecreate.CreateIsExtendedBy(other) -} - -// ActivityStreamsDeleteIsExtendedBy returns true if the other's type extends from -// Delete. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsDeleteIsExtendedBy(other vocab.Type) bool { - return typedelete.DeleteIsExtendedBy(other) -} - -// ActivityStreamsDislikeIsExtendedBy returns true if the other's type extends -// from Dislike. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsDislikeIsExtendedBy(other vocab.Type) bool { - return typedislike.DislikeIsExtendedBy(other) -} - -// ActivityStreamsDocumentIsExtendedBy returns true if the other's type extends -// from Document. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsDocumentIsExtendedBy(other vocab.Type) bool { - return typedocument.DocumentIsExtendedBy(other) -} - -// ActivityStreamsEndpointsIsExtendedBy returns true if the other's type extends -// from Endpoints. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsEndpointsIsExtendedBy(other vocab.Type) bool { - return typeendpoints.EndpointsIsExtendedBy(other) -} - -// ActivityStreamsEventIsExtendedBy returns true if the other's type extends from -// Event. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsEventIsExtendedBy(other vocab.Type) bool { - return typeevent.EventIsExtendedBy(other) -} - -// ActivityStreamsFlagIsExtendedBy returns true if the other's type extends from -// Flag. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsFlagIsExtendedBy(other vocab.Type) bool { - return typeflag.FlagIsExtendedBy(other) -} - -// ActivityStreamsFollowIsExtendedBy returns true if the other's type extends from -// Follow. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsFollowIsExtendedBy(other vocab.Type) bool { - return typefollow.FollowIsExtendedBy(other) -} - -// ActivityStreamsGroupIsExtendedBy returns true if the other's type extends from -// Group. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsGroupIsExtendedBy(other vocab.Type) bool { - return typegroup.GroupIsExtendedBy(other) -} - -// ActivityStreamsIgnoreIsExtendedBy returns true if the other's type extends from -// Ignore. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsIgnoreIsExtendedBy(other vocab.Type) bool { - return typeignore.IgnoreIsExtendedBy(other) -} - -// ActivityStreamsImageIsExtendedBy returns true if the other's type extends from -// Image. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsImageIsExtendedBy(other vocab.Type) bool { - return typeimage.ImageIsExtendedBy(other) -} - -// ActivityStreamsIntransitiveActivityIsExtendedBy returns true if the other's -// type extends from IntransitiveActivity. Note that it returns false if the -// types are the same; see the "IsOrExtends" variant instead. -func ActivityStreamsIntransitiveActivityIsExtendedBy(other vocab.Type) bool { - return typeintransitiveactivity.IntransitiveActivityIsExtendedBy(other) -} - -// ActivityStreamsInviteIsExtendedBy returns true if the other's type extends from -// Invite. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsInviteIsExtendedBy(other vocab.Type) bool { - return typeinvite.InviteIsExtendedBy(other) -} - -// ActivityStreamsJoinIsExtendedBy returns true if the other's type extends from -// Join. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsJoinIsExtendedBy(other vocab.Type) bool { - return typejoin.JoinIsExtendedBy(other) -} - -// ActivityStreamsLeaveIsExtendedBy returns true if the other's type extends from -// Leave. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsLeaveIsExtendedBy(other vocab.Type) bool { - return typeleave.LeaveIsExtendedBy(other) -} - -// ActivityStreamsLikeIsExtendedBy returns true if the other's type extends from -// Like. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsLikeIsExtendedBy(other vocab.Type) bool { - return typelike.LikeIsExtendedBy(other) -} - -// ActivityStreamsLinkIsExtendedBy returns true if the other's type extends from -// Link. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsLinkIsExtendedBy(other vocab.Type) bool { - return typelink.LinkIsExtendedBy(other) -} - -// ActivityStreamsListenIsExtendedBy returns true if the other's type extends from -// Listen. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsListenIsExtendedBy(other vocab.Type) bool { - return typelisten.ListenIsExtendedBy(other) -} - -// ActivityStreamsMentionIsExtendedBy returns true if the other's type extends -// from Mention. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsMentionIsExtendedBy(other vocab.Type) bool { - return typemention.MentionIsExtendedBy(other) -} - -// ActivityStreamsMoveIsExtendedBy returns true if the other's type extends from -// Move. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsMoveIsExtendedBy(other vocab.Type) bool { - return typemove.MoveIsExtendedBy(other) -} - -// ActivityStreamsNoteIsExtendedBy returns true if the other's type extends from -// Note. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsNoteIsExtendedBy(other vocab.Type) bool { - return typenote.NoteIsExtendedBy(other) -} - -// ActivityStreamsObjectIsExtendedBy returns true if the other's type extends from -// Object. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsObjectIsExtendedBy(other vocab.Type) bool { - return typeobject.ObjectIsExtendedBy(other) -} - -// ActivityStreamsOfferIsExtendedBy returns true if the other's type extends from -// Offer. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsOfferIsExtendedBy(other vocab.Type) bool { - return typeoffer.OfferIsExtendedBy(other) -} - -// ActivityStreamsOrderedCollectionIsExtendedBy returns true if the other's type -// extends from OrderedCollection. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func ActivityStreamsOrderedCollectionIsExtendedBy(other vocab.Type) bool { - return typeorderedcollection.OrderedCollectionIsExtendedBy(other) -} - -// ActivityStreamsOrderedCollectionPageIsExtendedBy returns true if the other's -// type extends from OrderedCollectionPage. Note that it returns false if the -// types are the same; see the "IsOrExtends" variant instead. -func ActivityStreamsOrderedCollectionPageIsExtendedBy(other vocab.Type) bool { - return typeorderedcollectionpage.OrderedCollectionPageIsExtendedBy(other) -} - -// ActivityStreamsOrganizationIsExtendedBy returns true if the other's type -// extends from Organization. Note that it returns false if the types are the -// same; see the "IsOrExtends" variant instead. -func ActivityStreamsOrganizationIsExtendedBy(other vocab.Type) bool { - return typeorganization.OrganizationIsExtendedBy(other) -} - -// ActivityStreamsPageIsExtendedBy returns true if the other's type extends from -// Page. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsPageIsExtendedBy(other vocab.Type) bool { - return typepage.PageIsExtendedBy(other) -} - -// ActivityStreamsPersonIsExtendedBy returns true if the other's type extends from -// Person. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsPersonIsExtendedBy(other vocab.Type) bool { - return typeperson.PersonIsExtendedBy(other) -} - -// ActivityStreamsPlaceIsExtendedBy returns true if the other's type extends from -// Place. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsPlaceIsExtendedBy(other vocab.Type) bool { - return typeplace.PlaceIsExtendedBy(other) -} - -// ActivityStreamsProfileIsExtendedBy returns true if the other's type extends -// from Profile. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsProfileIsExtendedBy(other vocab.Type) bool { - return typeprofile.ProfileIsExtendedBy(other) -} - -// ActivityStreamsQuestionIsExtendedBy returns true if the other's type extends -// from Question. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsQuestionIsExtendedBy(other vocab.Type) bool { - return typequestion.QuestionIsExtendedBy(other) -} - -// ActivityStreamsReadIsExtendedBy returns true if the other's type extends from -// Read. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsReadIsExtendedBy(other vocab.Type) bool { - return typeread.ReadIsExtendedBy(other) -} - -// ActivityStreamsRejectIsExtendedBy returns true if the other's type extends from -// Reject. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsRejectIsExtendedBy(other vocab.Type) bool { - return typereject.RejectIsExtendedBy(other) -} - -// ActivityStreamsRelationshipIsExtendedBy returns true if the other's type -// extends from Relationship. Note that it returns false if the types are the -// same; see the "IsOrExtends" variant instead. -func ActivityStreamsRelationshipIsExtendedBy(other vocab.Type) bool { - return typerelationship.RelationshipIsExtendedBy(other) -} - -// ActivityStreamsRemoveIsExtendedBy returns true if the other's type extends from -// Remove. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsRemoveIsExtendedBy(other vocab.Type) bool { - return typeremove.RemoveIsExtendedBy(other) -} - -// ActivityStreamsServiceIsExtendedBy returns true if the other's type extends -// from Service. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsServiceIsExtendedBy(other vocab.Type) bool { - return typeservice.ServiceIsExtendedBy(other) -} - -// ActivityStreamsTentativeAcceptIsExtendedBy returns true if the other's type -// extends from TentativeAccept. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func ActivityStreamsTentativeAcceptIsExtendedBy(other vocab.Type) bool { - return typetentativeaccept.TentativeAcceptIsExtendedBy(other) -} - -// ActivityStreamsTentativeRejectIsExtendedBy returns true if the other's type -// extends from TentativeReject. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func ActivityStreamsTentativeRejectIsExtendedBy(other vocab.Type) bool { - return typetentativereject.TentativeRejectIsExtendedBy(other) -} - -// ActivityStreamsTombstoneIsExtendedBy returns true if the other's type extends -// from Tombstone. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsTombstoneIsExtendedBy(other vocab.Type) bool { - return typetombstone.TombstoneIsExtendedBy(other) -} - -// ActivityStreamsTravelIsExtendedBy returns true if the other's type extends from -// Travel. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsTravelIsExtendedBy(other vocab.Type) bool { - return typetravel.TravelIsExtendedBy(other) -} - -// ActivityStreamsUndoIsExtendedBy returns true if the other's type extends from -// Undo. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsUndoIsExtendedBy(other vocab.Type) bool { - return typeundo.UndoIsExtendedBy(other) -} - -// ActivityStreamsUpdateIsExtendedBy returns true if the other's type extends from -// Update. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsUpdateIsExtendedBy(other vocab.Type) bool { - return typeupdate.UpdateIsExtendedBy(other) -} - -// ActivityStreamsVideoIsExtendedBy returns true if the other's type extends from -// Video. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsVideoIsExtendedBy(other vocab.Type) bool { - return typevideo.VideoIsExtendedBy(other) -} - -// ActivityStreamsViewIsExtendedBy returns true if the other's type extends from -// View. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsViewIsExtendedBy(other vocab.Type) bool { - return typeview.ViewIsExtendedBy(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extends.go deleted file mode 100644 index 9f665727d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_extends.go +++ /dev/null @@ -1,392 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// ActivityStreamsActivityStreamsAcceptExtends returns true if Accept extends from -// the other's type. -func ActivityStreamsActivityStreamsAcceptExtends(other vocab.Type) bool { - return typeaccept.ActivityStreamsAcceptExtends(other) -} - -// ActivityStreamsActivityStreamsActivityExtends returns true if Activity extends -// from the other's type. -func ActivityStreamsActivityStreamsActivityExtends(other vocab.Type) bool { - return typeactivity.ActivityStreamsActivityExtends(other) -} - -// ActivityStreamsActivityStreamsAddExtends returns true if Add extends from the -// other's type. -func ActivityStreamsActivityStreamsAddExtends(other vocab.Type) bool { - return typeadd.ActivityStreamsAddExtends(other) -} - -// ActivityStreamsActivityStreamsAnnounceExtends returns true if Announce extends -// from the other's type. -func ActivityStreamsActivityStreamsAnnounceExtends(other vocab.Type) bool { - return typeannounce.ActivityStreamsAnnounceExtends(other) -} - -// ActivityStreamsActivityStreamsApplicationExtends returns true if Application -// extends from the other's type. -func ActivityStreamsActivityStreamsApplicationExtends(other vocab.Type) bool { - return typeapplication.ActivityStreamsApplicationExtends(other) -} - -// ActivityStreamsActivityStreamsArriveExtends returns true if Arrive extends from -// the other's type. -func ActivityStreamsActivityStreamsArriveExtends(other vocab.Type) bool { - return typearrive.ActivityStreamsArriveExtends(other) -} - -// ActivityStreamsActivityStreamsArticleExtends returns true if Article extends -// from the other's type. -func ActivityStreamsActivityStreamsArticleExtends(other vocab.Type) bool { - return typearticle.ActivityStreamsArticleExtends(other) -} - -// ActivityStreamsActivityStreamsAudioExtends returns true if Audio extends from -// the other's type. -func ActivityStreamsActivityStreamsAudioExtends(other vocab.Type) bool { - return typeaudio.ActivityStreamsAudioExtends(other) -} - -// ActivityStreamsActivityStreamsBlockExtends returns true if Block extends from -// the other's type. -func ActivityStreamsActivityStreamsBlockExtends(other vocab.Type) bool { - return typeblock.ActivityStreamsBlockExtends(other) -} - -// ActivityStreamsActivityStreamsCollectionExtends returns true if Collection -// extends from the other's type. -func ActivityStreamsActivityStreamsCollectionExtends(other vocab.Type) bool { - return typecollection.ActivityStreamsCollectionExtends(other) -} - -// ActivityStreamsActivityStreamsCollectionPageExtends returns true if -// CollectionPage extends from the other's type. -func ActivityStreamsActivityStreamsCollectionPageExtends(other vocab.Type) bool { - return typecollectionpage.ActivityStreamsCollectionPageExtends(other) -} - -// ActivityStreamsActivityStreamsCreateExtends returns true if Create extends from -// the other's type. -func ActivityStreamsActivityStreamsCreateExtends(other vocab.Type) bool { - return typecreate.ActivityStreamsCreateExtends(other) -} - -// ActivityStreamsActivityStreamsDeleteExtends returns true if Delete extends from -// the other's type. -func ActivityStreamsActivityStreamsDeleteExtends(other vocab.Type) bool { - return typedelete.ActivityStreamsDeleteExtends(other) -} - -// ActivityStreamsActivityStreamsDislikeExtends returns true if Dislike extends -// from the other's type. -func ActivityStreamsActivityStreamsDislikeExtends(other vocab.Type) bool { - return typedislike.ActivityStreamsDislikeExtends(other) -} - -// ActivityStreamsActivityStreamsDocumentExtends returns true if Document extends -// from the other's type. -func ActivityStreamsActivityStreamsDocumentExtends(other vocab.Type) bool { - return typedocument.ActivityStreamsDocumentExtends(other) -} - -// ActivityStreamsActivityStreamsEndpointsExtends returns true if Endpoints -// extends from the other's type. -func ActivityStreamsActivityStreamsEndpointsExtends(other vocab.Type) bool { - return typeendpoints.ActivityStreamsEndpointsExtends(other) -} - -// ActivityStreamsActivityStreamsEventExtends returns true if Event extends from -// the other's type. -func ActivityStreamsActivityStreamsEventExtends(other vocab.Type) bool { - return typeevent.ActivityStreamsEventExtends(other) -} - -// ActivityStreamsActivityStreamsFlagExtends returns true if Flag extends from the -// other's type. -func ActivityStreamsActivityStreamsFlagExtends(other vocab.Type) bool { - return typeflag.ActivityStreamsFlagExtends(other) -} - -// ActivityStreamsActivityStreamsFollowExtends returns true if Follow extends from -// the other's type. -func ActivityStreamsActivityStreamsFollowExtends(other vocab.Type) bool { - return typefollow.ActivityStreamsFollowExtends(other) -} - -// ActivityStreamsActivityStreamsGroupExtends returns true if Group extends from -// the other's type. -func ActivityStreamsActivityStreamsGroupExtends(other vocab.Type) bool { - return typegroup.ActivityStreamsGroupExtends(other) -} - -// ActivityStreamsActivityStreamsIgnoreExtends returns true if Ignore extends from -// the other's type. -func ActivityStreamsActivityStreamsIgnoreExtends(other vocab.Type) bool { - return typeignore.ActivityStreamsIgnoreExtends(other) -} - -// ActivityStreamsActivityStreamsImageExtends returns true if Image extends from -// the other's type. -func ActivityStreamsActivityStreamsImageExtends(other vocab.Type) bool { - return typeimage.ActivityStreamsImageExtends(other) -} - -// ActivityStreamsActivityStreamsIntransitiveActivityExtends returns true if -// IntransitiveActivity extends from the other's type. -func ActivityStreamsActivityStreamsIntransitiveActivityExtends(other vocab.Type) bool { - return typeintransitiveactivity.ActivityStreamsIntransitiveActivityExtends(other) -} - -// ActivityStreamsActivityStreamsInviteExtends returns true if Invite extends from -// the other's type. -func ActivityStreamsActivityStreamsInviteExtends(other vocab.Type) bool { - return typeinvite.ActivityStreamsInviteExtends(other) -} - -// ActivityStreamsActivityStreamsJoinExtends returns true if Join extends from the -// other's type. -func ActivityStreamsActivityStreamsJoinExtends(other vocab.Type) bool { - return typejoin.ActivityStreamsJoinExtends(other) -} - -// ActivityStreamsActivityStreamsLeaveExtends returns true if Leave extends from -// the other's type. -func ActivityStreamsActivityStreamsLeaveExtends(other vocab.Type) bool { - return typeleave.ActivityStreamsLeaveExtends(other) -} - -// ActivityStreamsActivityStreamsLikeExtends returns true if Like extends from the -// other's type. -func ActivityStreamsActivityStreamsLikeExtends(other vocab.Type) bool { - return typelike.ActivityStreamsLikeExtends(other) -} - -// ActivityStreamsActivityStreamsLinkExtends returns true if Link extends from the -// other's type. -func ActivityStreamsActivityStreamsLinkExtends(other vocab.Type) bool { - return typelink.ActivityStreamsLinkExtends(other) -} - -// ActivityStreamsActivityStreamsListenExtends returns true if Listen extends from -// the other's type. -func ActivityStreamsActivityStreamsListenExtends(other vocab.Type) bool { - return typelisten.ActivityStreamsListenExtends(other) -} - -// ActivityStreamsActivityStreamsMentionExtends returns true if Mention extends -// from the other's type. -func ActivityStreamsActivityStreamsMentionExtends(other vocab.Type) bool { - return typemention.ActivityStreamsMentionExtends(other) -} - -// ActivityStreamsActivityStreamsMoveExtends returns true if Move extends from the -// other's type. -func ActivityStreamsActivityStreamsMoveExtends(other vocab.Type) bool { - return typemove.ActivityStreamsMoveExtends(other) -} - -// ActivityStreamsActivityStreamsNoteExtends returns true if Note extends from the -// other's type. -func ActivityStreamsActivityStreamsNoteExtends(other vocab.Type) bool { - return typenote.ActivityStreamsNoteExtends(other) -} - -// ActivityStreamsActivityStreamsObjectExtends returns true if Object extends from -// the other's type. -func ActivityStreamsActivityStreamsObjectExtends(other vocab.Type) bool { - return typeobject.ActivityStreamsObjectExtends(other) -} - -// ActivityStreamsActivityStreamsOfferExtends returns true if Offer extends from -// the other's type. -func ActivityStreamsActivityStreamsOfferExtends(other vocab.Type) bool { - return typeoffer.ActivityStreamsOfferExtends(other) -} - -// ActivityStreamsActivityStreamsOrderedCollectionExtends returns true if -// OrderedCollection extends from the other's type. -func ActivityStreamsActivityStreamsOrderedCollectionExtends(other vocab.Type) bool { - return typeorderedcollection.ActivityStreamsOrderedCollectionExtends(other) -} - -// ActivityStreamsActivityStreamsOrderedCollectionPageExtends returns true if -// OrderedCollectionPage extends from the other's type. -func ActivityStreamsActivityStreamsOrderedCollectionPageExtends(other vocab.Type) bool { - return typeorderedcollectionpage.ActivityStreamsOrderedCollectionPageExtends(other) -} - -// ActivityStreamsActivityStreamsOrganizationExtends returns true if Organization -// extends from the other's type. -func ActivityStreamsActivityStreamsOrganizationExtends(other vocab.Type) bool { - return typeorganization.ActivityStreamsOrganizationExtends(other) -} - -// ActivityStreamsActivityStreamsPageExtends returns true if Page extends from the -// other's type. -func ActivityStreamsActivityStreamsPageExtends(other vocab.Type) bool { - return typepage.ActivityStreamsPageExtends(other) -} - -// ActivityStreamsActivityStreamsPersonExtends returns true if Person extends from -// the other's type. -func ActivityStreamsActivityStreamsPersonExtends(other vocab.Type) bool { - return typeperson.ActivityStreamsPersonExtends(other) -} - -// ActivityStreamsActivityStreamsPlaceExtends returns true if Place extends from -// the other's type. -func ActivityStreamsActivityStreamsPlaceExtends(other vocab.Type) bool { - return typeplace.ActivityStreamsPlaceExtends(other) -} - -// ActivityStreamsActivityStreamsProfileExtends returns true if Profile extends -// from the other's type. -func ActivityStreamsActivityStreamsProfileExtends(other vocab.Type) bool { - return typeprofile.ActivityStreamsProfileExtends(other) -} - -// ActivityStreamsActivityStreamsQuestionExtends returns true if Question extends -// from the other's type. -func ActivityStreamsActivityStreamsQuestionExtends(other vocab.Type) bool { - return typequestion.ActivityStreamsQuestionExtends(other) -} - -// ActivityStreamsActivityStreamsReadExtends returns true if Read extends from the -// other's type. -func ActivityStreamsActivityStreamsReadExtends(other vocab.Type) bool { - return typeread.ActivityStreamsReadExtends(other) -} - -// ActivityStreamsActivityStreamsRejectExtends returns true if Reject extends from -// the other's type. -func ActivityStreamsActivityStreamsRejectExtends(other vocab.Type) bool { - return typereject.ActivityStreamsRejectExtends(other) -} - -// ActivityStreamsActivityStreamsRelationshipExtends returns true if Relationship -// extends from the other's type. -func ActivityStreamsActivityStreamsRelationshipExtends(other vocab.Type) bool { - return typerelationship.ActivityStreamsRelationshipExtends(other) -} - -// ActivityStreamsActivityStreamsRemoveExtends returns true if Remove extends from -// the other's type. -func ActivityStreamsActivityStreamsRemoveExtends(other vocab.Type) bool { - return typeremove.ActivityStreamsRemoveExtends(other) -} - -// ActivityStreamsActivityStreamsServiceExtends returns true if Service extends -// from the other's type. -func ActivityStreamsActivityStreamsServiceExtends(other vocab.Type) bool { - return typeservice.ActivityStreamsServiceExtends(other) -} - -// ActivityStreamsActivityStreamsTentativeAcceptExtends returns true if -// TentativeAccept extends from the other's type. -func ActivityStreamsActivityStreamsTentativeAcceptExtends(other vocab.Type) bool { - return typetentativeaccept.ActivityStreamsTentativeAcceptExtends(other) -} - -// ActivityStreamsActivityStreamsTentativeRejectExtends returns true if -// TentativeReject extends from the other's type. -func ActivityStreamsActivityStreamsTentativeRejectExtends(other vocab.Type) bool { - return typetentativereject.ActivityStreamsTentativeRejectExtends(other) -} - -// ActivityStreamsActivityStreamsTombstoneExtends returns true if Tombstone -// extends from the other's type. -func ActivityStreamsActivityStreamsTombstoneExtends(other vocab.Type) bool { - return typetombstone.ActivityStreamsTombstoneExtends(other) -} - -// ActivityStreamsActivityStreamsTravelExtends returns true if Travel extends from -// the other's type. -func ActivityStreamsActivityStreamsTravelExtends(other vocab.Type) bool { - return typetravel.ActivityStreamsTravelExtends(other) -} - -// ActivityStreamsActivityStreamsUndoExtends returns true if Undo extends from the -// other's type. -func ActivityStreamsActivityStreamsUndoExtends(other vocab.Type) bool { - return typeundo.ActivityStreamsUndoExtends(other) -} - -// ActivityStreamsActivityStreamsUpdateExtends returns true if Update extends from -// the other's type. -func ActivityStreamsActivityStreamsUpdateExtends(other vocab.Type) bool { - return typeupdate.ActivityStreamsUpdateExtends(other) -} - -// ActivityStreamsActivityStreamsVideoExtends returns true if Video extends from -// the other's type. -func ActivityStreamsActivityStreamsVideoExtends(other vocab.Type) bool { - return typevideo.ActivityStreamsVideoExtends(other) -} - -// ActivityStreamsActivityStreamsViewExtends returns true if View extends from the -// other's type. -func ActivityStreamsActivityStreamsViewExtends(other vocab.Type) bool { - return typeview.ActivityStreamsViewExtends(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_isorextends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_isorextends.go deleted file mode 100644 index 68de190bf..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_isorextends.go +++ /dev/null @@ -1,395 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// IsOrExtendsActivityStreamsAccept returns true if the other provided type is the -// Accept type or extends from the Accept type. -func IsOrExtendsActivityStreamsAccept(other vocab.Type) bool { - return typeaccept.IsOrExtendsAccept(other) -} - -// IsOrExtendsActivityStreamsActivity returns true if the other provided type is -// the Activity type or extends from the Activity type. -func IsOrExtendsActivityStreamsActivity(other vocab.Type) bool { - return typeactivity.IsOrExtendsActivity(other) -} - -// IsOrExtendsActivityStreamsAdd returns true if the other provided type is the -// Add type or extends from the Add type. -func IsOrExtendsActivityStreamsAdd(other vocab.Type) bool { - return typeadd.IsOrExtendsAdd(other) -} - -// IsOrExtendsActivityStreamsAnnounce returns true if the other provided type is -// the Announce type or extends from the Announce type. -func IsOrExtendsActivityStreamsAnnounce(other vocab.Type) bool { - return typeannounce.IsOrExtendsAnnounce(other) -} - -// IsOrExtendsActivityStreamsApplication returns true if the other provided type -// is the Application type or extends from the Application type. -func IsOrExtendsActivityStreamsApplication(other vocab.Type) bool { - return typeapplication.IsOrExtendsApplication(other) -} - -// IsOrExtendsActivityStreamsArrive returns true if the other provided type is the -// Arrive type or extends from the Arrive type. -func IsOrExtendsActivityStreamsArrive(other vocab.Type) bool { - return typearrive.IsOrExtendsArrive(other) -} - -// IsOrExtendsActivityStreamsArticle returns true if the other provided type is -// the Article type or extends from the Article type. -func IsOrExtendsActivityStreamsArticle(other vocab.Type) bool { - return typearticle.IsOrExtendsArticle(other) -} - -// IsOrExtendsActivityStreamsAudio returns true if the other provided type is the -// Audio type or extends from the Audio type. -func IsOrExtendsActivityStreamsAudio(other vocab.Type) bool { - return typeaudio.IsOrExtendsAudio(other) -} - -// IsOrExtendsActivityStreamsBlock returns true if the other provided type is the -// Block type or extends from the Block type. -func IsOrExtendsActivityStreamsBlock(other vocab.Type) bool { - return typeblock.IsOrExtendsBlock(other) -} - -// IsOrExtendsActivityStreamsCollection returns true if the other provided type is -// the Collection type or extends from the Collection type. -func IsOrExtendsActivityStreamsCollection(other vocab.Type) bool { - return typecollection.IsOrExtendsCollection(other) -} - -// IsOrExtendsActivityStreamsCollectionPage returns true if the other provided -// type is the CollectionPage type or extends from the CollectionPage type. -func IsOrExtendsActivityStreamsCollectionPage(other vocab.Type) bool { - return typecollectionpage.IsOrExtendsCollectionPage(other) -} - -// IsOrExtendsActivityStreamsCreate returns true if the other provided type is the -// Create type or extends from the Create type. -func IsOrExtendsActivityStreamsCreate(other vocab.Type) bool { - return typecreate.IsOrExtendsCreate(other) -} - -// IsOrExtendsActivityStreamsDelete returns true if the other provided type is the -// Delete type or extends from the Delete type. -func IsOrExtendsActivityStreamsDelete(other vocab.Type) bool { - return typedelete.IsOrExtendsDelete(other) -} - -// IsOrExtendsActivityStreamsDislike returns true if the other provided type is -// the Dislike type or extends from the Dislike type. -func IsOrExtendsActivityStreamsDislike(other vocab.Type) bool { - return typedislike.IsOrExtendsDislike(other) -} - -// IsOrExtendsActivityStreamsDocument returns true if the other provided type is -// the Document type or extends from the Document type. -func IsOrExtendsActivityStreamsDocument(other vocab.Type) bool { - return typedocument.IsOrExtendsDocument(other) -} - -// IsOrExtendsActivityStreamsEndpoints returns true if the other provided type is -// the Endpoints type or extends from the Endpoints type. -func IsOrExtendsActivityStreamsEndpoints(other vocab.Type) bool { - return typeendpoints.IsOrExtendsEndpoints(other) -} - -// IsOrExtendsActivityStreamsEvent returns true if the other provided type is the -// Event type or extends from the Event type. -func IsOrExtendsActivityStreamsEvent(other vocab.Type) bool { - return typeevent.IsOrExtendsEvent(other) -} - -// IsOrExtendsActivityStreamsFlag returns true if the other provided type is the -// Flag type or extends from the Flag type. -func IsOrExtendsActivityStreamsFlag(other vocab.Type) bool { - return typeflag.IsOrExtendsFlag(other) -} - -// IsOrExtendsActivityStreamsFollow returns true if the other provided type is the -// Follow type or extends from the Follow type. -func IsOrExtendsActivityStreamsFollow(other vocab.Type) bool { - return typefollow.IsOrExtendsFollow(other) -} - -// IsOrExtendsActivityStreamsGroup returns true if the other provided type is the -// Group type or extends from the Group type. -func IsOrExtendsActivityStreamsGroup(other vocab.Type) bool { - return typegroup.IsOrExtendsGroup(other) -} - -// IsOrExtendsActivityStreamsIgnore returns true if the other provided type is the -// Ignore type or extends from the Ignore type. -func IsOrExtendsActivityStreamsIgnore(other vocab.Type) bool { - return typeignore.IsOrExtendsIgnore(other) -} - -// IsOrExtendsActivityStreamsImage returns true if the other provided type is the -// Image type or extends from the Image type. -func IsOrExtendsActivityStreamsImage(other vocab.Type) bool { - return typeimage.IsOrExtendsImage(other) -} - -// IsOrExtendsActivityStreamsIntransitiveActivity returns true if the other -// provided type is the IntransitiveActivity type or extends from the -// IntransitiveActivity type. -func IsOrExtendsActivityStreamsIntransitiveActivity(other vocab.Type) bool { - return typeintransitiveactivity.IsOrExtendsIntransitiveActivity(other) -} - -// IsOrExtendsActivityStreamsInvite returns true if the other provided type is the -// Invite type or extends from the Invite type. -func IsOrExtendsActivityStreamsInvite(other vocab.Type) bool { - return typeinvite.IsOrExtendsInvite(other) -} - -// IsOrExtendsActivityStreamsJoin returns true if the other provided type is the -// Join type or extends from the Join type. -func IsOrExtendsActivityStreamsJoin(other vocab.Type) bool { - return typejoin.IsOrExtendsJoin(other) -} - -// IsOrExtendsActivityStreamsLeave returns true if the other provided type is the -// Leave type or extends from the Leave type. -func IsOrExtendsActivityStreamsLeave(other vocab.Type) bool { - return typeleave.IsOrExtendsLeave(other) -} - -// IsOrExtendsActivityStreamsLike returns true if the other provided type is the -// Like type or extends from the Like type. -func IsOrExtendsActivityStreamsLike(other vocab.Type) bool { - return typelike.IsOrExtendsLike(other) -} - -// IsOrExtendsActivityStreamsLink returns true if the other provided type is the -// Link type or extends from the Link type. -func IsOrExtendsActivityStreamsLink(other vocab.Type) bool { - return typelink.IsOrExtendsLink(other) -} - -// IsOrExtendsActivityStreamsListen returns true if the other provided type is the -// Listen type or extends from the Listen type. -func IsOrExtendsActivityStreamsListen(other vocab.Type) bool { - return typelisten.IsOrExtendsListen(other) -} - -// IsOrExtendsActivityStreamsMention returns true if the other provided type is -// the Mention type or extends from the Mention type. -func IsOrExtendsActivityStreamsMention(other vocab.Type) bool { - return typemention.IsOrExtendsMention(other) -} - -// IsOrExtendsActivityStreamsMove returns true if the other provided type is the -// Move type or extends from the Move type. -func IsOrExtendsActivityStreamsMove(other vocab.Type) bool { - return typemove.IsOrExtendsMove(other) -} - -// IsOrExtendsActivityStreamsNote returns true if the other provided type is the -// Note type or extends from the Note type. -func IsOrExtendsActivityStreamsNote(other vocab.Type) bool { - return typenote.IsOrExtendsNote(other) -} - -// IsOrExtendsActivityStreamsObject returns true if the other provided type is the -// Object type or extends from the Object type. -func IsOrExtendsActivityStreamsObject(other vocab.Type) bool { - return typeobject.IsOrExtendsObject(other) -} - -// IsOrExtendsActivityStreamsOffer returns true if the other provided type is the -// Offer type or extends from the Offer type. -func IsOrExtendsActivityStreamsOffer(other vocab.Type) bool { - return typeoffer.IsOrExtendsOffer(other) -} - -// IsOrExtendsActivityStreamsOrderedCollection returns true if the other provided -// type is the OrderedCollection type or extends from the OrderedCollection -// type. -func IsOrExtendsActivityStreamsOrderedCollection(other vocab.Type) bool { - return typeorderedcollection.IsOrExtendsOrderedCollection(other) -} - -// IsOrExtendsActivityStreamsOrderedCollectionPage returns true if the other -// provided type is the OrderedCollectionPage type or extends from the -// OrderedCollectionPage type. -func IsOrExtendsActivityStreamsOrderedCollectionPage(other vocab.Type) bool { - return typeorderedcollectionpage.IsOrExtendsOrderedCollectionPage(other) -} - -// IsOrExtendsActivityStreamsOrganization returns true if the other provided type -// is the Organization type or extends from the Organization type. -func IsOrExtendsActivityStreamsOrganization(other vocab.Type) bool { - return typeorganization.IsOrExtendsOrganization(other) -} - -// IsOrExtendsActivityStreamsPage returns true if the other provided type is the -// Page type or extends from the Page type. -func IsOrExtendsActivityStreamsPage(other vocab.Type) bool { - return typepage.IsOrExtendsPage(other) -} - -// IsOrExtendsActivityStreamsPerson returns true if the other provided type is the -// Person type or extends from the Person type. -func IsOrExtendsActivityStreamsPerson(other vocab.Type) bool { - return typeperson.IsOrExtendsPerson(other) -} - -// IsOrExtendsActivityStreamsPlace returns true if the other provided type is the -// Place type or extends from the Place type. -func IsOrExtendsActivityStreamsPlace(other vocab.Type) bool { - return typeplace.IsOrExtendsPlace(other) -} - -// IsOrExtendsActivityStreamsProfile returns true if the other provided type is -// the Profile type or extends from the Profile type. -func IsOrExtendsActivityStreamsProfile(other vocab.Type) bool { - return typeprofile.IsOrExtendsProfile(other) -} - -// IsOrExtendsActivityStreamsQuestion returns true if the other provided type is -// the Question type or extends from the Question type. -func IsOrExtendsActivityStreamsQuestion(other vocab.Type) bool { - return typequestion.IsOrExtendsQuestion(other) -} - -// IsOrExtendsActivityStreamsRead returns true if the other provided type is the -// Read type or extends from the Read type. -func IsOrExtendsActivityStreamsRead(other vocab.Type) bool { - return typeread.IsOrExtendsRead(other) -} - -// IsOrExtendsActivityStreamsReject returns true if the other provided type is the -// Reject type or extends from the Reject type. -func IsOrExtendsActivityStreamsReject(other vocab.Type) bool { - return typereject.IsOrExtendsReject(other) -} - -// IsOrExtendsActivityStreamsRelationship returns true if the other provided type -// is the Relationship type or extends from the Relationship type. -func IsOrExtendsActivityStreamsRelationship(other vocab.Type) bool { - return typerelationship.IsOrExtendsRelationship(other) -} - -// IsOrExtendsActivityStreamsRemove returns true if the other provided type is the -// Remove type or extends from the Remove type. -func IsOrExtendsActivityStreamsRemove(other vocab.Type) bool { - return typeremove.IsOrExtendsRemove(other) -} - -// IsOrExtendsActivityStreamsService returns true if the other provided type is -// the Service type or extends from the Service type. -func IsOrExtendsActivityStreamsService(other vocab.Type) bool { - return typeservice.IsOrExtendsService(other) -} - -// IsOrExtendsActivityStreamsTentativeAccept returns true if the other provided -// type is the TentativeAccept type or extends from the TentativeAccept type. -func IsOrExtendsActivityStreamsTentativeAccept(other vocab.Type) bool { - return typetentativeaccept.IsOrExtendsTentativeAccept(other) -} - -// IsOrExtendsActivityStreamsTentativeReject returns true if the other provided -// type is the TentativeReject type or extends from the TentativeReject type. -func IsOrExtendsActivityStreamsTentativeReject(other vocab.Type) bool { - return typetentativereject.IsOrExtendsTentativeReject(other) -} - -// IsOrExtendsActivityStreamsTombstone returns true if the other provided type is -// the Tombstone type or extends from the Tombstone type. -func IsOrExtendsActivityStreamsTombstone(other vocab.Type) bool { - return typetombstone.IsOrExtendsTombstone(other) -} - -// IsOrExtendsActivityStreamsTravel returns true if the other provided type is the -// Travel type or extends from the Travel type. -func IsOrExtendsActivityStreamsTravel(other vocab.Type) bool { - return typetravel.IsOrExtendsTravel(other) -} - -// IsOrExtendsActivityStreamsUndo returns true if the other provided type is the -// Undo type or extends from the Undo type. -func IsOrExtendsActivityStreamsUndo(other vocab.Type) bool { - return typeundo.IsOrExtendsUndo(other) -} - -// IsOrExtendsActivityStreamsUpdate returns true if the other provided type is the -// Update type or extends from the Update type. -func IsOrExtendsActivityStreamsUpdate(other vocab.Type) bool { - return typeupdate.IsOrExtendsUpdate(other) -} - -// IsOrExtendsActivityStreamsVideo returns true if the other provided type is the -// Video type or extends from the Video type. -func IsOrExtendsActivityStreamsVideo(other vocab.Type) bool { - return typevideo.IsOrExtendsVideo(other) -} - -// IsOrExtendsActivityStreamsView returns true if the other provided type is the -// View type or extends from the View type. -func IsOrExtendsActivityStreamsView(other vocab.Type) bool { - return typeview.IsOrExtendsView(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_property_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_property_constructors.go deleted file mode 100644 index c11dbc101..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_property_constructors.go +++ /dev/null @@ -1,546 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyaccuracy "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy" - propertyactor "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor" - propertyalsoknownas "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas" - propertyaltitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude" - propertyanyof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof" - propertyattachment "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment" - propertyattributedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto" - propertyaudience "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience" - propertybcc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc" - propertybto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto" - propertycc "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc" - propertyclosed "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed" - propertycontent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content" - propertycontext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context" - propertycurrent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current" - propertydeleted "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted" - propertydescribes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes" - propertyduration "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration" - propertyendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints" - propertyendtime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime" - propertyfirst "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first" - propertyfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers" - propertyfollowing "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following" - propertyformertype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype" - propertygenerator "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator" - propertyheight "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height" - propertyhref "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href" - propertyhreflang "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang" - propertyicon "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon" - propertyimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image" - propertyinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox" - propertyinreplyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto" - propertyinstrument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument" - propertyitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items" - propertylast "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last" - propertylatitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude" - propertyliked "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked" - propertylikes "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes" - propertylocation "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location" - propertylongitude "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude" - propertymanuallyapprovesfollowers "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" - propertymediatype "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype" - propertymovedto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto" - propertyname "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name" - propertynext "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next" - propertyobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object" - propertyoneof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof" - propertyordereditems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems" - propertyorigin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin" - propertyoutbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox" - propertypartof "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof" - propertypreferredusername "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername" - propertyprev "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev" - propertypreview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview" - propertypublished "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published" - propertyradius "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius" - propertyrel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel" - propertyrelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship" - propertyreplies "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies" - propertyresult "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result" - propertysensitive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive" - propertysharedinbox "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox" - propertyshares "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares" - propertysource "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source" - propertystartindex "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex" - propertystarttime "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime" - propertystreams "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams" - propertysubject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject" - propertysummary "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary" - propertytag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag" - propertytarget "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target" - propertyto "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to" - propertytotalitems "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems" - propertyunits "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units" - propertyupdated "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated" - propertyurl "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url" - propertywidth "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewActivityStreamsActivityStreamsAccuracyProperty creates a new -// ActivityStreamsAccuracyProperty -func NewActivityStreamsAccuracyProperty() vocab.ActivityStreamsAccuracyProperty { - return propertyaccuracy.NewActivityStreamsAccuracyProperty() -} - -// NewActivityStreamsActivityStreamsActorProperty creates a new -// ActivityStreamsActorProperty -func NewActivityStreamsActorProperty() vocab.ActivityStreamsActorProperty { - return propertyactor.NewActivityStreamsActorProperty() -} - -// NewActivityStreamsActivityStreamsAlsoKnownAsProperty creates a new -// ActivityStreamsAlsoKnownAsProperty -func NewActivityStreamsAlsoKnownAsProperty() vocab.ActivityStreamsAlsoKnownAsProperty { - return propertyalsoknownas.NewActivityStreamsAlsoKnownAsProperty() -} - -// NewActivityStreamsActivityStreamsAltitudeProperty creates a new -// ActivityStreamsAltitudeProperty -func NewActivityStreamsAltitudeProperty() vocab.ActivityStreamsAltitudeProperty { - return propertyaltitude.NewActivityStreamsAltitudeProperty() -} - -// NewActivityStreamsActivityStreamsAnyOfProperty creates a new -// ActivityStreamsAnyOfProperty -func NewActivityStreamsAnyOfProperty() vocab.ActivityStreamsAnyOfProperty { - return propertyanyof.NewActivityStreamsAnyOfProperty() -} - -// NewActivityStreamsActivityStreamsAttachmentProperty creates a new -// ActivityStreamsAttachmentProperty -func NewActivityStreamsAttachmentProperty() vocab.ActivityStreamsAttachmentProperty { - return propertyattachment.NewActivityStreamsAttachmentProperty() -} - -// NewActivityStreamsActivityStreamsAttributedToProperty creates a new -// ActivityStreamsAttributedToProperty -func NewActivityStreamsAttributedToProperty() vocab.ActivityStreamsAttributedToProperty { - return propertyattributedto.NewActivityStreamsAttributedToProperty() -} - -// NewActivityStreamsActivityStreamsAudienceProperty creates a new -// ActivityStreamsAudienceProperty -func NewActivityStreamsAudienceProperty() vocab.ActivityStreamsAudienceProperty { - return propertyaudience.NewActivityStreamsAudienceProperty() -} - -// NewActivityStreamsActivityStreamsBccProperty creates a new -// ActivityStreamsBccProperty -func NewActivityStreamsBccProperty() vocab.ActivityStreamsBccProperty { - return propertybcc.NewActivityStreamsBccProperty() -} - -// NewActivityStreamsActivityStreamsBtoProperty creates a new -// ActivityStreamsBtoProperty -func NewActivityStreamsBtoProperty() vocab.ActivityStreamsBtoProperty { - return propertybto.NewActivityStreamsBtoProperty() -} - -// NewActivityStreamsActivityStreamsCcProperty creates a new -// ActivityStreamsCcProperty -func NewActivityStreamsCcProperty() vocab.ActivityStreamsCcProperty { - return propertycc.NewActivityStreamsCcProperty() -} - -// NewActivityStreamsActivityStreamsClosedProperty creates a new -// ActivityStreamsClosedProperty -func NewActivityStreamsClosedProperty() vocab.ActivityStreamsClosedProperty { - return propertyclosed.NewActivityStreamsClosedProperty() -} - -// NewActivityStreamsActivityStreamsContentProperty creates a new -// ActivityStreamsContentProperty -func NewActivityStreamsContentProperty() vocab.ActivityStreamsContentProperty { - return propertycontent.NewActivityStreamsContentProperty() -} - -// NewActivityStreamsActivityStreamsContextProperty creates a new -// ActivityStreamsContextProperty -func NewActivityStreamsContextProperty() vocab.ActivityStreamsContextProperty { - return propertycontext.NewActivityStreamsContextProperty() -} - -// NewActivityStreamsActivityStreamsCurrentProperty creates a new -// ActivityStreamsCurrentProperty -func NewActivityStreamsCurrentProperty() vocab.ActivityStreamsCurrentProperty { - return propertycurrent.NewActivityStreamsCurrentProperty() -} - -// NewActivityStreamsActivityStreamsDeletedProperty creates a new -// ActivityStreamsDeletedProperty -func NewActivityStreamsDeletedProperty() vocab.ActivityStreamsDeletedProperty { - return propertydeleted.NewActivityStreamsDeletedProperty() -} - -// NewActivityStreamsActivityStreamsDescribesProperty creates a new -// ActivityStreamsDescribesProperty -func NewActivityStreamsDescribesProperty() vocab.ActivityStreamsDescribesProperty { - return propertydescribes.NewActivityStreamsDescribesProperty() -} - -// NewActivityStreamsActivityStreamsDurationProperty creates a new -// ActivityStreamsDurationProperty -func NewActivityStreamsDurationProperty() vocab.ActivityStreamsDurationProperty { - return propertyduration.NewActivityStreamsDurationProperty() -} - -// NewActivityStreamsActivityStreamsEndTimeProperty creates a new -// ActivityStreamsEndTimeProperty -func NewActivityStreamsEndTimeProperty() vocab.ActivityStreamsEndTimeProperty { - return propertyendtime.NewActivityStreamsEndTimeProperty() -} - -// NewActivityStreamsActivityStreamsEndpointsProperty creates a new -// ActivityStreamsEndpointsProperty -func NewActivityStreamsEndpointsProperty() vocab.ActivityStreamsEndpointsProperty { - return propertyendpoints.NewActivityStreamsEndpointsProperty() -} - -// NewActivityStreamsActivityStreamsFirstProperty creates a new -// ActivityStreamsFirstProperty -func NewActivityStreamsFirstProperty() vocab.ActivityStreamsFirstProperty { - return propertyfirst.NewActivityStreamsFirstProperty() -} - -// NewActivityStreamsActivityStreamsFollowersProperty creates a new -// ActivityStreamsFollowersProperty -func NewActivityStreamsFollowersProperty() vocab.ActivityStreamsFollowersProperty { - return propertyfollowers.NewActivityStreamsFollowersProperty() -} - -// NewActivityStreamsActivityStreamsFollowingProperty creates a new -// ActivityStreamsFollowingProperty -func NewActivityStreamsFollowingProperty() vocab.ActivityStreamsFollowingProperty { - return propertyfollowing.NewActivityStreamsFollowingProperty() -} - -// NewActivityStreamsActivityStreamsFormerTypeProperty creates a new -// ActivityStreamsFormerTypeProperty -func NewActivityStreamsFormerTypeProperty() vocab.ActivityStreamsFormerTypeProperty { - return propertyformertype.NewActivityStreamsFormerTypeProperty() -} - -// NewActivityStreamsActivityStreamsGeneratorProperty creates a new -// ActivityStreamsGeneratorProperty -func NewActivityStreamsGeneratorProperty() vocab.ActivityStreamsGeneratorProperty { - return propertygenerator.NewActivityStreamsGeneratorProperty() -} - -// NewActivityStreamsActivityStreamsHeightProperty creates a new -// ActivityStreamsHeightProperty -func NewActivityStreamsHeightProperty() vocab.ActivityStreamsHeightProperty { - return propertyheight.NewActivityStreamsHeightProperty() -} - -// NewActivityStreamsActivityStreamsHrefProperty creates a new -// ActivityStreamsHrefProperty -func NewActivityStreamsHrefProperty() vocab.ActivityStreamsHrefProperty { - return propertyhref.NewActivityStreamsHrefProperty() -} - -// NewActivityStreamsActivityStreamsHreflangProperty creates a new -// ActivityStreamsHreflangProperty -func NewActivityStreamsHreflangProperty() vocab.ActivityStreamsHreflangProperty { - return propertyhreflang.NewActivityStreamsHreflangProperty() -} - -// NewActivityStreamsActivityStreamsIconProperty creates a new -// ActivityStreamsIconProperty -func NewActivityStreamsIconProperty() vocab.ActivityStreamsIconProperty { - return propertyicon.NewActivityStreamsIconProperty() -} - -// NewActivityStreamsActivityStreamsImageProperty creates a new -// ActivityStreamsImageProperty -func NewActivityStreamsImageProperty() vocab.ActivityStreamsImageProperty { - return propertyimage.NewActivityStreamsImageProperty() -} - -// NewActivityStreamsActivityStreamsInReplyToProperty creates a new -// ActivityStreamsInReplyToProperty -func NewActivityStreamsInReplyToProperty() vocab.ActivityStreamsInReplyToProperty { - return propertyinreplyto.NewActivityStreamsInReplyToProperty() -} - -// NewActivityStreamsActivityStreamsInboxProperty creates a new -// ActivityStreamsInboxProperty -func NewActivityStreamsInboxProperty() vocab.ActivityStreamsInboxProperty { - return propertyinbox.NewActivityStreamsInboxProperty() -} - -// NewActivityStreamsActivityStreamsInstrumentProperty creates a new -// ActivityStreamsInstrumentProperty -func NewActivityStreamsInstrumentProperty() vocab.ActivityStreamsInstrumentProperty { - return propertyinstrument.NewActivityStreamsInstrumentProperty() -} - -// NewActivityStreamsActivityStreamsItemsProperty creates a new -// ActivityStreamsItemsProperty -func NewActivityStreamsItemsProperty() vocab.ActivityStreamsItemsProperty { - return propertyitems.NewActivityStreamsItemsProperty() -} - -// NewActivityStreamsActivityStreamsLastProperty creates a new -// ActivityStreamsLastProperty -func NewActivityStreamsLastProperty() vocab.ActivityStreamsLastProperty { - return propertylast.NewActivityStreamsLastProperty() -} - -// NewActivityStreamsActivityStreamsLatitudeProperty creates a new -// ActivityStreamsLatitudeProperty -func NewActivityStreamsLatitudeProperty() vocab.ActivityStreamsLatitudeProperty { - return propertylatitude.NewActivityStreamsLatitudeProperty() -} - -// NewActivityStreamsActivityStreamsLikedProperty creates a new -// ActivityStreamsLikedProperty -func NewActivityStreamsLikedProperty() vocab.ActivityStreamsLikedProperty { - return propertyliked.NewActivityStreamsLikedProperty() -} - -// NewActivityStreamsActivityStreamsLikesProperty creates a new -// ActivityStreamsLikesProperty -func NewActivityStreamsLikesProperty() vocab.ActivityStreamsLikesProperty { - return propertylikes.NewActivityStreamsLikesProperty() -} - -// NewActivityStreamsActivityStreamsLocationProperty creates a new -// ActivityStreamsLocationProperty -func NewActivityStreamsLocationProperty() vocab.ActivityStreamsLocationProperty { - return propertylocation.NewActivityStreamsLocationProperty() -} - -// NewActivityStreamsActivityStreamsLongitudeProperty creates a new -// ActivityStreamsLongitudeProperty -func NewActivityStreamsLongitudeProperty() vocab.ActivityStreamsLongitudeProperty { - return propertylongitude.NewActivityStreamsLongitudeProperty() -} - -// NewActivityStreamsActivityStreamsManuallyApprovesFollowersProperty creates a -// new ActivityStreamsManuallyApprovesFollowersProperty -func NewActivityStreamsManuallyApprovesFollowersProperty() vocab.ActivityStreamsManuallyApprovesFollowersProperty { - return propertymanuallyapprovesfollowers.NewActivityStreamsManuallyApprovesFollowersProperty() -} - -// NewActivityStreamsActivityStreamsMediaTypeProperty creates a new -// ActivityStreamsMediaTypeProperty -func NewActivityStreamsMediaTypeProperty() vocab.ActivityStreamsMediaTypeProperty { - return propertymediatype.NewActivityStreamsMediaTypeProperty() -} - -// NewActivityStreamsActivityStreamsMovedToProperty creates a new -// ActivityStreamsMovedToProperty -func NewActivityStreamsMovedToProperty() vocab.ActivityStreamsMovedToProperty { - return propertymovedto.NewActivityStreamsMovedToProperty() -} - -// NewActivityStreamsActivityStreamsNameProperty creates a new -// ActivityStreamsNameProperty -func NewActivityStreamsNameProperty() vocab.ActivityStreamsNameProperty { - return propertyname.NewActivityStreamsNameProperty() -} - -// NewActivityStreamsActivityStreamsNextProperty creates a new -// ActivityStreamsNextProperty -func NewActivityStreamsNextProperty() vocab.ActivityStreamsNextProperty { - return propertynext.NewActivityStreamsNextProperty() -} - -// NewActivityStreamsActivityStreamsObjectProperty creates a new -// ActivityStreamsObjectProperty -func NewActivityStreamsObjectProperty() vocab.ActivityStreamsObjectProperty { - return propertyobject.NewActivityStreamsObjectProperty() -} - -// NewActivityStreamsActivityStreamsOneOfProperty creates a new -// ActivityStreamsOneOfProperty -func NewActivityStreamsOneOfProperty() vocab.ActivityStreamsOneOfProperty { - return propertyoneof.NewActivityStreamsOneOfProperty() -} - -// NewActivityStreamsActivityStreamsOrderedItemsProperty creates a new -// ActivityStreamsOrderedItemsProperty -func NewActivityStreamsOrderedItemsProperty() vocab.ActivityStreamsOrderedItemsProperty { - return propertyordereditems.NewActivityStreamsOrderedItemsProperty() -} - -// NewActivityStreamsActivityStreamsOriginProperty creates a new -// ActivityStreamsOriginProperty -func NewActivityStreamsOriginProperty() vocab.ActivityStreamsOriginProperty { - return propertyorigin.NewActivityStreamsOriginProperty() -} - -// NewActivityStreamsActivityStreamsOutboxProperty creates a new -// ActivityStreamsOutboxProperty -func NewActivityStreamsOutboxProperty() vocab.ActivityStreamsOutboxProperty { - return propertyoutbox.NewActivityStreamsOutboxProperty() -} - -// NewActivityStreamsActivityStreamsPartOfProperty creates a new -// ActivityStreamsPartOfProperty -func NewActivityStreamsPartOfProperty() vocab.ActivityStreamsPartOfProperty { - return propertypartof.NewActivityStreamsPartOfProperty() -} - -// NewActivityStreamsActivityStreamsPreferredUsernameProperty creates a new -// ActivityStreamsPreferredUsernameProperty -func NewActivityStreamsPreferredUsernameProperty() vocab.ActivityStreamsPreferredUsernameProperty { - return propertypreferredusername.NewActivityStreamsPreferredUsernameProperty() -} - -// NewActivityStreamsActivityStreamsPrevProperty creates a new -// ActivityStreamsPrevProperty -func NewActivityStreamsPrevProperty() vocab.ActivityStreamsPrevProperty { - return propertyprev.NewActivityStreamsPrevProperty() -} - -// NewActivityStreamsActivityStreamsPreviewProperty creates a new -// ActivityStreamsPreviewProperty -func NewActivityStreamsPreviewProperty() vocab.ActivityStreamsPreviewProperty { - return propertypreview.NewActivityStreamsPreviewProperty() -} - -// NewActivityStreamsActivityStreamsPublishedProperty creates a new -// ActivityStreamsPublishedProperty -func NewActivityStreamsPublishedProperty() vocab.ActivityStreamsPublishedProperty { - return propertypublished.NewActivityStreamsPublishedProperty() -} - -// NewActivityStreamsActivityStreamsRadiusProperty creates a new -// ActivityStreamsRadiusProperty -func NewActivityStreamsRadiusProperty() vocab.ActivityStreamsRadiusProperty { - return propertyradius.NewActivityStreamsRadiusProperty() -} - -// NewActivityStreamsActivityStreamsRelProperty creates a new -// ActivityStreamsRelProperty -func NewActivityStreamsRelProperty() vocab.ActivityStreamsRelProperty { - return propertyrel.NewActivityStreamsRelProperty() -} - -// NewActivityStreamsActivityStreamsRelationshipProperty creates a new -// ActivityStreamsRelationshipProperty -func NewActivityStreamsRelationshipProperty() vocab.ActivityStreamsRelationshipProperty { - return propertyrelationship.NewActivityStreamsRelationshipProperty() -} - -// NewActivityStreamsActivityStreamsRepliesProperty creates a new -// ActivityStreamsRepliesProperty -func NewActivityStreamsRepliesProperty() vocab.ActivityStreamsRepliesProperty { - return propertyreplies.NewActivityStreamsRepliesProperty() -} - -// NewActivityStreamsActivityStreamsResultProperty creates a new -// ActivityStreamsResultProperty -func NewActivityStreamsResultProperty() vocab.ActivityStreamsResultProperty { - return propertyresult.NewActivityStreamsResultProperty() -} - -// NewActivityStreamsActivityStreamsSensitiveProperty creates a new -// ActivityStreamsSensitiveProperty -func NewActivityStreamsSensitiveProperty() vocab.ActivityStreamsSensitiveProperty { - return propertysensitive.NewActivityStreamsSensitiveProperty() -} - -// NewActivityStreamsActivityStreamsSharedInboxProperty creates a new -// ActivityStreamsSharedInboxProperty -func NewActivityStreamsSharedInboxProperty() vocab.ActivityStreamsSharedInboxProperty { - return propertysharedinbox.NewActivityStreamsSharedInboxProperty() -} - -// NewActivityStreamsActivityStreamsSharesProperty creates a new -// ActivityStreamsSharesProperty -func NewActivityStreamsSharesProperty() vocab.ActivityStreamsSharesProperty { - return propertyshares.NewActivityStreamsSharesProperty() -} - -// NewActivityStreamsActivityStreamsSourceProperty creates a new -// ActivityStreamsSourceProperty -func NewActivityStreamsSourceProperty() vocab.ActivityStreamsSourceProperty { - return propertysource.NewActivityStreamsSourceProperty() -} - -// NewActivityStreamsActivityStreamsStartIndexProperty creates a new -// ActivityStreamsStartIndexProperty -func NewActivityStreamsStartIndexProperty() vocab.ActivityStreamsStartIndexProperty { - return propertystartindex.NewActivityStreamsStartIndexProperty() -} - -// NewActivityStreamsActivityStreamsStartTimeProperty creates a new -// ActivityStreamsStartTimeProperty -func NewActivityStreamsStartTimeProperty() vocab.ActivityStreamsStartTimeProperty { - return propertystarttime.NewActivityStreamsStartTimeProperty() -} - -// NewActivityStreamsActivityStreamsStreamsProperty creates a new -// ActivityStreamsStreamsProperty -func NewActivityStreamsStreamsProperty() vocab.ActivityStreamsStreamsProperty { - return propertystreams.NewActivityStreamsStreamsProperty() -} - -// NewActivityStreamsActivityStreamsSubjectProperty creates a new -// ActivityStreamsSubjectProperty -func NewActivityStreamsSubjectProperty() vocab.ActivityStreamsSubjectProperty { - return propertysubject.NewActivityStreamsSubjectProperty() -} - -// NewActivityStreamsActivityStreamsSummaryProperty creates a new -// ActivityStreamsSummaryProperty -func NewActivityStreamsSummaryProperty() vocab.ActivityStreamsSummaryProperty { - return propertysummary.NewActivityStreamsSummaryProperty() -} - -// NewActivityStreamsActivityStreamsTagProperty creates a new -// ActivityStreamsTagProperty -func NewActivityStreamsTagProperty() vocab.ActivityStreamsTagProperty { - return propertytag.NewActivityStreamsTagProperty() -} - -// NewActivityStreamsActivityStreamsTargetProperty creates a new -// ActivityStreamsTargetProperty -func NewActivityStreamsTargetProperty() vocab.ActivityStreamsTargetProperty { - return propertytarget.NewActivityStreamsTargetProperty() -} - -// NewActivityStreamsActivityStreamsToProperty creates a new -// ActivityStreamsToProperty -func NewActivityStreamsToProperty() vocab.ActivityStreamsToProperty { - return propertyto.NewActivityStreamsToProperty() -} - -// NewActivityStreamsActivityStreamsTotalItemsProperty creates a new -// ActivityStreamsTotalItemsProperty -func NewActivityStreamsTotalItemsProperty() vocab.ActivityStreamsTotalItemsProperty { - return propertytotalitems.NewActivityStreamsTotalItemsProperty() -} - -// NewActivityStreamsActivityStreamsUnitsProperty creates a new -// ActivityStreamsUnitsProperty -func NewActivityStreamsUnitsProperty() vocab.ActivityStreamsUnitsProperty { - return propertyunits.NewActivityStreamsUnitsProperty() -} - -// NewActivityStreamsActivityStreamsUpdatedProperty creates a new -// ActivityStreamsUpdatedProperty -func NewActivityStreamsUpdatedProperty() vocab.ActivityStreamsUpdatedProperty { - return propertyupdated.NewActivityStreamsUpdatedProperty() -} - -// NewActivityStreamsActivityStreamsUrlProperty creates a new -// ActivityStreamsUrlProperty -func NewActivityStreamsUrlProperty() vocab.ActivityStreamsUrlProperty { - return propertyurl.NewActivityStreamsUrlProperty() -} - -// NewActivityStreamsActivityStreamsWidthProperty creates a new -// ActivityStreamsWidthProperty -func NewActivityStreamsWidthProperty() vocab.ActivityStreamsWidthProperty { - return propertywidth.NewActivityStreamsWidthProperty() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_type_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_type_constructors.go deleted file mode 100644 index 49922115d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_activitystreams_type_constructors.go +++ /dev/null @@ -1,340 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept" - typeactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity" - typeadd "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add" - typeannounce "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce" - typeapplication "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application" - typearrive "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive" - typearticle "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article" - typeaudio "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio" - typeblock "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block" - typecollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create" - typedelete "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete" - typedislike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike" - typedocument "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document" - typeendpoints "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints" - typeevent "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event" - typeflag "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag" - typefollow "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow" - typegroup "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group" - typeignore "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore" - typeimage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite" - typejoin "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join" - typeleave "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave" - typelike "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like" - typelink "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link" - typelisten "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen" - typemention "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention" - typemove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move" - typenote "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note" - typeobject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object" - typeoffer "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization" - typepage "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page" - typeperson "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person" - typeplace "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place" - typeprofile "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile" - typequestion "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question" - typeread "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read" - typereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject" - typerelationship "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship" - typeremove "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove" - typeservice "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone" - typetravel "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel" - typeundo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo" - typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" - typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" - typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewActivityStreamsAccept creates a new ActivityStreamsAccept -func NewActivityStreamsAccept() vocab.ActivityStreamsAccept { - return typeaccept.NewActivityStreamsAccept() -} - -// NewActivityStreamsActivity creates a new ActivityStreamsActivity -func NewActivityStreamsActivity() vocab.ActivityStreamsActivity { - return typeactivity.NewActivityStreamsActivity() -} - -// NewActivityStreamsAdd creates a new ActivityStreamsAdd -func NewActivityStreamsAdd() vocab.ActivityStreamsAdd { - return typeadd.NewActivityStreamsAdd() -} - -// NewActivityStreamsAnnounce creates a new ActivityStreamsAnnounce -func NewActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return typeannounce.NewActivityStreamsAnnounce() -} - -// NewActivityStreamsApplication creates a new ActivityStreamsApplication -func NewActivityStreamsApplication() vocab.ActivityStreamsApplication { - return typeapplication.NewActivityStreamsApplication() -} - -// NewActivityStreamsArrive creates a new ActivityStreamsArrive -func NewActivityStreamsArrive() vocab.ActivityStreamsArrive { - return typearrive.NewActivityStreamsArrive() -} - -// NewActivityStreamsArticle creates a new ActivityStreamsArticle -func NewActivityStreamsArticle() vocab.ActivityStreamsArticle { - return typearticle.NewActivityStreamsArticle() -} - -// NewActivityStreamsAudio creates a new ActivityStreamsAudio -func NewActivityStreamsAudio() vocab.ActivityStreamsAudio { - return typeaudio.NewActivityStreamsAudio() -} - -// NewActivityStreamsBlock creates a new ActivityStreamsBlock -func NewActivityStreamsBlock() vocab.ActivityStreamsBlock { - return typeblock.NewActivityStreamsBlock() -} - -// NewActivityStreamsCollection creates a new ActivityStreamsCollection -func NewActivityStreamsCollection() vocab.ActivityStreamsCollection { - return typecollection.NewActivityStreamsCollection() -} - -// NewActivityStreamsCollectionPage creates a new ActivityStreamsCollectionPage -func NewActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return typecollectionpage.NewActivityStreamsCollectionPage() -} - -// NewActivityStreamsCreate creates a new ActivityStreamsCreate -func NewActivityStreamsCreate() vocab.ActivityStreamsCreate { - return typecreate.NewActivityStreamsCreate() -} - -// NewActivityStreamsDelete creates a new ActivityStreamsDelete -func NewActivityStreamsDelete() vocab.ActivityStreamsDelete { - return typedelete.NewActivityStreamsDelete() -} - -// NewActivityStreamsDislike creates a new ActivityStreamsDislike -func NewActivityStreamsDislike() vocab.ActivityStreamsDislike { - return typedislike.NewActivityStreamsDislike() -} - -// NewActivityStreamsDocument creates a new ActivityStreamsDocument -func NewActivityStreamsDocument() vocab.ActivityStreamsDocument { - return typedocument.NewActivityStreamsDocument() -} - -// NewActivityStreamsEndpoints creates a new ActivityStreamsEndpoints -func NewActivityStreamsEndpoints() vocab.ActivityStreamsEndpoints { - return typeendpoints.NewActivityStreamsEndpoints() -} - -// NewActivityStreamsEvent creates a new ActivityStreamsEvent -func NewActivityStreamsEvent() vocab.ActivityStreamsEvent { - return typeevent.NewActivityStreamsEvent() -} - -// NewActivityStreamsFlag creates a new ActivityStreamsFlag -func NewActivityStreamsFlag() vocab.ActivityStreamsFlag { - return typeflag.NewActivityStreamsFlag() -} - -// NewActivityStreamsFollow creates a new ActivityStreamsFollow -func NewActivityStreamsFollow() vocab.ActivityStreamsFollow { - return typefollow.NewActivityStreamsFollow() -} - -// NewActivityStreamsGroup creates a new ActivityStreamsGroup -func NewActivityStreamsGroup() vocab.ActivityStreamsGroup { - return typegroup.NewActivityStreamsGroup() -} - -// NewActivityStreamsIgnore creates a new ActivityStreamsIgnore -func NewActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return typeignore.NewActivityStreamsIgnore() -} - -// NewActivityStreamsImage creates a new ActivityStreamsImage -func NewActivityStreamsImage() vocab.ActivityStreamsImage { - return typeimage.NewActivityStreamsImage() -} - -// NewActivityStreamsIntransitiveActivity creates a new -// ActivityStreamsIntransitiveActivity -func NewActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return typeintransitiveactivity.NewActivityStreamsIntransitiveActivity() -} - -// NewActivityStreamsInvite creates a new ActivityStreamsInvite -func NewActivityStreamsInvite() vocab.ActivityStreamsInvite { - return typeinvite.NewActivityStreamsInvite() -} - -// NewActivityStreamsJoin creates a new ActivityStreamsJoin -func NewActivityStreamsJoin() vocab.ActivityStreamsJoin { - return typejoin.NewActivityStreamsJoin() -} - -// NewActivityStreamsLeave creates a new ActivityStreamsLeave -func NewActivityStreamsLeave() vocab.ActivityStreamsLeave { - return typeleave.NewActivityStreamsLeave() -} - -// NewActivityStreamsLike creates a new ActivityStreamsLike -func NewActivityStreamsLike() vocab.ActivityStreamsLike { - return typelike.NewActivityStreamsLike() -} - -// NewActivityStreamsLink creates a new ActivityStreamsLink -func NewActivityStreamsLink() vocab.ActivityStreamsLink { - return typelink.NewActivityStreamsLink() -} - -// NewActivityStreamsListen creates a new ActivityStreamsListen -func NewActivityStreamsListen() vocab.ActivityStreamsListen { - return typelisten.NewActivityStreamsListen() -} - -// NewActivityStreamsMention creates a new ActivityStreamsMention -func NewActivityStreamsMention() vocab.ActivityStreamsMention { - return typemention.NewActivityStreamsMention() -} - -// NewActivityStreamsMove creates a new ActivityStreamsMove -func NewActivityStreamsMove() vocab.ActivityStreamsMove { - return typemove.NewActivityStreamsMove() -} - -// NewActivityStreamsNote creates a new ActivityStreamsNote -func NewActivityStreamsNote() vocab.ActivityStreamsNote { - return typenote.NewActivityStreamsNote() -} - -// NewActivityStreamsObject creates a new ActivityStreamsObject -func NewActivityStreamsObject() vocab.ActivityStreamsObject { - return typeobject.NewActivityStreamsObject() -} - -// NewActivityStreamsOffer creates a new ActivityStreamsOffer -func NewActivityStreamsOffer() vocab.ActivityStreamsOffer { - return typeoffer.NewActivityStreamsOffer() -} - -// NewActivityStreamsOrderedCollection creates a new -// ActivityStreamsOrderedCollection -func NewActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return typeorderedcollection.NewActivityStreamsOrderedCollection() -} - -// NewActivityStreamsOrderedCollectionPage creates a new -// ActivityStreamsOrderedCollectionPage -func NewActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return typeorderedcollectionpage.NewActivityStreamsOrderedCollectionPage() -} - -// NewActivityStreamsOrganization creates a new ActivityStreamsOrganization -func NewActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return typeorganization.NewActivityStreamsOrganization() -} - -// NewActivityStreamsPage creates a new ActivityStreamsPage -func NewActivityStreamsPage() vocab.ActivityStreamsPage { - return typepage.NewActivityStreamsPage() -} - -// NewActivityStreamsPerson creates a new ActivityStreamsPerson -func NewActivityStreamsPerson() vocab.ActivityStreamsPerson { - return typeperson.NewActivityStreamsPerson() -} - -// NewActivityStreamsPlace creates a new ActivityStreamsPlace -func NewActivityStreamsPlace() vocab.ActivityStreamsPlace { - return typeplace.NewActivityStreamsPlace() -} - -// NewActivityStreamsProfile creates a new ActivityStreamsProfile -func NewActivityStreamsProfile() vocab.ActivityStreamsProfile { - return typeprofile.NewActivityStreamsProfile() -} - -// NewActivityStreamsQuestion creates a new ActivityStreamsQuestion -func NewActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return typequestion.NewActivityStreamsQuestion() -} - -// NewActivityStreamsRead creates a new ActivityStreamsRead -func NewActivityStreamsRead() vocab.ActivityStreamsRead { - return typeread.NewActivityStreamsRead() -} - -// NewActivityStreamsReject creates a new ActivityStreamsReject -func NewActivityStreamsReject() vocab.ActivityStreamsReject { - return typereject.NewActivityStreamsReject() -} - -// NewActivityStreamsRelationship creates a new ActivityStreamsRelationship -func NewActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return typerelationship.NewActivityStreamsRelationship() -} - -// NewActivityStreamsRemove creates a new ActivityStreamsRemove -func NewActivityStreamsRemove() vocab.ActivityStreamsRemove { - return typeremove.NewActivityStreamsRemove() -} - -// NewActivityStreamsService creates a new ActivityStreamsService -func NewActivityStreamsService() vocab.ActivityStreamsService { - return typeservice.NewActivityStreamsService() -} - -// NewActivityStreamsTentativeAccept creates a new ActivityStreamsTentativeAccept -func NewActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return typetentativeaccept.NewActivityStreamsTentativeAccept() -} - -// NewActivityStreamsTentativeReject creates a new ActivityStreamsTentativeReject -func NewActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return typetentativereject.NewActivityStreamsTentativeReject() -} - -// NewActivityStreamsTombstone creates a new ActivityStreamsTombstone -func NewActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return typetombstone.NewActivityStreamsTombstone() -} - -// NewActivityStreamsTravel creates a new ActivityStreamsTravel -func NewActivityStreamsTravel() vocab.ActivityStreamsTravel { - return typetravel.NewActivityStreamsTravel() -} - -// NewActivityStreamsUndo creates a new ActivityStreamsUndo -func NewActivityStreamsUndo() vocab.ActivityStreamsUndo { - return typeundo.NewActivityStreamsUndo() -} - -// NewActivityStreamsUpdate creates a new ActivityStreamsUpdate -func NewActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return typeupdate.NewActivityStreamsUpdate() -} - -// NewActivityStreamsVideo creates a new ActivityStreamsVideo -func NewActivityStreamsVideo() vocab.ActivityStreamsVideo { - return typevideo.NewActivityStreamsVideo() -} - -// NewActivityStreamsView creates a new ActivityStreamsView -func NewActivityStreamsView() vocab.ActivityStreamsView { - return typeview.NewActivityStreamsView() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_disjoint.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_disjoint.go deleted file mode 100644 index 74336617f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_disjoint.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// FunkwhaleAlbumIsDisjointWith returns true if Album is disjoint with the other's -// type. -func FunkwhaleAlbumIsDisjointWith(other vocab.Type) bool { - return typealbum.AlbumIsDisjointWith(other) -} - -// FunkwhaleArtistIsDisjointWith returns true if Artist is disjoint with the -// other's type. -func FunkwhaleArtistIsDisjointWith(other vocab.Type) bool { - return typeartist.ArtistIsDisjointWith(other) -} - -// FunkwhaleLibraryIsDisjointWith returns true if Library is disjoint with the -// other's type. -func FunkwhaleLibraryIsDisjointWith(other vocab.Type) bool { - return typelibrary.LibraryIsDisjointWith(other) -} - -// FunkwhaleTrackIsDisjointWith returns true if Track is disjoint with the other's -// type. -func FunkwhaleTrackIsDisjointWith(other vocab.Type) bool { - return typetrack.TrackIsDisjointWith(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extendedby.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extendedby.go deleted file mode 100644 index 1559df467..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extendedby.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// FunkwhaleAlbumIsExtendedBy returns true if the other's type extends from Album. -// Note that it returns false if the types are the same; see the "IsOrExtends" -// variant instead. -func FunkwhaleAlbumIsExtendedBy(other vocab.Type) bool { - return typealbum.AlbumIsExtendedBy(other) -} - -// FunkwhaleArtistIsExtendedBy returns true if the other's type extends from -// Artist. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func FunkwhaleArtistIsExtendedBy(other vocab.Type) bool { - return typeartist.ArtistIsExtendedBy(other) -} - -// FunkwhaleLibraryIsExtendedBy returns true if the other's type extends from -// Library. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func FunkwhaleLibraryIsExtendedBy(other vocab.Type) bool { - return typelibrary.LibraryIsExtendedBy(other) -} - -// FunkwhaleTrackIsExtendedBy returns true if the other's type extends from Track. -// Note that it returns false if the types are the same; see the "IsOrExtends" -// variant instead. -func FunkwhaleTrackIsExtendedBy(other vocab.Type) bool { - return typetrack.TrackIsExtendedBy(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extends.go deleted file mode 100644 index 7a34e4b7f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extends.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// FunkwhaleFunkwhaleAlbumExtends returns true if Album extends from the other's -// type. -func FunkwhaleFunkwhaleAlbumExtends(other vocab.Type) bool { - return typealbum.FunkwhaleAlbumExtends(other) -} - -// FunkwhaleFunkwhaleArtistExtends returns true if Artist extends from the other's -// type. -func FunkwhaleFunkwhaleArtistExtends(other vocab.Type) bool { - return typeartist.FunkwhaleArtistExtends(other) -} - -// FunkwhaleFunkwhaleLibraryExtends returns true if Library extends from the -// other's type. -func FunkwhaleFunkwhaleLibraryExtends(other vocab.Type) bool { - return typelibrary.FunkwhaleLibraryExtends(other) -} - -// FunkwhaleFunkwhaleTrackExtends returns true if Track extends from the other's -// type. -func FunkwhaleFunkwhaleTrackExtends(other vocab.Type) bool { - return typetrack.FunkwhaleTrackExtends(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_isorextends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_isorextends.go deleted file mode 100644 index d8153b83a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_isorextends.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// IsOrExtendsFunkwhaleAlbum returns true if the other provided type is the Album -// type or extends from the Album type. -func IsOrExtendsFunkwhaleAlbum(other vocab.Type) bool { - return typealbum.IsOrExtendsAlbum(other) -} - -// IsOrExtendsFunkwhaleArtist returns true if the other provided type is the -// Artist type or extends from the Artist type. -func IsOrExtendsFunkwhaleArtist(other vocab.Type) bool { - return typeartist.IsOrExtendsArtist(other) -} - -// IsOrExtendsFunkwhaleLibrary returns true if the other provided type is the -// Library type or extends from the Library type. -func IsOrExtendsFunkwhaleLibrary(other vocab.Type) bool { - return typelibrary.IsOrExtendsLibrary(other) -} - -// IsOrExtendsFunkwhaleTrack returns true if the other provided type is the Track -// type or extends from the Track type. -func IsOrExtendsFunkwhaleTrack(other vocab.Type) bool { - return typetrack.IsOrExtendsTrack(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_type_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_type_constructors.go deleted file mode 100644 index ec7d76fe1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_type_constructors.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" - typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" - typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" - typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewFunkwhaleAlbum creates a new FunkwhaleAlbum -func NewFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return typealbum.NewFunkwhaleAlbum() -} - -// NewFunkwhaleArtist creates a new FunkwhaleArtist -func NewFunkwhaleArtist() vocab.FunkwhaleArtist { - return typeartist.NewFunkwhaleArtist() -} - -// NewFunkwhaleLibrary creates a new FunkwhaleLibrary -func NewFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return typelibrary.NewFunkwhaleLibrary() -} - -// NewFunkwhaleTrack creates a new FunkwhaleTrack -func NewFunkwhaleTrack() vocab.FunkwhaleTrack { - return typetrack.NewFunkwhaleTrack() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go deleted file mode 100644 index 0d18a263a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_disjoint.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization" - typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization" - typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization" - typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// GoToSocialAnnounceApprovalIsDisjointWith returns true if AnnounceApproval is -// disjoint with the other's type. -func GoToSocialAnnounceApprovalIsDisjointWith(other vocab.Type) bool { - return typeannounceapproval.AnnounceApprovalIsDisjointWith(other) -} - -// GoToSocialAnnounceAuthorizationIsDisjointWith returns true if -// AnnounceAuthorization is disjoint with the other's type. -func GoToSocialAnnounceAuthorizationIsDisjointWith(other vocab.Type) bool { - return typeannounceauthorization.AnnounceAuthorizationIsDisjointWith(other) -} - -// GoToSocialAnnounceRequestIsDisjointWith returns true if AnnounceRequest is -// disjoint with the other's type. -func GoToSocialAnnounceRequestIsDisjointWith(other vocab.Type) bool { - return typeannouncerequest.AnnounceRequestIsDisjointWith(other) -} - -// GoToSocialCanAnnounceIsDisjointWith returns true if CanAnnounce is disjoint -// with the other's type. -func GoToSocialCanAnnounceIsDisjointWith(other vocab.Type) bool { - return typecanannounce.CanAnnounceIsDisjointWith(other) -} - -// GoToSocialCanLikeIsDisjointWith returns true if CanLike is disjoint with the -// other's type. -func GoToSocialCanLikeIsDisjointWith(other vocab.Type) bool { - return typecanlike.CanLikeIsDisjointWith(other) -} - -// GoToSocialCanQuoteIsDisjointWith returns true if CanQuote is disjoint with the -// other's type. -func GoToSocialCanQuoteIsDisjointWith(other vocab.Type) bool { - return typecanquote.CanQuoteIsDisjointWith(other) -} - -// GoToSocialCanReplyIsDisjointWith returns true if CanReply is disjoint with the -// other's type. -func GoToSocialCanReplyIsDisjointWith(other vocab.Type) bool { - return typecanreply.CanReplyIsDisjointWith(other) -} - -// GoToSocialInteractionPolicyIsDisjointWith returns true if InteractionPolicy is -// disjoint with the other's type. -func GoToSocialInteractionPolicyIsDisjointWith(other vocab.Type) bool { - return typeinteractionpolicy.InteractionPolicyIsDisjointWith(other) -} - -// GoToSocialLikeApprovalIsDisjointWith returns true if LikeApproval is disjoint -// with the other's type. -func GoToSocialLikeApprovalIsDisjointWith(other vocab.Type) bool { - return typelikeapproval.LikeApprovalIsDisjointWith(other) -} - -// GoToSocialLikeAuthorizationIsDisjointWith returns true if LikeAuthorization is -// disjoint with the other's type. -func GoToSocialLikeAuthorizationIsDisjointWith(other vocab.Type) bool { - return typelikeauthorization.LikeAuthorizationIsDisjointWith(other) -} - -// GoToSocialLikeRequestIsDisjointWith returns true if LikeRequest is disjoint -// with the other's type. -func GoToSocialLikeRequestIsDisjointWith(other vocab.Type) bool { - return typelikerequest.LikeRequestIsDisjointWith(other) -} - -// GoToSocialReplyApprovalIsDisjointWith returns true if ReplyApproval is disjoint -// with the other's type. -func GoToSocialReplyApprovalIsDisjointWith(other vocab.Type) bool { - return typereplyapproval.ReplyApprovalIsDisjointWith(other) -} - -// GoToSocialReplyAuthorizationIsDisjointWith returns true if ReplyAuthorization -// is disjoint with the other's type. -func GoToSocialReplyAuthorizationIsDisjointWith(other vocab.Type) bool { - return typereplyauthorization.ReplyAuthorizationIsDisjointWith(other) -} - -// GoToSocialReplyRequestIsDisjointWith returns true if ReplyRequest is disjoint -// with the other's type. -func GoToSocialReplyRequestIsDisjointWith(other vocab.Type) bool { - return typereplyrequest.ReplyRequestIsDisjointWith(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go deleted file mode 100644 index a6ebe8ac5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extendedby.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization" - typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization" - typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization" - typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// GoToSocialAnnounceApprovalIsExtendedBy returns true if the other's type extends -// from AnnounceApproval. Note that it returns false if the types are the -// same; see the "IsOrExtends" variant instead. -func GoToSocialAnnounceApprovalIsExtendedBy(other vocab.Type) bool { - return typeannounceapproval.AnnounceApprovalIsExtendedBy(other) -} - -// GoToSocialAnnounceAuthorizationIsExtendedBy returns true if the other's type -// extends from AnnounceAuthorization. Note that it returns false if the types -// are the same; see the "IsOrExtends" variant instead. -func GoToSocialAnnounceAuthorizationIsExtendedBy(other vocab.Type) bool { - return typeannounceauthorization.AnnounceAuthorizationIsExtendedBy(other) -} - -// GoToSocialAnnounceRequestIsExtendedBy returns true if the other's type extends -// from AnnounceRequest. Note that it returns false if the types are the same; -// see the "IsOrExtends" variant instead. -func GoToSocialAnnounceRequestIsExtendedBy(other vocab.Type) bool { - return typeannouncerequest.AnnounceRequestIsExtendedBy(other) -} - -// GoToSocialCanAnnounceIsExtendedBy returns true if the other's type extends from -// CanAnnounce. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func GoToSocialCanAnnounceIsExtendedBy(other vocab.Type) bool { - return typecanannounce.CanAnnounceIsExtendedBy(other) -} - -// GoToSocialCanLikeIsExtendedBy returns true if the other's type extends from -// CanLike. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func GoToSocialCanLikeIsExtendedBy(other vocab.Type) bool { - return typecanlike.CanLikeIsExtendedBy(other) -} - -// GoToSocialCanQuoteIsExtendedBy returns true if the other's type extends from -// CanQuote. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func GoToSocialCanQuoteIsExtendedBy(other vocab.Type) bool { - return typecanquote.CanQuoteIsExtendedBy(other) -} - -// GoToSocialCanReplyIsExtendedBy returns true if the other's type extends from -// CanReply. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func GoToSocialCanReplyIsExtendedBy(other vocab.Type) bool { - return typecanreply.CanReplyIsExtendedBy(other) -} - -// GoToSocialInteractionPolicyIsExtendedBy returns true if the other's type -// extends from InteractionPolicy. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func GoToSocialInteractionPolicyIsExtendedBy(other vocab.Type) bool { - return typeinteractionpolicy.InteractionPolicyIsExtendedBy(other) -} - -// GoToSocialLikeApprovalIsExtendedBy returns true if the other's type extends -// from LikeApproval. Note that it returns false if the types are the same; -// see the "IsOrExtends" variant instead. -func GoToSocialLikeApprovalIsExtendedBy(other vocab.Type) bool { - return typelikeapproval.LikeApprovalIsExtendedBy(other) -} - -// GoToSocialLikeAuthorizationIsExtendedBy returns true if the other's type -// extends from LikeAuthorization. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func GoToSocialLikeAuthorizationIsExtendedBy(other vocab.Type) bool { - return typelikeauthorization.LikeAuthorizationIsExtendedBy(other) -} - -// GoToSocialLikeRequestIsExtendedBy returns true if the other's type extends from -// LikeRequest. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func GoToSocialLikeRequestIsExtendedBy(other vocab.Type) bool { - return typelikerequest.LikeRequestIsExtendedBy(other) -} - -// GoToSocialReplyApprovalIsExtendedBy returns true if the other's type extends -// from ReplyApproval. Note that it returns false if the types are the same; -// see the "IsOrExtends" variant instead. -func GoToSocialReplyApprovalIsExtendedBy(other vocab.Type) bool { - return typereplyapproval.ReplyApprovalIsExtendedBy(other) -} - -// GoToSocialReplyAuthorizationIsExtendedBy returns true if the other's type -// extends from ReplyAuthorization. Note that it returns false if the types -// are the same; see the "IsOrExtends" variant instead. -func GoToSocialReplyAuthorizationIsExtendedBy(other vocab.Type) bool { - return typereplyauthorization.ReplyAuthorizationIsExtendedBy(other) -} - -// GoToSocialReplyRequestIsExtendedBy returns true if the other's type extends -// from ReplyRequest. Note that it returns false if the types are the same; -// see the "IsOrExtends" variant instead. -func GoToSocialReplyRequestIsExtendedBy(other vocab.Type) bool { - return typereplyrequest.ReplyRequestIsExtendedBy(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go deleted file mode 100644 index 814da6b22..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_extends.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization" - typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization" - typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization" - typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// GoToSocialGoToSocialAnnounceApprovalExtends returns true if AnnounceApproval -// extends from the other's type. -func GoToSocialGoToSocialAnnounceApprovalExtends(other vocab.Type) bool { - return typeannounceapproval.GoToSocialAnnounceApprovalExtends(other) -} - -// GoToSocialGoToSocialAnnounceAuthorizationExtends returns true if -// AnnounceAuthorization extends from the other's type. -func GoToSocialGoToSocialAnnounceAuthorizationExtends(other vocab.Type) bool { - return typeannounceauthorization.GoToSocialAnnounceAuthorizationExtends(other) -} - -// GoToSocialGoToSocialAnnounceRequestExtends returns true if AnnounceRequest -// extends from the other's type. -func GoToSocialGoToSocialAnnounceRequestExtends(other vocab.Type) bool { - return typeannouncerequest.GoToSocialAnnounceRequestExtends(other) -} - -// GoToSocialGoToSocialCanAnnounceExtends returns true if CanAnnounce extends from -// the other's type. -func GoToSocialGoToSocialCanAnnounceExtends(other vocab.Type) bool { - return typecanannounce.GoToSocialCanAnnounceExtends(other) -} - -// GoToSocialGoToSocialCanLikeExtends returns true if CanLike extends from the -// other's type. -func GoToSocialGoToSocialCanLikeExtends(other vocab.Type) bool { - return typecanlike.GoToSocialCanLikeExtends(other) -} - -// GoToSocialGoToSocialCanQuoteExtends returns true if CanQuote extends from the -// other's type. -func GoToSocialGoToSocialCanQuoteExtends(other vocab.Type) bool { - return typecanquote.GoToSocialCanQuoteExtends(other) -} - -// GoToSocialGoToSocialCanReplyExtends returns true if CanReply extends from the -// other's type. -func GoToSocialGoToSocialCanReplyExtends(other vocab.Type) bool { - return typecanreply.GoToSocialCanReplyExtends(other) -} - -// GoToSocialGoToSocialInteractionPolicyExtends returns true if InteractionPolicy -// extends from the other's type. -func GoToSocialGoToSocialInteractionPolicyExtends(other vocab.Type) bool { - return typeinteractionpolicy.GoToSocialInteractionPolicyExtends(other) -} - -// GoToSocialGoToSocialLikeApprovalExtends returns true if LikeApproval extends -// from the other's type. -func GoToSocialGoToSocialLikeApprovalExtends(other vocab.Type) bool { - return typelikeapproval.GoToSocialLikeApprovalExtends(other) -} - -// GoToSocialGoToSocialLikeAuthorizationExtends returns true if LikeAuthorization -// extends from the other's type. -func GoToSocialGoToSocialLikeAuthorizationExtends(other vocab.Type) bool { - return typelikeauthorization.GoToSocialLikeAuthorizationExtends(other) -} - -// GoToSocialGoToSocialLikeRequestExtends returns true if LikeRequest extends from -// the other's type. -func GoToSocialGoToSocialLikeRequestExtends(other vocab.Type) bool { - return typelikerequest.GoToSocialLikeRequestExtends(other) -} - -// GoToSocialGoToSocialReplyApprovalExtends returns true if ReplyApproval extends -// from the other's type. -func GoToSocialGoToSocialReplyApprovalExtends(other vocab.Type) bool { - return typereplyapproval.GoToSocialReplyApprovalExtends(other) -} - -// GoToSocialGoToSocialReplyAuthorizationExtends returns true if -// ReplyAuthorization extends from the other's type. -func GoToSocialGoToSocialReplyAuthorizationExtends(other vocab.Type) bool { - return typereplyauthorization.GoToSocialReplyAuthorizationExtends(other) -} - -// GoToSocialGoToSocialReplyRequestExtends returns true if ReplyRequest extends -// from the other's type. -func GoToSocialGoToSocialReplyRequestExtends(other vocab.Type) bool { - return typereplyrequest.GoToSocialReplyRequestExtends(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_isorextends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_isorextends.go deleted file mode 100644 index 0e50e365e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_isorextends.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization" - typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization" - typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization" - typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// IsOrExtendsGoToSocialAnnounceApproval returns true if the other provided type -// is the AnnounceApproval type or extends from the AnnounceApproval type. -func IsOrExtendsGoToSocialAnnounceApproval(other vocab.Type) bool { - return typeannounceapproval.IsOrExtendsAnnounceApproval(other) -} - -// IsOrExtendsGoToSocialAnnounceAuthorization returns true if the other provided -// type is the AnnounceAuthorization type or extends from the -// AnnounceAuthorization type. -func IsOrExtendsGoToSocialAnnounceAuthorization(other vocab.Type) bool { - return typeannounceauthorization.IsOrExtendsAnnounceAuthorization(other) -} - -// IsOrExtendsGoToSocialAnnounceRequest returns true if the other provided type is -// the AnnounceRequest type or extends from the AnnounceRequest type. -func IsOrExtendsGoToSocialAnnounceRequest(other vocab.Type) bool { - return typeannouncerequest.IsOrExtendsAnnounceRequest(other) -} - -// IsOrExtendsGoToSocialCanAnnounce returns true if the other provided type is the -// CanAnnounce type or extends from the CanAnnounce type. -func IsOrExtendsGoToSocialCanAnnounce(other vocab.Type) bool { - return typecanannounce.IsOrExtendsCanAnnounce(other) -} - -// IsOrExtendsGoToSocialCanLike returns true if the other provided type is the -// CanLike type or extends from the CanLike type. -func IsOrExtendsGoToSocialCanLike(other vocab.Type) bool { - return typecanlike.IsOrExtendsCanLike(other) -} - -// IsOrExtendsGoToSocialCanQuote returns true if the other provided type is the -// CanQuote type or extends from the CanQuote type. -func IsOrExtendsGoToSocialCanQuote(other vocab.Type) bool { - return typecanquote.IsOrExtendsCanQuote(other) -} - -// IsOrExtendsGoToSocialCanReply returns true if the other provided type is the -// CanReply type or extends from the CanReply type. -func IsOrExtendsGoToSocialCanReply(other vocab.Type) bool { - return typecanreply.IsOrExtendsCanReply(other) -} - -// IsOrExtendsGoToSocialInteractionPolicy returns true if the other provided type -// is the InteractionPolicy type or extends from the InteractionPolicy type. -func IsOrExtendsGoToSocialInteractionPolicy(other vocab.Type) bool { - return typeinteractionpolicy.IsOrExtendsInteractionPolicy(other) -} - -// IsOrExtendsGoToSocialLikeApproval returns true if the other provided type is -// the LikeApproval type or extends from the LikeApproval type. -func IsOrExtendsGoToSocialLikeApproval(other vocab.Type) bool { - return typelikeapproval.IsOrExtendsLikeApproval(other) -} - -// IsOrExtendsGoToSocialLikeAuthorization returns true if the other provided type -// is the LikeAuthorization type or extends from the LikeAuthorization type. -func IsOrExtendsGoToSocialLikeAuthorization(other vocab.Type) bool { - return typelikeauthorization.IsOrExtendsLikeAuthorization(other) -} - -// IsOrExtendsGoToSocialLikeRequest returns true if the other provided type is the -// LikeRequest type or extends from the LikeRequest type. -func IsOrExtendsGoToSocialLikeRequest(other vocab.Type) bool { - return typelikerequest.IsOrExtendsLikeRequest(other) -} - -// IsOrExtendsGoToSocialReplyApproval returns true if the other provided type is -// the ReplyApproval type or extends from the ReplyApproval type. -func IsOrExtendsGoToSocialReplyApproval(other vocab.Type) bool { - return typereplyapproval.IsOrExtendsReplyApproval(other) -} - -// IsOrExtendsGoToSocialReplyAuthorization returns true if the other provided type -// is the ReplyAuthorization type or extends from the ReplyAuthorization type. -func IsOrExtendsGoToSocialReplyAuthorization(other vocab.Type) bool { - return typereplyauthorization.IsOrExtendsReplyAuthorization(other) -} - -// IsOrExtendsGoToSocialReplyRequest returns true if the other provided type is -// the ReplyRequest type or extends from the ReplyRequest type. -func IsOrExtendsGoToSocialReplyRequest(other vocab.Type) bool { - return typereplyrequest.IsOrExtendsReplyRequest(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_property_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_property_constructors.go deleted file mode 100644 index 82e7f8bbe..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_property_constructors.go +++ /dev/null @@ -1,87 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always" - propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired" - propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby" - propertyautomaticapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval" - propertycanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce" - propertycanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike" - propertycanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote" - propertycanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply" - propertyinteractingobject "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject" - propertyinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy" - propertyinteractiontarget "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget" - propertymanualapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewGoToSocialGoToSocialAlwaysProperty creates a new GoToSocialAlwaysProperty -func NewGoToSocialAlwaysProperty() vocab.GoToSocialAlwaysProperty { - return propertyalways.NewGoToSocialAlwaysProperty() -} - -// NewGoToSocialGoToSocialApprovalRequiredProperty creates a new -// GoToSocialApprovalRequiredProperty -func NewGoToSocialApprovalRequiredProperty() vocab.GoToSocialApprovalRequiredProperty { - return propertyapprovalrequired.NewGoToSocialApprovalRequiredProperty() -} - -// NewGoToSocialGoToSocialApprovedByProperty creates a new -// GoToSocialApprovedByProperty -func NewGoToSocialApprovedByProperty() vocab.GoToSocialApprovedByProperty { - return propertyapprovedby.NewGoToSocialApprovedByProperty() -} - -// NewGoToSocialGoToSocialAutomaticApprovalProperty creates a new -// GoToSocialAutomaticApprovalProperty -func NewGoToSocialAutomaticApprovalProperty() vocab.GoToSocialAutomaticApprovalProperty { - return propertyautomaticapproval.NewGoToSocialAutomaticApprovalProperty() -} - -// NewGoToSocialGoToSocialCanAnnounceProperty creates a new -// GoToSocialCanAnnounceProperty -func NewGoToSocialCanAnnounceProperty() vocab.GoToSocialCanAnnounceProperty { - return propertycanannounce.NewGoToSocialCanAnnounceProperty() -} - -// NewGoToSocialGoToSocialCanLikeProperty creates a new GoToSocialCanLikeProperty -func NewGoToSocialCanLikeProperty() vocab.GoToSocialCanLikeProperty { - return propertycanlike.NewGoToSocialCanLikeProperty() -} - -// NewGoToSocialGoToSocialCanQuoteProperty creates a new GoToSocialCanQuoteProperty -func NewGoToSocialCanQuoteProperty() vocab.GoToSocialCanQuoteProperty { - return propertycanquote.NewGoToSocialCanQuoteProperty() -} - -// NewGoToSocialGoToSocialCanReplyProperty creates a new GoToSocialCanReplyProperty -func NewGoToSocialCanReplyProperty() vocab.GoToSocialCanReplyProperty { - return propertycanreply.NewGoToSocialCanReplyProperty() -} - -// NewGoToSocialGoToSocialInteractingObjectProperty creates a new -// GoToSocialInteractingObjectProperty -func NewGoToSocialInteractingObjectProperty() vocab.GoToSocialInteractingObjectProperty { - return propertyinteractingobject.NewGoToSocialInteractingObjectProperty() -} - -// NewGoToSocialGoToSocialInteractionPolicyProperty creates a new -// GoToSocialInteractionPolicyProperty -func NewGoToSocialInteractionPolicyProperty() vocab.GoToSocialInteractionPolicyProperty { - return propertyinteractionpolicy.NewGoToSocialInteractionPolicyProperty() -} - -// NewGoToSocialGoToSocialInteractionTargetProperty creates a new -// GoToSocialInteractionTargetProperty -func NewGoToSocialInteractionTargetProperty() vocab.GoToSocialInteractionTargetProperty { - return propertyinteractiontarget.NewGoToSocialInteractionTargetProperty() -} - -// NewGoToSocialGoToSocialManualApprovalProperty creates a new -// GoToSocialManualApprovalProperty -func NewGoToSocialManualApprovalProperty() vocab.GoToSocialManualApprovalProperty { - return propertymanualapproval.NewGoToSocialManualApprovalProperty() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_type_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_type_constructors.go deleted file mode 100644 index b0281ca5a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_gotosocial_type_constructors.go +++ /dev/null @@ -1,91 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeannounceapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval" - typeannounceauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization" - typeannouncerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest" - typecanannounce "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce" - typecanlike "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike" - typecanquote "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote" - typecanreply "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply" - typeinteractionpolicy "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy" - typelikeapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval" - typelikeauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization" - typelikerequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest" - typereplyapproval "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval" - typereplyauthorization "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization" - typereplyrequest "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewGoToSocialAnnounceApproval creates a new GoToSocialAnnounceApproval -func NewGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return typeannounceapproval.NewGoToSocialAnnounceApproval() -} - -// NewGoToSocialAnnounceAuthorization creates a new GoToSocialAnnounceAuthorization -func NewGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return typeannounceauthorization.NewGoToSocialAnnounceAuthorization() -} - -// NewGoToSocialAnnounceRequest creates a new GoToSocialAnnounceRequest -func NewGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return typeannouncerequest.NewGoToSocialAnnounceRequest() -} - -// NewGoToSocialCanAnnounce creates a new GoToSocialCanAnnounce -func NewGoToSocialCanAnnounce() vocab.GoToSocialCanAnnounce { - return typecanannounce.NewGoToSocialCanAnnounce() -} - -// NewGoToSocialCanLike creates a new GoToSocialCanLike -func NewGoToSocialCanLike() vocab.GoToSocialCanLike { - return typecanlike.NewGoToSocialCanLike() -} - -// NewGoToSocialCanQuote creates a new GoToSocialCanQuote -func NewGoToSocialCanQuote() vocab.GoToSocialCanQuote { - return typecanquote.NewGoToSocialCanQuote() -} - -// NewGoToSocialCanReply creates a new GoToSocialCanReply -func NewGoToSocialCanReply() vocab.GoToSocialCanReply { - return typecanreply.NewGoToSocialCanReply() -} - -// NewGoToSocialInteractionPolicy creates a new GoToSocialInteractionPolicy -func NewGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicy { - return typeinteractionpolicy.NewGoToSocialInteractionPolicy() -} - -// NewGoToSocialLikeApproval creates a new GoToSocialLikeApproval -func NewGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return typelikeapproval.NewGoToSocialLikeApproval() -} - -// NewGoToSocialLikeAuthorization creates a new GoToSocialLikeAuthorization -func NewGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return typelikeauthorization.NewGoToSocialLikeAuthorization() -} - -// NewGoToSocialLikeRequest creates a new GoToSocialLikeRequest -func NewGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return typelikerequest.NewGoToSocialLikeRequest() -} - -// NewGoToSocialReplyApproval creates a new GoToSocialReplyApproval -func NewGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return typereplyapproval.NewGoToSocialReplyApproval() -} - -// NewGoToSocialReplyAuthorization creates a new GoToSocialReplyAuthorization -func NewGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return typereplyauthorization.NewGoToSocialReplyAuthorization() -} - -// NewGoToSocialReplyRequest creates a new GoToSocialReplyRequest -func NewGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return typereplyrequest.NewGoToSocialReplyRequest() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_jsonld_property_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_jsonld_property_constructors.go deleted file mode 100644 index 724bbb2c2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_jsonld_property_constructors.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyid "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id" - propertytype "codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewJSONLDJSONLDTypeProperty creates a new JSONLDTypeProperty -func NewJSONLDTypeProperty() vocab.JSONLDTypeProperty { - return propertytype.NewJSONLDTypeProperty() -} - -// NewJSONLDJSONLDIdProperty creates a new JSONLDIdProperty -func NewJSONLDIdProperty() vocab.JSONLDIdProperty { - return propertyid.NewJSONLDIdProperty() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_disjoint.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_disjoint.go deleted file mode 100644 index 16cf4bdac..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_disjoint.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// SchemaPropertyValueIsDisjointWith returns true if PropertyValue is disjoint -// with the other's type. -func SchemaPropertyValueIsDisjointWith(other vocab.Type) bool { - return typepropertyvalue.PropertyValueIsDisjointWith(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extendedby.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extendedby.go deleted file mode 100644 index 57ebdcc93..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extendedby.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// SchemaPropertyValueIsExtendedBy returns true if the other's type extends from -// PropertyValue. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func SchemaPropertyValueIsExtendedBy(other vocab.Type) bool { - return typepropertyvalue.PropertyValueIsExtendedBy(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extends.go deleted file mode 100644 index 47114f26c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_extends.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// SchemaSchemaPropertyValueExtends returns true if PropertyValue extends from the -// other's type. -func SchemaSchemaPropertyValueExtends(other vocab.Type) bool { - return typepropertyvalue.SchemaPropertyValueExtends(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_isorextends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_isorextends.go deleted file mode 100644 index 094df9979..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_isorextends.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// IsOrExtendsSchemaPropertyValue returns true if the other provided type is the -// PropertyValue type or extends from the PropertyValue type. -func IsOrExtendsSchemaPropertyValue(other vocab.Type) bool { - return typepropertyvalue.IsOrExtendsPropertyValue(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_property_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_property_constructors.go deleted file mode 100644 index 24b478213..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_property_constructors.go +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewSchemaSchemaValueProperty creates a new SchemaValueProperty -func NewSchemaValueProperty() vocab.SchemaValueProperty { - return propertyvalue.NewSchemaValueProperty() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_type_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_type_constructors.go deleted file mode 100644 index eb3dcd7ec..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_schema_type_constructors.go +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepropertyvalue "codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewSchemaPropertyValue creates a new SchemaPropertyValue -func NewSchemaPropertyValue() vocab.SchemaPropertyValue { - return typepropertyvalue.NewSchemaPropertyValue() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_disjoint.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_disjoint.go deleted file mode 100644 index 49673fbc5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_disjoint.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// TootEmojiIsDisjointWith returns true if Emoji is disjoint with the other's type. -func TootEmojiIsDisjointWith(other vocab.Type) bool { - return typeemoji.EmojiIsDisjointWith(other) -} - -// TootHashtagIsDisjointWith returns true if Hashtag is disjoint with the other's -// type. -func TootHashtagIsDisjointWith(other vocab.Type) bool { - return typehashtag.HashtagIsDisjointWith(other) -} - -// TootIdentityProofIsDisjointWith returns true if IdentityProof is disjoint with -// the other's type. -func TootIdentityProofIsDisjointWith(other vocab.Type) bool { - return typeidentityproof.IdentityProofIsDisjointWith(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extendedby.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extendedby.go deleted file mode 100644 index d0d4ed71d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extendedby.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// TootEmojiIsExtendedBy returns true if the other's type extends from Emoji. Note -// that it returns false if the types are the same; see the "IsOrExtends" -// variant instead. -func TootEmojiIsExtendedBy(other vocab.Type) bool { - return typeemoji.EmojiIsExtendedBy(other) -} - -// TootHashtagIsExtendedBy returns true if the other's type extends from Hashtag. -// Note that it returns false if the types are the same; see the "IsOrExtends" -// variant instead. -func TootHashtagIsExtendedBy(other vocab.Type) bool { - return typehashtag.HashtagIsExtendedBy(other) -} - -// TootIdentityProofIsExtendedBy returns true if the other's type extends from -// IdentityProof. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func TootIdentityProofIsExtendedBy(other vocab.Type) bool { - return typeidentityproof.IdentityProofIsExtendedBy(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extends.go deleted file mode 100644 index 4fcd0eb6e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_extends.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// TootTootEmojiExtends returns true if Emoji extends from the other's type. -func TootTootEmojiExtends(other vocab.Type) bool { - return typeemoji.TootEmojiExtends(other) -} - -// TootTootHashtagExtends returns true if Hashtag extends from the other's type. -func TootTootHashtagExtends(other vocab.Type) bool { - return typehashtag.TootHashtagExtends(other) -} - -// TootTootIdentityProofExtends returns true if IdentityProof extends from the -// other's type. -func TootTootIdentityProofExtends(other vocab.Type) bool { - return typeidentityproof.TootIdentityProofExtends(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_isorextends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_isorextends.go deleted file mode 100644 index 565e5c80d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_isorextends.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// IsOrExtendsTootEmoji returns true if the other provided type is the Emoji type -// or extends from the Emoji type. -func IsOrExtendsTootEmoji(other vocab.Type) bool { - return typeemoji.IsOrExtendsEmoji(other) -} - -// IsOrExtendsTootHashtag returns true if the other provided type is the Hashtag -// type or extends from the Hashtag type. -func IsOrExtendsTootHashtag(other vocab.Type) bool { - return typehashtag.IsOrExtendsHashtag(other) -} - -// IsOrExtendsTootIdentityProof returns true if the other provided type is the -// IdentityProof type or extends from the IdentityProof type. -func IsOrExtendsTootIdentityProof(other vocab.Type) bool { - return typeidentityproof.IsOrExtendsIdentityProof(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_property_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_property_constructors.go deleted file mode 100644 index b40fee654..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_property_constructors.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyblurhash "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash" - propertydiscoverable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable" - propertyfeatured "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured" - propertyfocalpoint "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint" - propertyindexable "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable" - propertysignaturealgorithm "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm" - propertysignaturevalue "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue" - propertyvoterscount "codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewTootTootBlurhashProperty creates a new TootBlurhashProperty -func NewTootBlurhashProperty() vocab.TootBlurhashProperty { - return propertyblurhash.NewTootBlurhashProperty() -} - -// NewTootTootDiscoverableProperty creates a new TootDiscoverableProperty -func NewTootDiscoverableProperty() vocab.TootDiscoverableProperty { - return propertydiscoverable.NewTootDiscoverableProperty() -} - -// NewTootTootFeaturedProperty creates a new TootFeaturedProperty -func NewTootFeaturedProperty() vocab.TootFeaturedProperty { - return propertyfeatured.NewTootFeaturedProperty() -} - -// NewTootTootFocalPointProperty creates a new TootFocalPointProperty -func NewTootFocalPointProperty() vocab.TootFocalPointProperty { - return propertyfocalpoint.NewTootFocalPointProperty() -} - -// NewTootTootIndexableProperty creates a new TootIndexableProperty -func NewTootIndexableProperty() vocab.TootIndexableProperty { - return propertyindexable.NewTootIndexableProperty() -} - -// NewTootTootSignatureAlgorithmProperty creates a new -// TootSignatureAlgorithmProperty -func NewTootSignatureAlgorithmProperty() vocab.TootSignatureAlgorithmProperty { - return propertysignaturealgorithm.NewTootSignatureAlgorithmProperty() -} - -// NewTootTootSignatureValueProperty creates a new TootSignatureValueProperty -func NewTootSignatureValueProperty() vocab.TootSignatureValueProperty { - return propertysignaturevalue.NewTootSignatureValueProperty() -} - -// NewTootTootVotersCountProperty creates a new TootVotersCountProperty -func NewTootVotersCountProperty() vocab.TootVotersCountProperty { - return propertyvoterscount.NewTootVotersCountProperty() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_type_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_type_constructors.go deleted file mode 100644 index ea63802a9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_toot_type_constructors.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeemoji "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji" - typehashtag "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag" - typeidentityproof "codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewTootEmoji creates a new TootEmoji -func NewTootEmoji() vocab.TootEmoji { - return typeemoji.NewTootEmoji() -} - -// NewTootHashtag creates a new TootHashtag -func NewTootHashtag() vocab.TootHashtag { - return typehashtag.NewTootHashtag() -} - -// NewTootIdentityProof creates a new TootIdentityProof -func NewTootIdentityProof() vocab.TootIdentityProof { - return typeidentityproof.NewTootIdentityProof() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go deleted file mode 100644 index fd46ac737..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// W3IDSecurityV1PublicKeyIsDisjointWith returns true if PublicKey is disjoint -// with the other's type. -func W3IDSecurityV1PublicKeyIsDisjointWith(other vocab.Type) bool { - return typepublickey.PublicKeyIsDisjointWith(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go deleted file mode 100644 index 43373b0b5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// W3IDSecurityV1PublicKeyIsExtendedBy returns true if the other's type extends -// from PublicKey. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func W3IDSecurityV1PublicKeyIsExtendedBy(other vocab.Type) bool { - return typepublickey.PublicKeyIsExtendedBy(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extends.go deleted file mode 100644 index 821880885..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_extends.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// W3IDSecurityV1W3IDSecurityV1PublicKeyExtends returns true if PublicKey extends -// from the other's type. -func W3IDSecurityV1W3IDSecurityV1PublicKeyExtends(other vocab.Type) bool { - return typepublickey.W3IDSecurityV1PublicKeyExtends(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go deleted file mode 100644 index 98e66a47e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// IsOrExtendsW3IDSecurityV1PublicKey returns true if the other provided type is -// the PublicKey type or extends from the PublicKey type. -func IsOrExtendsW3IDSecurityV1PublicKey(other vocab.Type) bool { - return typepublickey.IsOrExtendsPublicKey(other) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go deleted file mode 100644 index 6711a6907..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyowner "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner" - propertypublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey" - propertypublickeypem "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewW3IDSecurityV1W3IDSecurityV1OwnerProperty creates a new -// W3IDSecurityV1OwnerProperty -func NewW3IDSecurityV1OwnerProperty() vocab.W3IDSecurityV1OwnerProperty { - return propertyowner.NewW3IDSecurityV1OwnerProperty() -} - -// NewW3IDSecurityV1W3IDSecurityV1PublicKeyProperty creates a new -// W3IDSecurityV1PublicKeyProperty -func NewW3IDSecurityV1PublicKeyProperty() vocab.W3IDSecurityV1PublicKeyProperty { - return propertypublickey.NewW3IDSecurityV1PublicKeyProperty() -} - -// NewW3IDSecurityV1W3IDSecurityV1PublicKeyPemProperty creates a new -// W3IDSecurityV1PublicKeyPemProperty -func NewW3IDSecurityV1PublicKeyPemProperty() vocab.W3IDSecurityV1PublicKeyPemProperty { - return propertypublickeypem.NewW3IDSecurityV1PublicKeyPemProperty() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go deleted file mode 100644 index 668767232..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepublickey "codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -// NewW3IDSecurityV1PublicKey creates a new W3IDSecurityV1PublicKey -func NewW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKey { - return typepublickey.NewW3IDSecurityV1PublicKey() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go deleted file mode 100644 index 7ff667f0e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go +++ /dev/null @@ -1,289 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "context" - "errors" -) - -// ErrNoCallbackMatch indicates a Resolver could not match the ActivityStreams value to a callback function. -var ErrNoCallbackMatch error = errors.New("activity stream did not match the callback function") - -// ErrUnhandledType indicates that an ActivityStreams value has a type that is not handled by the code that has been generated. -var ErrUnhandledType error = errors.New("activity stream did not match any known types") - -// ErrPredicateUnmatched indicates that a predicate is accepting a type or interface that does not match an ActivityStreams value's type or interface. -var ErrPredicateUnmatched error = errors.New("activity stream did not match type demanded by predicate") - -// errCannotTypeAssertType indicates that the 'type' property returned by the ActivityStreams value cannot be type-asserted to its interface form. -var errCannotTypeAssertType error = errors.New("activity stream type cannot be asserted to its interface") - -// ActivityStreamsInterface represents any ActivityStream value code-generated by -// go-fed or compatible with the generated interfaces. -type ActivityStreamsInterface interface { - // GetTypeName returns the ActiivtyStreams value's type. - GetTypeName() string - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} - -// Resolver represents any TypeResolver. -type Resolver interface { - // Resolve will attempt to resolve an untyped ActivityStreams value into a - // Go concrete type. - Resolve(ctx context.Context, o ActivityStreamsInterface) error -} - -// IsUnmatchedErr is true when the error indicates that a Resolver was -// unsuccessful due to the ActivityStreams value not matching its callbacks or -// predicates. -func IsUnmatchedErr(err error) bool { - return err == ErrPredicateUnmatched || err == ErrUnhandledType || err == ErrNoCallbackMatch -} - -// ToType attempts to resolve the generic JSON map into a Type. -func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err error) { - var r *JSONResolver - r, err = NewJSONResolver(func(ctx context.Context, i vocab.ActivityStreamsAccept) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsActivity) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsAdd) error { - t = i - return nil - }, func(ctx context.Context, i vocab.FunkwhaleAlbum) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsAnnounce) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialAnnounceApproval) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialAnnounceAuthorization) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialAnnounceRequest) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsApplication) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsArrive) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsArticle) error { - t = i - return nil - }, func(ctx context.Context, i vocab.FunkwhaleArtist) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsAudio) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsBlock) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialCanAnnounce) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialCanLike) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialCanQuote) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialCanReply) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsCollection) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsCollectionPage) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsCreate) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsDelete) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsDislike) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsDocument) error { - t = i - return nil - }, func(ctx context.Context, i vocab.TootEmoji) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsEndpoints) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsEvent) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsFlag) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsFollow) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsGroup) error { - t = i - return nil - }, func(ctx context.Context, i vocab.TootHashtag) error { - t = i - return nil - }, func(ctx context.Context, i vocab.TootIdentityProof) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsIgnore) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsImage) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialInteractionPolicy) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsIntransitiveActivity) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsInvite) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsJoin) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsLeave) error { - t = i - return nil - }, func(ctx context.Context, i vocab.FunkwhaleLibrary) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsLike) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialLikeApproval) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialLikeAuthorization) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialLikeRequest) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsLink) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsListen) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsMention) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsMove) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsNote) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsObject) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsOffer) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsOrderedCollection) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsOrderedCollectionPage) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsOrganization) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsPage) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsPerson) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsPlace) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsProfile) error { - t = i - return nil - }, func(ctx context.Context, i vocab.SchemaPropertyValue) error { - t = i - return nil - }, func(ctx context.Context, i vocab.W3IDSecurityV1PublicKey) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsQuestion) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsRead) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsReject) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsRelationship) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsRemove) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialReplyApproval) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialReplyAuthorization) error { - t = i - return nil - }, func(ctx context.Context, i vocab.GoToSocialReplyRequest) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsService) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsTentativeAccept) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsTentativeReject) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsTombstone) error { - t = i - return nil - }, func(ctx context.Context, i vocab.FunkwhaleTrack) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsTravel) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsUndo) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsUpdate) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsVideo) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsView) error { - t = i - return nil - }) - if err != nil { - return - } - err = r.Resolve(c, m) - return -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go deleted file mode 100644 index f63f7e54d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go +++ /dev/null @@ -1,1076 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "context" - "errors" -) - -// TypePredicatedResolver resolves ActivityStreams values if the value satisfies a -// predicate condition based on its type. -type TypePredicatedResolver struct { - delegate Resolver - predicate interface{} -} - -// NewTypePredicatedResolver creates a new Resolver that applies a predicate to an -// ActivityStreams value to determine whether to Resolve or not. The -// ActivityStreams value's type is examined to determine if the predicate can -// apply itself to the value. This guarantees the predicate will receive a -// concrete value whose underlying ActivityStreams type matches the concrete -// interface name. The predicate function must be of the form: -// -// func(context.Context, ) (bool, error) -// -// where TypeInterface is the code-generated interface for an ActivityStreams -// type. An error is returned if the predicate does not match this signature. -func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypePredicatedResolver, error) { - // The predicate must satisfy one known predicate function signature, or else we will generate a runtime error instead of silently fail. - switch predicate.(type) { - case func(context.Context, vocab.ActivityStreamsAccept) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsActivity) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsAdd) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.FunkwhaleAlbum) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialAnnounceApproval) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialAnnounceAuthorization) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialAnnounceRequest) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsApplication) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsArrive) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsArticle) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.FunkwhaleArtist) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsAudio) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsBlock) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialCanAnnounce) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialCanLike) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialCanQuote) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialCanReply) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollection) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollectionPage) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsCreate) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsDelete) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsDislike) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsDocument) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.TootEmoji) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsEndpoints) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsEvent) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsFlag) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsFollow) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsGroup) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.TootHashtag) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.TootIdentityProof) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsIgnore) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsImage) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialInteractionPolicy) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsInvite) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsJoin) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsLeave) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.FunkwhaleLibrary) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsLike) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialLikeApproval) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialLikeAuthorization) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialLikeRequest) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsLink) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsListen) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsMention) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsMove) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsNote) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsObject) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsOffer) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollection) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrganization) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsPage) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsPerson) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsPlace) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsProfile) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.SchemaPropertyValue) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsQuestion) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsRead) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsReject) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsRelationship) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsRemove) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialReplyApproval) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialReplyAuthorization) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.GoToSocialReplyRequest) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsService) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeReject) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsTombstone) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.FunkwhaleTrack) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsTravel) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsUndo) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsUpdate) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsVideo) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsView) (bool, error): - // Do nothing, this predicate has a correct signature. - default: - return nil, errors.New("the predicate function is of the wrong signature and would never be called") - } - return &TypePredicatedResolver{ - delegate: delegate, - predicate: predicate, - }, nil -} - -// Apply uses a predicate to determine whether to resolve the ActivityStreams -// value. The predicate's signature is matched with the ActivityStreams -// value's type. This strictly assures that the predicate will only be passed -// ActivityStream objects whose type matches its interface. Returns an error -// if the ActivityStreams type does not match the predicate, is not a type -// handled by the generated code, or the resolver returns an error. Returns -// true if the predicate returned true. -func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsInterface) (bool, error) { - var predicatePasses bool - var err error - if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Accept" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAccept) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsAccept); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Activity" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsActivity) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsActivity); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Add" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAdd) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsAdd); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Album" { - if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleAlbum) (bool, error)); ok { - if v, ok := o.(vocab.FunkwhaleAlbum); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsAnnounce); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceApproval" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialAnnounceApproval) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialAnnounceApproval); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceAuthorization" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialAnnounceAuthorization); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceRequest" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialAnnounceRequest) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialAnnounceRequest); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsApplication) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsApplication); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Arrive" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsArrive) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsArrive); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Article" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsArticle) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsArticle); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Artist" { - if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleArtist) (bool, error)); ok { - if v, ok := o.(vocab.FunkwhaleArtist); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAudio) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsAudio); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Block" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsBlock) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsBlock); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanAnnounce" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanAnnounce) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialCanAnnounce); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanLike" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanLike) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialCanLike); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanQuote" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanQuote) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialCanQuote); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanReply" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialCanReply) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialCanReply); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollection) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsCollection); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "CollectionPage" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollectionPage) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCreate) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsCreate); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Delete" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDelete) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsDelete); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Dislike" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDislike) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsDislike); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Document" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDocument) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsDocument); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Emoji" { - if fn, ok := this.predicate.(func(context.Context, vocab.TootEmoji) (bool, error)); ok { - if v, ok := o.(vocab.TootEmoji); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Endpoints" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsEndpoints) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsEndpoints); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Event" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsEvent) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsEvent); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Flag" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsFlag) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsFlag); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Follow" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsFollow) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsFollow); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Group" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsGroup) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsGroup); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Hashtag" { - if fn, ok := this.predicate.(func(context.Context, vocab.TootHashtag) (bool, error)); ok { - if v, ok := o.(vocab.TootHashtag); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "IdentityProof" { - if fn, ok := this.predicate.(func(context.Context, vocab.TootIdentityProof) (bool, error)); ok { - if v, ok := o.(vocab.TootIdentityProof); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Ignore" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsIgnore) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsIgnore); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Image" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsImage) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsImage); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "InteractionPolicy" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialInteractionPolicy) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialInteractionPolicy); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "IntransitiveActivity" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Invite" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsInvite) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsInvite); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Join" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsJoin) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsJoin); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Leave" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLeave) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsLeave); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Library" { - if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleLibrary) (bool, error)); ok { - if v, ok := o.(vocab.FunkwhaleLibrary); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLike) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsLike); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeApproval" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialLikeApproval) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialLikeApproval); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeAuthorization" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialLikeAuthorization) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialLikeAuthorization); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeRequest" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialLikeRequest) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialLikeRequest); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLink) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsLink); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Listen" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsListen) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsListen); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Mention" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsMention) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsMention); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Move" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsMove) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsMove); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Note" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsNote) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsNote); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Object" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsObject) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsObject); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Offer" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOffer) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsOffer); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollection" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrderedCollection) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollectionPage" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Organization" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrganization) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsOrganization); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Page" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPage) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsPage); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Person" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPerson) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsPerson); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Place" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPlace) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsPlace); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Profile" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsProfile) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsProfile); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "http://schema.org" && o.GetTypeName() == "PropertyValue" { - if fn, ok := this.predicate.(func(context.Context, vocab.SchemaPropertyValue) (bool, error)); ok { - if v, ok := o.(vocab.SchemaPropertyValue); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" { - if fn, ok := this.predicate.(func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error)); ok { - if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsQuestion) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsQuestion); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Read" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRead) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsRead); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Reject" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsReject) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsReject); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Relationship" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRelationship) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsRelationship); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Remove" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRemove) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsRemove); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyApproval" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialReplyApproval) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialReplyApproval); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyAuthorization" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialReplyAuthorization) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialReplyAuthorization); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyRequest" { - if fn, ok := this.predicate.(func(context.Context, vocab.GoToSocialReplyRequest) (bool, error)); ok { - if v, ok := o.(vocab.GoToSocialReplyRequest); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsService) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsService); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeAccept" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeReject" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTentativeReject) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTombstone) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsTombstone); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Track" { - if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleTrack) (bool, error)); ok { - if v, ok := o.(vocab.FunkwhaleTrack); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTravel) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsTravel); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Undo" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsUndo) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsUndo); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Update" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsUpdate) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsUpdate); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Video" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsVideo) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsVideo); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "View" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsView) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsView); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else { - return false, ErrUnhandledType - } - if err != nil { - return predicatePasses, err - } - if predicatePasses { - return true, this.delegate.Resolve(ctx, o) - } else { - return false, nil - } -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go deleted file mode 100644 index abe011567..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go +++ /dev/null @@ -1,909 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "context" - "errors" -) - -// TypeResolver resolves ActivityStreams values based on their type name. -type TypeResolver struct { - callbacks []interface{} -} - -// NewTypeResolver creates a new Resolver that examines the type of an -// ActivityStream value to determine what callback function to pass the -// concretely typed value. The callback is guaranteed to receive a value whose -// underlying ActivityStreams type matches the concrete interface name in its -// signature. The callback functions must be of the form: -// -// func(context.Context, ) error -// -// where TypeInterface is the code-generated interface for an ActivityStream -// type. An error is returned if a callback function does not match this -// signature. -func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { - for _, cb := range callbacks { - // Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail. - switch cb.(type) { - case func(context.Context, vocab.ActivityStreamsAccept) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsActivity) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAdd) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.FunkwhaleAlbum) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAnnounce) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialAnnounceApproval) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialAnnounceAuthorization) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialAnnounceRequest) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsApplication) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsArrive) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsArticle) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.FunkwhaleArtist) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAudio) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsBlock) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialCanAnnounce) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialCanLike) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialCanQuote) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialCanReply) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollection) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollectionPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCreate) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDelete) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDislike) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDocument) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.TootEmoji) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsEndpoints) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsEvent) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsFlag) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsFollow) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsGroup) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.TootHashtag) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.TootIdentityProof) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsIgnore) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsImage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialInteractionPolicy) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsInvite) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsJoin) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLeave) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.FunkwhaleLibrary) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLike) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialLikeApproval) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialLikeAuthorization) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialLikeRequest) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLink) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsListen) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsMention) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsMove) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsNote) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsObject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOffer) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollection) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrganization) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPerson) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPlace) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsProfile) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.SchemaPropertyValue) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.W3IDSecurityV1PublicKey) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsQuestion) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRead) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsReject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRelationship) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRemove) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialReplyApproval) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialReplyAuthorization) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.GoToSocialReplyRequest) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsService) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeAccept) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeReject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTombstone) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.FunkwhaleTrack) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTravel) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsUndo) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsUpdate) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsVideo) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsView) error: - // Do nothing, this callback has a correct signature. - default: - return nil, errors.New("a callback function is of the wrong signature and would never be called") - } - } - return &TypeResolver{callbacks: callbacks}, nil -} - -// Resolve applies the first callback function whose signature accepts the -// ActivityStreams value's type. This strictly assures that the callback -// function will only be passed ActivityStream objects whose type matches its -// interface. Returns an error if the ActivityStreams type does not match -// callbackers, is not a type handled by the generated code, or the value -// passed in is not go-fed compatible. -func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface) error { - for _, i := range this.callbacks { - if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Accept" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAccept) error); ok { - if v, ok := o.(vocab.ActivityStreamsAccept); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Activity" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsActivity) error); ok { - if v, ok := o.(vocab.ActivityStreamsActivity); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Add" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAdd) error); ok { - if v, ok := o.(vocab.ActivityStreamsAdd); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Album" { - if fn, ok := i.(func(context.Context, vocab.FunkwhaleAlbum) error); ok { - if v, ok := o.(vocab.FunkwhaleAlbum); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok { - if v, ok := o.(vocab.ActivityStreamsAnnounce); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceApproval" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceApproval) error); ok { - if v, ok := o.(vocab.GoToSocialAnnounceApproval); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceAuthorization" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) error); ok { - if v, ok := o.(vocab.GoToSocialAnnounceAuthorization); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "AnnounceRequest" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceRequest) error); ok { - if v, ok := o.(vocab.GoToSocialAnnounceRequest); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok { - if v, ok := o.(vocab.ActivityStreamsApplication); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Arrive" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArrive) error); ok { - if v, ok := o.(vocab.ActivityStreamsArrive); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Article" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArticle) error); ok { - if v, ok := o.(vocab.ActivityStreamsArticle); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Artist" { - if fn, ok := i.(func(context.Context, vocab.FunkwhaleArtist) error); ok { - if v, ok := o.(vocab.FunkwhaleArtist); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok { - if v, ok := o.(vocab.ActivityStreamsAudio); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Block" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsBlock) error); ok { - if v, ok := o.(vocab.ActivityStreamsBlock); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanAnnounce" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialCanAnnounce) error); ok { - if v, ok := o.(vocab.GoToSocialCanAnnounce); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanLike" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialCanLike) error); ok { - if v, ok := o.(vocab.GoToSocialCanLike); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanQuote" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialCanQuote) error); ok { - if v, ok := o.(vocab.GoToSocialCanQuote); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "CanReply" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialCanReply) error); ok { - if v, ok := o.(vocab.GoToSocialCanReply); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok { - if v, ok := o.(vocab.ActivityStreamsCollection); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "CollectionPage" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollectionPage) error); ok { - if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok { - if v, ok := o.(vocab.ActivityStreamsCreate); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Delete" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDelete) error); ok { - if v, ok := o.(vocab.ActivityStreamsDelete); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Dislike" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDislike) error); ok { - if v, ok := o.(vocab.ActivityStreamsDislike); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Document" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDocument) error); ok { - if v, ok := o.(vocab.ActivityStreamsDocument); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Emoji" { - if fn, ok := i.(func(context.Context, vocab.TootEmoji) error); ok { - if v, ok := o.(vocab.TootEmoji); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Endpoints" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEndpoints) error); ok { - if v, ok := o.(vocab.ActivityStreamsEndpoints); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Event" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEvent) error); ok { - if v, ok := o.(vocab.ActivityStreamsEvent); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Flag" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFlag) error); ok { - if v, ok := o.(vocab.ActivityStreamsFlag); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Follow" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFollow) error); ok { - if v, ok := o.(vocab.ActivityStreamsFollow); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Group" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsGroup) error); ok { - if v, ok := o.(vocab.ActivityStreamsGroup); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Hashtag" { - if fn, ok := i.(func(context.Context, vocab.TootHashtag) error); ok { - if v, ok := o.(vocab.TootHashtag); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "IdentityProof" { - if fn, ok := i.(func(context.Context, vocab.TootIdentityProof) error); ok { - if v, ok := o.(vocab.TootIdentityProof); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Ignore" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIgnore) error); ok { - if v, ok := o.(vocab.ActivityStreamsIgnore); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Image" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsImage) error); ok { - if v, ok := o.(vocab.ActivityStreamsImage); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "InteractionPolicy" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialInteractionPolicy) error); ok { - if v, ok := o.(vocab.GoToSocialInteractionPolicy); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "IntransitiveActivity" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error); ok { - if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Invite" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsInvite) error); ok { - if v, ok := o.(vocab.ActivityStreamsInvite); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Join" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsJoin) error); ok { - if v, ok := o.(vocab.ActivityStreamsJoin); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Leave" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLeave) error); ok { - if v, ok := o.(vocab.ActivityStreamsLeave); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Library" { - if fn, ok := i.(func(context.Context, vocab.FunkwhaleLibrary) error); ok { - if v, ok := o.(vocab.FunkwhaleLibrary); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok { - if v, ok := o.(vocab.ActivityStreamsLike); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeApproval" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeApproval) error); ok { - if v, ok := o.(vocab.GoToSocialLikeApproval); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeAuthorization" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeAuthorization) error); ok { - if v, ok := o.(vocab.GoToSocialLikeAuthorization); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "LikeRequest" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeRequest) error); ok { - if v, ok := o.(vocab.GoToSocialLikeRequest); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok { - if v, ok := o.(vocab.ActivityStreamsLink); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Listen" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsListen) error); ok { - if v, ok := o.(vocab.ActivityStreamsListen); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Mention" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMention) error); ok { - if v, ok := o.(vocab.ActivityStreamsMention); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Move" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMove) error); ok { - if v, ok := o.(vocab.ActivityStreamsMove); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Note" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsNote) error); ok { - if v, ok := o.(vocab.ActivityStreamsNote); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Object" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsObject) error); ok { - if v, ok := o.(vocab.ActivityStreamsObject); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Offer" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOffer) error); ok { - if v, ok := o.(vocab.ActivityStreamsOffer); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollection" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollection) error); ok { - if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollectionPage" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error); ok { - if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Organization" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrganization) error); ok { - if v, ok := o.(vocab.ActivityStreamsOrganization); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Page" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPage) error); ok { - if v, ok := o.(vocab.ActivityStreamsPage); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Person" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPerson) error); ok { - if v, ok := o.(vocab.ActivityStreamsPerson); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Place" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPlace) error); ok { - if v, ok := o.(vocab.ActivityStreamsPlace); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Profile" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsProfile) error); ok { - if v, ok := o.(vocab.ActivityStreamsProfile); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "http://schema.org" && o.GetTypeName() == "PropertyValue" { - if fn, ok := i.(func(context.Context, vocab.SchemaPropertyValue) error); ok { - if v, ok := o.(vocab.SchemaPropertyValue); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" { - if fn, ok := i.(func(context.Context, vocab.W3IDSecurityV1PublicKey) error); ok { - if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok { - if v, ok := o.(vocab.ActivityStreamsQuestion); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Read" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRead) error); ok { - if v, ok := o.(vocab.ActivityStreamsRead); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Reject" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsReject) error); ok { - if v, ok := o.(vocab.ActivityStreamsReject); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Relationship" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRelationship) error); ok { - if v, ok := o.(vocab.ActivityStreamsRelationship); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Remove" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRemove) error); ok { - if v, ok := o.(vocab.ActivityStreamsRemove); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyApproval" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyApproval) error); ok { - if v, ok := o.(vocab.GoToSocialReplyApproval); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyAuthorization" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyAuthorization) error); ok { - if v, ok := o.(vocab.GoToSocialReplyAuthorization); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://gotosocial.org/ns" && o.GetTypeName() == "ReplyRequest" { - if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyRequest) error); ok { - if v, ok := o.(vocab.GoToSocialReplyRequest); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok { - if v, ok := o.(vocab.ActivityStreamsService); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeAccept" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeAccept) error); ok { - if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeReject" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeReject) error); ok { - if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok { - if v, ok := o.(vocab.ActivityStreamsTombstone); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Track" { - if fn, ok := i.(func(context.Context, vocab.FunkwhaleTrack) error); ok { - if v, ok := o.(vocab.FunkwhaleTrack); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok { - if v, ok := o.(vocab.ActivityStreamsTravel); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Undo" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUndo) error); ok { - if v, ok := o.(vocab.ActivityStreamsUndo); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Update" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUpdate) error); ok { - if v, ok := o.(vocab.ActivityStreamsUpdate); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Video" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsVideo) error); ok { - if v, ok := o.(vocab.ActivityStreamsVideo); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "View" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsView) error); ok { - if v, ok := o.(vocab.ActivityStreamsView); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else { - return ErrUnhandledType - } - } - return ErrNoCallbackMatch -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go deleted file mode 100644 index 51987e2ba..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go deleted file mode 100644 index 5e3d5a700..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go deleted file mode 100644 index dc8f617bc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_doc.go deleted file mode 100644 index 6dee21217..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go deleted file mode 100644 index 98597ca10..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyactor - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go deleted file mode 100644 index edc3e11e4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go +++ /dev/null @@ -1,7985 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyactor - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsActorPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "actor". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "actor". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "actor". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsActorProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "actor". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsActorProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "actor". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "actor". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsActorProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "actor". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsActorProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "actor". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "actor". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsActorProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "actor". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsActorProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go deleted file mode 100644 index a3238c561..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyalsoknownas contains the implementation for the alsoKnownAs -// 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 propertyalsoknownas diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go deleted file mode 100644 index 4b6b308cd..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyalsoknownas - -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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go deleted file mode 100644 index 70672357c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_property_activitystreams_alsoKnownAs.go +++ /dev/null @@ -1,509 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyalsoknownas - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// ActivityStreamsAlsoKnownAsPropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type ActivityStreamsAlsoKnownAsPropertyIterator struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string - myIdx int - parent vocab.ActivityStreamsAlsoKnownAsProperty -} - -// NewActivityStreamsAlsoKnownAsPropertyIterator creates a new -// ActivityStreamsAlsoKnownAs property. -func NewActivityStreamsAlsoKnownAsPropertyIterator() *ActivityStreamsAlsoKnownAsPropertyIterator { - return &ActivityStreamsAlsoKnownAsPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsAlsoKnownAsPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsAlsoKnownAsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAlsoKnownAsPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &ActivityStreamsAlsoKnownAsPropertyIterator{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &ActivityStreamsAlsoKnownAsPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsAlsoKnownAsPropertyIterator) 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 ActivityStreamsAlsoKnownAsPropertyIterator) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsAlsoKnownAsPropertyIterator) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsAlsoKnownAsPropertyIterator) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this ActivityStreamsAlsoKnownAsPropertyIterator) 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 ActivityStreamsAlsoKnownAsPropertyIterator) 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 ActivityStreamsAlsoKnownAsPropertyIterator) 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 ActivityStreamsAlsoKnownAsPropertyIterator) LessThan(o vocab.ActivityStreamsAlsoKnownAsPropertyIterator) 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: "ActivityStreamsAlsoKnownAs". -func (this ActivityStreamsAlsoKnownAsPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsAlsoKnownAs" - } else { - return "ActivityStreamsAlsoKnownAs" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsAlsoKnownAsPropertyIterator) Next() vocab.ActivityStreamsAlsoKnownAsPropertyIterator { - 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 ActivityStreamsAlsoKnownAsPropertyIterator) Prev() vocab.ActivityStreamsAlsoKnownAsPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *ActivityStreamsAlsoKnownAsPropertyIterator) Set(v *url.URL) { - this.clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsAlsoKnownAsPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.Set(v) -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *ActivityStreamsAlsoKnownAsPropertyIterator) clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = 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 ActivityStreamsAlsoKnownAsPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// ActivityStreamsAlsoKnownAsProperty is the non-functional property -// "alsoKnownAs". It is permitted to have one or more values, and of different -// value types. -type ActivityStreamsAlsoKnownAsProperty struct { - properties []*ActivityStreamsAlsoKnownAsPropertyIterator - alias string -} - -// DeserializeAlsoKnownAsProperty creates a "alsoKnownAs" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeAlsoKnownAsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "alsoKnownAs" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "alsoKnownAs") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsAlsoKnownAsProperty{ - alias: alias, - properties: []*ActivityStreamsAlsoKnownAsPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsAlsoKnownAsPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsAlsoKnownAsPropertyIterator(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 -} - -// NewActivityStreamsAlsoKnownAsProperty creates a new alsoKnownAs property. -func NewActivityStreamsAlsoKnownAsProperty() *ActivityStreamsAlsoKnownAsProperty { - return &ActivityStreamsAlsoKnownAsProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "alsoKnownAs" -func (this *ActivityStreamsAlsoKnownAsProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsAlsoKnownAsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the -// property "alsoKnownAs". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAlsoKnownAsProperty) AppendXMLSchemaAnyURI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsAlsoKnownAsPropertyIterator{ - 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 ActivityStreamsAlsoKnownAsProperty) At(index int) vocab.ActivityStreamsAlsoKnownAsPropertyIterator { - 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 ActivityStreamsAlsoKnownAsProperty) Begin() vocab.ActivityStreamsAlsoKnownAsPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsAlsoKnownAsProperty) 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 ActivityStreamsAlsoKnownAsProperty) End() vocab.ActivityStreamsAlsoKnownAsPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property -// "alsoKnownAs". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsAlsoKnownAsProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a -// property "alsoKnownAs". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAlsoKnownAsProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{ - 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 ActivityStreamsAlsoKnownAsProperty) 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 ActivityStreamsAlsoKnownAsProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "alsoKnownAs" property. -func (this ActivityStreamsAlsoKnownAsProperty) 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 ActivityStreamsAlsoKnownAsProperty) 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 anyuri.LessAnyURI(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 ActivityStreamsAlsoKnownAsProperty) LessThan(o vocab.ActivityStreamsAlsoKnownAsProperty) 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 ("alsoKnownAs") with any alias. -func (this ActivityStreamsAlsoKnownAsProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "alsoKnownAs" - } else { - return "alsoKnownAs" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "alsoKnownAs". -func (this *ActivityStreamsAlsoKnownAsProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsAlsoKnownAsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the -// property "alsoKnownAs". Invalidates all iterators. -func (this *ActivityStreamsAlsoKnownAsProperty) PrependXMLSchemaAnyURI(v *url.URL) { - this.properties = append([]*ActivityStreamsAlsoKnownAsPropertyIterator{{ - 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 -// "alsoKnownAs", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAlsoKnownAsProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsAlsoKnownAsPropertyIterator{} - 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 ActivityStreamsAlsoKnownAsProperty) 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 anyURI value to be at the specified index for the property -// "alsoKnownAs". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAlsoKnownAsProperty) Set(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "alsoKnownAs". Panics if the index is out of bounds. -func (this *ActivityStreamsAlsoKnownAsProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// Swap swaps the location of values at two indices for the "alsoKnownAs" property. -func (this ActivityStreamsAlsoKnownAsProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_doc.go deleted file mode 100644 index 373eab307..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go deleted file mode 100644 index 2bfcb1ceb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go deleted file mode 100644 index 1be7eaa71..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_doc.go deleted file mode 100644 index b962ff710..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go deleted file mode 100644 index 8171e9d8e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyanyof - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go deleted file mode 100644 index ddb6ece2b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go +++ /dev/null @@ -1,7985 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyanyof - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsAnyOfPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "anyOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "anyOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "anyOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "anyOf". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "anyOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "anyOf". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "anyOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "anyOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "anyOf". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "anyOf". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAnyOfProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_doc.go deleted file mode 100644 index 997e74d36..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go deleted file mode 100644 index 14e99f9c1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyattachment - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go deleted file mode 100644 index 2b1e87bd1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go +++ /dev/null @@ -1,8001 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyattachment - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsAttachmentPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "attachment". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "attachment". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "attachment". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "attachment". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "attachment". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "attachment". Invalidates all -// iterators. -func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go deleted file mode 100644 index 08c99c087..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go deleted file mode 100644 index 3e89969ea..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyattributedto - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go deleted file mode 100644 index add7ed9bf..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go +++ /dev/null @@ -1,8044 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyattributedto - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsAttributedToPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "attributedTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "attributedTo". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "attributedTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "attributedTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "attributedTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "attributedTo". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "attributedTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "attributedTo". Invalidates all -// iterators. -func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_doc.go deleted file mode 100644 index 0c4fc3e39..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go deleted file mode 100644 index 25c056579..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyaudience - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go deleted file mode 100644 index 45ecc34df..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go +++ /dev/null @@ -1,7997 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyaudience - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsAudiencePropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "audience". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "audience". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "audience". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "audience". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "audience". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAudienceProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "audience". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "audience". Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_doc.go deleted file mode 100644 index 65292aaae..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go deleted file mode 100644 index 25fb6bd36..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertybcc - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go deleted file mode 100644 index e4a37b31a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go +++ /dev/null @@ -1,7979 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertybcc - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsBccPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "bcc". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsBccProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "bcc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "bcc". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsBccProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "bcc". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "bcc". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsBccProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "bcc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_doc.go deleted file mode 100644 index d2ed4646a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go deleted file mode 100644 index 2dc3d59f4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertybto - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go deleted file mode 100644 index 531f6b32a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go +++ /dev/null @@ -1,7979 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertybto - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsBtoPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "bto". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsBtoProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "bto". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "bto". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsBtoProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "bto". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "bto". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsBtoProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "bto". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_doc.go deleted file mode 100644 index 59f1c6ce9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go deleted file mode 100644 index b0fd8c31e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycc - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go deleted file mode 100644 index b9ef61b61..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go +++ /dev/null @@ -1,7979 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycc - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsCcPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "cc". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsCcProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "cc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "cc". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsCcProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "cc". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "cc". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsCcProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "cc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_doc.go deleted file mode 100644 index b98a695ac..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go deleted file mode 100644 index 56ab1f681..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyclosed - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go deleted file mode 100644 index 6152d038f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go +++ /dev/null @@ -1,8195 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyclosed - -import ( - boolean "codeberg.org/superseriousbusiness/activity/streams/values/boolean" - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsClosedPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 7 - } - if this.IsActivityStreamsAnnounce() { - return 8 - } - if this.IsGoToSocialAnnounceApproval() { - return 9 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 10 - } - if this.IsGoToSocialAnnounceRequest() { - return 11 - } - if this.IsActivityStreamsApplication() { - return 12 - } - if this.IsActivityStreamsArrive() { - return 13 - } - if this.IsActivityStreamsArticle() { - return 14 - } - if this.IsFunkwhaleArtist() { - return 15 - } - if this.IsActivityStreamsAudio() { - return 16 - } - if this.IsActivityStreamsBlock() { - return 17 - } - if this.IsActivityStreamsCollection() { - return 18 - } - if this.IsActivityStreamsCollectionPage() { - return 19 - } - if this.IsActivityStreamsCreate() { - return 20 - } - if this.IsActivityStreamsDelete() { - return 21 - } - if this.IsActivityStreamsDislike() { - return 22 - } - if this.IsActivityStreamsDocument() { - return 23 - } - if this.IsTootEmoji() { - return 24 - } - if this.IsActivityStreamsEvent() { - return 25 - } - if this.IsActivityStreamsFlag() { - return 26 - } - if this.IsActivityStreamsFollow() { - return 27 - } - if this.IsActivityStreamsGroup() { - return 28 - } - if this.IsTootHashtag() { - return 29 - } - if this.IsTootIdentityProof() { - return 30 - } - if this.IsActivityStreamsIgnore() { - return 31 - } - if this.IsActivityStreamsImage() { - return 32 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 33 - } - if this.IsActivityStreamsInvite() { - return 34 - } - if this.IsActivityStreamsJoin() { - return 35 - } - if this.IsActivityStreamsLeave() { - return 36 - } - if this.IsFunkwhaleLibrary() { - return 37 - } - if this.IsActivityStreamsLike() { - return 38 - } - if this.IsGoToSocialLikeApproval() { - return 39 - } - if this.IsGoToSocialLikeAuthorization() { - return 40 - } - if this.IsGoToSocialLikeRequest() { - return 41 - } - if this.IsActivityStreamsListen() { - return 42 - } - if this.IsActivityStreamsMention() { - return 43 - } - if this.IsActivityStreamsMove() { - return 44 - } - if this.IsActivityStreamsNote() { - return 45 - } - if this.IsActivityStreamsOffer() { - return 46 - } - if this.IsActivityStreamsOrderedCollection() { - return 47 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 48 - } - if this.IsActivityStreamsOrganization() { - return 49 - } - if this.IsActivityStreamsPage() { - return 50 - } - if this.IsActivityStreamsPerson() { - return 51 - } - if this.IsActivityStreamsPlace() { - return 52 - } - if this.IsActivityStreamsProfile() { - return 53 - } - if this.IsSchemaPropertyValue() { - return 54 - } - if this.IsActivityStreamsQuestion() { - return 55 - } - if this.IsActivityStreamsRead() { - return 56 - } - if this.IsActivityStreamsReject() { - return 57 - } - if this.IsActivityStreamsRelationship() { - return 58 - } - if this.IsActivityStreamsRemove() { - return 59 - } - if this.IsGoToSocialReplyApproval() { - return 60 - } - if this.IsGoToSocialReplyAuthorization() { - return 61 - } - if this.IsGoToSocialReplyRequest() { - return 62 - } - if this.IsActivityStreamsService() { - return 63 - } - if this.IsActivityStreamsTentativeAccept() { - return 64 - } - if this.IsActivityStreamsTentativeReject() { - return 65 - } - if this.IsActivityStreamsTombstone() { - return 66 - } - if this.IsFunkwhaleTrack() { - return 67 - } - if this.IsActivityStreamsTravel() { - return 68 - } - if this.IsActivityStreamsUndo() { - return 69 - } - if this.IsActivityStreamsUpdate() { - return 70 - } - if this.IsActivityStreamsVideo() { - return 71 - } - if this.IsActivityStreamsView() { - return 72 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "closed". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "closed". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "closed". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsClosedProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "closed". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsClosedProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "closed". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "closed". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsClosedProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "closed". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsClosedProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "closed". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "closed". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsClosedProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "closed". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsClosedProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 71 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 72 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_doc.go deleted file mode 100644 index 722a4a72e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_pkg.go deleted file mode 100644 index 8d2ea1607..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go deleted file mode 100644 index e66435b21..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - langstring "codeberg.org/superseriousbusiness/activity/streams/values/langString" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_doc.go deleted file mode 100644 index b3d0a4934..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go deleted file mode 100644 index 7b0b18630..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycontext - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go deleted file mode 100644 index 1690c2ac2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go +++ /dev/null @@ -1,7996 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycontext - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsContextPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "context". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "context". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "context". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsContextProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "context". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "context". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsContextProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "context". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_doc.go deleted file mode 100644 index 4e598e242..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_pkg.go deleted file mode 100644 index 7a73b70a6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_pkg.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycurrent - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go deleted file mode 100644 index 73f9e6d83..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go +++ /dev/null @@ -1,404 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycurrent - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - tootHashtagMember vocab.TootHashtag - 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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsCurrentProperty{ - alias: alias, - tootHashtagMember: v, - } - 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.tootHashtagMember = 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsCurrentProperty) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsTootHashtag() || - 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsCurrentProperty) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsTootHashtag() { - return 2 - } - if this.IsActivityStreamsMention() { - return 3 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 4 - } - 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsCurrentProperty) SetTootHashtag(v vocab.TootHashtag) { - this.Clear() - this.tootHashtagMember = 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.TootHashtag); ok { - this.SetTootHashtag(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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_doc.go deleted file mode 100644 index e774a6cd5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go deleted file mode 100644 index 37abebbad..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go deleted file mode 100644 index 2a4b5067e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_doc.go deleted file mode 100644 index 5787b3500..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go deleted file mode 100644 index dc7aef898..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go +++ /dev/null @@ -1,290 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydescribes - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go deleted file mode 100644 index 37cb924c0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go +++ /dev/null @@ -1,3301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydescribes - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - funkwhaleTrackMember: v, - } - 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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - 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.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsDescribesProperty) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsDescribesProperty) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsDescribesProperty) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsDescribesProperty) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsGoToSocialAnnounceApproval() { - return 6 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 7 - } - if this.IsGoToSocialAnnounceRequest() { - return 8 - } - if this.IsActivityStreamsApplication() { - return 9 - } - if this.IsActivityStreamsArrive() { - return 10 - } - if this.IsActivityStreamsArticle() { - return 11 - } - if this.IsFunkwhaleArtist() { - return 12 - } - if this.IsActivityStreamsAudio() { - return 13 - } - if this.IsActivityStreamsBlock() { - return 14 - } - if this.IsActivityStreamsCollection() { - return 15 - } - if this.IsActivityStreamsCollectionPage() { - 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.IsFunkwhaleLibrary() { - return 33 - } - if this.IsActivityStreamsLike() { - return 34 - } - if this.IsGoToSocialLikeApproval() { - return 35 - } - if this.IsGoToSocialLikeAuthorization() { - return 36 - } - if this.IsGoToSocialLikeRequest() { - return 37 - } - if this.IsActivityStreamsListen() { - return 38 - } - if this.IsActivityStreamsMove() { - return 39 - } - if this.IsActivityStreamsNote() { - return 40 - } - if this.IsActivityStreamsOffer() { - return 41 - } - if this.IsActivityStreamsOrderedCollection() { - return 42 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 43 - } - if this.IsActivityStreamsOrganization() { - return 44 - } - if this.IsActivityStreamsPage() { - return 45 - } - if this.IsActivityStreamsPerson() { - return 46 - } - if this.IsActivityStreamsPlace() { - return 47 - } - if this.IsActivityStreamsProfile() { - return 48 - } - if this.IsSchemaPropertyValue() { - return 49 - } - if this.IsActivityStreamsQuestion() { - return 50 - } - if this.IsActivityStreamsRead() { - return 51 - } - if this.IsActivityStreamsReject() { - return 52 - } - if this.IsActivityStreamsRelationship() { - return 53 - } - if this.IsActivityStreamsRemove() { - return 54 - } - if this.IsGoToSocialReplyApproval() { - return 55 - } - if this.IsGoToSocialReplyAuthorization() { - return 56 - } - if this.IsGoToSocialReplyRequest() { - return 57 - } - if this.IsActivityStreamsService() { - return 58 - } - if this.IsActivityStreamsTentativeAccept() { - return 59 - } - if this.IsActivityStreamsTentativeReject() { - return 60 - } - if this.IsActivityStreamsTombstone() { - return 61 - } - if this.IsFunkwhaleTrack() { - return 62 - } - if this.IsActivityStreamsTravel() { - return 63 - } - if this.IsActivityStreamsUndo() { - return 64 - } - if this.IsActivityStreamsUpdate() { - return 65 - } - if this.IsActivityStreamsVideo() { - return 66 - } - if this.IsActivityStreamsView() { - return 67 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.Clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.Clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.Clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.Clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.Clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.Clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.Clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.Clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.Clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.Clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.Clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.Clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.Clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.Clear() - this.schemaPropertyValueMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_doc.go deleted file mode 100644 index 3ebc4df92..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_pkg.go deleted file mode 100644 index 3c6cd3f05..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go deleted file mode 100644 index 94674eb5f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - duration "codeberg.org/superseriousbusiness/activity/streams/values/duration" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go deleted file mode 100644 index 36d3706c8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyendpoints contains the implementation for the endpoints -// 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 propertyendpoints diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go deleted file mode 100644 index 68c30a1fa..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyendpoints - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeEndpointsActivityStreams returns the deserialization method - // for the "ActivityStreamsEndpoints" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEndpointsActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpoints, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go deleted file mode 100644 index 63dedf006..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints/gen_property_activitystreams_endpoints.go +++ /dev/null @@ -1,621 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyendpoints - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// ActivityStreamsEndpointsPropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type ActivityStreamsEndpointsPropertyIterator struct { - activitystreamsEndpointsMember vocab.ActivityStreamsEndpoints - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsEndpointsProperty -} - -// NewActivityStreamsEndpointsPropertyIterator creates a new -// ActivityStreamsEndpoints property. -func NewActivityStreamsEndpointsPropertyIterator() *ActivityStreamsEndpointsPropertyIterator { - return &ActivityStreamsEndpointsPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsEndpointsPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsEndpointsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsEndpointsPropertyIterator, 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 := &ActivityStreamsEndpointsPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeEndpointsActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsEndpointsPropertyIterator{ - activitystreamsEndpointsMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsEndpointsPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsActivityStreamsEndpoints returns -// false, Get will return any arbitrary value. -func (this ActivityStreamsEndpointsPropertyIterator) Get() vocab.ActivityStreamsEndpoints { - return this.activitystreamsEndpointsMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsEndpointsPropertyIterator) 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 ActivityStreamsEndpointsPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsEndpoints() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsEndpointsPropertyIterator) HasAny() bool { - return this.IsActivityStreamsEndpoints() || this.iri != nil -} - -// IsActivityStreamsEndpoints returns true if this property is set and not an IRI. -func (this ActivityStreamsEndpointsPropertyIterator) IsActivityStreamsEndpoints() bool { - return this.activitystreamsEndpointsMember != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsEndpointsPropertyIterator) 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 ActivityStreamsEndpointsPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsEndpoints() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsEndpointsPropertyIterator) KindIndex() int { - if this.IsActivityStreamsEndpoints() { - 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 ActivityStreamsEndpointsPropertyIterator) LessThan(o vocab.ActivityStreamsEndpointsPropertyIterator) 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.IsActivityStreamsEndpoints() && !o.IsActivityStreamsEndpoints() { - // Both are unknowns. - return false - } else if this.IsActivityStreamsEndpoints() && !o.IsActivityStreamsEndpoints() { - // Values are always greater than unknown values. - return false - } else if !this.IsActivityStreamsEndpoints() && o.IsActivityStreamsEndpoints() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "ActivityStreamsEndpoints". -func (this ActivityStreamsEndpointsPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsEndpoints" - } else { - return "ActivityStreamsEndpoints" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsEndpointsPropertyIterator) Next() vocab.ActivityStreamsEndpointsPropertyIterator { - 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 ActivityStreamsEndpointsPropertyIterator) Prev() vocab.ActivityStreamsEndpointsPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsActivityStreamsEndpoints -// afterwards will return true. -func (this *ActivityStreamsEndpointsPropertyIterator) Set(v vocab.ActivityStreamsEndpoints) { - this.clear() - this.activitystreamsEndpointsMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsEndpointsPropertyIterator) 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 *ActivityStreamsEndpointsPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsEndpoints); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsEndpoints property: %T", t) -} - -// clear ensures no value of this property is set. Calling -// IsActivityStreamsEndpoints afterwards will return false. -func (this *ActivityStreamsEndpointsPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.activitystreamsEndpointsMember = 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 ActivityStreamsEndpointsPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsEndpoints() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsEndpointsProperty is the non-functional property "endpoints". It -// is permitted to have one or more values, and of different value types. -type ActivityStreamsEndpointsProperty struct { - properties []*ActivityStreamsEndpointsPropertyIterator - alias string -} - -// DeserializeEndpointsProperty creates a "endpoints" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeEndpointsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEndpointsProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "endpoints" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "endpoints") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsEndpointsProperty{ - alias: alias, - properties: []*ActivityStreamsEndpointsPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsEndpointsPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsEndpointsPropertyIterator(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 -} - -// NewActivityStreamsEndpointsProperty creates a new endpoints property. -func NewActivityStreamsEndpointsProperty() *ActivityStreamsEndpointsProperty { - return &ActivityStreamsEndpointsProperty{alias: ""} -} - -// AppendActivityStreamsEndpoints appends a Endpoints value to the back of a list -// of the property "endpoints". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsEndpointsProperty) AppendActivityStreamsEndpoints(v vocab.ActivityStreamsEndpoints) { - this.properties = append(this.properties, &ActivityStreamsEndpointsPropertyIterator{ - activitystreamsEndpointsMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "endpoints" -func (this *ActivityStreamsEndpointsProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsEndpointsPropertyIterator{ - 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 "endpoints". 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 *ActivityStreamsEndpointsProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsEndpointsPropertyIterator{ - 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 ActivityStreamsEndpointsProperty) At(index int) vocab.ActivityStreamsEndpointsPropertyIterator { - 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 ActivityStreamsEndpointsProperty) Begin() vocab.ActivityStreamsEndpointsPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsEndpointsProperty) 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 ActivityStreamsEndpointsProperty) End() vocab.ActivityStreamsEndpointsPropertyIterator { - return nil -} - -// InsertActivityStreamsEndpoints inserts a Endpoints value at the specified index -// for a property "endpoints". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsEndpointsProperty) InsertActivityStreamsEndpoints(idx int, v vocab.ActivityStreamsEndpoints) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsEndpointsPropertyIterator{ - activitystreamsEndpointsMember: 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 "endpoints". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsEndpointsProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsEndpointsPropertyIterator{ - 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 "endpoints". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsEndpointsProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsEndpointsPropertyIterator{ - 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 ActivityStreamsEndpointsProperty) 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 ActivityStreamsEndpointsProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "endpoints" property. -func (this ActivityStreamsEndpointsProperty) 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 ActivityStreamsEndpointsProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsEndpointsProperty) LessThan(o vocab.ActivityStreamsEndpointsProperty) 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 ("endpoints") with any alias. -func (this ActivityStreamsEndpointsProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "endpoints" - } else { - return "endpoints" - } -} - -// PrependActivityStreamsEndpoints prepends a Endpoints value to the front of a -// list of the property "endpoints". Invalidates all iterators. -func (this *ActivityStreamsEndpointsProperty) PrependActivityStreamsEndpoints(v vocab.ActivityStreamsEndpoints) { - this.properties = append([]*ActivityStreamsEndpointsPropertyIterator{{ - activitystreamsEndpointsMember: 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 -// "endpoints". -func (this *ActivityStreamsEndpointsProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsEndpointsPropertyIterator{{ - 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 "endpoints". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsEndpointsProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsEndpointsPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsEndpointsPropertyIterator{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 -// "endpoints", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsEndpointsProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsEndpointsPropertyIterator{} - 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 ActivityStreamsEndpointsProperty) 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 Endpoints value to be at the specified index for the property -// "endpoints". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsEndpointsProperty) Set(idx int, v vocab.ActivityStreamsEndpoints) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsEndpointsPropertyIterator{ - activitystreamsEndpointsMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "endpoints". Panics if the index is out of bounds. -func (this *ActivityStreamsEndpointsProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsEndpointsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "endpoints". 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 *ActivityStreamsEndpointsProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsEndpointsPropertyIterator{ - 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 "endpoints" property. -func (this ActivityStreamsEndpointsProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_doc.go deleted file mode 100644 index 171486c68..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go deleted file mode 100644 index fbe2fc7a3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go deleted file mode 100644 index ea3210c02..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_doc.go deleted file mode 100644 index cde426655..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_pkg.go deleted file mode 100644 index d22ff83d4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_pkg.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfirst - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go deleted file mode 100644 index 02fbf6b43..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go +++ /dev/null @@ -1,404 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfirst - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - tootHashtagMember vocab.TootHashtag - 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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsFirstProperty{ - alias: alias, - tootHashtagMember: v, - } - 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.tootHashtagMember = 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsFirstProperty) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsTootHashtag() || - 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsFirstProperty) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsTootHashtag() { - return 2 - } - if this.IsActivityStreamsMention() { - return 3 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 4 - } - 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsFirstProperty) SetTootHashtag(v vocab.TootHashtag) { - this.Clear() - this.tootHashtagMember = 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.TootHashtag); ok { - this.SetTootHashtag(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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_doc.go deleted file mode 100644 index 72d13b9e4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_pkg.go deleted file mode 100644 index d12a5eb09..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go deleted file mode 100644 index 953f055bc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_doc.go deleted file mode 100644 index b9a9f1d29..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_pkg.go deleted file mode 100644 index 05eb97f28..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go deleted file mode 100644 index 5d26efa95..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_doc.go deleted file mode 100644 index 93b382c03..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go deleted file mode 100644 index 26de9bede..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go +++ /dev/null @@ -1,290 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyformertype - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go deleted file mode 100644 index f1b4b898d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go +++ /dev/null @@ -1,7790 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyformertype - -import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - 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.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootIdentityProof() { - return 27 - } - if this.IsActivityStreamsIgnore() { - return 28 - } - if this.IsActivityStreamsImage() { - return 29 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 30 - } - if this.IsActivityStreamsInvite() { - return 31 - } - if this.IsActivityStreamsJoin() { - return 32 - } - if this.IsActivityStreamsLeave() { - return 33 - } - if this.IsFunkwhaleLibrary() { - return 34 - } - if this.IsActivityStreamsLike() { - return 35 - } - if this.IsGoToSocialLikeApproval() { - return 36 - } - if this.IsGoToSocialLikeAuthorization() { - return 37 - } - if this.IsGoToSocialLikeRequest() { - return 38 - } - if this.IsActivityStreamsListen() { - return 39 - } - if this.IsActivityStreamsMove() { - return 40 - } - if this.IsActivityStreamsNote() { - return 41 - } - if this.IsActivityStreamsOffer() { - return 42 - } - if this.IsActivityStreamsOrderedCollection() { - return 43 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 44 - } - if this.IsActivityStreamsOrganization() { - return 45 - } - if this.IsActivityStreamsPage() { - return 46 - } - if this.IsActivityStreamsPerson() { - return 47 - } - if this.IsActivityStreamsPlace() { - return 48 - } - if this.IsActivityStreamsProfile() { - return 49 - } - if this.IsSchemaPropertyValue() { - return 50 - } - if this.IsActivityStreamsQuestion() { - return 51 - } - if this.IsActivityStreamsRead() { - return 52 - } - if this.IsActivityStreamsReject() { - return 53 - } - if this.IsActivityStreamsRelationship() { - return 54 - } - if this.IsActivityStreamsRemove() { - return 55 - } - if this.IsGoToSocialReplyApproval() { - return 56 - } - if this.IsGoToSocialReplyAuthorization() { - return 57 - } - if this.IsGoToSocialReplyRequest() { - return 58 - } - if this.IsActivityStreamsService() { - return 59 - } - if this.IsActivityStreamsTentativeAccept() { - return 60 - } - if this.IsActivityStreamsTentativeReject() { - return 61 - } - if this.IsActivityStreamsTombstone() { - return 62 - } - if this.IsFunkwhaleTrack() { - return 63 - } - if this.IsActivityStreamsTravel() { - return 64 - } - if this.IsActivityStreamsUndo() { - return 65 - } - if this.IsActivityStreamsUpdate() { - return 66 - } - if this.IsActivityStreamsVideo() { - return 67 - } - if this.IsActivityStreamsView() { - return 68 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "formerType". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "formerType". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "formerType". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "formerType". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "formerType". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "formerType". Invalidates all -// iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_doc.go deleted file mode 100644 index 4142ee42f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go deleted file mode 100644 index 765f6045b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertygenerator - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go deleted file mode 100644 index 6d40fcf90..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go +++ /dev/null @@ -1,7998 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertygenerator - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsGeneratorPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "generator". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "generator". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "generator". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "generator". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "generator". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "generator". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "generator". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "generator". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "generator". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "generator". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "generator". Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_doc.go deleted file mode 100644 index c6d74624e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_pkg.go deleted file mode 100644 index c27687c4e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go deleted file mode 100644 index f77084a68..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - nonnegativeinteger "codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_doc.go deleted file mode 100644 index d9f6aab6e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_pkg.go deleted file mode 100644 index 7b6ec2810..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go deleted file mode 100644 index 9ed6a4197..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go deleted file mode 100644 index 7c75ed765..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go deleted file mode 100644 index f6cfedd44..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go deleted file mode 100644 index 43d41bb70..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - bcp47 "codeberg.org/superseriousbusiness/activity/streams/values/bcp47" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_doc.go deleted file mode 100644 index 088b11899..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_pkg.go deleted file mode 100644 index f643f6375..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_pkg.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyicon - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go deleted file mode 100644 index cefc12899..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go +++ /dev/null @@ -1,928 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyicon - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - tootHashtagMember vocab.TootHashtag - 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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsIconPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsIconPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsTootHashtag() || - 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsIconPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsTootHashtag() { - return 2 - } - if this.IsActivityStreamsMention() { - 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 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsIconPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.TootHashtag); ok { - this.SetTootHashtag(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.tootHashtagMember = 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.IsTootHashtag() { - return this.GetTootHashtag().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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "icon". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsIconProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: v, - }) -} - -// 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsIconPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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 "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].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "icon". Invalidates all iterators. -func (this *ActivityStreamsIconProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsIconPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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 "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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsIconPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: v, - } -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_doc.go deleted file mode 100644 index 322c67066..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_pkg.go deleted file mode 100644 index c98579e4f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_pkg.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyimage - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go deleted file mode 100644 index 3d47b3aa2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go +++ /dev/null @@ -1,928 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyimage - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - tootHashtagMember vocab.TootHashtag - 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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsImagePropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsImagePropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsTootHashtag() || - 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsImagePropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsTootHashtag() { - return 2 - } - if this.IsActivityStreamsMention() { - 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 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsImagePropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.TootHashtag); ok { - this.SetTootHashtag(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.tootHashtagMember = 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.IsTootHashtag() { - return this.GetTootHashtag().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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "image". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsImageProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: v, - }) -} - -// 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsImagePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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 "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].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "image". Invalidates all iterators. -func (this *ActivityStreamsImageProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsImagePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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 "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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsImagePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: v, - } -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_doc.go deleted file mode 100644 index b3f67f050..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go deleted file mode 100644 index aa464556f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go deleted file mode 100644 index ffc020203..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go deleted file mode 100644 index b4a0ba151..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go deleted file mode 100644 index bf2249fc1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinreplyto - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go deleted file mode 100644 index dc766b5ef..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go +++ /dev/null @@ -1,7998 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinreplyto - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsInReplyToPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "inReplyTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "inReplyTo". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "inReplyTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "inReplyTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "inReplyTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "inReplyTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "inReplyTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "inReplyTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "inReplyTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "inReplyTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "inReplyTo". Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_doc.go deleted file mode 100644 index e8f2992a6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go deleted file mode 100644 index 2fe231bee..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinstrument - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go deleted file mode 100644 index 316aeaa27..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go +++ /dev/null @@ -1,8001 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinstrument - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsInstrumentPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "instrument". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "instrument". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "instrument". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "instrument". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "instrument". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "instrument". Invalidates all -// iterators. -func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_doc.go deleted file mode 100644 index 8c35ce49d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go deleted file mode 100644 index 4618c040e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyitems - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go deleted file mode 100644 index 09a73a7da..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go +++ /dev/null @@ -1,7985 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyitems - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsItemsPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "items". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "items". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "items". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsItemsProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "items". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsItemsProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "items". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "items". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsItemsProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "items". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsItemsProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "items". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "items". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsItemsProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "items". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsItemsProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_doc.go deleted file mode 100644 index 90dd7f279..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_pkg.go deleted file mode 100644 index 961251f31..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_pkg.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylast - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go deleted file mode 100644 index 75abb3171..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go +++ /dev/null @@ -1,404 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylast - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - tootHashtagMember vocab.TootHashtag - 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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsLastProperty{ - alias: alias, - tootHashtagMember: v, - } - 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.tootHashtagMember = 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsLastProperty) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsTootHashtag() || - 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsLastProperty) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsTootHashtag() { - return 2 - } - if this.IsActivityStreamsMention() { - return 3 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 4 - } - 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsLastProperty) SetTootHashtag(v vocab.TootHashtag) { - this.Clear() - this.tootHashtagMember = 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.TootHashtag); ok { - this.SetTootHashtag(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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_doc.go deleted file mode 100644 index 88315b8ad..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go deleted file mode 100644 index 116607c10..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go deleted file mode 100644 index fdc140e8f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_doc.go deleted file mode 100644 index 1164385d9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_pkg.go deleted file mode 100644 index 1aa6df052..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go deleted file mode 100644 index 8af9e0746..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_doc.go deleted file mode 100644 index 6e04f8efc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_pkg.go deleted file mode 100644 index 17a7f454c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go deleted file mode 100644 index a41122301..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_doc.go deleted file mode 100644 index cbc195292..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go deleted file mode 100644 index 500eea9a8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylocation - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go deleted file mode 100644 index fbd644756..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go +++ /dev/null @@ -1,7997 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylocation - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsLocationPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "location". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "location". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "location". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "location". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "location". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsLocationProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "location". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "location". Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_doc.go deleted file mode 100644 index 71299ec90..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go deleted file mode 100644 index 4a54b000f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go deleted file mode 100644 index 4729fdba6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go deleted file mode 100644 index 7b3064f48..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go deleted file mode 100644 index 9783436ed..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go deleted file mode 100644 index 502977773..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - boolean "codeberg.org/superseriousbusiness/activity/streams/values/boolean" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go deleted file mode 100644 index e212ac5b6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go deleted file mode 100644 index a337f7e57..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go deleted file mode 100644 index 7762ba8eb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - rfc2045 "codeberg.org/superseriousbusiness/activity/streams/values/rfc2045" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_doc.go deleted file mode 100644 index 5590bb856..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertymovedto contains the implementation for the movedTo 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 propertymovedto diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go deleted file mode 100644 index 593a3534b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertymovedto - -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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go deleted file mode 100644 index 8d01ff273..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertymovedto - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// ActivityStreamsMovedToProperty is the functional property "movedTo". It is -// permitted to be a single nilable value type. -type ActivityStreamsMovedToProperty struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string -} - -// DeserializeMovedToProperty creates a "movedTo" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeMovedToProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsMovedToProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "movedTo" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "movedTo") - } - i, ok := m[propName] - - if ok { - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &ActivityStreamsMovedToProperty{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &ActivityStreamsMovedToProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsMovedToProperty creates a new movedTo property. -func NewActivityStreamsMovedToProperty() *ActivityStreamsMovedToProperty { - return &ActivityStreamsMovedToProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *ActivityStreamsMovedToProperty) 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 ActivityStreamsMovedToProperty) 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 ActivityStreamsMovedToProperty) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsMovedToProperty) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsMovedToProperty) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this ActivityStreamsMovedToProperty) 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 ActivityStreamsMovedToProperty) 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 ActivityStreamsMovedToProperty) 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 ActivityStreamsMovedToProperty) LessThan(o vocab.ActivityStreamsMovedToProperty) 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: "movedTo". -func (this ActivityStreamsMovedToProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "movedTo" - } else { - return "movedTo" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need 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 ActivityStreamsMovedToProperty) 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 *ActivityStreamsMovedToProperty) Set(v *url.URL) { - this.Clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsMovedToProperty) SetIRI(v *url.URL) { - this.Clear() - this.Set(v) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_doc.go deleted file mode 100644 index 7082b2e8a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_pkg.go deleted file mode 100644 index cd9cb9f38..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go deleted file mode 100644 index d348af97e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - langstring "codeberg.org/superseriousbusiness/activity/streams/values/langString" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_doc.go deleted file mode 100644 index e70c87624..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_pkg.go deleted file mode 100644 index 7bd07af61..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_pkg.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertynext - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go deleted file mode 100644 index 88d8a767c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go +++ /dev/null @@ -1,404 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertynext - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - tootHashtagMember vocab.TootHashtag - 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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsNextProperty{ - alias: alias, - tootHashtagMember: v, - } - 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.tootHashtagMember = 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsNextProperty) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsTootHashtag() || - 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsNextProperty) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsTootHashtag() { - return 2 - } - if this.IsActivityStreamsMention() { - return 3 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 4 - } - 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsNextProperty) SetTootHashtag(v vocab.TootHashtag) { - this.Clear() - this.tootHashtagMember = 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.TootHashtag); ok { - this.SetTootHashtag(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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_doc.go deleted file mode 100644 index dd66c367a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go deleted file mode 100644 index c40014c69..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyobject - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go deleted file mode 100644 index b2b2d7ae5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go +++ /dev/null @@ -1,7986 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyobject - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsObjectPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "object". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "object". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "object". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsObjectProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "object". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsObjectProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "object". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "object". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsObjectProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "object". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsObjectProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "object". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "object". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsObjectProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "object". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsObjectProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_doc.go deleted file mode 100644 index 9867775b4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go deleted file mode 100644 index 5dd21535c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyoneof - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go deleted file mode 100644 index 5400d5c4b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go +++ /dev/null @@ -1,7985 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyoneof - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsOneOfPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "oneOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "oneOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "oneOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOneOfProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "oneOf". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOneOfProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "oneOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "oneOf". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOneOfProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "oneOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOneOfProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "oneOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "oneOf". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOneOfProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "oneOf". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOneOfProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go deleted file mode 100644 index 4b9d60d52..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go deleted file mode 100644 index 421d63a89..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyordereditems - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go deleted file mode 100644 index a3fa33989..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go +++ /dev/null @@ -1,8044 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyordereditems - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "orderedItems". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "orderedItems". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "orderedItems". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "orderedItems". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "orderedItems". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "orderedItems". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "orderedItems". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "orderedItems". Invalidates all -// iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_doc.go deleted file mode 100644 index 095312aab..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go deleted file mode 100644 index 545c4f429..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyorigin - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go deleted file mode 100644 index 978e86f21..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go +++ /dev/null @@ -1,7986 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyorigin - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsOriginPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "origin". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "origin". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "origin". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOriginProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "origin". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOriginProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "origin". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "origin". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOriginProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "origin". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOriginProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "origin". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "origin". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOriginProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "origin". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOriginProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_doc.go deleted file mode 100644 index 4f15afb01..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go deleted file mode 100644 index 70c130144..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go deleted file mode 100644 index 637252637..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_doc.go deleted file mode 100644 index 3de84ee32..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_pkg.go deleted file mode 100644 index 408fd8d45..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_pkg.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypartof - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go deleted file mode 100644 index 215fcd55b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go +++ /dev/null @@ -1,497 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypartof - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - tootHashtagMember vocab.TootHashtag - 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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsPartOfProperty{ - alias: alias, - tootHashtagMember: v, - } - 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.tootHashtagMember = 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsPartOfProperty) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsTootHashtag() || - 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsPartOfProperty) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsTootHashtag() { - return 3 - } - if this.IsActivityStreamsMention() { - return 4 - } - if this.IsActivityStreamsOrderedCollection() { - return 5 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 6 - } - 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsPartOfProperty) SetTootHashtag(v vocab.TootHashtag) { - this.Clear() - this.tootHashtagMember = 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.TootHashtag); ok { - this.SetTootHashtag(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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go deleted file mode 100644 index cf28cee8f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go deleted file mode 100644 index 37a4545ae..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go deleted file mode 100644 index 9eaa06ed2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - langstring "codeberg.org/superseriousbusiness/activity/streams/values/langString" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_doc.go deleted file mode 100644 index 260c6629a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_pkg.go deleted file mode 100644 index 718b12385..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_pkg.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyprev - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go deleted file mode 100644 index 035d7aaf2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go +++ /dev/null @@ -1,404 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyprev - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - tootHashtagMember vocab.TootHashtag - 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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsPrevProperty{ - alias: alias, - tootHashtagMember: v, - } - 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.tootHashtagMember = 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsPrevProperty) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsTootHashtag() || - 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsPrevProperty) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsTootHashtag() { - return 2 - } - if this.IsActivityStreamsMention() { - return 3 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 4 - } - 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsPrevProperty) SetTootHashtag(v vocab.TootHashtag) { - this.Clear() - this.tootHashtagMember = 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.TootHashtag); ok { - this.SetTootHashtag(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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_doc.go deleted file mode 100644 index 3065a56e0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go deleted file mode 100644 index a2a88880d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypreview - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go deleted file mode 100644 index baf4e5ac1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go +++ /dev/null @@ -1,7996 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypreview - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsPreviewPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "preview". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "preview". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "preview". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsPreviewProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "preview". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "preview". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsPreviewProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "preview". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_doc.go deleted file mode 100644 index 59952ab71..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_pkg.go deleted file mode 100644 index ca5c51501..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go deleted file mode 100644 index 6ab505e91..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_doc.go deleted file mode 100644 index f2fd21088..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_pkg.go deleted file mode 100644 index 582fd0054..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go deleted file mode 100644 index 6140f14c0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_doc.go deleted file mode 100644 index 2982ad469..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_pkg.go deleted file mode 100644 index 1965fcf52..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go deleted file mode 100644 index ab0a3b551..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - rfc5988 "codeberg.org/superseriousbusiness/activity/streams/values/rfc5988" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_doc.go deleted file mode 100644 index 14be103b2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go deleted file mode 100644 index 3ed75f19a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go +++ /dev/null @@ -1,290 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyrelationship - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go deleted file mode 100644 index 28511e01d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go +++ /dev/null @@ -1,7728 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyrelationship - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - 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.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsGoToSocialAnnounceApproval() { - return 6 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 7 - } - if this.IsGoToSocialAnnounceRequest() { - return 8 - } - if this.IsActivityStreamsApplication() { - return 9 - } - if this.IsActivityStreamsArrive() { - return 10 - } - if this.IsActivityStreamsArticle() { - return 11 - } - if this.IsFunkwhaleArtist() { - return 12 - } - if this.IsActivityStreamsAudio() { - return 13 - } - if this.IsActivityStreamsBlock() { - return 14 - } - if this.IsActivityStreamsCollection() { - return 15 - } - if this.IsActivityStreamsCollectionPage() { - 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.IsFunkwhaleLibrary() { - return 33 - } - if this.IsActivityStreamsLike() { - return 34 - } - if this.IsGoToSocialLikeApproval() { - return 35 - } - if this.IsGoToSocialLikeAuthorization() { - return 36 - } - if this.IsGoToSocialLikeRequest() { - return 37 - } - if this.IsActivityStreamsListen() { - return 38 - } - if this.IsActivityStreamsMove() { - return 39 - } - if this.IsActivityStreamsNote() { - return 40 - } - if this.IsActivityStreamsOffer() { - return 41 - } - if this.IsActivityStreamsOrderedCollection() { - return 42 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 43 - } - if this.IsActivityStreamsOrganization() { - return 44 - } - if this.IsActivityStreamsPage() { - return 45 - } - if this.IsActivityStreamsPerson() { - return 46 - } - if this.IsActivityStreamsPlace() { - return 47 - } - if this.IsActivityStreamsProfile() { - return 48 - } - if this.IsSchemaPropertyValue() { - return 49 - } - if this.IsActivityStreamsQuestion() { - return 50 - } - if this.IsActivityStreamsRead() { - return 51 - } - if this.IsActivityStreamsReject() { - return 52 - } - if this.IsActivityStreamsRelationship() { - return 53 - } - if this.IsActivityStreamsRemove() { - return 54 - } - if this.IsGoToSocialReplyApproval() { - return 55 - } - if this.IsGoToSocialReplyAuthorization() { - return 56 - } - if this.IsGoToSocialReplyRequest() { - return 57 - } - if this.IsActivityStreamsService() { - return 58 - } - if this.IsActivityStreamsTentativeAccept() { - return 59 - } - if this.IsActivityStreamsTentativeReject() { - return 60 - } - if this.IsActivityStreamsTombstone() { - return 61 - } - if this.IsFunkwhaleTrack() { - return 62 - } - if this.IsActivityStreamsTravel() { - return 63 - } - if this.IsActivityStreamsUndo() { - return 64 - } - if this.IsActivityStreamsUpdate() { - return 65 - } - if this.IsActivityStreamsVideo() { - return 66 - } - if this.IsActivityStreamsView() { - return 67 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "relationship". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "relationship". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "relationship". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "relationship". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "relationship". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "relationship". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - 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].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - 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].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "relationship". Invalidates all -// iterators. -func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_doc.go deleted file mode 100644 index 6a8451012..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_pkg.go deleted file mode 100644 index 88d42f643..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go deleted file mode 100644 index c177d1a70..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_doc.go deleted file mode 100644 index b40de1b42..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go deleted file mode 100644 index df6752b36..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyresult - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go deleted file mode 100644 index 2ee426a95..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go +++ /dev/null @@ -1,7986 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyresult - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsResultPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "result". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "result". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "result". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsResultProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "result". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsResultProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "result". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "result". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsResultProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "result". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsResultProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "result". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "result". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsResultProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "result". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsResultProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go deleted file mode 100644 index 869719ba0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertysensitive contains the implementation for the sensitive -// 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 propertysensitive diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go deleted file mode 100644 index 88d18245a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysensitive - -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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go deleted file mode 100644 index 7068b8751..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive/gen_property_activitystreams_sensitive.go +++ /dev/null @@ -1,531 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysensitive - -import ( - boolean "codeberg.org/superseriousbusiness/activity/streams/values/boolean" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// ActivityStreamsSensitivePropertyIterator is an iterator for a property. It is -// permitted to be a single default-valued value type. -type ActivityStreamsSensitivePropertyIterator struct { - xmlschemaBooleanMember bool - hasBooleanMember bool - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsSensitiveProperty -} - -// NewActivityStreamsSensitivePropertyIterator creates a new -// ActivityStreamsSensitive property. -func NewActivityStreamsSensitivePropertyIterator() *ActivityStreamsSensitivePropertyIterator { - return &ActivityStreamsSensitivePropertyIterator{alias: ""} -} - -// deserializeActivityStreamsSensitivePropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsSensitivePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsSensitivePropertyIterator, 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 := &ActivityStreamsSensitivePropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := boolean.DeserializeBoolean(i); err == nil { - this := &ActivityStreamsSensitivePropertyIterator{ - alias: alias, - hasBooleanMember: true, - xmlschemaBooleanMember: v, - } - return this, nil - } - this := &ActivityStreamsSensitivePropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaBoolean returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsSensitivePropertyIterator) Get() bool { - return this.xmlschemaBooleanMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsSensitivePropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsSensitivePropertyIterator) HasAny() bool { - return this.IsXMLSchemaBoolean() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsSensitivePropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaBoolean returns true if this property is set and not an IRI. -func (this ActivityStreamsSensitivePropertyIterator) 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 ActivityStreamsSensitivePropertyIterator) 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 ActivityStreamsSensitivePropertyIterator) 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 ActivityStreamsSensitivePropertyIterator) LessThan(o vocab.ActivityStreamsSensitivePropertyIterator) 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: "ActivityStreamsSensitive". -func (this ActivityStreamsSensitivePropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsSensitive" - } else { - return "ActivityStreamsSensitive" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsSensitivePropertyIterator) Next() vocab.ActivityStreamsSensitivePropertyIterator { - 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 ActivityStreamsSensitivePropertyIterator) Prev() vocab.ActivityStreamsSensitivePropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will -// return true. -func (this *ActivityStreamsSensitivePropertyIterator) 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 *ActivityStreamsSensitivePropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaBoolean -// afterwards will return false. -func (this *ActivityStreamsSensitivePropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.hasBooleanMember = 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 ActivityStreamsSensitivePropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaBoolean() { - return boolean.SerializeBoolean(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsSensitiveProperty is the non-functional property "sensitive". It -// is permitted to have one or more values, and of different value types. -type ActivityStreamsSensitiveProperty struct { - properties []*ActivityStreamsSensitivePropertyIterator - alias string -} - -// DeserializeSensitiveProperty creates a "sensitive" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeSensitiveProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "sensitive" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "sensitive") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsSensitiveProperty{ - alias: alias, - properties: []*ActivityStreamsSensitivePropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsSensitivePropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsSensitivePropertyIterator(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 -} - -// NewActivityStreamsSensitiveProperty creates a new sensitive property. -func NewActivityStreamsSensitiveProperty() *ActivityStreamsSensitiveProperty { - return &ActivityStreamsSensitiveProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property "sensitive" -func (this *ActivityStreamsSensitiveProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsSensitivePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendXMLSchemaBoolean appends a boolean value to the back of a list of the -// property "sensitive". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsSensitiveProperty) AppendXMLSchemaBoolean(v bool) { - this.properties = append(this.properties, &ActivityStreamsSensitivePropertyIterator{ - alias: this.alias, - hasBooleanMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaBooleanMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsSensitiveProperty) At(index int) vocab.ActivityStreamsSensitivePropertyIterator { - 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 ActivityStreamsSensitiveProperty) Begin() vocab.ActivityStreamsSensitivePropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsSensitiveProperty) 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 ActivityStreamsSensitiveProperty) End() vocab.ActivityStreamsSensitivePropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "sensitive". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsSensitiveProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsSensitivePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaBoolean inserts a boolean value at the specified index for a -// property "sensitive". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsSensitiveProperty) InsertXMLSchemaBoolean(idx int, v bool) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsSensitivePropertyIterator{ - alias: this.alias, - hasBooleanMember: true, - myIdx: idx, - parent: this, - xmlschemaBooleanMember: 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 ActivityStreamsSensitiveProperty) 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 ActivityStreamsSensitiveProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "sensitive" property. -func (this ActivityStreamsSensitiveProperty) 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 ActivityStreamsSensitiveProperty) 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 boolean.LessBoolean(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 ActivityStreamsSensitiveProperty) LessThan(o vocab.ActivityStreamsSensitiveProperty) 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 ("sensitive") with any alias. -func (this ActivityStreamsSensitiveProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "sensitive" - } else { - return "sensitive" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "sensitive". -func (this *ActivityStreamsSensitiveProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsSensitivePropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaBoolean prepends a boolean value to the front of a list of the -// property "sensitive". Invalidates all iterators. -func (this *ActivityStreamsSensitiveProperty) PrependXMLSchemaBoolean(v bool) { - this.properties = append([]*ActivityStreamsSensitivePropertyIterator{{ - 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 - } -} - -// Remove deletes an element at the specified index from a list of the property -// "sensitive", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsSensitiveProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsSensitivePropertyIterator{} - 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 ActivityStreamsSensitiveProperty) 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 boolean value to be at the specified index for the property -// "sensitive". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsSensitiveProperty) Set(idx int, v bool) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsSensitivePropertyIterator{ - alias: this.alias, - hasBooleanMember: true, - myIdx: idx, - parent: this, - xmlschemaBooleanMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "sensitive". Panics if the index is out of bounds. -func (this *ActivityStreamsSensitiveProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsSensitivePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// Swap swaps the location of values at two indices for the "sensitive" property. -func (this ActivityStreamsSensitiveProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go deleted file mode 100644 index a2032e3da..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertysharedinbox contains the implementation for the sharedInbox -// 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 propertysharedinbox diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go deleted file mode 100644 index 18e7b7284..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysharedinbox - -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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go deleted file mode 100644 index b0acf65c6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox/gen_property_activitystreams_sharedInbox.go +++ /dev/null @@ -1,182 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysharedinbox - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// ActivityStreamsSharedInboxProperty is the functional property "sharedInbox". It -// is permitted to be a single nilable value type. -type ActivityStreamsSharedInboxProperty struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string -} - -// DeserializeSharedInboxProperty creates a "sharedInbox" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeSharedInboxProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsSharedInboxProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "sharedInbox" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "sharedInbox") - } - i, ok := m[propName] - - if ok { - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &ActivityStreamsSharedInboxProperty{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &ActivityStreamsSharedInboxProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsSharedInboxProperty creates a new sharedInbox property. -func NewActivityStreamsSharedInboxProperty() *ActivityStreamsSharedInboxProperty { - return &ActivityStreamsSharedInboxProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *ActivityStreamsSharedInboxProperty) 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 ActivityStreamsSharedInboxProperty) 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 ActivityStreamsSharedInboxProperty) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsSharedInboxProperty) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsSharedInboxProperty) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this ActivityStreamsSharedInboxProperty) 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 ActivityStreamsSharedInboxProperty) 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 ActivityStreamsSharedInboxProperty) 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 ActivityStreamsSharedInboxProperty) LessThan(o vocab.ActivityStreamsSharedInboxProperty) 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: "sharedInbox". -func (this ActivityStreamsSharedInboxProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "sharedInbox" - } else { - return "sharedInbox" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need 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 ActivityStreamsSharedInboxProperty) 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 *ActivityStreamsSharedInboxProperty) Set(v *url.URL) { - this.Clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsSharedInboxProperty) SetIRI(v *url.URL) { - this.Clear() - this.Set(v) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_doc.go deleted file mode 100644 index 339d0b18f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_pkg.go deleted file mode 100644 index 901ed09b1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go deleted file mode 100644 index 9d73da24c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_doc.go deleted file mode 100644 index 689076beb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go deleted file mode 100644 index 72e7b08eb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysource - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go deleted file mode 100644 index fcf87a858..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go +++ /dev/null @@ -1,3438 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysource - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - funkwhaleTrackMember: v, - } - 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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsSourceProperty) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsSourceProperty) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsSourceProperty) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsSourceProperty) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsSourceProperty) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.Clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.Clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.Clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.Clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.Clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.Clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.Clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.Clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.Clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.Clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.Clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.Clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.Clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.Clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetTootHashtag(v vocab.TootHashtag) { - this.Clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_doc.go deleted file mode 100644 index def07efae..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go deleted file mode 100644 index ef561ec70..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go deleted file mode 100644 index 82488ffd9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - nonnegativeinteger "codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_doc.go deleted file mode 100644 index 7d0f612e6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go deleted file mode 100644 index 676e619df..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go deleted file mode 100644 index e04b171fb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_doc.go deleted file mode 100644 index 3c9f21e89..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_pkg.go deleted file mode 100644 index 06a31655f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go deleted file mode 100644 index e8123edfe..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_doc.go deleted file mode 100644 index 70070f9b7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go deleted file mode 100644 index 3c5ee854a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysubject - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go deleted file mode 100644 index 592b738c5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go +++ /dev/null @@ -1,3438 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysubject - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - funkwhaleTrackMember: v, - } - 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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsSubjectProperty) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsSubjectProperty) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsSubjectProperty) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsSubjectProperty) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsSubjectProperty) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.Clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.Clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.Clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.Clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.Clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.Clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.Clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.Clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.Clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.Clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.Clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.Clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.Clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.Clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetTootHashtag(v vocab.TootHashtag) { - this.Clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_doc.go deleted file mode 100644 index 4c3116554..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_pkg.go deleted file mode 100644 index a83e43a5c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go deleted file mode 100644 index 924c968ad..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - langstring "codeberg.org/superseriousbusiness/activity/streams/values/langString" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_doc.go deleted file mode 100644 index 5f71d3497..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go deleted file mode 100644 index 04b27f129..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytag - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go deleted file mode 100644 index 44066b137..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go +++ /dev/null @@ -1,7979 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytag - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsTagPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "tag". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTagProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "tag". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "tag". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTagProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "tag". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "tag". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsTagProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "tag". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_doc.go deleted file mode 100644 index 45b158ba4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go deleted file mode 100644 index 01131ce07..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytarget - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go deleted file mode 100644 index 401cf1386..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go +++ /dev/null @@ -1,7986 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytarget - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsTargetPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "target". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "target". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "target". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTargetProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "target". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsTargetProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "target". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "target". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsTargetProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "target". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTargetProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "target". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "target". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsTargetProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "target". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsTargetProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_doc.go deleted file mode 100644 index 83448156e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go deleted file mode 100644 index 481fd6476..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyto - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeAlbumFunkwhale returns the deserialization method for the - // "FunkwhaleAlbum" non-functional property in the vocabulary - // "Funkwhale" - DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, 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) - // DeserializeAnnounceApprovalGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceApproval" non-functional property - // in the vocabulary "GoToSocial" - DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) - // DeserializeAnnounceAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialAnnounceAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeAnnounceAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceAuthorization, error) - // DeserializeAnnounceRequestGoToSocial returns the deserialization method - // for the "GoToSocialAnnounceRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAnnounceRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceRequest, 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) - // DeserializeArtistFunkwhale returns the deserialization method for the - // "FunkwhaleArtist" non-functional property in the vocabulary - // "Funkwhale" - DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, 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) - // 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) - // 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) - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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) - // DeserializeLibraryFunkwhale returns the deserialization method for the - // "FunkwhaleLibrary" non-functional property in the vocabulary - // "Funkwhale" - DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, 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) - // DeserializeLikeApprovalGoToSocial returns the deserialization method - // for the "GoToSocialLikeApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) - // DeserializeLikeAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialLikeAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeLikeAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeAuthorization, error) - // DeserializeLikeRequestGoToSocial returns the deserialization method for - // the "GoToSocialLikeRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeLikeRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeRequest, 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) - // DeserializePropertyValueSchema returns the deserialization method for - // the "SchemaPropertyValue" non-functional property in the vocabulary - // "Schema" - DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, 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) - // DeserializeReplyApprovalGoToSocial returns the deserialization method - // for the "GoToSocialReplyApproval" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) - // DeserializeReplyAuthorizationGoToSocial returns the deserialization - // method for the "GoToSocialReplyAuthorization" non-functional - // property in the vocabulary "GoToSocial" - DeserializeReplyAuthorizationGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyAuthorization, error) - // DeserializeReplyRequestGoToSocial returns the deserialization method - // for the "GoToSocialReplyRequest" non-functional property in the - // vocabulary "GoToSocial" - DeserializeReplyRequestGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyRequest, 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) - // 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) - // DeserializeTrackFunkwhale returns the deserialization method for the - // "FunkwhaleTrack" non-functional property in the vocabulary - // "Funkwhale" - DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go deleted file mode 100644 index 69e1ea313..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go +++ /dev/null @@ -1,7979 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyto - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - funkwhaleAlbumMember vocab.FunkwhaleAlbum - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval - gotosocialAnnounceAuthorizationMember vocab.GoToSocialAnnounceAuthorization - gotosocialAnnounceRequestMember vocab.GoToSocialAnnounceRequest - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - funkwhaleArtistMember vocab.FunkwhaleArtist - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - 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 - tootHashtagMember vocab.TootHashtag - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - funkwhaleLibraryMember vocab.FunkwhaleLibrary - activitystreamsLikeMember vocab.ActivityStreamsLike - gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval - gotosocialLikeAuthorizationMember vocab.GoToSocialLikeAuthorization - gotosocialLikeRequestMember vocab.GoToSocialLikeRequest - 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 - schemaPropertyValueMember vocab.SchemaPropertyValue - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval - gotosocialReplyAuthorizationMember vocab.GoToSocialReplyAuthorization - gotosocialReplyRequestMember vocab.GoToSocialReplyRequest - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - funkwhaleTrackMember vocab.FunkwhaleTrack - 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.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - funkwhaleAlbumMember: v, - } - 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.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - gotosocialAnnounceApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - gotosocialAnnounceAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - gotosocialAnnounceRequestMember: v, - } - 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.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - funkwhaleArtistMember: v, - } - 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.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.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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - funkwhaleLibraryMember: v, - } - 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.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - gotosocialLikeApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - gotosocialLikeAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - gotosocialLikeRequestMember: v, - } - 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.DeserializePropertyValueSchema()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - schemaPropertyValueMember: 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.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - gotosocialReplyApprovalMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - gotosocialReplyAuthorizationMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - gotosocialReplyRequestMember: 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.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - funkwhaleTrackMember: v, - } - 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 -} - -// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum -// returns false, GetFunkwhaleAlbum will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { - return this.funkwhaleAlbumMember -} - -// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist -// returns false, GetFunkwhaleArtist will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { - return this.funkwhaleArtistMember -} - -// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary -// returns false, GetFunkwhaleLibrary will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { - return this.funkwhaleLibraryMember -} - -// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack -// returns false, GetFunkwhaleTrack will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { - return this.funkwhaleTrackMember -} - -// GetGoToSocialAnnounceApproval returns the value of this property. When -// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval -// will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { - return this.gotosocialAnnounceApprovalMember -} - -// GetGoToSocialAnnounceAuthorization returns the value of this property. When -// IsGoToSocialAnnounceAuthorization returns false, -// GetGoToSocialAnnounceAuthorization will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetGoToSocialAnnounceAuthorization() vocab.GoToSocialAnnounceAuthorization { - return this.gotosocialAnnounceAuthorizationMember -} - -// GetGoToSocialAnnounceRequest returns the value of this property. When -// IsGoToSocialAnnounceRequest returns false, GetGoToSocialAnnounceRequest -// will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetGoToSocialAnnounceRequest() vocab.GoToSocialAnnounceRequest { - return this.gotosocialAnnounceRequestMember -} - -// GetGoToSocialLikeApproval returns the value of this property. When -// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { - return this.gotosocialLikeApprovalMember -} - -// GetGoToSocialLikeAuthorization returns the value of this property. When -// IsGoToSocialLikeAuthorization returns false, GetGoToSocialLikeAuthorization -// will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetGoToSocialLikeAuthorization() vocab.GoToSocialLikeAuthorization { - return this.gotosocialLikeAuthorizationMember -} - -// GetGoToSocialLikeRequest returns the value of this property. When -// IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetGoToSocialLikeRequest() vocab.GoToSocialLikeRequest { - return this.gotosocialLikeRequestMember -} - -// GetGoToSocialReplyApproval returns the value of this property. When -// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { - return this.gotosocialReplyApprovalMember -} - -// GetGoToSocialReplyAuthorization returns the value of this property. When -// IsGoToSocialReplyAuthorization returns false, -// GetGoToSocialReplyAuthorization will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetGoToSocialReplyAuthorization() vocab.GoToSocialReplyAuthorization { - return this.gotosocialReplyAuthorizationMember -} - -// GetGoToSocialReplyRequest returns the value of this property. When -// IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetGoToSocialReplyRequest() vocab.GoToSocialReplyRequest { - return this.gotosocialReplyRequestMember -} - -// 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 -} - -// GetSchemaPropertyValue returns the value of this property. When -// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetSchemaPropertyValue() vocab.SchemaPropertyValue { - return this.schemaPropertyValueMember -} - -// 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval() - } - if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization() - } - if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval() - } - if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization() - } - if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest() - } - 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue() - } - 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval() - } - if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization() - } - if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack() - } - 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.IsFunkwhaleAlbum() || - this.IsActivityStreamsAnnounce() || - this.IsGoToSocialAnnounceApproval() || - this.IsGoToSocialAnnounceAuthorization() || - this.IsGoToSocialAnnounceRequest() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsFunkwhaleArtist() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootHashtag() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsFunkwhaleLibrary() || - this.IsActivityStreamsLike() || - this.IsGoToSocialLikeApproval() || - this.IsGoToSocialLikeAuthorization() || - this.IsGoToSocialLikeRequest() || - 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.IsSchemaPropertyValue() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsGoToSocialReplyApproval() || - this.IsGoToSocialReplyAuthorization() || - this.IsGoToSocialReplyRequest() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsActivityStreamsTombstone() || - this.IsFunkwhaleTrack() || - 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 -} - -// IsFunkwhaleAlbum returns true if this property has a type of "Album". When -// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and -// set this property. -func (this ActivityStreamsToPropertyIterator) IsFunkwhaleAlbum() bool { - return this.funkwhaleAlbumMember != nil -} - -// IsFunkwhaleArtist returns true if this property has a type of "Artist". When -// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access -// and set this property. -func (this ActivityStreamsToPropertyIterator) IsFunkwhaleArtist() bool { - return this.funkwhaleArtistMember != nil -} - -// IsFunkwhaleLibrary returns true if this property has a type of "Library". When -// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access -// and set this property. -func (this ActivityStreamsToPropertyIterator) IsFunkwhaleLibrary() bool { - return this.funkwhaleLibraryMember != nil -} - -// IsFunkwhaleTrack returns true if this property has a type of "Track". When -// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and -// set this property. -func (this ActivityStreamsToPropertyIterator) IsFunkwhaleTrack() bool { - return this.funkwhaleTrackMember != nil -} - -// IsGoToSocialAnnounceApproval returns true if this property has a type of -// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and -// SetGoToSocialAnnounceApproval methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsGoToSocialAnnounceApproval() bool { - return this.gotosocialAnnounceApprovalMember != nil -} - -// IsGoToSocialAnnounceAuthorization returns true if this property has a type of -// "AnnounceAuthorization". When true, use the -// GetGoToSocialAnnounceAuthorization and SetGoToSocialAnnounceAuthorization -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsGoToSocialAnnounceAuthorization() bool { - return this.gotosocialAnnounceAuthorizationMember != nil -} - -// IsGoToSocialAnnounceRequest returns true if this property has a type of -// "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest and -// SetGoToSocialAnnounceRequest methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsGoToSocialAnnounceRequest() bool { - return this.gotosocialAnnounceRequestMember != nil -} - -// IsGoToSocialLikeApproval returns true if this property has a type of -// "LikeApproval". When true, use the GetGoToSocialLikeApproval and -// SetGoToSocialLikeApproval methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsGoToSocialLikeApproval() bool { - return this.gotosocialLikeApprovalMember != nil -} - -// IsGoToSocialLikeAuthorization returns true if this property has a type of -// "LikeAuthorization". When true, use the GetGoToSocialLikeAuthorization and -// SetGoToSocialLikeAuthorization methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsGoToSocialLikeAuthorization() bool { - return this.gotosocialLikeAuthorizationMember != nil -} - -// IsGoToSocialLikeRequest returns true if this property has a type of -// "LikeRequest". When true, use the GetGoToSocialLikeRequest and -// SetGoToSocialLikeRequest methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsGoToSocialLikeRequest() bool { - return this.gotosocialLikeRequestMember != nil -} - -// IsGoToSocialReplyApproval returns true if this property has a type of -// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and -// SetGoToSocialReplyApproval methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsGoToSocialReplyApproval() bool { - return this.gotosocialReplyApprovalMember != nil -} - -// IsGoToSocialReplyAuthorization returns true if this property has a type of -// "ReplyAuthorization". When true, use the GetGoToSocialReplyAuthorization -// and SetGoToSocialReplyAuthorization methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsGoToSocialReplyAuthorization() bool { - return this.gotosocialReplyAuthorizationMember != nil -} - -// IsGoToSocialReplyRequest returns true if this property has a type of -// "ReplyRequest". When true, use the GetGoToSocialReplyRequest and -// SetGoToSocialReplyRequest methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsGoToSocialReplyRequest() bool { - return this.gotosocialReplyRequestMember != 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 -} - -// IsSchemaPropertyValue returns true if this property has a type of -// "PropertyValue". When true, use the GetSchemaPropertyValue and -// SetSchemaPropertyValue methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsSchemaPropertyValue() bool { - return this.schemaPropertyValueMember != 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsToPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsFunkwhaleAlbum() { - child = this.GetFunkwhaleAlbum().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsGoToSocialAnnounceApproval() { - child = this.GetGoToSocialAnnounceApproval().JSONLDContext() - } else if this.IsGoToSocialAnnounceAuthorization() { - child = this.GetGoToSocialAnnounceAuthorization().JSONLDContext() - } else if this.IsGoToSocialAnnounceRequest() { - child = this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - child = this.GetFunkwhaleArtist().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsFunkwhaleLibrary() { - child = this.GetFunkwhaleLibrary().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsGoToSocialLikeApproval() { - child = this.GetGoToSocialLikeApproval().JSONLDContext() - } else if this.IsGoToSocialLikeAuthorization() { - child = this.GetGoToSocialLikeAuthorization().JSONLDContext() - } else if this.IsGoToSocialLikeRequest() { - child = this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - child = this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - child = this.GetGoToSocialReplyApproval().JSONLDContext() - } else if this.IsGoToSocialReplyAuthorization() { - child = this.GetGoToSocialReplyAuthorization().JSONLDContext() - } else if this.IsGoToSocialReplyRequest() { - child = this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsFunkwhaleTrack() { - child = this.GetFunkwhaleTrack().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.IsFunkwhaleAlbum() { - return 5 - } - if this.IsActivityStreamsAnnounce() { - return 6 - } - if this.IsGoToSocialAnnounceApproval() { - return 7 - } - if this.IsGoToSocialAnnounceAuthorization() { - return 8 - } - if this.IsGoToSocialAnnounceRequest() { - return 9 - } - if this.IsActivityStreamsApplication() { - return 10 - } - if this.IsActivityStreamsArrive() { - return 11 - } - if this.IsActivityStreamsArticle() { - return 12 - } - if this.IsFunkwhaleArtist() { - return 13 - } - if this.IsActivityStreamsAudio() { - return 14 - } - if this.IsActivityStreamsBlock() { - return 15 - } - if this.IsActivityStreamsCollection() { - return 16 - } - if this.IsActivityStreamsCollectionPage() { - return 17 - } - if this.IsActivityStreamsCreate() { - return 18 - } - if this.IsActivityStreamsDelete() { - return 19 - } - if this.IsActivityStreamsDislike() { - return 20 - } - if this.IsActivityStreamsDocument() { - return 21 - } - if this.IsTootEmoji() { - return 22 - } - if this.IsActivityStreamsEvent() { - return 23 - } - if this.IsActivityStreamsFlag() { - return 24 - } - if this.IsActivityStreamsFollow() { - return 25 - } - if this.IsActivityStreamsGroup() { - return 26 - } - if this.IsTootHashtag() { - return 27 - } - if this.IsTootIdentityProof() { - return 28 - } - if this.IsActivityStreamsIgnore() { - return 29 - } - if this.IsActivityStreamsImage() { - return 30 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 31 - } - if this.IsActivityStreamsInvite() { - return 32 - } - if this.IsActivityStreamsJoin() { - return 33 - } - if this.IsActivityStreamsLeave() { - return 34 - } - if this.IsFunkwhaleLibrary() { - return 35 - } - if this.IsActivityStreamsLike() { - return 36 - } - if this.IsGoToSocialLikeApproval() { - return 37 - } - if this.IsGoToSocialLikeAuthorization() { - return 38 - } - if this.IsGoToSocialLikeRequest() { - return 39 - } - if this.IsActivityStreamsListen() { - return 40 - } - if this.IsActivityStreamsMention() { - return 41 - } - if this.IsActivityStreamsMove() { - return 42 - } - if this.IsActivityStreamsNote() { - return 43 - } - if this.IsActivityStreamsOffer() { - return 44 - } - if this.IsActivityStreamsOrderedCollection() { - return 45 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 46 - } - if this.IsActivityStreamsOrganization() { - return 47 - } - if this.IsActivityStreamsPage() { - return 48 - } - if this.IsActivityStreamsPerson() { - return 49 - } - if this.IsActivityStreamsPlace() { - return 50 - } - if this.IsActivityStreamsProfile() { - return 51 - } - if this.IsSchemaPropertyValue() { - return 52 - } - if this.IsActivityStreamsQuestion() { - return 53 - } - if this.IsActivityStreamsRead() { - return 54 - } - if this.IsActivityStreamsReject() { - return 55 - } - if this.IsActivityStreamsRelationship() { - return 56 - } - if this.IsActivityStreamsRemove() { - return 57 - } - if this.IsGoToSocialReplyApproval() { - return 58 - } - if this.IsGoToSocialReplyAuthorization() { - return 59 - } - if this.IsGoToSocialReplyRequest() { - return 60 - } - if this.IsActivityStreamsService() { - return 61 - } - if this.IsActivityStreamsTentativeAccept() { - return 62 - } - if this.IsActivityStreamsTentativeReject() { - return 63 - } - if this.IsActivityStreamsTombstone() { - return 64 - } - if this.IsFunkwhaleTrack() { - return 65 - } - if this.IsActivityStreamsTravel() { - return 66 - } - if this.IsActivityStreamsUndo() { - return 67 - } - if this.IsActivityStreamsUpdate() { - return 68 - } - if this.IsActivityStreamsVideo() { - return 69 - } - if this.IsActivityStreamsView() { - return 70 - } - 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().LessThan(o.GetGoToSocialAnnounceAuthorization()) - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().LessThan(o.GetGoToSocialAnnounceRequest()) - } 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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().LessThan(o.GetGoToSocialLikeAuthorization()) - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().LessThan(o.GetGoToSocialLikeRequest()) - } 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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().LessThan(o.GetSchemaPropertyValue()) - } 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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().LessThan(o.GetGoToSocialReplyAuthorization()) - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().LessThan(o.GetGoToSocialReplyRequest()) - } 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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) - } 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 -} - -// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum -// afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.clear() - this.funkwhaleAlbumMember = v -} - -// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist -// afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.clear() - this.funkwhaleArtistMember = v -} - -// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary -// afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.clear() - this.funkwhaleLibraryMember = v -} - -// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack -// afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.clear() - this.funkwhaleTrackMember = v -} - -// SetGoToSocialAnnounceApproval sets the value of this property. Calling -// IsGoToSocialAnnounceApproval afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.clear() - this.gotosocialAnnounceApprovalMember = v -} - -// SetGoToSocialAnnounceAuthorization sets the value of this property. Calling -// IsGoToSocialAnnounceAuthorization afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.clear() - this.gotosocialAnnounceAuthorizationMember = v -} - -// SetGoToSocialAnnounceRequest sets the value of this property. Calling -// IsGoToSocialAnnounceRequest afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.clear() - this.gotosocialAnnounceRequestMember = v -} - -// SetGoToSocialLikeApproval sets the value of this property. Calling -// IsGoToSocialLikeApproval afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.clear() - this.gotosocialLikeApprovalMember = v -} - -// SetGoToSocialLikeAuthorization sets the value of this property. Calling -// IsGoToSocialLikeAuthorization afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.clear() - this.gotosocialLikeAuthorizationMember = v -} - -// SetGoToSocialLikeRequest sets the value of this property. Calling -// IsGoToSocialLikeRequest afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.clear() - this.gotosocialLikeRequestMember = v -} - -// SetGoToSocialReplyApproval sets the value of this property. Calling -// IsGoToSocialReplyApproval afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.clear() - this.gotosocialReplyApprovalMember = v -} - -// SetGoToSocialReplyAuthorization sets the value of this property. Calling -// IsGoToSocialReplyAuthorization afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.clear() - this.gotosocialReplyAuthorizationMember = v -} - -// SetGoToSocialReplyRequest sets the value of this property. Calling -// IsGoToSocialReplyRequest afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.clear() - this.gotosocialReplyRequestMember = 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 -} - -// SetSchemaPropertyValue sets the value of this property. Calling -// IsSchemaPropertyValue afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.clear() - this.schemaPropertyValueMember = 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 -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.FunkwhaleAlbum); ok { - this.SetFunkwhaleAlbum(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { - this.SetGoToSocialAnnounceApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceAuthorization); ok { - this.SetGoToSocialAnnounceAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialAnnounceRequest); ok { - this.SetGoToSocialAnnounceRequest(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.FunkwhaleArtist); ok { - this.SetFunkwhaleArtist(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.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(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.TootHashtag); ok { - this.SetTootHashtag(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.FunkwhaleLibrary); ok { - this.SetFunkwhaleLibrary(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeApproval); ok { - this.SetGoToSocialLikeApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeAuthorization); ok { - this.SetGoToSocialLikeAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialLikeRequest); ok { - this.SetGoToSocialLikeRequest(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.SchemaPropertyValue); ok { - this.SetSchemaPropertyValue(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.GoToSocialReplyApproval); ok { - this.SetGoToSocialReplyApproval(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyAuthorization); ok { - this.SetGoToSocialReplyAuthorization(v) - return nil - } - if v, ok := t.(vocab.GoToSocialReplyRequest); ok { - this.SetGoToSocialReplyRequest(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.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.FunkwhaleTrack); ok { - this.SetFunkwhaleTrack(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.funkwhaleAlbumMember = nil - this.activitystreamsAnnounceMember = nil - this.gotosocialAnnounceApprovalMember = nil - this.gotosocialAnnounceAuthorizationMember = nil - this.gotosocialAnnounceRequestMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.funkwhaleArtistMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = 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.tootHashtagMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.funkwhaleLibraryMember = nil - this.activitystreamsLikeMember = nil - this.gotosocialLikeApprovalMember = nil - this.gotosocialLikeAuthorizationMember = nil - this.gotosocialLikeRequestMember = 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.schemaPropertyValueMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.gotosocialReplyApprovalMember = nil - this.gotosocialReplyAuthorizationMember = nil - this.gotosocialReplyRequestMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.activitystreamsTombstoneMember = nil - this.funkwhaleTrackMember = 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.IsFunkwhaleAlbum() { - return this.GetFunkwhaleAlbum().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsGoToSocialAnnounceApproval() { - return this.GetGoToSocialAnnounceApproval().Serialize() - } else if this.IsGoToSocialAnnounceAuthorization() { - return this.GetGoToSocialAnnounceAuthorization().Serialize() - } else if this.IsGoToSocialAnnounceRequest() { - return this.GetGoToSocialAnnounceRequest().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.IsFunkwhaleArtist() { - return this.GetFunkwhaleArtist().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().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.IsTootHashtag() { - return this.GetTootHashtag().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.IsFunkwhaleLibrary() { - return this.GetFunkwhaleLibrary().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsGoToSocialLikeApproval() { - return this.GetGoToSocialLikeApproval().Serialize() - } else if this.IsGoToSocialLikeAuthorization() { - return this.GetGoToSocialLikeAuthorization().Serialize() - } else if this.IsGoToSocialLikeRequest() { - return this.GetGoToSocialLikeRequest().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.IsSchemaPropertyValue() { - return this.GetSchemaPropertyValue().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.IsGoToSocialReplyApproval() { - return this.GetGoToSocialReplyApproval().Serialize() - } else if this.IsGoToSocialReplyAuthorization() { - return this.GetGoToSocialReplyAuthorization().Serialize() - } else if this.IsGoToSocialReplyRequest() { - return this.GetGoToSocialReplyRequest().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.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsFunkwhaleTrack() { - return this.GetFunkwhaleTrack().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, - }) -} - -// AppendFunkwhaleAlbum appends a Album value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleArtist appends a Artist value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleLibrary appends a Library value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendFunkwhaleTrack appends a Track value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back -// of a list of the property "to". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsToProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization value to -// the back of a list of the property "to". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsToProperty) AppendGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the back of -// a list of the property "to". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsToProperty) AppendGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list -// of the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to the back -// of a list of the property "to". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsToProperty) AppendGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialLikeRequest appends a LikeRequest value to the back of a list -// of the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a -// list of the property "to". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsToProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value to the -// back of a list of the property "to". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsToProperty) AppendGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendGoToSocialReplyRequest appends a ReplyRequest value to the back of a list -// of the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - }) -} - -// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list -// of the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - schemaPropertyValueMember: v, - }) -} - -// 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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertFunkwhaleAlbum inserts a Album 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) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleArtist inserts a Artist 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) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleLibrary inserts a Library 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) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertFunkwhaleTrack inserts a Track 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) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval 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) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization 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) InsertGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialAnnounceRequest inserts a AnnounceRequest 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) InsertGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeAuthorization inserts a LikeAuthorization 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) InsertGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialLikeRequest inserts a LikeRequest 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) InsertGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization 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) InsertGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertGoToSocialReplyRequest inserts a ReplyRequest 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) InsertGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// InsertSchemaPropertyValue inserts a PropertyValue 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) InsertSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - 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, - schemaPropertyValueMember: v, - } - 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetFunkwhaleAlbum() - rhs := this.properties[j].GetFunkwhaleAlbum() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetGoToSocialAnnounceApproval() - rhs := this.properties[j].GetGoToSocialAnnounceApproval() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetGoToSocialAnnounceAuthorization() - rhs := this.properties[j].GetGoToSocialAnnounceAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetGoToSocialAnnounceRequest() - rhs := this.properties[j].GetGoToSocialAnnounceRequest() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetFunkwhaleArtist() - rhs := this.properties[j].GetFunkwhaleArtist() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetFunkwhaleLibrary() - rhs := this.properties[j].GetFunkwhaleLibrary() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetGoToSocialLikeApproval() - rhs := this.properties[j].GetGoToSocialLikeApproval() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetGoToSocialLikeAuthorization() - rhs := this.properties[j].GetGoToSocialLikeAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetGoToSocialLikeRequest() - rhs := this.properties[j].GetGoToSocialLikeRequest() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetSchemaPropertyValue() - rhs := this.properties[j].GetSchemaPropertyValue() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetGoToSocialReplyApproval() - rhs := this.properties[j].GetGoToSocialReplyApproval() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetGoToSocialReplyAuthorization() - rhs := this.properties[j].GetGoToSocialReplyAuthorization() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetGoToSocialReplyRequest() - rhs := this.properties[j].GetGoToSocialReplyRequest() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 64 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 65 { - lhs := this.properties[i].GetFunkwhaleTrack() - rhs := this.properties[j].GetFunkwhaleTrack() - return lhs.LessThan(rhs) - } else if idx1 == 66 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 67 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 68 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 69 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 70 { - 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 - } -} - -// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependFunkwhaleTrack prepends a Track value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the -// front of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization value -// to the front of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceAuthorization(v vocab.GoToSocialAnnounceAuthorization) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to the front -// of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceRequest(v vocab.GoToSocialAnnounceRequest) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a -// list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value to the -// front of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependGoToSocialLikeAuthorization(v vocab.GoToSocialLikeAuthorization) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialLikeRequest prepends a LikeRequest value to the front of a -// list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependGoToSocialLikeRequest(v vocab.GoToSocialLikeRequest) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a -// list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value to the -// front of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependGoToSocialReplyAuthorization(v vocab.GoToSocialReplyAuthorization) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependGoToSocialReplyRequest prepends a ReplyRequest value to the front of a -// list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependGoToSocialReplyRequest(v vocab.GoToSocialReplyRequest) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - gotosocialReplyRequestMember: 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 - } -} - -// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a -// list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - schemaPropertyValueMember: v, - }}, 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetFunkwhaleAlbum sets a Album 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) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleAlbumMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleArtist sets a Artist 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) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleArtistMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleLibrary sets a Library 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) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleLibraryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetFunkwhaleTrack sets a Track 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) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - funkwhaleTrackMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceApproval sets a AnnounceApproval 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) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization 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) SetGoToSocialAnnounceAuthorization(idx int, v vocab.GoToSocialAnnounceAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialAnnounceRequest sets a AnnounceRequest 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) SetGoToSocialAnnounceRequest(idx int, v vocab.GoToSocialAnnounceRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialAnnounceRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialLikeApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeAuthorization sets a LikeAuthorization 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) SetGoToSocialLikeAuthorization(idx int, v vocab.GoToSocialLikeAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialLikeAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialLikeRequest sets a LikeRequest 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) SetGoToSocialLikeRequest(idx int, v vocab.GoToSocialLikeRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialLikeRequestMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialReplyApprovalMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyAuthorization sets a ReplyAuthorization 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) SetGoToSocialReplyAuthorization(idx int, v vocab.GoToSocialReplyAuthorization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialReplyAuthorizationMember: v, - myIdx: idx, - parent: this, - } -} - -// SetGoToSocialReplyRequest sets a ReplyRequest 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) SetGoToSocialReplyRequest(idx int, v vocab.GoToSocialReplyRequest) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - gotosocialReplyRequestMember: 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, - } -} - -// SetSchemaPropertyValue sets a PropertyValue 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) SetSchemaPropertyValue(idx int, v vocab.SchemaPropertyValue) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - schemaPropertyValueMember: v, - } -} - -// 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go deleted file mode 100644 index 19fbddf83..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go deleted file mode 100644 index d872e5ab5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go deleted file mode 100644 index b95a56630..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - nonnegativeinteger "codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_doc.go deleted file mode 100644 index c6c0892f0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_pkg.go deleted file mode 100644 index f59f9c692..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go deleted file mode 100644 index 1e1a7c4b1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_doc.go deleted file mode 100644 index c3a86be0a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_pkg.go deleted file mode 100644 index 2c366bab9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go deleted file mode 100644 index b5c505636..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - datetime "codeberg.org/superseriousbusiness/activity/streams/values/dateTime" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_doc.go deleted file mode 100644 index 025914280..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_pkg.go deleted file mode 100644 index 14e9bbd24..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_pkg.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyurl - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeHashtagToot returns the deserialization method for the - // "TootHashtag" non-functional property in the vocabulary "Toot" - DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go deleted file mode 100644 index 46c09b04e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go +++ /dev/null @@ -1,900 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyurl - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - tootHashtagMember vocab.TootHashtag - 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.DeserializeHashtagToot()(m, aliasMap); err == nil { - this := &ActivityStreamsUrlPropertyIterator{ - alias: alias, - tootHashtagMember: v, - } - 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 -} - -// GetTootHashtag returns the value of this property. When IsTootHashtag returns -// false, GetTootHashtag will return an arbitrary value. -func (this ActivityStreamsUrlPropertyIterator) GetTootHashtag() vocab.TootHashtag { - return this.tootHashtagMember -} - -// 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.IsTootHashtag() { - return this.GetTootHashtag() - } - 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.IsTootHashtag() || - 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 -} - -// IsTootHashtag returns true if this property has a type of "Hashtag". When true, -// use the GetTootHashtag and SetTootHashtag methods to access and set this -// property. -func (this ActivityStreamsUrlPropertyIterator) IsTootHashtag() bool { - return this.tootHashtagMember != 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.IsTootHashtag() { - child = this.GetTootHashtag().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.IsTootHashtag() { - return 2 - } - if this.IsActivityStreamsMention() { - 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 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.IsTootHashtag() { - return this.GetTootHashtag().LessThan(o.GetTootHashtag()) - } 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) -} - -// SetTootHashtag sets the value of this property. Calling IsTootHashtag -// afterwards returns true. -func (this *ActivityStreamsUrlPropertyIterator) SetTootHashtag(v vocab.TootHashtag) { - this.clear() - this.tootHashtagMember = 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.TootHashtag); ok { - this.SetTootHashtag(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.tootHashtagMember = 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.IsTootHashtag() { - return this.GetTootHashtag().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, - }) -} - -// AppendTootHashtag appends a Hashtag value to the back of a list of the property -// "url". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsUrlProperty) AppendTootHashtag(v vocab.TootHashtag) { - this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootHashtagMember: 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 - } -} - -// InsertTootHashtag inserts a Hashtag 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) InsertTootHashtag(idx int, v vocab.TootHashtag) { - 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, - tootHashtagMember: 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].GetTootHashtag() - rhs := this.properties[j].GetTootHashtag() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - 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 - } -} - -// PrependTootHashtag prepends a Hashtag value to the front of a list of the -// property "url". Invalidates all iterators. -func (this *ActivityStreamsUrlProperty) PrependTootHashtag(v vocab.TootHashtag) { - this.properties = append([]*ActivityStreamsUrlPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootHashtagMember: 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, - } -} - -// SetTootHashtag sets a Hashtag 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) SetTootHashtag(idx int, v vocab.TootHashtag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootHashtagMember: 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_doc.go deleted file mode 100644 index aca7b5c39..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_pkg.go deleted file mode 100644 index b69e4b875..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go deleted file mode 100644 index d6d4098ad..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 ( - nonnegativeinteger "codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_doc.go deleted file mode 100644 index 62869ae5e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_pkg.go deleted file mode 100644 index 07a2fdfbb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeaccept - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go deleted file mode 100644 index 64c5d89f0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go +++ /dev/null @@ -1,1895 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeaccept - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsAccept) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_doc.go deleted file mode 100644 index 5d106b490..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_pkg.go deleted file mode 100644 index 6f4418cb0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeactivity - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go deleted file mode 100644 index dd1b8e6de..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go +++ /dev/null @@ -1,1874 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeactivity - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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", "AnnounceRequest", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeRequest", "Listen", "Move", "Offer", "Question", "Read", "Reject", "Remove", "ReplyRequest", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsActivity) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_doc.go deleted file mode 100644 index 770b99c0c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_pkg.go deleted file mode 100644 index 0843b5bf3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeadd - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go deleted file mode 100644 index 7a6c462c9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go +++ /dev/null @@ -1,1892 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeadd - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsAdd) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_doc.go deleted file mode 100644 index ed357559a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_pkg.go deleted file mode 100644 index 26871dffa..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_pkg.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeannounce - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go deleted file mode 100644 index ee69d3f18..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go +++ /dev/null @@ -1,1913 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeannounce - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// 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.GoToSocialApprovedBy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsAnnounce) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_doc.go deleted file mode 100644 index 097c76de4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_pkg.go deleted file mode 100644 index 9c00e24f3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_pkg.go +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeapplication - -import vocab "codeberg.org/superseriousbusiness/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 { - // DeserializeAlsoKnownAsPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAlsoKnownAsProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, 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) - // 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) - // DeserializeEndpointsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndpointsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, 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) - // DeserializeIndexablePropertyToot returns the deserialization method for - // the "TootIndexableProperty" non-functional property in the - // vocabulary "Toot" - DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, 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) - // DeserializeMovedToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMovedToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go deleted file mode 100644 index ad21cd307..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go +++ /dev/null @@ -1,2279 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeapplication - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -// Describes a software application. -// -// Example 42 (https://www.w3.org/TR/activitystreams-vocabulary/#ex34-jsonld): -// -// { -// "name": "Exampletron 3000", -// "type": "Application" -// } -type ActivityStreamsApplication struct { - ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty - 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 - ActivityStreamsEndpoints vocab.ActivityStreamsEndpointsProperty - 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 - TootIndexable vocab.TootIndexableProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAlsoKnownAs = 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.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.DeserializeEndpointsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndpoints = 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.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootIndexable = 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.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMovedTo = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "alsoKnownAs" { - 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 == "discoverable" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "endpoints" { - 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 == "indexable" { - 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 == "movedTo" { - 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 == "sensitive" { - 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 == "to" { - 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{}), - } -} - -// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists, -// and nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty { - return this.ActivityStreamsAlsoKnownAs -} - -// 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 -} - -// GetActivityStreamsEndpoints returns the "endpoints" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty { - return this.ActivityStreamsEndpoints -} - -// 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 -} - -// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty { - return this.ActivityStreamsMovedTo -} - -// 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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 -} - -// GetTootIndexable returns the "indexable" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetTootIndexable() vocab.TootIndexableProperty { - return this.TootIndexable -} - -// 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.ActivityStreamsAlsoKnownAs, 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.TootDiscoverable, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndpoints, 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.TootIndexable, 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.ActivityStreamsMovedTo, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "alsoKnownAs" - if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "endpoints" - if lhs, rhs := this.ActivityStreamsEndpoints, o.GetActivityStreamsEndpoints(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "indexable" - if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "movedTo" - if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "alsoKnownAs" - if this.ActivityStreamsAlsoKnownAs != nil { - if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAlsoKnownAs.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 "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 "endpoints" - if this.ActivityStreamsEndpoints != nil { - if i, err := this.ActivityStreamsEndpoints.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndpoints.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 "indexable" - if this.TootIndexable != nil { - if i, err := this.TootIndexable.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootIndexable.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 "movedTo" - if this.ActivityStreamsMovedTo != nil { - if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMovedTo.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. -func (this *ActivityStreamsApplication) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) { - this.ActivityStreamsAlsoKnownAs = i -} - -// 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 -} - -// SetActivityStreamsEndpoints sets the "endpoints" property. -func (this *ActivityStreamsApplication) SetActivityStreamsEndpoints(i vocab.ActivityStreamsEndpointsProperty) { - this.ActivityStreamsEndpoints = 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 -} - -// SetActivityStreamsMovedTo sets the "movedTo" property. -func (this *ActivityStreamsApplication) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) { - this.ActivityStreamsMovedTo = 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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsApplication) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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 -} - -// SetTootIndexable sets the "indexable" property. -func (this *ActivityStreamsApplication) SetTootIndexable(i vocab.TootIndexableProperty) { - this.TootIndexable = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_doc.go deleted file mode 100644 index 2537e8b78..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go deleted file mode 100644 index 182f99120..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typearrive - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go deleted file mode 100644 index c924888e5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go +++ /dev/null @@ -1,1829 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typearrive - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsArrive) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_doc.go deleted file mode 100644 index e1d682448..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go deleted file mode 100644 index effa7ea19..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go +++ /dev/null @@ -1,188 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typearticle - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go deleted file mode 100644 index a9ba8238f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go +++ /dev/null @@ -1,1736 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typearticle - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsArticle) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsArticle) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsArticle) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsArticle) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_doc.go deleted file mode 100644 index 9f55f003a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go deleted file mode 100644 index 017cd65be..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeaudio - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeFocalPointPropertyToot returns the deserialization method - // for the "TootFocalPointProperty" non-functional property in the - // vocabulary "Toot" - DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go deleted file mode 100644 index ea8e5d61b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go +++ /dev/null @@ -1,1819 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeaudio - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - TootFocalPoint vocab.TootFocalPointProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootFocalPoint = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "focalPoint" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAudio) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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 -} - -// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetTootFocalPoint() vocab.TootFocalPointProperty { - return this.TootFocalPoint -} - -// 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.GoToSocialApprovedBy, 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.TootFocalPoint, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "focalPoint" - if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "focalPoint" - if this.TootFocalPoint != nil { - if i, err := this.TootFocalPoint.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootFocalPoint.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsAudio) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsAudio) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsAudio) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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 -} - -// SetTootFocalPoint sets the "focalPoint" property. -func (this *ActivityStreamsAudio) SetTootFocalPoint(i vocab.TootFocalPointProperty) { - this.TootFocalPoint = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_doc.go deleted file mode 100644 index fb575cffc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_pkg.go deleted file mode 100644 index 21eda333a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeblock - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go deleted file mode 100644 index c35750469..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go +++ /dev/null @@ -1,1862 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeblock - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsBlock) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_doc.go deleted file mode 100644 index d5f865c6e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_pkg.go deleted file mode 100644 index c4ecc5bb3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecollection - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go deleted file mode 100644 index 84e13245c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go +++ /dev/null @@ -1,1875 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecollection - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty - 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.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.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 == "sensitive" { - 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 == "to" { - continue - } else if k == "totalItems" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsCollection) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go deleted file mode 100644 index ea5bc596d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go deleted file mode 100644 index 0cba5775e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecollectionpage - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go deleted file mode 100644 index eb8018855..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go +++ /dev/null @@ -1,2002 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecollectionpage - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty - 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.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.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 == "sensitive" { - 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 == "to" { - continue - } else if k == "totalItems" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_doc.go deleted file mode 100644 index 98e4f5ae6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_pkg.go deleted file mode 100644 index 196ce0e12..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecreate - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go deleted file mode 100644 index 283cc2fe8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go +++ /dev/null @@ -1,1866 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecreate - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsCreate) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_doc.go deleted file mode 100644 index 52199177d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_pkg.go deleted file mode 100644 index be71a456d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedelete - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go deleted file mode 100644 index 9c598a7c1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go +++ /dev/null @@ -1,1867 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedelete - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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{"Hashtag", "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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsDelete) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_doc.go deleted file mode 100644 index 7297a1203..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go deleted file mode 100644 index 601f9c443..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedislike - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go deleted file mode 100644 index 24f378990..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go +++ /dev/null @@ -1,1859 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedislike - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsDislike) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_doc.go deleted file mode 100644 index 0c4682fd9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go deleted file mode 100644 index aafe2e5b2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedocument - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeFocalPointPropertyToot returns the deserialization method - // for the "TootFocalPointProperty" non-functional property in the - // vocabulary "Toot" - DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go deleted file mode 100644 index 5fdc732e7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go +++ /dev/null @@ -1,1820 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedocument - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - TootFocalPoint vocab.TootFocalPointProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootFocalPoint = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "focalPoint" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsDocument) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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 -} - -// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetTootFocalPoint() vocab.TootFocalPointProperty { - return this.TootFocalPoint -} - -// 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.GoToSocialApprovedBy, 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.TootFocalPoint, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "focalPoint" - if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "focalPoint" - if this.TootFocalPoint != nil { - if i, err := this.TootFocalPoint.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootFocalPoint.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsDocument) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsDocument) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsDocument) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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 -} - -// SetTootFocalPoint sets the "focalPoint" property. -func (this *ActivityStreamsDocument) SetTootFocalPoint(i vocab.TootFocalPointProperty) { - this.TootFocalPoint = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go deleted file mode 100644 index b88e108de..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeendpoints contains the implementation for the Endpoints 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 typeendpoints diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go deleted file mode 100644 index ce810c10b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_pkg.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeendpoints - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeSharedInboxPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsSharedInboxProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeSharedInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharedInboxProperty, 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go deleted file mode 100644 index 1a35bf3e9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints/gen_type_activitystreams_endpoints.go +++ /dev/null @@ -1,250 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeendpoints - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -// A json object which maps additional (typically server/domain-wide) endpoints -// which may be useful either for this actor or someone referencing this -// actor. This mapping may be nested inside the actor document as the value or -// may be a link to a JSON-LD document with these properties. -type ActivityStreamsEndpoints struct { - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsSharedInbox vocab.ActivityStreamsSharedInboxProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsEndpointsExtends returns true if the Endpoints type extends from -// the other type. -func ActivityStreamsEndpointsExtends(other vocab.Type) bool { - // Shortcut implementation: this does not extend anything. - return false -} - -// DeserializeEndpoints creates a Endpoints from a map representation that has -// been unmarshalled from a text or binary format. -func DeserializeEndpoints(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsEndpoints, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - this := &ActivityStreamsEndpoints{ - alias: alias, - unknown: make(map[string]interface{}), - } - - // Begin: Known property deserialization - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeSharedInboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSharedInbox = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "id" { - continue - } else if k == "sharedInbox" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// EndpointsIsDisjointWith returns true if the other provided type is disjoint -// with the Endpoints type. -func EndpointsIsDisjointWith(other vocab.Type) bool { - // Shortcut implementation: is not disjoint with anything. - return false -} - -// EndpointsIsExtendedBy returns true if the other provided type extends from the -// Endpoints type. Note that it returns false if the types are the same; see -// the "IsOrExtendsEndpoints" variant instead. -func EndpointsIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsEndpoints returns true if the other provided type is the Endpoints -// type or extends from the Endpoints type. -func IsOrExtendsEndpoints(other vocab.Type) bool { - if other.GetTypeName() == "Endpoints" { - return true - } - return EndpointsIsExtendedBy(other) -} - -// NewActivityStreamsEndpoints creates a new Endpoints type -func NewActivityStreamsEndpoints() *ActivityStreamsEndpoints { - return &ActivityStreamsEndpoints{ - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsSharedInbox returns the "sharedInbox" property if it exists, -// and nil otherwise. -func (this ActivityStreamsEndpoints) GetActivityStreamsSharedInbox() vocab.ActivityStreamsSharedInboxProperty { - return this.ActivityStreamsSharedInbox -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsEndpoints) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsEndpoints) GetTypeName() string { - return "Endpoints" -} - -// GetUnknownProperties returns the unknown properties for the Endpoints 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 ActivityStreamsEndpoints) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Endpoints type extends from the other type. -func (this ActivityStreamsEndpoints) IsExtending(other vocab.Type) bool { - return ActivityStreamsEndpointsExtends(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 ActivityStreamsEndpoints) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsSharedInbox, m) - - return m -} - -// LessThan computes if this Endpoints is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsEndpoints) LessThan(o vocab.ActivityStreamsEndpoints) bool { - // Begin: Compare known properties - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "sharedInbox" - if lhs, rhs := this.ActivityStreamsSharedInbox, o.GetActivityStreamsSharedInbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is 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 ActivityStreamsEndpoints) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - // Begin: Serialize known properties - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "sharedInbox" - if this.ActivityStreamsSharedInbox != nil { - if i, err := this.ActivityStreamsSharedInbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSharedInbox.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 -} - -// SetActivityStreamsSharedInbox sets the "sharedInbox" property. -func (this *ActivityStreamsEndpoints) SetActivityStreamsSharedInbox(i vocab.ActivityStreamsSharedInboxProperty) { - this.ActivityStreamsSharedInbox = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsEndpoints) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsEndpoints) 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 ActivityStreamsEndpoints) 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_doc.go deleted file mode 100644 index f451b2ae1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go deleted file mode 100644 index 72a8bac19..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go +++ /dev/null @@ -1,188 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeevent - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go deleted file mode 100644 index bc63264ff..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go +++ /dev/null @@ -1,1733 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeevent - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsEvent) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsEvent) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsEvent) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsEvent) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_doc.go deleted file mode 100644 index aef69614e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_pkg.go deleted file mode 100644 index 7f02ce250..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeflag - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go deleted file mode 100644 index 48401463d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go +++ /dev/null @@ -1,1864 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeflag - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsFlag) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_doc.go deleted file mode 100644 index 4c8450ab7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_pkg.go deleted file mode 100644 index 375680188..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typefollow - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go deleted file mode 100644 index 830930ce3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go +++ /dev/null @@ -1,1868 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typefollow - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsFollow) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_doc.go deleted file mode 100644 index 7bc7bede6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_pkg.go deleted file mode 100644 index 1b80a5f34..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_pkg.go +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typegroup - -import vocab "codeberg.org/superseriousbusiness/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 { - // DeserializeAlsoKnownAsPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAlsoKnownAsProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, 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) - // 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) - // DeserializeEndpointsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndpointsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, 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) - // DeserializeIndexablePropertyToot returns the deserialization method for - // the "TootIndexableProperty" non-functional property in the - // vocabulary "Toot" - DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, 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) - // DeserializeMovedToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMovedToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go deleted file mode 100644 index 8e7e9d883..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go +++ /dev/null @@ -1,2279 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typegroup - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 { - ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty - 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 - ActivityStreamsEndpoints vocab.ActivityStreamsEndpointsProperty - 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 - TootIndexable vocab.TootIndexableProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAlsoKnownAs = 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.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.DeserializeEndpointsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndpoints = 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.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootIndexable = 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.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMovedTo = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "alsoKnownAs" { - 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 == "discoverable" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "endpoints" { - 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 == "indexable" { - 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 == "movedTo" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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{}), - } -} - -// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists, -// and nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty { - return this.ActivityStreamsAlsoKnownAs -} - -// 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 -} - -// GetActivityStreamsEndpoints returns the "endpoints" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty { - return this.ActivityStreamsEndpoints -} - -// 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 -} - -// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty { - return this.ActivityStreamsMovedTo -} - -// 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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 -} - -// GetTootIndexable returns the "indexable" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetTootIndexable() vocab.TootIndexableProperty { - return this.TootIndexable -} - -// 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.ActivityStreamsAlsoKnownAs, 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.TootDiscoverable, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndpoints, 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.TootIndexable, 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.ActivityStreamsMovedTo, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "alsoKnownAs" - if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "endpoints" - if lhs, rhs := this.ActivityStreamsEndpoints, o.GetActivityStreamsEndpoints(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "indexable" - if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "movedTo" - if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "alsoKnownAs" - if this.ActivityStreamsAlsoKnownAs != nil { - if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAlsoKnownAs.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 "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 "endpoints" - if this.ActivityStreamsEndpoints != nil { - if i, err := this.ActivityStreamsEndpoints.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndpoints.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 "indexable" - if this.TootIndexable != nil { - if i, err := this.TootIndexable.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootIndexable.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 "movedTo" - if this.ActivityStreamsMovedTo != nil { - if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMovedTo.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. -func (this *ActivityStreamsGroup) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) { - this.ActivityStreamsAlsoKnownAs = i -} - -// 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 -} - -// SetActivityStreamsEndpoints sets the "endpoints" property. -func (this *ActivityStreamsGroup) SetActivityStreamsEndpoints(i vocab.ActivityStreamsEndpointsProperty) { - this.ActivityStreamsEndpoints = 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 -} - -// SetActivityStreamsMovedTo sets the "movedTo" property. -func (this *ActivityStreamsGroup) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) { - this.ActivityStreamsMovedTo = 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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsGroup) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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 -} - -// SetTootIndexable sets the "indexable" property. -func (this *ActivityStreamsGroup) SetTootIndexable(i vocab.TootIndexableProperty) { - this.TootIndexable = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_doc.go deleted file mode 100644 index 0c21393cc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go deleted file mode 100644 index 8983eac25..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeignore - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go deleted file mode 100644 index d07892a47..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go +++ /dev/null @@ -1,1868 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeignore - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_doc.go deleted file mode 100644 index 7225f297b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go deleted file mode 100644 index f10004083..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeimage - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeFocalPointPropertyToot returns the deserialization method - // for the "TootFocalPointProperty" non-functional property in the - // vocabulary "Toot" - DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go deleted file mode 100644 index af9bd1833..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go +++ /dev/null @@ -1,1910 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeimage - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - TootFocalPoint vocab.TootFocalPointProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsHeight vocab.ActivityStreamsHeightProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootFocalPoint = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "focalPoint" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsImage) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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 -} - -// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetTootFocalPoint() vocab.TootFocalPointProperty { - return this.TootFocalPoint -} - -// 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.GoToSocialApprovedBy, 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.TootFocalPoint, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "focalPoint" - if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "focalPoint" - if this.TootFocalPoint != nil { - if i, err := this.TootFocalPoint.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootFocalPoint.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsImage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsImage) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsImage) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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 -} - -// SetTootFocalPoint sets the "focalPoint" property. -func (this *ActivityStreamsImage) SetTootFocalPoint(i vocab.TootFocalPointProperty) { - this.TootFocalPoint = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go deleted file mode 100644 index d38017ec2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go deleted file mode 100644 index 121ec9027..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeintransitiveactivity - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go deleted file mode 100644 index 13c5df20c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go +++ /dev/null @@ -1,1833 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeintransitiveactivity - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_doc.go deleted file mode 100644 index 2bc79acc6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_pkg.go deleted file mode 100644 index df713a4ca..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeinvite - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go deleted file mode 100644 index 35c9ccc87..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go +++ /dev/null @@ -1,1876 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeinvite - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsInvite) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_doc.go deleted file mode 100644 index fce28e4c3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_pkg.go deleted file mode 100644 index 145bc89a3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typejoin - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go deleted file mode 100644 index 24fe34adf..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go +++ /dev/null @@ -1,1866 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typejoin - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsJoin) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_doc.go deleted file mode 100644 index 9d5633e39..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_pkg.go deleted file mode 100644 index 3a85897f4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeleave - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go deleted file mode 100644 index c27ac821e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go +++ /dev/null @@ -1,1881 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeleave - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsLeave) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_doc.go deleted file mode 100644 index 6e51d66d8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go deleted file mode 100644 index 13442101c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelike - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go deleted file mode 100644 index 11875c88b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go +++ /dev/null @@ -1,1905 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelike - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// 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.GoToSocialApprovedBy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsLike) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsLike) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_doc.go deleted file mode 100644 index 23bb10622..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_pkg.go deleted file mode 100644 index 258906124..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go deleted file mode 100644 index 0b59890f4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go +++ /dev/null @@ -1,732 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelink - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "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{"Hashtag", "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_doc.go deleted file mode 100644 index 480e1e384..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_pkg.go deleted file mode 100644 index ad73c521e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelisten - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go deleted file mode 100644 index e4ea6cd51..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go +++ /dev/null @@ -1,1862 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelisten - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsListen) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_doc.go deleted file mode 100644 index 6e0f5fa5b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_pkg.go deleted file mode 100644 index 0106d11cd..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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 "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go deleted file mode 100644 index 97f390605..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go +++ /dev/null @@ -1,725 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typemention - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_doc.go deleted file mode 100644 index f5409ea00..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_pkg.go deleted file mode 100644 index 2d16a6b05..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typemove - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go deleted file mode 100644 index 73431ddbd..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go +++ /dev/null @@ -1,1871 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typemove - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsMove) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_doc.go deleted file mode 100644 index 70354bba8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go deleted file mode 100644 index 9a01cb4c5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go +++ /dev/null @@ -1,188 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typenote - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go deleted file mode 100644 index cba8256ac..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go +++ /dev/null @@ -1,1733 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typenote - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsNote) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsNote) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsNote) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsNote) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_doc.go deleted file mode 100644 index e49c55cd0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_pkg.go deleted file mode 100644 index b0924dbab..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_pkg.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeobject - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go deleted file mode 100644 index 6c278e0fa..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go +++ /dev/null @@ -1,1651 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeobject - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsObject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_doc.go deleted file mode 100644 index 8bb80b809..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_pkg.go deleted file mode 100644 index afbb73c7a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeoffer - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go deleted file mode 100644 index 52f52ae2a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go +++ /dev/null @@ -1,1875 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeoffer - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsOffer) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go deleted file mode 100644 index 332ac2c2c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go deleted file mode 100644 index 4d46965e0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go +++ /dev/null @@ -1,200 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorderedcollection - -import vocab "codeberg.org/superseriousbusiness/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) - // 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go deleted file mode 100644 index f4c9e90b5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go +++ /dev/null @@ -1,1875 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorderedcollection - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty - 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.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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.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.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 == "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 == "sensitive" { - 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 == "to" { - continue - } else if k == "totalItems" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.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.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, 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 "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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go deleted file mode 100644 index a81a66313..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go deleted file mode 100644 index 73e5b152d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorderedcollectionpage - -import vocab "codeberg.org/superseriousbusiness/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) - // 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go deleted file mode 100644 index 0ad858691..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go +++ /dev/null @@ -1,2042 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorderedcollectionpage - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartIndex vocab.ActivityStreamsStartIndexProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty - 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.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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.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.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 == "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 == "sensitive" { - 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 == "to" { - continue - } else if k == "totalItems" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.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.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, 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 "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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_doc.go deleted file mode 100644 index 5e9e4630e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_pkg.go deleted file mode 100644 index d1cca4d19..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_pkg.go +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorganization - -import vocab "codeberg.org/superseriousbusiness/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 { - // DeserializeAlsoKnownAsPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAlsoKnownAsProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, 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) - // 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) - // DeserializeEndpointsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndpointsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, 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) - // DeserializeIndexablePropertyToot returns the deserialization method for - // the "TootIndexableProperty" non-functional property in the - // vocabulary "Toot" - DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, 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) - // DeserializeMovedToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMovedToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go deleted file mode 100644 index 35257782c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go +++ /dev/null @@ -1,2279 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorganization - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -// Represents an organization. -// -// Example 44 (https://www.w3.org/TR/activitystreams-vocabulary/#ex186-jsonld): -// -// { -// "name": "Example Co.", -// "type": "Organization" -// } -type ActivityStreamsOrganization struct { - ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty - 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 - ActivityStreamsEndpoints vocab.ActivityStreamsEndpointsProperty - 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 - TootIndexable vocab.TootIndexableProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAlsoKnownAs = 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.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.DeserializeEndpointsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndpoints = 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.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootIndexable = 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.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMovedTo = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "alsoKnownAs" { - 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 == "discoverable" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "endpoints" { - 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 == "indexable" { - 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 == "movedTo" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists, -// and nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty { - return this.ActivityStreamsAlsoKnownAs -} - -// 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 -} - -// GetActivityStreamsEndpoints returns the "endpoints" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty { - return this.ActivityStreamsEndpoints -} - -// 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 -} - -// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty { - return this.ActivityStreamsMovedTo -} - -// 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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 -} - -// GetTootIndexable returns the "indexable" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetTootIndexable() vocab.TootIndexableProperty { - return this.TootIndexable -} - -// 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.ActivityStreamsAlsoKnownAs, 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.TootDiscoverable, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndpoints, 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.TootIndexable, 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.ActivityStreamsMovedTo, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "alsoKnownAs" - if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "endpoints" - if lhs, rhs := this.ActivityStreamsEndpoints, o.GetActivityStreamsEndpoints(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "indexable" - if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "movedTo" - if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "alsoKnownAs" - if this.ActivityStreamsAlsoKnownAs != nil { - if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAlsoKnownAs.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 "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 "endpoints" - if this.ActivityStreamsEndpoints != nil { - if i, err := this.ActivityStreamsEndpoints.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndpoints.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 "indexable" - if this.TootIndexable != nil { - if i, err := this.TootIndexable.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootIndexable.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 "movedTo" - if this.ActivityStreamsMovedTo != nil { - if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMovedTo.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) { - this.ActivityStreamsAlsoKnownAs = i -} - -// 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 -} - -// SetActivityStreamsEndpoints sets the "endpoints" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsEndpoints(i vocab.ActivityStreamsEndpointsProperty) { - this.ActivityStreamsEndpoints = 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 -} - -// SetActivityStreamsMovedTo sets the "movedTo" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) { - this.ActivityStreamsMovedTo = 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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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 -} - -// SetTootIndexable sets the "indexable" property. -func (this *ActivityStreamsOrganization) SetTootIndexable(i vocab.TootIndexableProperty) { - this.TootIndexable = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_doc.go deleted file mode 100644 index ee281c63b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go deleted file mode 100644 index aa3bc61a3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepage - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeFocalPointPropertyToot returns the deserialization method - // for the "TootFocalPointProperty" non-functional property in the - // vocabulary "Toot" - DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go deleted file mode 100644 index 51b5f9ee0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go +++ /dev/null @@ -1,1815 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepage - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - TootFocalPoint vocab.TootFocalPointProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootFocalPoint = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "focalPoint" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPage) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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 -} - -// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetTootFocalPoint() vocab.TootFocalPointProperty { - return this.TootFocalPoint -} - -// 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.GoToSocialApprovedBy, 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.TootFocalPoint, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "focalPoint" - if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "focalPoint" - if this.TootFocalPoint != nil { - if i, err := this.TootFocalPoint.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootFocalPoint.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsPage) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsPage) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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 -} - -// SetTootFocalPoint sets the "focalPoint" property. -func (this *ActivityStreamsPage) SetTootFocalPoint(i vocab.TootFocalPointProperty) { - this.TootFocalPoint = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_doc.go deleted file mode 100644 index 3c86a2caa..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_pkg.go deleted file mode 100644 index ed6162ae5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_pkg.go +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeperson - -import vocab "codeberg.org/superseriousbusiness/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 { - // DeserializeAlsoKnownAsPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAlsoKnownAsProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, 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) - // 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) - // DeserializeEndpointsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndpointsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, 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) - // DeserializeIndexablePropertyToot returns the deserialization method for - // the "TootIndexableProperty" non-functional property in the - // vocabulary "Toot" - DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, 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) - // DeserializeMovedToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMovedToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go deleted file mode 100644 index 4fe3ff3d7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go +++ /dev/null @@ -1,2279 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeperson - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -// Represents an individual person. -// -// Example 45 (https://www.w3.org/TR/activitystreams-vocabulary/#ex39-jsonld): -// -// { -// "name": "Sally Smith", -// "type": "Person" -// } -type ActivityStreamsPerson struct { - ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty - 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 - ActivityStreamsEndpoints vocab.ActivityStreamsEndpointsProperty - 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 - TootIndexable vocab.TootIndexableProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAlsoKnownAs = 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.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.DeserializeEndpointsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndpoints = 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.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootIndexable = 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.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMovedTo = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "alsoKnownAs" { - 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 == "discoverable" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "endpoints" { - 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 == "indexable" { - 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 == "movedTo" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists, -// and nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty { - return this.ActivityStreamsAlsoKnownAs -} - -// 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 -} - -// GetActivityStreamsEndpoints returns the "endpoints" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty { - return this.ActivityStreamsEndpoints -} - -// 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 -} - -// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty { - return this.ActivityStreamsMovedTo -} - -// 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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 -} - -// GetTootIndexable returns the "indexable" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetTootIndexable() vocab.TootIndexableProperty { - return this.TootIndexable -} - -// 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.ActivityStreamsAlsoKnownAs, 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.TootDiscoverable, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndpoints, 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.TootIndexable, 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.ActivityStreamsMovedTo, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "alsoKnownAs" - if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "endpoints" - if lhs, rhs := this.ActivityStreamsEndpoints, o.GetActivityStreamsEndpoints(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "indexable" - if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "movedTo" - if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "alsoKnownAs" - if this.ActivityStreamsAlsoKnownAs != nil { - if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAlsoKnownAs.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 "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 "endpoints" - if this.ActivityStreamsEndpoints != nil { - if i, err := this.ActivityStreamsEndpoints.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndpoints.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 "indexable" - if this.TootIndexable != nil { - if i, err := this.TootIndexable.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootIndexable.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 "movedTo" - if this.ActivityStreamsMovedTo != nil { - if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMovedTo.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. -func (this *ActivityStreamsPerson) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) { - this.ActivityStreamsAlsoKnownAs = i -} - -// 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 -} - -// SetActivityStreamsEndpoints sets the "endpoints" property. -func (this *ActivityStreamsPerson) SetActivityStreamsEndpoints(i vocab.ActivityStreamsEndpointsProperty) { - this.ActivityStreamsEndpoints = 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 -} - -// SetActivityStreamsMovedTo sets the "movedTo" property. -func (this *ActivityStreamsPerson) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) { - this.ActivityStreamsMovedTo = 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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsPerson) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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 -} - -// SetTootIndexable sets the "indexable" property. -func (this *ActivityStreamsPerson) SetTootIndexable(i vocab.TootIndexableProperty) { - this.TootIndexable = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_doc.go deleted file mode 100644 index 5eaff6eca..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go deleted file mode 100644 index 4d532745c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go +++ /dev/null @@ -1,208 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeplace - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go deleted file mode 100644 index 8e311fc6c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go +++ /dev/null @@ -1,1953 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeplace - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPlace) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsPlace) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsPlace) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsPlace) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_doc.go deleted file mode 100644 index 7193cc46a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go deleted file mode 100644 index a265e2dfc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go +++ /dev/null @@ -1,192 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeprofile - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go deleted file mode 100644 index c16d1bb12..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go +++ /dev/null @@ -1,1779 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeprofile - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsProfile) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsProfile) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsProfile) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsProfile) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_doc.go deleted file mode 100644 index 14eb8a236..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go deleted file mode 100644 index b421c378e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go +++ /dev/null @@ -1,220 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typequestion - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go deleted file mode 100644 index f3e191663..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go +++ /dev/null @@ -1,2090 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typequestion - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsQuestion) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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.GoToSocialApprovedBy, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsQuestion) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsQuestion) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_doc.go deleted file mode 100644 index cb52b3047..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_pkg.go deleted file mode 100644 index 7a704e215..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeread - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go deleted file mode 100644 index 7fdb8ca48..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go +++ /dev/null @@ -1,1862 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeread - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsRead) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_doc.go deleted file mode 100644 index 4abce491a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_pkg.go deleted file mode 100644 index 63779881b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typereject - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go deleted file mode 100644 index bc21d6da9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go +++ /dev/null @@ -1,1875 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typereject - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsReject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_doc.go deleted file mode 100644 index 0f685e305..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go deleted file mode 100644 index d70f29598..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go +++ /dev/null @@ -1,188 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typerelationship - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go deleted file mode 100644 index afc54e75d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go +++ /dev/null @@ -1,1742 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typerelationship - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSubject vocab.ActivityStreamsSubjectProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 { - // Shortcut implementation: is not extended by anything. - 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_doc.go deleted file mode 100644 index d409311f3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_pkg.go deleted file mode 100644 index 711563e2c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeremove - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go deleted file mode 100644 index 10e1dbac0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go +++ /dev/null @@ -1,1886 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeremove - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsRemove) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_doc.go deleted file mode 100644 index 6934f11e8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_pkg.go deleted file mode 100644 index ee042723a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_pkg.go +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeservice - -import vocab "codeberg.org/superseriousbusiness/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 { - // DeserializeAlsoKnownAsPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAlsoKnownAsProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, 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) - // 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) - // DeserializeEndpointsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndpointsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndpointsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndpointsProperty, 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) - // DeserializeIndexablePropertyToot returns the deserialization method for - // the "TootIndexableProperty" non-functional property in the - // vocabulary "Toot" - DeserializeIndexablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootIndexableProperty, 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) - // DeserializeMovedToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMovedToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go deleted file mode 100644 index 98823e5b1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go +++ /dev/null @@ -1,2279 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeservice - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 { - ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty - 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 - ActivityStreamsEndpoints vocab.ActivityStreamsEndpointsProperty - 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 - TootIndexable vocab.TootIndexableProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAlsoKnownAs = 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.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.DeserializeEndpointsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndpoints = 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.DeserializeIndexablePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootIndexable = 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.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMovedTo = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "alsoKnownAs" { - 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 == "discoverable" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "endpoints" { - 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 == "indexable" { - 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 == "movedTo" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists, -// and nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty { - return this.ActivityStreamsAlsoKnownAs -} - -// 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 -} - -// GetActivityStreamsEndpoints returns the "endpoints" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty { - return this.ActivityStreamsEndpoints -} - -// 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 -} - -// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty { - return this.ActivityStreamsMovedTo -} - -// 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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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 -} - -// GetTootIndexable returns the "indexable" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetTootIndexable() vocab.TootIndexableProperty { - return this.TootIndexable -} - -// 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.ActivityStreamsAlsoKnownAs, 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.TootDiscoverable, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndpoints, 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.TootIndexable, 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.ActivityStreamsMovedTo, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "alsoKnownAs" - if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "endpoints" - if lhs, rhs := this.ActivityStreamsEndpoints, o.GetActivityStreamsEndpoints(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "indexable" - if lhs, rhs := this.TootIndexable, o.GetTootIndexable(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "movedTo" - if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "alsoKnownAs" - if this.ActivityStreamsAlsoKnownAs != nil { - if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAlsoKnownAs.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 "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 "endpoints" - if this.ActivityStreamsEndpoints != nil { - if i, err := this.ActivityStreamsEndpoints.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndpoints.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 "indexable" - if this.TootIndexable != nil { - if i, err := this.TootIndexable.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootIndexable.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 "movedTo" - if this.ActivityStreamsMovedTo != nil { - if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMovedTo.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. -func (this *ActivityStreamsService) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) { - this.ActivityStreamsAlsoKnownAs = i -} - -// 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 -} - -// SetActivityStreamsEndpoints sets the "endpoints" property. -func (this *ActivityStreamsService) SetActivityStreamsEndpoints(i vocab.ActivityStreamsEndpointsProperty) { - this.ActivityStreamsEndpoints = 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 -} - -// SetActivityStreamsMovedTo sets the "movedTo" property. -func (this *ActivityStreamsService) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) { - this.ActivityStreamsMovedTo = 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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsService) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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 -} - -// SetTootIndexable sets the "indexable" property. -func (this *ActivityStreamsService) SetTootIndexable(i vocab.TootIndexableProperty) { - this.TootIndexable = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go deleted file mode 100644 index 117206aec..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go deleted file mode 100644 index 9cc8d343b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetentativeaccept - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go deleted file mode 100644 index c76c66d85..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go +++ /dev/null @@ -1,1870 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetentativeaccept - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go deleted file mode 100644 index 110d80a32..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go deleted file mode 100644 index bff37cd93..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetentativereject - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go deleted file mode 100644 index a7804f3b9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go +++ /dev/null @@ -1,1870 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetentativereject - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go deleted file mode 100644 index 096ae5fa9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go deleted file mode 100644 index d8442e5ad..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetombstone - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go deleted file mode 100644 index 57c18b5db..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go +++ /dev/null @@ -1,1750 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetombstone - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_doc.go deleted file mode 100644 index 40726b064..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_pkg.go deleted file mode 100644 index f64de152d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_pkg.go +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetravel - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go deleted file mode 100644 index c4c18eaf0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go +++ /dev/null @@ -1,1829 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetravel - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsTravel) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_doc.go deleted file mode 100644 index 9c9e327c1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_pkg.go deleted file mode 100644 index 0a99064a2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeundo - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go deleted file mode 100644 index 8501a17d7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go +++ /dev/null @@ -1,1868 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeundo - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsUndo) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_doc.go deleted file mode 100644 index e2a36cca5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_pkg.go deleted file mode 100644 index 7c13f1f04..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeupdate - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go deleted file mode 100644 index 6cf462b8e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go +++ /dev/null @@ -1,1865 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeupdate - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_doc.go deleted file mode 100644 index 7ce17aed1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go deleted file mode 100644 index 3eb42b64c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typevideo - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeApprovedByPropertyGoToSocial returns the deserialization - // method for the "GoToSocialApprovedByProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, 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) - // DeserializeFocalPointPropertyToot returns the deserialization method - // for the "TootFocalPointProperty" non-functional property in the - // vocabulary "Toot" - DeserializeFocalPointPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFocalPointProperty, 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) - // DeserializeInteractionPolicyPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionPolicyProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go deleted file mode 100644 index 2618cf011..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go +++ /dev/null @@ -1,1816 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typevideo - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty - 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 - TootFocalPoint vocab.TootFocalPointProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovedBy = 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.DeserializeFocalPointPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootFocalPoint = 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.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionPolicy = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "approvedBy" { - 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 == "focalPoint" { - 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 == "interactionPolicy" { - 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty { - return this.GoToSocialApprovedBy -} - -// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsVideo) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty { - return this.GoToSocialInteractionPolicy -} - -// 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 -} - -// GetTootFocalPoint returns the "focalPoint" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetTootFocalPoint() vocab.TootFocalPointProperty { - return this.TootFocalPoint -} - -// 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.GoToSocialApprovedBy, 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.TootFocalPoint, 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.GoToSocialInteractionPolicy, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "approvedBy" - if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "focalPoint" - if lhs, rhs := this.TootFocalPoint, o.GetTootFocalPoint(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "interactionPolicy" - if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "approvedBy" - if this.GoToSocialApprovedBy != nil { - if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovedBy.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 "focalPoint" - if this.TootFocalPoint != nil { - if i, err := this.TootFocalPoint.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootFocalPoint.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 "interactionPolicy" - if this.GoToSocialInteractionPolicy != nil { - if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionPolicy.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsVideo) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetGoToSocialApprovedBy sets the "approvedBy" property. -func (this *ActivityStreamsVideo) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) { - this.GoToSocialApprovedBy = i -} - -// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. -func (this *ActivityStreamsVideo) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) { - this.GoToSocialInteractionPolicy = 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 -} - -// SetTootFocalPoint sets the "focalPoint" property. -func (this *ActivityStreamsVideo) SetTootFocalPoint(i vocab.TootFocalPointProperty) { - this.TootFocalPoint = 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_doc.go deleted file mode 100644 index ce489bbe9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_pkg.go deleted file mode 100644 index dac5e3241..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeview - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go deleted file mode 100644 index a986885bd..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go +++ /dev/null @@ -1,1865 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeview - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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{"Hashtag", "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 -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// 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 -} - -// 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *ActivityStreamsView) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = 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 -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsView) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsView) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsView) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsView) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_doc.go deleted file mode 100644 index 33c2d4a66..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typealbum contains the implementation for the Album 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 typealbum diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_pkg.go deleted file mode 100644 index 9e64bce65..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_pkg.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typealbum - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go deleted file mode 100644 index 6cfdc3978..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go +++ /dev/null @@ -1,1639 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typealbum - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -type FunkwhaleAlbum 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// AlbumIsDisjointWith returns true if the other provided type is disjoint with -// the Album type. -func AlbumIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// AlbumIsExtendedBy returns true if the other provided type extends from the -// Album type. Note that it returns false if the types are the same; see the -// "IsOrExtendsAlbum" variant instead. -func AlbumIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeAlbum creates a Album from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeAlbum(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleAlbum, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &FunkwhaleAlbum{ - 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 != "Album" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Album", 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) == "Album" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Album") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// FunkwhaleAlbumExtends returns true if the Album type extends from the other -// type. -func FunkwhaleAlbumExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsAlbum returns true if the other provided type is the Album type or -// extends from the Album type. -func IsOrExtendsAlbum(other vocab.Type) bool { - if other.GetTypeName() == "Album" { - return true - } - return AlbumIsExtendedBy(other) -} - -// NewFunkwhaleAlbum creates a new Album type -func NewFunkwhaleAlbum() *FunkwhaleAlbum { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Album") - return &FunkwhaleAlbum{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this FunkwhaleAlbum) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this FunkwhaleAlbum) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this FunkwhaleAlbum) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this FunkwhaleAlbum) GetTypeName() string { - return "Album" -} - -// GetUnknownProperties returns the unknown properties for the Album 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 FunkwhaleAlbum) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Album type extends from the other type. -func (this FunkwhaleAlbum) IsExtending(other vocab.Type) bool { - return FunkwhaleAlbumExtends(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 FunkwhaleAlbum) JSONLDContext() map[string]string { - m := map[string]string{"https://funkwhale.audio/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 Album is lesser, with an arbitrary but stable -// determination. -func (this FunkwhaleAlbum) LessThan(o vocab.FunkwhaleAlbum) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 FunkwhaleAlbum) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Album" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Album" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *FunkwhaleAlbum) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *FunkwhaleAlbum) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *FunkwhaleAlbum) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *FunkwhaleAlbum) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *FunkwhaleAlbum) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *FunkwhaleAlbum) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *FunkwhaleAlbum) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *FunkwhaleAlbum) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *FunkwhaleAlbum) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *FunkwhaleAlbum) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *FunkwhaleAlbum) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *FunkwhaleAlbum) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *FunkwhaleAlbum) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *FunkwhaleAlbum) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *FunkwhaleAlbum) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *FunkwhaleAlbum) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *FunkwhaleAlbum) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *FunkwhaleAlbum) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *FunkwhaleAlbum) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *FunkwhaleAlbum) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *FunkwhaleAlbum) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *FunkwhaleAlbum) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *FunkwhaleAlbum) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *FunkwhaleAlbum) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *FunkwhaleAlbum) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *FunkwhaleAlbum) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *FunkwhaleAlbum) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *FunkwhaleAlbum) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *FunkwhaleAlbum) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *FunkwhaleAlbum) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *FunkwhaleAlbum) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *FunkwhaleAlbum) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *FunkwhaleAlbum) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *FunkwhaleAlbum) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this FunkwhaleAlbum) VocabularyURI() string { - return "https://funkwhale.audio/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this FunkwhaleAlbum) 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/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_doc.go deleted file mode 100644 index 80f858e0e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeartist contains the implementation for the Artist 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 typeartist diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_pkg.go deleted file mode 100644 index 80cbc2134..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_pkg.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeartist - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go deleted file mode 100644 index 3bf9d521c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go +++ /dev/null @@ -1,1639 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeartist - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -type FunkwhaleArtist 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ArtistIsDisjointWith returns true if the other provided type is disjoint with -// the Artist type. -func ArtistIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ArtistIsExtendedBy returns true if the other provided type extends from the -// Artist type. Note that it returns false if the types are the same; see the -// "IsOrExtendsArtist" variant instead. -func ArtistIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeArtist creates a Artist from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeArtist(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleArtist, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &FunkwhaleArtist{ - 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 != "Artist" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Artist", 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) == "Artist" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Artist") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// FunkwhaleArtistExtends returns true if the Artist type extends from the other -// type. -func FunkwhaleArtistExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsArtist returns true if the other provided type is the Artist type or -// extends from the Artist type. -func IsOrExtendsArtist(other vocab.Type) bool { - if other.GetTypeName() == "Artist" { - return true - } - return ArtistIsExtendedBy(other) -} - -// NewFunkwhaleArtist creates a new Artist type -func NewFunkwhaleArtist() *FunkwhaleArtist { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Artist") - return &FunkwhaleArtist{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this FunkwhaleArtist) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this FunkwhaleArtist) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this FunkwhaleArtist) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this FunkwhaleArtist) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this FunkwhaleArtist) GetTypeName() string { - return "Artist" -} - -// GetUnknownProperties returns the unknown properties for the Artist 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 FunkwhaleArtist) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Artist type extends from the other type. -func (this FunkwhaleArtist) IsExtending(other vocab.Type) bool { - return FunkwhaleArtistExtends(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 FunkwhaleArtist) JSONLDContext() map[string]string { - m := map[string]string{"https://funkwhale.audio/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 Artist is lesser, with an arbitrary but stable -// determination. -func (this FunkwhaleArtist) LessThan(o vocab.FunkwhaleArtist) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 FunkwhaleArtist) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Artist" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Artist" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *FunkwhaleArtist) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *FunkwhaleArtist) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *FunkwhaleArtist) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *FunkwhaleArtist) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *FunkwhaleArtist) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *FunkwhaleArtist) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *FunkwhaleArtist) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *FunkwhaleArtist) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *FunkwhaleArtist) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *FunkwhaleArtist) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *FunkwhaleArtist) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *FunkwhaleArtist) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *FunkwhaleArtist) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *FunkwhaleArtist) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *FunkwhaleArtist) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *FunkwhaleArtist) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *FunkwhaleArtist) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *FunkwhaleArtist) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *FunkwhaleArtist) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *FunkwhaleArtist) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *FunkwhaleArtist) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *FunkwhaleArtist) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *FunkwhaleArtist) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *FunkwhaleArtist) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *FunkwhaleArtist) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *FunkwhaleArtist) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *FunkwhaleArtist) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *FunkwhaleArtist) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *FunkwhaleArtist) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *FunkwhaleArtist) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *FunkwhaleArtist) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *FunkwhaleArtist) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *FunkwhaleArtist) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *FunkwhaleArtist) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this FunkwhaleArtist) VocabularyURI() string { - return "https://funkwhale.audio/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this FunkwhaleArtist) 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/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_doc.go deleted file mode 100644 index 6e6412376..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typelibrary contains the implementation for the Library 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 typelibrary diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_pkg.go deleted file mode 100644 index 3fc267b3e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_pkg.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelibrary - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go deleted file mode 100644 index 5f3793b82..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go +++ /dev/null @@ -1,1639 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelibrary - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -type FunkwhaleLibrary 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeLibrary creates a Library from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeLibrary(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleLibrary, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &FunkwhaleLibrary{ - 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 != "Library" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Library", 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) == "Library" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Library") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// FunkwhaleLibraryExtends returns true if the Library type extends from the other -// type. -func FunkwhaleLibraryExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsLibrary returns true if the other provided type is the Library type -// or extends from the Library type. -func IsOrExtendsLibrary(other vocab.Type) bool { - if other.GetTypeName() == "Library" { - return true - } - return LibraryIsExtendedBy(other) -} - -// LibraryIsDisjointWith returns true if the other provided type is disjoint with -// the Library type. -func LibraryIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// LibraryIsExtendedBy returns true if the other provided type extends from the -// Library type. Note that it returns false if the types are the same; see the -// "IsOrExtendsLibrary" variant instead. -func LibraryIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// NewFunkwhaleLibrary creates a new Library type -func NewFunkwhaleLibrary() *FunkwhaleLibrary { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Library") - return &FunkwhaleLibrary{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this FunkwhaleLibrary) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this FunkwhaleLibrary) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this FunkwhaleLibrary) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this FunkwhaleLibrary) GetTypeName() string { - return "Library" -} - -// GetUnknownProperties returns the unknown properties for the Library 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 FunkwhaleLibrary) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Library type extends from the other type. -func (this FunkwhaleLibrary) IsExtending(other vocab.Type) bool { - return FunkwhaleLibraryExtends(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 FunkwhaleLibrary) JSONLDContext() map[string]string { - m := map[string]string{"https://funkwhale.audio/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 Library is lesser, with an arbitrary but stable -// determination. -func (this FunkwhaleLibrary) LessThan(o vocab.FunkwhaleLibrary) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 FunkwhaleLibrary) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Library" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Library" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *FunkwhaleLibrary) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *FunkwhaleLibrary) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *FunkwhaleLibrary) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *FunkwhaleLibrary) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *FunkwhaleLibrary) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *FunkwhaleLibrary) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *FunkwhaleLibrary) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *FunkwhaleLibrary) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *FunkwhaleLibrary) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *FunkwhaleLibrary) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *FunkwhaleLibrary) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *FunkwhaleLibrary) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *FunkwhaleLibrary) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *FunkwhaleLibrary) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *FunkwhaleLibrary) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *FunkwhaleLibrary) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *FunkwhaleLibrary) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *FunkwhaleLibrary) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *FunkwhaleLibrary) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *FunkwhaleLibrary) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *FunkwhaleLibrary) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *FunkwhaleLibrary) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *FunkwhaleLibrary) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *FunkwhaleLibrary) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *FunkwhaleLibrary) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *FunkwhaleLibrary) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *FunkwhaleLibrary) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *FunkwhaleLibrary) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *FunkwhaleLibrary) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *FunkwhaleLibrary) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *FunkwhaleLibrary) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *FunkwhaleLibrary) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *FunkwhaleLibrary) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *FunkwhaleLibrary) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this FunkwhaleLibrary) VocabularyURI() string { - return "https://funkwhale.audio/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this FunkwhaleLibrary) 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/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_doc.go deleted file mode 100644 index fe42a8c8c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typetrack contains the implementation for the Track 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 typetrack diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_pkg.go deleted file mode 100644 index bc5a0d86c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_pkg.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetrack - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go deleted file mode 100644 index af5779872..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go +++ /dev/null @@ -1,1639 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetrack - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -type FunkwhaleTrack 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeTrack creates a Track from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeTrack(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleTrack, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &FunkwhaleTrack{ - 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 != "Track" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Track", 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) == "Track" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Track") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// FunkwhaleTrackExtends returns true if the Track type extends from the other -// type. -func FunkwhaleTrackExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsTrack returns true if the other provided type is the Track type or -// extends from the Track type. -func IsOrExtendsTrack(other vocab.Type) bool { - if other.GetTypeName() == "Track" { - return true - } - return TrackIsExtendedBy(other) -} - -// NewFunkwhaleTrack creates a new Track type -func NewFunkwhaleTrack() *FunkwhaleTrack { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Track") - return &FunkwhaleTrack{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TrackIsDisjointWith returns true if the other provided type is disjoint with -// the Track type. -func TrackIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// TrackIsExtendedBy returns true if the other provided type extends from the -// Track type. Note that it returns false if the types are the same; see the -// "IsOrExtendsTrack" variant instead. -func TrackIsExtendedBy(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 FunkwhaleTrack) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this FunkwhaleTrack) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this FunkwhaleTrack) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this FunkwhaleTrack) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this FunkwhaleTrack) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this FunkwhaleTrack) GetTypeName() string { - return "Track" -} - -// GetUnknownProperties returns the unknown properties for the Track 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 FunkwhaleTrack) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Track type extends from the other type. -func (this FunkwhaleTrack) IsExtending(other vocab.Type) bool { - return FunkwhaleTrackExtends(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 FunkwhaleTrack) JSONLDContext() map[string]string { - m := map[string]string{"https://funkwhale.audio/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 Track is lesser, with an arbitrary but stable -// determination. -func (this FunkwhaleTrack) LessThan(o vocab.FunkwhaleTrack) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 FunkwhaleTrack) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Track" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Track" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *FunkwhaleTrack) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *FunkwhaleTrack) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *FunkwhaleTrack) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *FunkwhaleTrack) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *FunkwhaleTrack) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *FunkwhaleTrack) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *FunkwhaleTrack) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *FunkwhaleTrack) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *FunkwhaleTrack) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *FunkwhaleTrack) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *FunkwhaleTrack) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *FunkwhaleTrack) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *FunkwhaleTrack) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *FunkwhaleTrack) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *FunkwhaleTrack) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *FunkwhaleTrack) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *FunkwhaleTrack) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *FunkwhaleTrack) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *FunkwhaleTrack) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *FunkwhaleTrack) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *FunkwhaleTrack) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *FunkwhaleTrack) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *FunkwhaleTrack) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *FunkwhaleTrack) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *FunkwhaleTrack) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *FunkwhaleTrack) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *FunkwhaleTrack) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *FunkwhaleTrack) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *FunkwhaleTrack) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *FunkwhaleTrack) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *FunkwhaleTrack) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *FunkwhaleTrack) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *FunkwhaleTrack) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *FunkwhaleTrack) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this FunkwhaleTrack) VocabularyURI() string { - return "https://funkwhale.audio/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this FunkwhaleTrack) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_doc.go deleted file mode 100644 index 7df13c1d9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyalways contains the implementation for the always 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 propertyalways diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_pkg.go deleted file mode 100644 index ee3d9208d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyalways - -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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go deleted file mode 100644 index 0ce20d3f7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always/gen_property_gotosocial_always.go +++ /dev/null @@ -1,503 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyalways - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialAlwaysPropertyIterator is an iterator for a property. It is permitted -// to be a single nilable value type. -type GoToSocialAlwaysPropertyIterator struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string - myIdx int - parent vocab.GoToSocialAlwaysProperty -} - -// NewGoToSocialAlwaysPropertyIterator creates a new GoToSocialAlways property. -func NewGoToSocialAlwaysPropertyIterator() *GoToSocialAlwaysPropertyIterator { - return &GoToSocialAlwaysPropertyIterator{alias: ""} -} - -// deserializeGoToSocialAlwaysPropertyIterator creates an iterator from an element -// that has been unmarshalled from a text or binary format. -func deserializeGoToSocialAlwaysPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialAlwaysPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &GoToSocialAlwaysPropertyIterator{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &GoToSocialAlwaysPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this GoToSocialAlwaysPropertyIterator) 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 GoToSocialAlwaysPropertyIterator) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialAlwaysPropertyIterator) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialAlwaysPropertyIterator) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this GoToSocialAlwaysPropertyIterator) 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 GoToSocialAlwaysPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialAlwaysPropertyIterator) 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 GoToSocialAlwaysPropertyIterator) LessThan(o vocab.GoToSocialAlwaysPropertyIterator) 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: "GoToSocialAlways". -func (this GoToSocialAlwaysPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialAlways" - } else { - return "GoToSocialAlways" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialAlwaysPropertyIterator) Next() vocab.GoToSocialAlwaysPropertyIterator { - 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 GoToSocialAlwaysPropertyIterator) Prev() vocab.GoToSocialAlwaysPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *GoToSocialAlwaysPropertyIterator) Set(v *url.URL) { - this.clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialAlwaysPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.Set(v) -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *GoToSocialAlwaysPropertyIterator) clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = 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 GoToSocialAlwaysPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// GoToSocialAlwaysProperty is the non-functional property "always". It is -// permitted to have one or more values, and of different value types. -type GoToSocialAlwaysProperty struct { - properties []*GoToSocialAlwaysPropertyIterator - alias string -} - -// DeserializeAlwaysProperty creates a "always" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeAlwaysProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAlwaysProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "always" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "always") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialAlwaysProperty{ - alias: alias, - properties: []*GoToSocialAlwaysPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialAlwaysPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialAlwaysPropertyIterator(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 -} - -// NewGoToSocialAlwaysProperty creates a new always property. -func NewGoToSocialAlwaysProperty() *GoToSocialAlwaysProperty { - return &GoToSocialAlwaysProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property "always" -func (this *GoToSocialAlwaysProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialAlwaysPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the -// property "always". Invalidates iterators that are traversing using Prev. -func (this *GoToSocialAlwaysProperty) AppendXMLSchemaAnyURI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialAlwaysPropertyIterator{ - 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 GoToSocialAlwaysProperty) At(index int) vocab.GoToSocialAlwaysPropertyIterator { - 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 GoToSocialAlwaysProperty) Begin() vocab.GoToSocialAlwaysPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialAlwaysProperty) 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 GoToSocialAlwaysProperty) End() vocab.GoToSocialAlwaysPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "always". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *GoToSocialAlwaysProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialAlwaysPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a -// property "always". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *GoToSocialAlwaysProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialAlwaysPropertyIterator{ - 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 GoToSocialAlwaysProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialAlwaysProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "always" property. -func (this GoToSocialAlwaysProperty) 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 GoToSocialAlwaysProperty) 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 anyuri.LessAnyURI(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 GoToSocialAlwaysProperty) LessThan(o vocab.GoToSocialAlwaysProperty) 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 ("always") with any alias. -func (this GoToSocialAlwaysProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "always" - } else { - return "always" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "always". -func (this *GoToSocialAlwaysProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialAlwaysPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the -// property "always". Invalidates all iterators. -func (this *GoToSocialAlwaysProperty) PrependXMLSchemaAnyURI(v *url.URL) { - this.properties = append([]*GoToSocialAlwaysPropertyIterator{{ - 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 -// "always", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *GoToSocialAlwaysProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialAlwaysPropertyIterator{} - 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 GoToSocialAlwaysProperty) 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 anyURI value to be at the specified index for the property "always". -// Panics if the index is out of bounds. Invalidates all iterators. -func (this *GoToSocialAlwaysProperty) Set(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialAlwaysPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "always". Panics if the index is out of bounds. -func (this *GoToSocialAlwaysProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialAlwaysPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// Swap swaps the location of values at two indices for the "always" property. -func (this GoToSocialAlwaysProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go deleted file mode 100644 index bf6ce36b0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyapprovalrequired contains the implementation for the -// approvalRequired 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 propertyapprovalrequired diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go deleted file mode 100644 index 6251a6ed2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyapprovalrequired - -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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go deleted file mode 100644 index ec2b7ce20..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired/gen_property_gotosocial_approvalRequired.go +++ /dev/null @@ -1,510 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyapprovalrequired - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialApprovalRequiredPropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type GoToSocialApprovalRequiredPropertyIterator struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string - myIdx int - parent vocab.GoToSocialApprovalRequiredProperty -} - -// NewGoToSocialApprovalRequiredPropertyIterator creates a new -// GoToSocialApprovalRequired property. -func NewGoToSocialApprovalRequiredPropertyIterator() *GoToSocialApprovalRequiredPropertyIterator { - return &GoToSocialApprovalRequiredPropertyIterator{alias: ""} -} - -// deserializeGoToSocialApprovalRequiredPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeGoToSocialApprovalRequiredPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialApprovalRequiredPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &GoToSocialApprovalRequiredPropertyIterator{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &GoToSocialApprovalRequiredPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this GoToSocialApprovalRequiredPropertyIterator) 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 GoToSocialApprovalRequiredPropertyIterator) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialApprovalRequiredPropertyIterator) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialApprovalRequiredPropertyIterator) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this GoToSocialApprovalRequiredPropertyIterator) 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 GoToSocialApprovalRequiredPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialApprovalRequiredPropertyIterator) 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 GoToSocialApprovalRequiredPropertyIterator) LessThan(o vocab.GoToSocialApprovalRequiredPropertyIterator) 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: "GoToSocialApprovalRequired". -func (this GoToSocialApprovalRequiredPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialApprovalRequired" - } else { - return "GoToSocialApprovalRequired" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialApprovalRequiredPropertyIterator) Next() vocab.GoToSocialApprovalRequiredPropertyIterator { - 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 GoToSocialApprovalRequiredPropertyIterator) Prev() vocab.GoToSocialApprovalRequiredPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *GoToSocialApprovalRequiredPropertyIterator) Set(v *url.URL) { - this.clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialApprovalRequiredPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.Set(v) -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *GoToSocialApprovalRequiredPropertyIterator) clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = 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 GoToSocialApprovalRequiredPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// GoToSocialApprovalRequiredProperty is the non-functional property -// "approvalRequired". It is permitted to have one or more values, and of -// different value types. -type GoToSocialApprovalRequiredProperty struct { - properties []*GoToSocialApprovalRequiredPropertyIterator - alias string -} - -// DeserializeApprovalRequiredProperty creates a "approvalRequired" property from -// an interface representation that has been unmarshalled from a text or -// binary format. -func DeserializeApprovalRequiredProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "approvalRequired" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "approvalRequired") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialApprovalRequiredProperty{ - alias: alias, - properties: []*GoToSocialApprovalRequiredPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialApprovalRequiredPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialApprovalRequiredPropertyIterator(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 -} - -// NewGoToSocialApprovalRequiredProperty creates a new approvalRequired property. -func NewGoToSocialApprovalRequiredProperty() *GoToSocialApprovalRequiredProperty { - return &GoToSocialApprovalRequiredProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "approvalRequired" -func (this *GoToSocialApprovalRequiredProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialApprovalRequiredPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the -// property "approvalRequired". Invalidates iterators that are traversing -// using Prev. -func (this *GoToSocialApprovalRequiredProperty) AppendXMLSchemaAnyURI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialApprovalRequiredPropertyIterator{ - 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 GoToSocialApprovalRequiredProperty) At(index int) vocab.GoToSocialApprovalRequiredPropertyIterator { - 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 GoToSocialApprovalRequiredProperty) Begin() vocab.GoToSocialApprovalRequiredPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialApprovalRequiredProperty) 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 GoToSocialApprovalRequiredProperty) End() vocab.GoToSocialApprovalRequiredPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property -// "approvalRequired". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *GoToSocialApprovalRequiredProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialApprovalRequiredPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a -// property "approvalRequired". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *GoToSocialApprovalRequiredProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialApprovalRequiredPropertyIterator{ - 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 GoToSocialApprovalRequiredProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialApprovalRequiredProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "approvalRequired" property. -func (this GoToSocialApprovalRequiredProperty) 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 GoToSocialApprovalRequiredProperty) 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 anyuri.LessAnyURI(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 GoToSocialApprovalRequiredProperty) LessThan(o vocab.GoToSocialApprovalRequiredProperty) 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 ("approvalRequired") with any alias. -func (this GoToSocialApprovalRequiredProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "approvalRequired" - } else { - return "approvalRequired" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "approvalRequired". -func (this *GoToSocialApprovalRequiredProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialApprovalRequiredPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the -// property "approvalRequired". Invalidates all iterators. -func (this *GoToSocialApprovalRequiredProperty) PrependXMLSchemaAnyURI(v *url.URL) { - this.properties = append([]*GoToSocialApprovalRequiredPropertyIterator{{ - 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 -// "approvalRequired", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *GoToSocialApprovalRequiredProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialApprovalRequiredPropertyIterator{} - 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 GoToSocialApprovalRequiredProperty) 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 anyURI value to be at the specified index for the property -// "approvalRequired". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *GoToSocialApprovalRequiredProperty) Set(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialApprovalRequiredPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "approvalRequired". Panics if the index is out of bounds. -func (this *GoToSocialApprovalRequiredProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialApprovalRequiredPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// Swap swaps the location of values at two indices for the "approvalRequired" -// property. -func (this GoToSocialApprovalRequiredProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go deleted file mode 100644 index f334d13a9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyapprovedby contains the implementation for the approvedBy -// 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 propertyapprovedby diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go deleted file mode 100644 index 60c83f53e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyapprovedby - -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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go deleted file mode 100644 index 05da30c07..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby/gen_property_gotosocial_approvedBy.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyapprovedby - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialApprovedByProperty is the functional property "approvedBy". It is -// permitted to be a single nilable value type. -type GoToSocialApprovedByProperty struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string -} - -// DeserializeApprovedByProperty creates a "approvedBy" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeApprovedByProperty(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialApprovedByProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "approvedBy" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "approvedBy") - } - i, ok := m[propName] - - if ok { - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &GoToSocialApprovedByProperty{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &GoToSocialApprovedByProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewGoToSocialApprovedByProperty creates a new approvedBy property. -func NewGoToSocialApprovedByProperty() *GoToSocialApprovedByProperty { - return &GoToSocialApprovedByProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *GoToSocialApprovedByProperty) 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 GoToSocialApprovedByProperty) 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 GoToSocialApprovedByProperty) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialApprovedByProperty) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialApprovedByProperty) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this GoToSocialApprovedByProperty) 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 GoToSocialApprovedByProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialApprovedByProperty) 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 GoToSocialApprovedByProperty) LessThan(o vocab.GoToSocialApprovedByProperty) 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: "approvedBy". -func (this GoToSocialApprovedByProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "approvedBy" - } else { - return "approvedBy" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need 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 GoToSocialApprovedByProperty) 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 *GoToSocialApprovedByProperty) Set(v *url.URL) { - this.Clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialApprovedByProperty) SetIRI(v *url.URL) { - this.Clear() - this.Set(v) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go deleted file mode 100644 index 70135362b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyautomaticapproval contains the implementation for the -// automaticApproval 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 propertyautomaticapproval diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go deleted file mode 100644 index d46f7b30a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyautomaticapproval - -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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go deleted file mode 100644 index c79d76152..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval/gen_property_gotosocial_automaticApproval.go +++ /dev/null @@ -1,511 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyautomaticapproval - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialAutomaticApprovalPropertyIterator is an iterator for a property. It -// is permitted to be a single nilable value type. -type GoToSocialAutomaticApprovalPropertyIterator struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string - myIdx int - parent vocab.GoToSocialAutomaticApprovalProperty -} - -// NewGoToSocialAutomaticApprovalPropertyIterator creates a new -// GoToSocialAutomaticApproval property. -func NewGoToSocialAutomaticApprovalPropertyIterator() *GoToSocialAutomaticApprovalPropertyIterator { - return &GoToSocialAutomaticApprovalPropertyIterator{alias: ""} -} - -// deserializeGoToSocialAutomaticApprovalPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeGoToSocialAutomaticApprovalPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialAutomaticApprovalPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &GoToSocialAutomaticApprovalPropertyIterator{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &GoToSocialAutomaticApprovalPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this GoToSocialAutomaticApprovalPropertyIterator) 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 GoToSocialAutomaticApprovalPropertyIterator) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialAutomaticApprovalPropertyIterator) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialAutomaticApprovalPropertyIterator) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this GoToSocialAutomaticApprovalPropertyIterator) 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 GoToSocialAutomaticApprovalPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialAutomaticApprovalPropertyIterator) 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 GoToSocialAutomaticApprovalPropertyIterator) LessThan(o vocab.GoToSocialAutomaticApprovalPropertyIterator) 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: "GoToSocialAutomaticApproval". -func (this GoToSocialAutomaticApprovalPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialAutomaticApproval" - } else { - return "GoToSocialAutomaticApproval" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialAutomaticApprovalPropertyIterator) Next() vocab.GoToSocialAutomaticApprovalPropertyIterator { - 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 GoToSocialAutomaticApprovalPropertyIterator) Prev() vocab.GoToSocialAutomaticApprovalPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *GoToSocialAutomaticApprovalPropertyIterator) Set(v *url.URL) { - this.clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialAutomaticApprovalPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.Set(v) -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *GoToSocialAutomaticApprovalPropertyIterator) clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = 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 GoToSocialAutomaticApprovalPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// GoToSocialAutomaticApprovalProperty is the non-functional property -// "automaticApproval". It is permitted to have one or more values, and of -// different value types. -type GoToSocialAutomaticApprovalProperty struct { - properties []*GoToSocialAutomaticApprovalPropertyIterator - alias string -} - -// DeserializeAutomaticApprovalProperty creates a "automaticApproval" property -// from an interface representation that has been unmarshalled from a text or -// binary format. -func DeserializeAutomaticApprovalProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "automaticApproval" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "automaticApproval") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialAutomaticApprovalProperty{ - alias: alias, - properties: []*GoToSocialAutomaticApprovalPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialAutomaticApprovalPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialAutomaticApprovalPropertyIterator(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 -} - -// NewGoToSocialAutomaticApprovalProperty creates a new automaticApproval property. -func NewGoToSocialAutomaticApprovalProperty() *GoToSocialAutomaticApprovalProperty { - return &GoToSocialAutomaticApprovalProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "automaticApproval" -func (this *GoToSocialAutomaticApprovalProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialAutomaticApprovalPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the -// property "automaticApproval". Invalidates iterators that are traversing -// using Prev. -func (this *GoToSocialAutomaticApprovalProperty) AppendXMLSchemaAnyURI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialAutomaticApprovalPropertyIterator{ - 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 GoToSocialAutomaticApprovalProperty) At(index int) vocab.GoToSocialAutomaticApprovalPropertyIterator { - 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 GoToSocialAutomaticApprovalProperty) Begin() vocab.GoToSocialAutomaticApprovalPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialAutomaticApprovalProperty) 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 GoToSocialAutomaticApprovalProperty) End() vocab.GoToSocialAutomaticApprovalPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property -// "automaticApproval". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *GoToSocialAutomaticApprovalProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a -// property "automaticApproval". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *GoToSocialAutomaticApprovalProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ - 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 GoToSocialAutomaticApprovalProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialAutomaticApprovalProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "automaticApproval" -// property. -func (this GoToSocialAutomaticApprovalProperty) 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 GoToSocialAutomaticApprovalProperty) 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 anyuri.LessAnyURI(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 GoToSocialAutomaticApprovalProperty) LessThan(o vocab.GoToSocialAutomaticApprovalProperty) 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 ("automaticApproval") with any alias. -func (this GoToSocialAutomaticApprovalProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "automaticApproval" - } else { - return "automaticApproval" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "automaticApproval". -func (this *GoToSocialAutomaticApprovalProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialAutomaticApprovalPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the -// property "automaticApproval". Invalidates all iterators. -func (this *GoToSocialAutomaticApprovalProperty) PrependXMLSchemaAnyURI(v *url.URL) { - this.properties = append([]*GoToSocialAutomaticApprovalPropertyIterator{{ - 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 -// "automaticApproval", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *GoToSocialAutomaticApprovalProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialAutomaticApprovalPropertyIterator{} - 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 GoToSocialAutomaticApprovalProperty) 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 anyURI value to be at the specified index for the property -// "automaticApproval". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *GoToSocialAutomaticApprovalProperty) Set(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "automaticApproval". Panics if the index is out of bounds. -func (this *GoToSocialAutomaticApprovalProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialAutomaticApprovalPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// Swap swaps the location of values at two indices for the "automaticApproval" -// property. -func (this GoToSocialAutomaticApprovalProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go deleted file mode 100644 index 0d90f0913..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertycanannounce contains the implementation for the canAnnounce -// 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 propertycanannounce diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go deleted file mode 100644 index 4ae112975..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycanannounce - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCanAnnounceGoToSocial returns the deserialization method for - // the "GoToSocialCanAnnounce" non-functional property in the - // vocabulary "GoToSocial" - DeserializeCanAnnounceGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanAnnounce, 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go deleted file mode 100644 index c6cc7402e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce/gen_property_gotosocial_canAnnounce.go +++ /dev/null @@ -1,625 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycanannounce - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialCanAnnouncePropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type GoToSocialCanAnnouncePropertyIterator struct { - gotosocialCanAnnounceMember vocab.GoToSocialCanAnnounce - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.GoToSocialCanAnnounceProperty -} - -// NewGoToSocialCanAnnouncePropertyIterator creates a new GoToSocialCanAnnounce -// property. -func NewGoToSocialCanAnnouncePropertyIterator() *GoToSocialCanAnnouncePropertyIterator { - return &GoToSocialCanAnnouncePropertyIterator{alias: ""} -} - -// deserializeGoToSocialCanAnnouncePropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeGoToSocialCanAnnouncePropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialCanAnnouncePropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &GoToSocialCanAnnouncePropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCanAnnounceGoToSocial()(m, aliasMap); err == nil { - this := &GoToSocialCanAnnouncePropertyIterator{ - alias: alias, - gotosocialCanAnnounceMember: v, - } - return this, nil - } - } - this := &GoToSocialCanAnnouncePropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsGoToSocialCanAnnounce returns -// false, Get will return any arbitrary value. -func (this GoToSocialCanAnnouncePropertyIterator) Get() vocab.GoToSocialCanAnnounce { - return this.gotosocialCanAnnounceMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this GoToSocialCanAnnouncePropertyIterator) 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 GoToSocialCanAnnouncePropertyIterator) GetType() vocab.Type { - if this.IsGoToSocialCanAnnounce() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialCanAnnouncePropertyIterator) HasAny() bool { - return this.IsGoToSocialCanAnnounce() || this.iri != nil -} - -// IsGoToSocialCanAnnounce returns true if this property is set and not an IRI. -func (this GoToSocialCanAnnouncePropertyIterator) IsGoToSocialCanAnnounce() bool { - return this.gotosocialCanAnnounceMember != nil -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialCanAnnouncePropertyIterator) 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 GoToSocialCanAnnouncePropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - if this.IsGoToSocialCanAnnounce() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialCanAnnouncePropertyIterator) KindIndex() int { - if this.IsGoToSocialCanAnnounce() { - 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 GoToSocialCanAnnouncePropertyIterator) LessThan(o vocab.GoToSocialCanAnnouncePropertyIterator) 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.IsGoToSocialCanAnnounce() && !o.IsGoToSocialCanAnnounce() { - // Both are unknowns. - return false - } else if this.IsGoToSocialCanAnnounce() && !o.IsGoToSocialCanAnnounce() { - // Values are always greater than unknown values. - return false - } else if !this.IsGoToSocialCanAnnounce() && o.IsGoToSocialCanAnnounce() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "GoToSocialCanAnnounce". -func (this GoToSocialCanAnnouncePropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialCanAnnounce" - } else { - return "GoToSocialCanAnnounce" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialCanAnnouncePropertyIterator) Next() vocab.GoToSocialCanAnnouncePropertyIterator { - 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 GoToSocialCanAnnouncePropertyIterator) Prev() vocab.GoToSocialCanAnnouncePropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsGoToSocialCanAnnounce afterwards -// will return true. -func (this *GoToSocialCanAnnouncePropertyIterator) Set(v vocab.GoToSocialCanAnnounce) { - this.clear() - this.gotosocialCanAnnounceMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialCanAnnouncePropertyIterator) 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 *GoToSocialCanAnnouncePropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.GoToSocialCanAnnounce); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on GoToSocialCanAnnounce property: %T", t) -} - -// clear ensures no value of this property is set. Calling IsGoToSocialCanAnnounce -// afterwards will return false. -func (this *GoToSocialCanAnnouncePropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.gotosocialCanAnnounceMember = 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 GoToSocialCanAnnouncePropertyIterator) serialize() (interface{}, error) { - if this.IsGoToSocialCanAnnounce() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// GoToSocialCanAnnounceProperty is the non-functional property "canAnnounce". It -// is permitted to have one or more values, and of different value types. -type GoToSocialCanAnnounceProperty struct { - properties []*GoToSocialCanAnnouncePropertyIterator - alias string -} - -// DeserializeCanAnnounceProperty creates a "canAnnounce" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeCanAnnounceProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanAnnounceProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "canAnnounce" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "canAnnounce") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialCanAnnounceProperty{ - alias: alias, - properties: []*GoToSocialCanAnnouncePropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialCanAnnouncePropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialCanAnnouncePropertyIterator(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 -} - -// NewGoToSocialCanAnnounceProperty creates a new canAnnounce property. -func NewGoToSocialCanAnnounceProperty() *GoToSocialCanAnnounceProperty { - return &GoToSocialCanAnnounceProperty{alias: ""} -} - -// AppendGoToSocialCanAnnounce appends a CanAnnounce value to the back of a list -// of the property "canAnnounce". Invalidates iterators that are traversing -// using Prev. -func (this *GoToSocialCanAnnounceProperty) AppendGoToSocialCanAnnounce(v vocab.GoToSocialCanAnnounce) { - this.properties = append(this.properties, &GoToSocialCanAnnouncePropertyIterator{ - alias: this.alias, - gotosocialCanAnnounceMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "canAnnounce" -func (this *GoToSocialCanAnnounceProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialCanAnnouncePropertyIterator{ - 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 "canAnnounce". 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 *GoToSocialCanAnnounceProperty) AppendType(t vocab.Type) error { - n := &GoToSocialCanAnnouncePropertyIterator{ - 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 GoToSocialCanAnnounceProperty) At(index int) vocab.GoToSocialCanAnnouncePropertyIterator { - 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 GoToSocialCanAnnounceProperty) Begin() vocab.GoToSocialCanAnnouncePropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialCanAnnounceProperty) 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 GoToSocialCanAnnounceProperty) End() vocab.GoToSocialCanAnnouncePropertyIterator { - return nil -} - -// InsertGoToSocialCanAnnounce inserts a CanAnnounce value at the specified index -// for a property "canAnnounce". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *GoToSocialCanAnnounceProperty) InsertGoToSocialCanAnnounce(idx int, v vocab.GoToSocialCanAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialCanAnnouncePropertyIterator{ - alias: this.alias, - gotosocialCanAnnounceMember: 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 -// "canAnnounce". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *GoToSocialCanAnnounceProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialCanAnnouncePropertyIterator{ - 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 "canAnnounce". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *GoToSocialCanAnnounceProperty) InsertType(idx int, t vocab.Type) error { - n := &GoToSocialCanAnnouncePropertyIterator{ - 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 GoToSocialCanAnnounceProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialCanAnnounceProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "canAnnounce" property. -func (this GoToSocialCanAnnounceProperty) 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 GoToSocialCanAnnounceProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this GoToSocialCanAnnounceProperty) LessThan(o vocab.GoToSocialCanAnnounceProperty) 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 ("canAnnounce") with any alias. -func (this GoToSocialCanAnnounceProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "canAnnounce" - } else { - return "canAnnounce" - } -} - -// PrependGoToSocialCanAnnounce prepends a CanAnnounce value to the front of a -// list of the property "canAnnounce". Invalidates all iterators. -func (this *GoToSocialCanAnnounceProperty) PrependGoToSocialCanAnnounce(v vocab.GoToSocialCanAnnounce) { - this.properties = append([]*GoToSocialCanAnnouncePropertyIterator{{ - alias: this.alias, - gotosocialCanAnnounceMember: 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 -// "canAnnounce". -func (this *GoToSocialCanAnnounceProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialCanAnnouncePropertyIterator{{ - 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 "canAnnounce". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *GoToSocialCanAnnounceProperty) PrependType(t vocab.Type) error { - n := &GoToSocialCanAnnouncePropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*GoToSocialCanAnnouncePropertyIterator{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 -// "canAnnounce", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *GoToSocialCanAnnounceProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialCanAnnouncePropertyIterator{} - 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 GoToSocialCanAnnounceProperty) 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 CanAnnounce value to be at the specified index for the property -// "canAnnounce". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *GoToSocialCanAnnounceProperty) Set(idx int, v vocab.GoToSocialCanAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialCanAnnouncePropertyIterator{ - alias: this.alias, - gotosocialCanAnnounceMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "canAnnounce". Panics if the index is out of bounds. -func (this *GoToSocialCanAnnounceProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialCanAnnouncePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "canAnnounce". 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 *GoToSocialCanAnnounceProperty) SetType(idx int, t vocab.Type) error { - n := &GoToSocialCanAnnouncePropertyIterator{ - 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 "canAnnounce" property. -func (this GoToSocialCanAnnounceProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_doc.go deleted file mode 100644 index 8e8c79c00..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertycanlike contains the implementation for the canLike 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 propertycanlike diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go deleted file mode 100644 index 3439b7d42..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycanlike - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCanLikeGoToSocial returns the deserialization method for the - // "GoToSocialCanLike" non-functional property in the vocabulary - // "GoToSocial" - DeserializeCanLikeGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanLike, 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go deleted file mode 100644 index cd60dafe4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike/gen_property_gotosocial_canLike.go +++ /dev/null @@ -1,618 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycanlike - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialCanLikePropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type GoToSocialCanLikePropertyIterator struct { - gotosocialCanLikeMember vocab.GoToSocialCanLike - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.GoToSocialCanLikeProperty -} - -// NewGoToSocialCanLikePropertyIterator creates a new GoToSocialCanLike property. -func NewGoToSocialCanLikePropertyIterator() *GoToSocialCanLikePropertyIterator { - return &GoToSocialCanLikePropertyIterator{alias: ""} -} - -// deserializeGoToSocialCanLikePropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeGoToSocialCanLikePropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialCanLikePropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &GoToSocialCanLikePropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCanLikeGoToSocial()(m, aliasMap); err == nil { - this := &GoToSocialCanLikePropertyIterator{ - alias: alias, - gotosocialCanLikeMember: v, - } - return this, nil - } - } - this := &GoToSocialCanLikePropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsGoToSocialCanLike returns false, -// Get will return any arbitrary value. -func (this GoToSocialCanLikePropertyIterator) Get() vocab.GoToSocialCanLike { - return this.gotosocialCanLikeMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this GoToSocialCanLikePropertyIterator) 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 GoToSocialCanLikePropertyIterator) GetType() vocab.Type { - if this.IsGoToSocialCanLike() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialCanLikePropertyIterator) HasAny() bool { - return this.IsGoToSocialCanLike() || this.iri != nil -} - -// IsGoToSocialCanLike returns true if this property is set and not an IRI. -func (this GoToSocialCanLikePropertyIterator) IsGoToSocialCanLike() bool { - return this.gotosocialCanLikeMember != nil -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialCanLikePropertyIterator) 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 GoToSocialCanLikePropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - if this.IsGoToSocialCanLike() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialCanLikePropertyIterator) KindIndex() int { - if this.IsGoToSocialCanLike() { - 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 GoToSocialCanLikePropertyIterator) LessThan(o vocab.GoToSocialCanLikePropertyIterator) 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.IsGoToSocialCanLike() && !o.IsGoToSocialCanLike() { - // Both are unknowns. - return false - } else if this.IsGoToSocialCanLike() && !o.IsGoToSocialCanLike() { - // Values are always greater than unknown values. - return false - } else if !this.IsGoToSocialCanLike() && o.IsGoToSocialCanLike() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "GoToSocialCanLike". -func (this GoToSocialCanLikePropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialCanLike" - } else { - return "GoToSocialCanLike" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialCanLikePropertyIterator) Next() vocab.GoToSocialCanLikePropertyIterator { - 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 GoToSocialCanLikePropertyIterator) Prev() vocab.GoToSocialCanLikePropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsGoToSocialCanLike afterwards -// will return true. -func (this *GoToSocialCanLikePropertyIterator) Set(v vocab.GoToSocialCanLike) { - this.clear() - this.gotosocialCanLikeMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialCanLikePropertyIterator) 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 *GoToSocialCanLikePropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.GoToSocialCanLike); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on GoToSocialCanLike property: %T", t) -} - -// clear ensures no value of this property is set. Calling IsGoToSocialCanLike -// afterwards will return false. -func (this *GoToSocialCanLikePropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.gotosocialCanLikeMember = 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 GoToSocialCanLikePropertyIterator) serialize() (interface{}, error) { - if this.IsGoToSocialCanLike() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// GoToSocialCanLikeProperty is the non-functional property "canLike". It is -// permitted to have one or more values, and of different value types. -type GoToSocialCanLikeProperty struct { - properties []*GoToSocialCanLikePropertyIterator - alias string -} - -// DeserializeCanLikeProperty creates a "canLike" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeCanLikeProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanLikeProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "canLike" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "canLike") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialCanLikeProperty{ - alias: alias, - properties: []*GoToSocialCanLikePropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialCanLikePropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialCanLikePropertyIterator(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 -} - -// NewGoToSocialCanLikeProperty creates a new canLike property. -func NewGoToSocialCanLikeProperty() *GoToSocialCanLikeProperty { - return &GoToSocialCanLikeProperty{alias: ""} -} - -// AppendGoToSocialCanLike appends a CanLike value to the back of a list of the -// property "canLike". Invalidates iterators that are traversing using Prev. -func (this *GoToSocialCanLikeProperty) AppendGoToSocialCanLike(v vocab.GoToSocialCanLike) { - this.properties = append(this.properties, &GoToSocialCanLikePropertyIterator{ - alias: this.alias, - gotosocialCanLikeMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "canLike" -func (this *GoToSocialCanLikeProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialCanLikePropertyIterator{ - 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 "canLike". 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 *GoToSocialCanLikeProperty) AppendType(t vocab.Type) error { - n := &GoToSocialCanLikePropertyIterator{ - 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 GoToSocialCanLikeProperty) At(index int) vocab.GoToSocialCanLikePropertyIterator { - 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 GoToSocialCanLikeProperty) Begin() vocab.GoToSocialCanLikePropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialCanLikeProperty) 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 GoToSocialCanLikeProperty) End() vocab.GoToSocialCanLikePropertyIterator { - return nil -} - -// InsertGoToSocialCanLike inserts a CanLike value at the specified index for a -// property "canLike". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *GoToSocialCanLikeProperty) InsertGoToSocialCanLike(idx int, v vocab.GoToSocialCanLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialCanLikePropertyIterator{ - alias: this.alias, - gotosocialCanLikeMember: 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 "canLike". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *GoToSocialCanLikeProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialCanLikePropertyIterator{ - 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 "canLike". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *GoToSocialCanLikeProperty) InsertType(idx int, t vocab.Type) error { - n := &GoToSocialCanLikePropertyIterator{ - 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 GoToSocialCanLikeProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialCanLikeProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "canLike" property. -func (this GoToSocialCanLikeProperty) 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 GoToSocialCanLikeProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this GoToSocialCanLikeProperty) LessThan(o vocab.GoToSocialCanLikeProperty) 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 ("canLike") with any alias. -func (this GoToSocialCanLikeProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "canLike" - } else { - return "canLike" - } -} - -// PrependGoToSocialCanLike prepends a CanLike value to the front of a list of the -// property "canLike". Invalidates all iterators. -func (this *GoToSocialCanLikeProperty) PrependGoToSocialCanLike(v vocab.GoToSocialCanLike) { - this.properties = append([]*GoToSocialCanLikePropertyIterator{{ - alias: this.alias, - gotosocialCanLikeMember: 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 -// "canLike". -func (this *GoToSocialCanLikeProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialCanLikePropertyIterator{{ - 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 "canLike". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *GoToSocialCanLikeProperty) PrependType(t vocab.Type) error { - n := &GoToSocialCanLikePropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*GoToSocialCanLikePropertyIterator{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 -// "canLike", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *GoToSocialCanLikeProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialCanLikePropertyIterator{} - 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 GoToSocialCanLikeProperty) 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 CanLike value to be at the specified index for the property -// "canLike". Panics if the index is out of bounds. Invalidates all iterators. -func (this *GoToSocialCanLikeProperty) Set(idx int, v vocab.GoToSocialCanLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialCanLikePropertyIterator{ - alias: this.alias, - gotosocialCanLikeMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "canLike". Panics if the index is out of bounds. -func (this *GoToSocialCanLikeProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialCanLikePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "canLike". 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 *GoToSocialCanLikeProperty) SetType(idx int, t vocab.Type) error { - n := &GoToSocialCanLikePropertyIterator{ - 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 "canLike" property. -func (this GoToSocialCanLikeProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_doc.go deleted file mode 100644 index 21077ff16..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertycanquote contains the implementation for the canQuote 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 propertycanquote diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go deleted file mode 100644 index 26d625911..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycanquote - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCanQuoteGoToSocial returns the deserialization method for - // the "GoToSocialCanQuote" non-functional property in the vocabulary - // "GoToSocial" - DeserializeCanQuoteGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuote, 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go deleted file mode 100644 index 1ae1347bc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote/gen_property_gotosocial_canQuote.go +++ /dev/null @@ -1,618 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycanquote - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialCanQuotePropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type GoToSocialCanQuotePropertyIterator struct { - gotosocialCanQuoteMember vocab.GoToSocialCanQuote - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.GoToSocialCanQuoteProperty -} - -// NewGoToSocialCanQuotePropertyIterator creates a new GoToSocialCanQuote property. -func NewGoToSocialCanQuotePropertyIterator() *GoToSocialCanQuotePropertyIterator { - return &GoToSocialCanQuotePropertyIterator{alias: ""} -} - -// deserializeGoToSocialCanQuotePropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeGoToSocialCanQuotePropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialCanQuotePropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &GoToSocialCanQuotePropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCanQuoteGoToSocial()(m, aliasMap); err == nil { - this := &GoToSocialCanQuotePropertyIterator{ - alias: alias, - gotosocialCanQuoteMember: v, - } - return this, nil - } - } - this := &GoToSocialCanQuotePropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsGoToSocialCanQuote returns -// false, Get will return any arbitrary value. -func (this GoToSocialCanQuotePropertyIterator) Get() vocab.GoToSocialCanQuote { - return this.gotosocialCanQuoteMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this GoToSocialCanQuotePropertyIterator) 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 GoToSocialCanQuotePropertyIterator) GetType() vocab.Type { - if this.IsGoToSocialCanQuote() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialCanQuotePropertyIterator) HasAny() bool { - return this.IsGoToSocialCanQuote() || this.iri != nil -} - -// IsGoToSocialCanQuote returns true if this property is set and not an IRI. -func (this GoToSocialCanQuotePropertyIterator) IsGoToSocialCanQuote() bool { - return this.gotosocialCanQuoteMember != nil -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialCanQuotePropertyIterator) 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 GoToSocialCanQuotePropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - if this.IsGoToSocialCanQuote() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialCanQuotePropertyIterator) KindIndex() int { - if this.IsGoToSocialCanQuote() { - 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 GoToSocialCanQuotePropertyIterator) LessThan(o vocab.GoToSocialCanQuotePropertyIterator) 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.IsGoToSocialCanQuote() && !o.IsGoToSocialCanQuote() { - // Both are unknowns. - return false - } else if this.IsGoToSocialCanQuote() && !o.IsGoToSocialCanQuote() { - // Values are always greater than unknown values. - return false - } else if !this.IsGoToSocialCanQuote() && o.IsGoToSocialCanQuote() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "GoToSocialCanQuote". -func (this GoToSocialCanQuotePropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialCanQuote" - } else { - return "GoToSocialCanQuote" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialCanQuotePropertyIterator) Next() vocab.GoToSocialCanQuotePropertyIterator { - 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 GoToSocialCanQuotePropertyIterator) Prev() vocab.GoToSocialCanQuotePropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsGoToSocialCanQuote afterwards -// will return true. -func (this *GoToSocialCanQuotePropertyIterator) Set(v vocab.GoToSocialCanQuote) { - this.clear() - this.gotosocialCanQuoteMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialCanQuotePropertyIterator) 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 *GoToSocialCanQuotePropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.GoToSocialCanQuote); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on GoToSocialCanQuote property: %T", t) -} - -// clear ensures no value of this property is set. Calling IsGoToSocialCanQuote -// afterwards will return false. -func (this *GoToSocialCanQuotePropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.gotosocialCanQuoteMember = 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 GoToSocialCanQuotePropertyIterator) serialize() (interface{}, error) { - if this.IsGoToSocialCanQuote() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// GoToSocialCanQuoteProperty is the non-functional property "canQuote". It is -// permitted to have one or more values, and of different value types. -type GoToSocialCanQuoteProperty struct { - properties []*GoToSocialCanQuotePropertyIterator - alias string -} - -// DeserializeCanQuoteProperty creates a "canQuote" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeCanQuoteProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanQuoteProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "canQuote" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "canQuote") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialCanQuoteProperty{ - alias: alias, - properties: []*GoToSocialCanQuotePropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialCanQuotePropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialCanQuotePropertyIterator(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 -} - -// NewGoToSocialCanQuoteProperty creates a new canQuote property. -func NewGoToSocialCanQuoteProperty() *GoToSocialCanQuoteProperty { - return &GoToSocialCanQuoteProperty{alias: ""} -} - -// AppendGoToSocialCanQuote appends a CanQuote value to the back of a list of the -// property "canQuote". Invalidates iterators that are traversing using Prev. -func (this *GoToSocialCanQuoteProperty) AppendGoToSocialCanQuote(v vocab.GoToSocialCanQuote) { - this.properties = append(this.properties, &GoToSocialCanQuotePropertyIterator{ - alias: this.alias, - gotosocialCanQuoteMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "canQuote" -func (this *GoToSocialCanQuoteProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialCanQuotePropertyIterator{ - 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 "canQuote". 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 *GoToSocialCanQuoteProperty) AppendType(t vocab.Type) error { - n := &GoToSocialCanQuotePropertyIterator{ - 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 GoToSocialCanQuoteProperty) At(index int) vocab.GoToSocialCanQuotePropertyIterator { - 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 GoToSocialCanQuoteProperty) Begin() vocab.GoToSocialCanQuotePropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialCanQuoteProperty) 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 GoToSocialCanQuoteProperty) End() vocab.GoToSocialCanQuotePropertyIterator { - return nil -} - -// InsertGoToSocialCanQuote inserts a CanQuote value at the specified index for a -// property "canQuote". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *GoToSocialCanQuoteProperty) InsertGoToSocialCanQuote(idx int, v vocab.GoToSocialCanQuote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialCanQuotePropertyIterator{ - alias: this.alias, - gotosocialCanQuoteMember: 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 "canQuote". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *GoToSocialCanQuoteProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialCanQuotePropertyIterator{ - 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 "canQuote". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *GoToSocialCanQuoteProperty) InsertType(idx int, t vocab.Type) error { - n := &GoToSocialCanQuotePropertyIterator{ - 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 GoToSocialCanQuoteProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialCanQuoteProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "canQuote" property. -func (this GoToSocialCanQuoteProperty) 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 GoToSocialCanQuoteProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this GoToSocialCanQuoteProperty) LessThan(o vocab.GoToSocialCanQuoteProperty) 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 ("canQuote") with any alias. -func (this GoToSocialCanQuoteProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "canQuote" - } else { - return "canQuote" - } -} - -// PrependGoToSocialCanQuote prepends a CanQuote value to the front of a list of -// the property "canQuote". Invalidates all iterators. -func (this *GoToSocialCanQuoteProperty) PrependGoToSocialCanQuote(v vocab.GoToSocialCanQuote) { - this.properties = append([]*GoToSocialCanQuotePropertyIterator{{ - alias: this.alias, - gotosocialCanQuoteMember: 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 -// "canQuote". -func (this *GoToSocialCanQuoteProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialCanQuotePropertyIterator{{ - 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 "canQuote". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *GoToSocialCanQuoteProperty) PrependType(t vocab.Type) error { - n := &GoToSocialCanQuotePropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*GoToSocialCanQuotePropertyIterator{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 -// "canQuote", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *GoToSocialCanQuoteProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialCanQuotePropertyIterator{} - 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 GoToSocialCanQuoteProperty) 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 CanQuote value to be at the specified index for the property -// "canQuote". Panics if the index is out of bounds. Invalidates all iterators. -func (this *GoToSocialCanQuoteProperty) Set(idx int, v vocab.GoToSocialCanQuote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialCanQuotePropertyIterator{ - alias: this.alias, - gotosocialCanQuoteMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "canQuote". Panics if the index is out of bounds. -func (this *GoToSocialCanQuoteProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialCanQuotePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "canQuote". 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 *GoToSocialCanQuoteProperty) SetType(idx int, t vocab.Type) error { - n := &GoToSocialCanQuotePropertyIterator{ - 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 "canQuote" property. -func (this GoToSocialCanQuoteProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_doc.go deleted file mode 100644 index 0037c92ae..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertycanreply contains the implementation for the canReply 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 propertycanreply diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go deleted file mode 100644 index 0059bf5ea..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycanreply - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCanReplyGoToSocial returns the deserialization method for - // the "GoToSocialCanReply" non-functional property in the vocabulary - // "GoToSocial" - DeserializeCanReplyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanReply, 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go deleted file mode 100644 index cf6cda87c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply/gen_property_gotosocial_canReply.go +++ /dev/null @@ -1,618 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycanreply - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialCanReplyPropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type GoToSocialCanReplyPropertyIterator struct { - gotosocialCanReplyMember vocab.GoToSocialCanReply - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.GoToSocialCanReplyProperty -} - -// NewGoToSocialCanReplyPropertyIterator creates a new GoToSocialCanReply property. -func NewGoToSocialCanReplyPropertyIterator() *GoToSocialCanReplyPropertyIterator { - return &GoToSocialCanReplyPropertyIterator{alias: ""} -} - -// deserializeGoToSocialCanReplyPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeGoToSocialCanReplyPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialCanReplyPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &GoToSocialCanReplyPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCanReplyGoToSocial()(m, aliasMap); err == nil { - this := &GoToSocialCanReplyPropertyIterator{ - alias: alias, - gotosocialCanReplyMember: v, - } - return this, nil - } - } - this := &GoToSocialCanReplyPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsGoToSocialCanReply returns -// false, Get will return any arbitrary value. -func (this GoToSocialCanReplyPropertyIterator) Get() vocab.GoToSocialCanReply { - return this.gotosocialCanReplyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this GoToSocialCanReplyPropertyIterator) 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 GoToSocialCanReplyPropertyIterator) GetType() vocab.Type { - if this.IsGoToSocialCanReply() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialCanReplyPropertyIterator) HasAny() bool { - return this.IsGoToSocialCanReply() || this.iri != nil -} - -// IsGoToSocialCanReply returns true if this property is set and not an IRI. -func (this GoToSocialCanReplyPropertyIterator) IsGoToSocialCanReply() bool { - return this.gotosocialCanReplyMember != nil -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialCanReplyPropertyIterator) 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 GoToSocialCanReplyPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - if this.IsGoToSocialCanReply() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialCanReplyPropertyIterator) KindIndex() int { - if this.IsGoToSocialCanReply() { - 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 GoToSocialCanReplyPropertyIterator) LessThan(o vocab.GoToSocialCanReplyPropertyIterator) 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.IsGoToSocialCanReply() && !o.IsGoToSocialCanReply() { - // Both are unknowns. - return false - } else if this.IsGoToSocialCanReply() && !o.IsGoToSocialCanReply() { - // Values are always greater than unknown values. - return false - } else if !this.IsGoToSocialCanReply() && o.IsGoToSocialCanReply() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "GoToSocialCanReply". -func (this GoToSocialCanReplyPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialCanReply" - } else { - return "GoToSocialCanReply" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialCanReplyPropertyIterator) Next() vocab.GoToSocialCanReplyPropertyIterator { - 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 GoToSocialCanReplyPropertyIterator) Prev() vocab.GoToSocialCanReplyPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsGoToSocialCanReply afterwards -// will return true. -func (this *GoToSocialCanReplyPropertyIterator) Set(v vocab.GoToSocialCanReply) { - this.clear() - this.gotosocialCanReplyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialCanReplyPropertyIterator) 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 *GoToSocialCanReplyPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.GoToSocialCanReply); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on GoToSocialCanReply property: %T", t) -} - -// clear ensures no value of this property is set. Calling IsGoToSocialCanReply -// afterwards will return false. -func (this *GoToSocialCanReplyPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.gotosocialCanReplyMember = 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 GoToSocialCanReplyPropertyIterator) serialize() (interface{}, error) { - if this.IsGoToSocialCanReply() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// GoToSocialCanReplyProperty is the non-functional property "canReply". It is -// permitted to have one or more values, and of different value types. -type GoToSocialCanReplyProperty struct { - properties []*GoToSocialCanReplyPropertyIterator - alias string -} - -// DeserializeCanReplyProperty creates a "canReply" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeCanReplyProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialCanReplyProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "canReply" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "canReply") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialCanReplyProperty{ - alias: alias, - properties: []*GoToSocialCanReplyPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialCanReplyPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialCanReplyPropertyIterator(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 -} - -// NewGoToSocialCanReplyProperty creates a new canReply property. -func NewGoToSocialCanReplyProperty() *GoToSocialCanReplyProperty { - return &GoToSocialCanReplyProperty{alias: ""} -} - -// AppendGoToSocialCanReply appends a CanReply value to the back of a list of the -// property "canReply". Invalidates iterators that are traversing using Prev. -func (this *GoToSocialCanReplyProperty) AppendGoToSocialCanReply(v vocab.GoToSocialCanReply) { - this.properties = append(this.properties, &GoToSocialCanReplyPropertyIterator{ - alias: this.alias, - gotosocialCanReplyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "canReply" -func (this *GoToSocialCanReplyProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialCanReplyPropertyIterator{ - 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 "canReply". 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 *GoToSocialCanReplyProperty) AppendType(t vocab.Type) error { - n := &GoToSocialCanReplyPropertyIterator{ - 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 GoToSocialCanReplyProperty) At(index int) vocab.GoToSocialCanReplyPropertyIterator { - 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 GoToSocialCanReplyProperty) Begin() vocab.GoToSocialCanReplyPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialCanReplyProperty) 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 GoToSocialCanReplyProperty) End() vocab.GoToSocialCanReplyPropertyIterator { - return nil -} - -// InsertGoToSocialCanReply inserts a CanReply value at the specified index for a -// property "canReply". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *GoToSocialCanReplyProperty) InsertGoToSocialCanReply(idx int, v vocab.GoToSocialCanReply) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialCanReplyPropertyIterator{ - alias: this.alias, - gotosocialCanReplyMember: 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 "canReply". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *GoToSocialCanReplyProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialCanReplyPropertyIterator{ - 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 "canReply". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *GoToSocialCanReplyProperty) InsertType(idx int, t vocab.Type) error { - n := &GoToSocialCanReplyPropertyIterator{ - 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 GoToSocialCanReplyProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialCanReplyProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "canReply" property. -func (this GoToSocialCanReplyProperty) 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 GoToSocialCanReplyProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this GoToSocialCanReplyProperty) LessThan(o vocab.GoToSocialCanReplyProperty) 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 ("canReply") with any alias. -func (this GoToSocialCanReplyProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "canReply" - } else { - return "canReply" - } -} - -// PrependGoToSocialCanReply prepends a CanReply value to the front of a list of -// the property "canReply". Invalidates all iterators. -func (this *GoToSocialCanReplyProperty) PrependGoToSocialCanReply(v vocab.GoToSocialCanReply) { - this.properties = append([]*GoToSocialCanReplyPropertyIterator{{ - alias: this.alias, - gotosocialCanReplyMember: 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 -// "canReply". -func (this *GoToSocialCanReplyProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialCanReplyPropertyIterator{{ - 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 "canReply". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *GoToSocialCanReplyProperty) PrependType(t vocab.Type) error { - n := &GoToSocialCanReplyPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*GoToSocialCanReplyPropertyIterator{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 -// "canReply", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *GoToSocialCanReplyProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialCanReplyPropertyIterator{} - 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 GoToSocialCanReplyProperty) 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 CanReply value to be at the specified index for the property -// "canReply". Panics if the index is out of bounds. Invalidates all iterators. -func (this *GoToSocialCanReplyProperty) Set(idx int, v vocab.GoToSocialCanReply) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialCanReplyPropertyIterator{ - alias: this.alias, - gotosocialCanReplyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "canReply". Panics if the index is out of bounds. -func (this *GoToSocialCanReplyProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialCanReplyPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "canReply". 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 *GoToSocialCanReplyProperty) SetType(idx int, t vocab.Type) error { - n := &GoToSocialCanReplyPropertyIterator{ - 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 "canReply" property. -func (this GoToSocialCanReplyProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go deleted file mode 100644 index 742c63349..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyinteractingobject contains the implementation for the -// interactingObject 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 propertyinteractingobject diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go deleted file mode 100644 index 20cb4d776..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinteractingobject - -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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go deleted file mode 100644 index 350547631..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject/gen_property_gotosocial_interactingObject.go +++ /dev/null @@ -1,511 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinteractingobject - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialInteractingObjectPropertyIterator is an iterator for a property. It -// is permitted to be a single nilable value type. -type GoToSocialInteractingObjectPropertyIterator struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string - myIdx int - parent vocab.GoToSocialInteractingObjectProperty -} - -// NewGoToSocialInteractingObjectPropertyIterator creates a new -// GoToSocialInteractingObject property. -func NewGoToSocialInteractingObjectPropertyIterator() *GoToSocialInteractingObjectPropertyIterator { - return &GoToSocialInteractingObjectPropertyIterator{alias: ""} -} - -// deserializeGoToSocialInteractingObjectPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeGoToSocialInteractingObjectPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialInteractingObjectPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &GoToSocialInteractingObjectPropertyIterator{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &GoToSocialInteractingObjectPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this GoToSocialInteractingObjectPropertyIterator) 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 GoToSocialInteractingObjectPropertyIterator) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialInteractingObjectPropertyIterator) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialInteractingObjectPropertyIterator) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this GoToSocialInteractingObjectPropertyIterator) 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 GoToSocialInteractingObjectPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialInteractingObjectPropertyIterator) 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 GoToSocialInteractingObjectPropertyIterator) LessThan(o vocab.GoToSocialInteractingObjectPropertyIterator) 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: "GoToSocialInteractingObject". -func (this GoToSocialInteractingObjectPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialInteractingObject" - } else { - return "GoToSocialInteractingObject" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialInteractingObjectPropertyIterator) Next() vocab.GoToSocialInteractingObjectPropertyIterator { - 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 GoToSocialInteractingObjectPropertyIterator) Prev() vocab.GoToSocialInteractingObjectPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *GoToSocialInteractingObjectPropertyIterator) Set(v *url.URL) { - this.clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialInteractingObjectPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.Set(v) -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *GoToSocialInteractingObjectPropertyIterator) clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = 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 GoToSocialInteractingObjectPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// GoToSocialInteractingObjectProperty is the non-functional property -// "interactingObject". It is permitted to have one or more values, and of -// different value types. -type GoToSocialInteractingObjectProperty struct { - properties []*GoToSocialInteractingObjectPropertyIterator - alias string -} - -// DeserializeInteractingObjectProperty creates a "interactingObject" property -// from an interface representation that has been unmarshalled from a text or -// binary format. -func DeserializeInteractingObjectProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "interactingObject" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "interactingObject") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialInteractingObjectProperty{ - alias: alias, - properties: []*GoToSocialInteractingObjectPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialInteractingObjectPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialInteractingObjectPropertyIterator(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 -} - -// NewGoToSocialInteractingObjectProperty creates a new interactingObject property. -func NewGoToSocialInteractingObjectProperty() *GoToSocialInteractingObjectProperty { - return &GoToSocialInteractingObjectProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "interactingObject" -func (this *GoToSocialInteractingObjectProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialInteractingObjectPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the -// property "interactingObject". Invalidates iterators that are traversing -// using Prev. -func (this *GoToSocialInteractingObjectProperty) AppendXMLSchemaAnyURI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialInteractingObjectPropertyIterator{ - 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 GoToSocialInteractingObjectProperty) At(index int) vocab.GoToSocialInteractingObjectPropertyIterator { - 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 GoToSocialInteractingObjectProperty) Begin() vocab.GoToSocialInteractingObjectPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialInteractingObjectProperty) 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 GoToSocialInteractingObjectProperty) End() vocab.GoToSocialInteractingObjectPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property -// "interactingObject". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *GoToSocialInteractingObjectProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialInteractingObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a -// property "interactingObject". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *GoToSocialInteractingObjectProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialInteractingObjectPropertyIterator{ - 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 GoToSocialInteractingObjectProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialInteractingObjectProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "interactingObject" -// property. -func (this GoToSocialInteractingObjectProperty) 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 GoToSocialInteractingObjectProperty) 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 anyuri.LessAnyURI(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 GoToSocialInteractingObjectProperty) LessThan(o vocab.GoToSocialInteractingObjectProperty) 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 ("interactingObject") with any alias. -func (this GoToSocialInteractingObjectProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "interactingObject" - } else { - return "interactingObject" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "interactingObject". -func (this *GoToSocialInteractingObjectProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialInteractingObjectPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the -// property "interactingObject". Invalidates all iterators. -func (this *GoToSocialInteractingObjectProperty) PrependXMLSchemaAnyURI(v *url.URL) { - this.properties = append([]*GoToSocialInteractingObjectPropertyIterator{{ - 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 -// "interactingObject", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *GoToSocialInteractingObjectProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialInteractingObjectPropertyIterator{} - 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 GoToSocialInteractingObjectProperty) 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 anyURI value to be at the specified index for the property -// "interactingObject". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *GoToSocialInteractingObjectProperty) Set(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialInteractingObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "interactingObject". Panics if the index is out of bounds. -func (this *GoToSocialInteractingObjectProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialInteractingObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// Swap swaps the location of values at two indices for the "interactingObject" -// property. -func (this GoToSocialInteractingObjectProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go deleted file mode 100644 index a5ccea8ad..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyinteractionpolicy contains the implementation for the -// interactionPolicy 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 propertyinteractionpolicy diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go deleted file mode 100644 index 9305232c6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinteractionpolicy - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeInteractionPolicyGoToSocial returns the deserialization - // method for the "GoToSocialInteractionPolicy" non-functional - // property in the vocabulary "GoToSocial" - DeserializeInteractionPolicyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicy, 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go deleted file mode 100644 index daada41e1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy/gen_property_gotosocial_interactionPolicy.go +++ /dev/null @@ -1,630 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinteractionpolicy - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialInteractionPolicyPropertyIterator is an iterator for a property. It -// is permitted to be a single nilable value type. -type GoToSocialInteractionPolicyPropertyIterator struct { - gotosocialInteractionPolicyMember vocab.GoToSocialInteractionPolicy - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.GoToSocialInteractionPolicyProperty -} - -// NewGoToSocialInteractionPolicyPropertyIterator creates a new -// GoToSocialInteractionPolicy property. -func NewGoToSocialInteractionPolicyPropertyIterator() *GoToSocialInteractionPolicyPropertyIterator { - return &GoToSocialInteractionPolicyPropertyIterator{alias: ""} -} - -// deserializeGoToSocialInteractionPolicyPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeGoToSocialInteractionPolicyPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialInteractionPolicyPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &GoToSocialInteractionPolicyPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeInteractionPolicyGoToSocial()(m, aliasMap); err == nil { - this := &GoToSocialInteractionPolicyPropertyIterator{ - alias: alias, - gotosocialInteractionPolicyMember: v, - } - return this, nil - } - } - this := &GoToSocialInteractionPolicyPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsGoToSocialInteractionPolicy -// returns false, Get will return any arbitrary value. -func (this GoToSocialInteractionPolicyPropertyIterator) Get() vocab.GoToSocialInteractionPolicy { - return this.gotosocialInteractionPolicyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this GoToSocialInteractionPolicyPropertyIterator) 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 GoToSocialInteractionPolicyPropertyIterator) GetType() vocab.Type { - if this.IsGoToSocialInteractionPolicy() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialInteractionPolicyPropertyIterator) HasAny() bool { - return this.IsGoToSocialInteractionPolicy() || this.iri != nil -} - -// IsGoToSocialInteractionPolicy returns true if this property is set and not an -// IRI. -func (this GoToSocialInteractionPolicyPropertyIterator) IsGoToSocialInteractionPolicy() bool { - return this.gotosocialInteractionPolicyMember != nil -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialInteractionPolicyPropertyIterator) 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 GoToSocialInteractionPolicyPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - if this.IsGoToSocialInteractionPolicy() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialInteractionPolicyPropertyIterator) KindIndex() int { - if this.IsGoToSocialInteractionPolicy() { - 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 GoToSocialInteractionPolicyPropertyIterator) LessThan(o vocab.GoToSocialInteractionPolicyPropertyIterator) 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.IsGoToSocialInteractionPolicy() && !o.IsGoToSocialInteractionPolicy() { - // Both are unknowns. - return false - } else if this.IsGoToSocialInteractionPolicy() && !o.IsGoToSocialInteractionPolicy() { - // Values are always greater than unknown values. - return false - } else if !this.IsGoToSocialInteractionPolicy() && o.IsGoToSocialInteractionPolicy() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "GoToSocialInteractionPolicy". -func (this GoToSocialInteractionPolicyPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialInteractionPolicy" - } else { - return "GoToSocialInteractionPolicy" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialInteractionPolicyPropertyIterator) Next() vocab.GoToSocialInteractionPolicyPropertyIterator { - 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 GoToSocialInteractionPolicyPropertyIterator) Prev() vocab.GoToSocialInteractionPolicyPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsGoToSocialInteractionPolicy -// afterwards will return true. -func (this *GoToSocialInteractionPolicyPropertyIterator) Set(v vocab.GoToSocialInteractionPolicy) { - this.clear() - this.gotosocialInteractionPolicyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialInteractionPolicyPropertyIterator) 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 *GoToSocialInteractionPolicyPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.GoToSocialInteractionPolicy); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on GoToSocialInteractionPolicy property: %T", t) -} - -// clear ensures no value of this property is set. Calling -// IsGoToSocialInteractionPolicy afterwards will return false. -func (this *GoToSocialInteractionPolicyPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.gotosocialInteractionPolicyMember = 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 GoToSocialInteractionPolicyPropertyIterator) serialize() (interface{}, error) { - if this.IsGoToSocialInteractionPolicy() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// GoToSocialInteractionPolicyProperty is the non-functional property -// "interactionPolicy". It is permitted to have one or more values, and of -// different value types. -type GoToSocialInteractionPolicyProperty struct { - properties []*GoToSocialInteractionPolicyPropertyIterator - alias string -} - -// DeserializeInteractionPolicyProperty creates a "interactionPolicy" property -// from an interface representation that has been unmarshalled from a text or -// binary format. -func DeserializeInteractionPolicyProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "interactionPolicy" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "interactionPolicy") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialInteractionPolicyProperty{ - alias: alias, - properties: []*GoToSocialInteractionPolicyPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialInteractionPolicyPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialInteractionPolicyPropertyIterator(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 -} - -// NewGoToSocialInteractionPolicyProperty creates a new interactionPolicy property. -func NewGoToSocialInteractionPolicyProperty() *GoToSocialInteractionPolicyProperty { - return &GoToSocialInteractionPolicyProperty{alias: ""} -} - -// AppendGoToSocialInteractionPolicy appends a InteractionPolicy value to the back -// of a list of the property "interactionPolicy". Invalidates iterators that -// are traversing using Prev. -func (this *GoToSocialInteractionPolicyProperty) AppendGoToSocialInteractionPolicy(v vocab.GoToSocialInteractionPolicy) { - this.properties = append(this.properties, &GoToSocialInteractionPolicyPropertyIterator{ - alias: this.alias, - gotosocialInteractionPolicyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "interactionPolicy" -func (this *GoToSocialInteractionPolicyProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialInteractionPolicyPropertyIterator{ - 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 "interactionPolicy". 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 *GoToSocialInteractionPolicyProperty) AppendType(t vocab.Type) error { - n := &GoToSocialInteractionPolicyPropertyIterator{ - 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 GoToSocialInteractionPolicyProperty) At(index int) vocab.GoToSocialInteractionPolicyPropertyIterator { - 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 GoToSocialInteractionPolicyProperty) Begin() vocab.GoToSocialInteractionPolicyPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialInteractionPolicyProperty) 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 GoToSocialInteractionPolicyProperty) End() vocab.GoToSocialInteractionPolicyPropertyIterator { - return nil -} - -// InsertGoToSocialInteractionPolicy inserts a InteractionPolicy value at the -// specified index for a property "interactionPolicy". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *GoToSocialInteractionPolicyProperty) InsertGoToSocialInteractionPolicy(idx int, v vocab.GoToSocialInteractionPolicy) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialInteractionPolicyPropertyIterator{ - alias: this.alias, - gotosocialInteractionPolicyMember: 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 -// "interactionPolicy". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *GoToSocialInteractionPolicyProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialInteractionPolicyPropertyIterator{ - 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 "interactionPolicy". Invalidates all iterators. Returns an error -// if the type is not a valid one to set for this property. -func (this *GoToSocialInteractionPolicyProperty) InsertType(idx int, t vocab.Type) error { - n := &GoToSocialInteractionPolicyPropertyIterator{ - 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 GoToSocialInteractionPolicyProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialInteractionPolicyProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "interactionPolicy" -// property. -func (this GoToSocialInteractionPolicyProperty) 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 GoToSocialInteractionPolicyProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this GoToSocialInteractionPolicyProperty) LessThan(o vocab.GoToSocialInteractionPolicyProperty) 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 ("interactionPolicy") with any alias. -func (this GoToSocialInteractionPolicyProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "interactionPolicy" - } else { - return "interactionPolicy" - } -} - -// PrependGoToSocialInteractionPolicy prepends a InteractionPolicy value to the -// front of a list of the property "interactionPolicy". Invalidates all -// iterators. -func (this *GoToSocialInteractionPolicyProperty) PrependGoToSocialInteractionPolicy(v vocab.GoToSocialInteractionPolicy) { - this.properties = append([]*GoToSocialInteractionPolicyPropertyIterator{{ - alias: this.alias, - gotosocialInteractionPolicyMember: 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 -// "interactionPolicy". -func (this *GoToSocialInteractionPolicyProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialInteractionPolicyPropertyIterator{{ - 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 "interactionPolicy". Invalidates all iterators. Returns an error -// if the type is not a valid one to set for this property. -func (this *GoToSocialInteractionPolicyProperty) PrependType(t vocab.Type) error { - n := &GoToSocialInteractionPolicyPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*GoToSocialInteractionPolicyPropertyIterator{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 -// "interactionPolicy", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *GoToSocialInteractionPolicyProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialInteractionPolicyPropertyIterator{} - 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 GoToSocialInteractionPolicyProperty) 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 InteractionPolicy value to be at the specified index for the -// property "interactionPolicy". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *GoToSocialInteractionPolicyProperty) Set(idx int, v vocab.GoToSocialInteractionPolicy) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialInteractionPolicyPropertyIterator{ - alias: this.alias, - gotosocialInteractionPolicyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "interactionPolicy". Panics if the index is out of bounds. -func (this *GoToSocialInteractionPolicyProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialInteractionPolicyPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "interactionPolicy". 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 *GoToSocialInteractionPolicyProperty) SetType(idx int, t vocab.Type) error { - n := &GoToSocialInteractionPolicyPropertyIterator{ - 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 "interactionPolicy" -// property. -func (this GoToSocialInteractionPolicyProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go deleted file mode 100644 index b7633ec1a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyinteractiontarget contains the implementation for the -// interactionTarget 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 propertyinteractiontarget diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go deleted file mode 100644 index c957dc08e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinteractiontarget - -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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go deleted file mode 100644 index 91e51a073..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget/gen_property_gotosocial_interactionTarget.go +++ /dev/null @@ -1,511 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinteractiontarget - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialInteractionTargetPropertyIterator is an iterator for a property. It -// is permitted to be a single nilable value type. -type GoToSocialInteractionTargetPropertyIterator struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string - myIdx int - parent vocab.GoToSocialInteractionTargetProperty -} - -// NewGoToSocialInteractionTargetPropertyIterator creates a new -// GoToSocialInteractionTarget property. -func NewGoToSocialInteractionTargetPropertyIterator() *GoToSocialInteractionTargetPropertyIterator { - return &GoToSocialInteractionTargetPropertyIterator{alias: ""} -} - -// deserializeGoToSocialInteractionTargetPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeGoToSocialInteractionTargetPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialInteractionTargetPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &GoToSocialInteractionTargetPropertyIterator{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &GoToSocialInteractionTargetPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this GoToSocialInteractionTargetPropertyIterator) 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 GoToSocialInteractionTargetPropertyIterator) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialInteractionTargetPropertyIterator) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialInteractionTargetPropertyIterator) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this GoToSocialInteractionTargetPropertyIterator) 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 GoToSocialInteractionTargetPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialInteractionTargetPropertyIterator) 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 GoToSocialInteractionTargetPropertyIterator) LessThan(o vocab.GoToSocialInteractionTargetPropertyIterator) 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: "GoToSocialInteractionTarget". -func (this GoToSocialInteractionTargetPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialInteractionTarget" - } else { - return "GoToSocialInteractionTarget" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialInteractionTargetPropertyIterator) Next() vocab.GoToSocialInteractionTargetPropertyIterator { - 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 GoToSocialInteractionTargetPropertyIterator) Prev() vocab.GoToSocialInteractionTargetPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *GoToSocialInteractionTargetPropertyIterator) Set(v *url.URL) { - this.clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialInteractionTargetPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.Set(v) -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *GoToSocialInteractionTargetPropertyIterator) clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = 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 GoToSocialInteractionTargetPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// GoToSocialInteractionTargetProperty is the non-functional property -// "interactionTarget". It is permitted to have one or more values, and of -// different value types. -type GoToSocialInteractionTargetProperty struct { - properties []*GoToSocialInteractionTargetPropertyIterator - alias string -} - -// DeserializeInteractionTargetProperty creates a "interactionTarget" property -// from an interface representation that has been unmarshalled from a text or -// binary format. -func DeserializeInteractionTargetProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialInteractionTargetProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "interactionTarget" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "interactionTarget") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialInteractionTargetProperty{ - alias: alias, - properties: []*GoToSocialInteractionTargetPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialInteractionTargetPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialInteractionTargetPropertyIterator(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 -} - -// NewGoToSocialInteractionTargetProperty creates a new interactionTarget property. -func NewGoToSocialInteractionTargetProperty() *GoToSocialInteractionTargetProperty { - return &GoToSocialInteractionTargetProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "interactionTarget" -func (this *GoToSocialInteractionTargetProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialInteractionTargetPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the -// property "interactionTarget". Invalidates iterators that are traversing -// using Prev. -func (this *GoToSocialInteractionTargetProperty) AppendXMLSchemaAnyURI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialInteractionTargetPropertyIterator{ - 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 GoToSocialInteractionTargetProperty) At(index int) vocab.GoToSocialInteractionTargetPropertyIterator { - 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 GoToSocialInteractionTargetProperty) Begin() vocab.GoToSocialInteractionTargetPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialInteractionTargetProperty) 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 GoToSocialInteractionTargetProperty) End() vocab.GoToSocialInteractionTargetPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property -// "interactionTarget". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *GoToSocialInteractionTargetProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialInteractionTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a -// property "interactionTarget". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *GoToSocialInteractionTargetProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialInteractionTargetPropertyIterator{ - 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 GoToSocialInteractionTargetProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialInteractionTargetProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "interactionTarget" -// property. -func (this GoToSocialInteractionTargetProperty) 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 GoToSocialInteractionTargetProperty) 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 anyuri.LessAnyURI(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 GoToSocialInteractionTargetProperty) LessThan(o vocab.GoToSocialInteractionTargetProperty) 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 ("interactionTarget") with any alias. -func (this GoToSocialInteractionTargetProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "interactionTarget" - } else { - return "interactionTarget" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "interactionTarget". -func (this *GoToSocialInteractionTargetProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialInteractionTargetPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the -// property "interactionTarget". Invalidates all iterators. -func (this *GoToSocialInteractionTargetProperty) PrependXMLSchemaAnyURI(v *url.URL) { - this.properties = append([]*GoToSocialInteractionTargetPropertyIterator{{ - 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 -// "interactionTarget", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *GoToSocialInteractionTargetProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialInteractionTargetPropertyIterator{} - 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 GoToSocialInteractionTargetProperty) 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 anyURI value to be at the specified index for the property -// "interactionTarget". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *GoToSocialInteractionTargetProperty) Set(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialInteractionTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "interactionTarget". Panics if the index is out of bounds. -func (this *GoToSocialInteractionTargetProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialInteractionTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// Swap swaps the location of values at two indices for the "interactionTarget" -// property. -func (this GoToSocialInteractionTargetProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go deleted file mode 100644 index 19ff2b245..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertymanualapproval contains the implementation for the -// manualApproval 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 propertymanualapproval diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go deleted file mode 100644 index e9ee735e2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertymanualapproval - -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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go deleted file mode 100644 index 39180fb1b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval/gen_property_gotosocial_manualApproval.go +++ /dev/null @@ -1,510 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertymanualapproval - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// GoToSocialManualApprovalPropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type GoToSocialManualApprovalPropertyIterator struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string - myIdx int - parent vocab.GoToSocialManualApprovalProperty -} - -// NewGoToSocialManualApprovalPropertyIterator creates a new -// GoToSocialManualApproval property. -func NewGoToSocialManualApprovalPropertyIterator() *GoToSocialManualApprovalPropertyIterator { - return &GoToSocialManualApprovalPropertyIterator{alias: ""} -} - -// deserializeGoToSocialManualApprovalPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeGoToSocialManualApprovalPropertyIterator(i interface{}, aliasMap map[string]string) (*GoToSocialManualApprovalPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &GoToSocialManualApprovalPropertyIterator{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &GoToSocialManualApprovalPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this GoToSocialManualApprovalPropertyIterator) 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 GoToSocialManualApprovalPropertyIterator) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this GoToSocialManualApprovalPropertyIterator) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this GoToSocialManualApprovalPropertyIterator) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this GoToSocialManualApprovalPropertyIterator) 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 GoToSocialManualApprovalPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this GoToSocialManualApprovalPropertyIterator) 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 GoToSocialManualApprovalPropertyIterator) LessThan(o vocab.GoToSocialManualApprovalPropertyIterator) 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: "GoToSocialManualApproval". -func (this GoToSocialManualApprovalPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "GoToSocialManualApproval" - } else { - return "GoToSocialManualApproval" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this GoToSocialManualApprovalPropertyIterator) Next() vocab.GoToSocialManualApprovalPropertyIterator { - 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 GoToSocialManualApprovalPropertyIterator) Prev() vocab.GoToSocialManualApprovalPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *GoToSocialManualApprovalPropertyIterator) Set(v *url.URL) { - this.clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *GoToSocialManualApprovalPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.Set(v) -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *GoToSocialManualApprovalPropertyIterator) clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = 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 GoToSocialManualApprovalPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// GoToSocialManualApprovalProperty is the non-functional property -// "manualApproval". It is permitted to have one or more values, and of -// different value types. -type GoToSocialManualApprovalProperty struct { - properties []*GoToSocialManualApprovalPropertyIterator - alias string -} - -// DeserializeManualApprovalProperty creates a "manualApproval" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeManualApprovalProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialManualApprovalProperty, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - propName := "manualApproval" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "manualApproval") - } - i, ok := m[propName] - - if ok { - this := &GoToSocialManualApprovalProperty{ - alias: alias, - properties: []*GoToSocialManualApprovalPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeGoToSocialManualApprovalPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeGoToSocialManualApprovalPropertyIterator(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 -} - -// NewGoToSocialManualApprovalProperty creates a new manualApproval property. -func NewGoToSocialManualApprovalProperty() *GoToSocialManualApprovalProperty { - return &GoToSocialManualApprovalProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "manualApproval" -func (this *GoToSocialManualApprovalProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialManualApprovalPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the -// property "manualApproval". Invalidates iterators that are traversing using -// Prev. -func (this *GoToSocialManualApprovalProperty) AppendXMLSchemaAnyURI(v *url.URL) { - this.properties = append(this.properties, &GoToSocialManualApprovalPropertyIterator{ - 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 GoToSocialManualApprovalProperty) At(index int) vocab.GoToSocialManualApprovalPropertyIterator { - 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 GoToSocialManualApprovalProperty) Begin() vocab.GoToSocialManualApprovalPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this GoToSocialManualApprovalProperty) 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 GoToSocialManualApprovalProperty) End() vocab.GoToSocialManualApprovalPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property -// "manualApproval". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *GoToSocialManualApprovalProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialManualApprovalPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a -// property "manualApproval". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *GoToSocialManualApprovalProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &GoToSocialManualApprovalPropertyIterator{ - 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 GoToSocialManualApprovalProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this GoToSocialManualApprovalProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "manualApproval" property. -func (this GoToSocialManualApprovalProperty) 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 GoToSocialManualApprovalProperty) 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 anyuri.LessAnyURI(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 GoToSocialManualApprovalProperty) LessThan(o vocab.GoToSocialManualApprovalProperty) 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 ("manualApproval") with any alias. -func (this GoToSocialManualApprovalProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "manualApproval" - } else { - return "manualApproval" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "manualApproval". -func (this *GoToSocialManualApprovalProperty) PrependIRI(v *url.URL) { - this.properties = append([]*GoToSocialManualApprovalPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the -// property "manualApproval". Invalidates all iterators. -func (this *GoToSocialManualApprovalProperty) PrependXMLSchemaAnyURI(v *url.URL) { - this.properties = append([]*GoToSocialManualApprovalPropertyIterator{{ - 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 -// "manualApproval", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *GoToSocialManualApprovalProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &GoToSocialManualApprovalPropertyIterator{} - 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 GoToSocialManualApprovalProperty) 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 anyURI value to be at the specified index for the property -// "manualApproval". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *GoToSocialManualApprovalProperty) Set(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialManualApprovalPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "manualApproval". Panics if the index is out of bounds. -func (this *GoToSocialManualApprovalProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &GoToSocialManualApprovalPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// Swap swaps the location of values at two indices for the "manualApproval" -// property. -func (this GoToSocialManualApprovalProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go deleted file mode 100644 index 2c764f2e0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeannounceapproval contains the implementation for the -// AnnounceApproval 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 typeannounceapproval diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go deleted file mode 100644 index a4a32652a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_pkg.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeannounceapproval - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go deleted file mode 100644 index 5fa2f5921..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval/gen_type_gotosocial_announceapproval.go +++ /dev/null @@ -1,1641 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeannounceapproval - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -// DEPRECATED: Use `AnnounceAuthorization` instead. -type GoToSocialAnnounceApproval 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// AnnounceApprovalIsDisjointWith returns true if the other provided type is -// disjoint with the AnnounceApproval type. -func AnnounceApprovalIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// AnnounceApprovalIsExtendedBy returns true if the other provided type extends -// from the AnnounceApproval type. Note that it returns false if the types are -// the same; see the "IsOrExtendsAnnounceApproval" variant instead. -func AnnounceApprovalIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeAnnounceApproval creates a AnnounceApproval from a map -// representation that has been unmarshalled from a text or binary format. -func DeserializeAnnounceApproval(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialAnnounceApproval, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &GoToSocialAnnounceApproval{ - 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 != "AnnounceApproval" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "AnnounceApproval", 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) == "AnnounceApproval" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "AnnounceApproval") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GoToSocialAnnounceApprovalExtends returns true if the AnnounceApproval type -// extends from the other type. -func GoToSocialAnnounceApprovalExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsAnnounceApproval returns true if the other provided type is the -// AnnounceApproval type or extends from the AnnounceApproval type. -func IsOrExtendsAnnounceApproval(other vocab.Type) bool { - if other.GetTypeName() == "AnnounceApproval" { - return true - } - return AnnounceApprovalIsExtendedBy(other) -} - -// NewGoToSocialAnnounceApproval creates a new AnnounceApproval type -func NewGoToSocialAnnounceApproval() *GoToSocialAnnounceApproval { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("AnnounceApproval") - return &GoToSocialAnnounceApproval{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceApproval) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceApproval) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceApproval) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this GoToSocialAnnounceApproval) GetTypeName() string { - return "AnnounceApproval" -} - -// GetUnknownProperties returns the unknown properties for the AnnounceApproval -// 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 GoToSocialAnnounceApproval) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the AnnounceApproval type extends from the other -// type. -func (this GoToSocialAnnounceApproval) IsExtending(other vocab.Type) bool { - return GoToSocialAnnounceApprovalExtends(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 GoToSocialAnnounceApproval) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 AnnounceApproval is lesser, with an arbitrary but -// stable determination. -func (this GoToSocialAnnounceApproval) LessThan(o vocab.GoToSocialAnnounceApproval) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 GoToSocialAnnounceApproval) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "AnnounceApproval" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "AnnounceApproval" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialAnnounceApproval) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *GoToSocialAnnounceApproval) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialAnnounceApproval) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *GoToSocialAnnounceApproval) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialAnnounceApproval) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialAnnounceApproval) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go deleted file mode 100644 index 549e0ed59..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeannounceauthorization contains the implementation for the -// AnnounceAuthorization 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 typeannounceauthorization diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go deleted file mode 100644 index f69622be6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_pkg.go +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeannounceauthorization - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeInteractingObjectPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractingObjectProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) - // DeserializeInteractionTargetPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionTargetProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go deleted file mode 100644 index 199aafba2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization/gen_type_gotosocial_announceauthorization.go +++ /dev/null @@ -1,1726 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeannounceauthorization - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -type GoToSocialAnnounceAuthorization 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 - GoToSocialInteractingObject vocab.GoToSocialInteractingObjectProperty - GoToSocialInteractionTarget vocab.GoToSocialInteractionTargetProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// AnnounceAuthorizationIsDisjointWith returns true if the other provided type is -// disjoint with the AnnounceAuthorization type. -func AnnounceAuthorizationIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// AnnounceAuthorizationIsExtendedBy returns true if the other provided type -// extends from the AnnounceAuthorization type. Note that it returns false if -// the types are the same; see the "IsOrExtendsAnnounceAuthorization" variant -// instead. -func AnnounceAuthorizationIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeAnnounceAuthorization creates a AnnounceAuthorization from a map -// representation that has been unmarshalled from a text or binary format. -func DeserializeAnnounceAuthorization(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialAnnounceAuthorization, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &GoToSocialAnnounceAuthorization{ - 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 != "AnnounceAuthorization" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "AnnounceAuthorization", 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) == "AnnounceAuthorization" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "AnnounceAuthorization") - } - // 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.DeserializeInteractingObjectPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractingObject = p - } - if p, err := mgr.DeserializeInteractionTargetPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionTarget = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "interactingObject" { - continue - } else if k == "interactionTarget" { - 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GoToSocialAnnounceAuthorizationExtends returns true if the -// AnnounceAuthorization type extends from the other type. -func GoToSocialAnnounceAuthorizationExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsAnnounceAuthorization returns true if the other provided type is the -// AnnounceAuthorization type or extends from the AnnounceAuthorization type. -func IsOrExtendsAnnounceAuthorization(other vocab.Type) bool { - if other.GetTypeName() == "AnnounceAuthorization" { - return true - } - return AnnounceAuthorizationIsExtendedBy(other) -} - -// NewGoToSocialAnnounceAuthorization creates a new AnnounceAuthorization type -func NewGoToSocialAnnounceAuthorization() *GoToSocialAnnounceAuthorization { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("AnnounceAuthorization") - return &GoToSocialAnnounceAuthorization{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceAuthorization) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetGoToSocialInteractingObject returns the "interactingObject" property if it -// exists, and nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetGoToSocialInteractingObject() vocab.GoToSocialInteractingObjectProperty { - return this.GoToSocialInteractingObject -} - -// GetGoToSocialInteractionTarget returns the "interactionTarget" property if it -// exists, and nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetGoToSocialInteractionTarget() vocab.GoToSocialInteractionTargetProperty { - return this.GoToSocialInteractionTarget -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceAuthorization) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this GoToSocialAnnounceAuthorization) GetTypeName() string { - return "AnnounceAuthorization" -} - -// GetUnknownProperties returns the unknown properties for the -// AnnounceAuthorization 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 GoToSocialAnnounceAuthorization) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the AnnounceAuthorization type extends from the -// other type. -func (this GoToSocialAnnounceAuthorization) IsExtending(other vocab.Type) bool { - return GoToSocialAnnounceAuthorizationExtends(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 GoToSocialAnnounceAuthorization) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.GoToSocialInteractingObject, m) - m = this.helperJSONLDContext(this.GoToSocialInteractionTarget, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 AnnounceAuthorization is lesser, with an arbitrary -// but stable determination. -func (this GoToSocialAnnounceAuthorization) LessThan(o vocab.GoToSocialAnnounceAuthorization) 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 "interactingObject" - if lhs, rhs := this.GoToSocialInteractingObject, o.GetGoToSocialInteractingObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "interactionTarget" - if lhs, rhs := this.GoToSocialInteractionTarget, o.GetGoToSocialInteractionTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 GoToSocialAnnounceAuthorization) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "AnnounceAuthorization" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "AnnounceAuthorization" - } - 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 "interactingObject" - if this.GoToSocialInteractingObject != nil { - if i, err := this.GoToSocialInteractingObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractingObject.Name()] = i - } - } - // Maybe serialize property "interactionTarget" - if this.GoToSocialInteractionTarget != nil { - if i, err := this.GoToSocialInteractionTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionTarget.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialAnnounceAuthorization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *GoToSocialAnnounceAuthorization) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetGoToSocialInteractingObject sets the "interactingObject" property. -func (this *GoToSocialAnnounceAuthorization) SetGoToSocialInteractingObject(i vocab.GoToSocialInteractingObjectProperty) { - this.GoToSocialInteractingObject = i -} - -// SetGoToSocialInteractionTarget sets the "interactionTarget" property. -func (this *GoToSocialAnnounceAuthorization) SetGoToSocialInteractionTarget(i vocab.GoToSocialInteractionTargetProperty) { - this.GoToSocialInteractionTarget = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialAnnounceAuthorization) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *GoToSocialAnnounceAuthorization) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialAnnounceAuthorization) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialAnnounceAuthorization) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go deleted file mode 100644 index b615c2d3d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeannouncerequest contains the implementation for the AnnounceRequest -// 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 typeannouncerequest diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go deleted file mode 100644 index 02aa92a75..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeannouncerequest - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go deleted file mode 100644 index 385186cd5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest/gen_type_gotosocial_announcerequest.go +++ /dev/null @@ -1,1850 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeannouncerequest - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -type GoToSocialAnnounceRequest 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// AnnounceRequestIsDisjointWith returns true if the other provided type is -// disjoint with the AnnounceRequest type. -func AnnounceRequestIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// AnnounceRequestIsExtendedBy returns true if the other provided type extends -// from the AnnounceRequest type. Note that it returns false if the types are -// the same; see the "IsOrExtendsAnnounceRequest" variant instead. -func AnnounceRequestIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeAnnounceRequest creates a AnnounceRequest from a map representation -// that has been unmarshalled from a text or binary format. -func DeserializeAnnounceRequest(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialAnnounceRequest, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &GoToSocialAnnounceRequest{ - 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 != "AnnounceRequest" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "AnnounceRequest", 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) == "AnnounceRequest" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "AnnounceRequest") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GoToSocialAnnounceRequestExtends returns true if the AnnounceRequest type -// extends from the other type. -func GoToSocialAnnounceRequestExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsAnnounceRequest returns true if the other provided type is the -// AnnounceRequest type or extends from the AnnounceRequest type. -func IsOrExtendsAnnounceRequest(other vocab.Type) bool { - if other.GetTypeName() == "AnnounceRequest" { - return true - } - return AnnounceRequestIsExtendedBy(other) -} - -// NewGoToSocialAnnounceRequest creates a new AnnounceRequest type -func NewGoToSocialAnnounceRequest() *GoToSocialAnnounceRequest { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("AnnounceRequest") - return &GoToSocialAnnounceRequest{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this GoToSocialAnnounceRequest) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceRequest) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this GoToSocialAnnounceRequest) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this GoToSocialAnnounceRequest) GetTypeName() string { - return "AnnounceRequest" -} - -// GetUnknownProperties returns the unknown properties for the AnnounceRequest -// 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 GoToSocialAnnounceRequest) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the AnnounceRequest type extends from the other -// type. -func (this GoToSocialAnnounceRequest) IsExtending(other vocab.Type) bool { - return GoToSocialAnnounceRequestExtends(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 GoToSocialAnnounceRequest) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 AnnounceRequest is lesser, with an arbitrary but -// stable determination. -func (this GoToSocialAnnounceRequest) LessThan(o vocab.GoToSocialAnnounceRequest) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 GoToSocialAnnounceRequest) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "AnnounceRequest" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "AnnounceRequest" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialAnnounceRequest) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *GoToSocialAnnounceRequest) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialAnnounceRequest) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *GoToSocialAnnounceRequest) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialAnnounceRequest) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialAnnounceRequest) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go deleted file mode 100644 index f145bc742..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typecanannounce contains the implementation for the CanAnnounce 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 typecanannounce diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go deleted file mode 100644 index 70fb07bc4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_pkg.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecanannounce - -import vocab "codeberg.org/superseriousbusiness/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 { - // DeserializeAlwaysPropertyGoToSocial returns the deserialization method - // for the "GoToSocialAlwaysProperty" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) - // DeserializeApprovalRequiredPropertyGoToSocial returns the - // deserialization method for the "GoToSocialApprovalRequiredProperty" - // non-functional property in the vocabulary "GoToSocial" - DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) - // DeserializeAutomaticApprovalPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialAutomaticApprovalProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, 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) - // DeserializeManualApprovalPropertyGoToSocial returns the deserialization - // method for the "GoToSocialManualApprovalProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go deleted file mode 100644 index 09d392e0a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce/gen_type_gotosocial_canannounce.go +++ /dev/null @@ -1,372 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecanannounce - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -type GoToSocialCanAnnounce struct { - GoToSocialAlways vocab.GoToSocialAlwaysProperty - GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty - GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty - JSONLDId vocab.JSONLDIdProperty - GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty - alias string - unknown map[string]interface{} -} - -// CanAnnounceIsDisjointWith returns true if the other provided type is disjoint -// with the CanAnnounce type. -func CanAnnounceIsDisjointWith(other vocab.Type) bool { - // Shortcut implementation: is not disjoint with anything. - return false -} - -// CanAnnounceIsExtendedBy returns true if the other provided type extends from -// the CanAnnounce type. Note that it returns false if the types are the same; -// see the "IsOrExtendsCanAnnounce" variant instead. -func CanAnnounceIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeCanAnnounce creates a CanAnnounce from a map representation that has -// been unmarshalled from a text or binary format. -func DeserializeCanAnnounce(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialCanAnnounce, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - this := &GoToSocialCanAnnounce{ - alias: alias, - unknown: make(map[string]interface{}), - } - - // Begin: Known property deserialization - if p, err := mgr.DeserializeAlwaysPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialAlways = p - } - if p, err := mgr.DeserializeApprovalRequiredPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovalRequired = p - } - if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialAutomaticApproval = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialManualApproval = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "always" { - continue - } else if k == "approvalRequired" { - continue - } else if k == "automaticApproval" { - continue - } else if k == "id" { - continue - } else if k == "manualApproval" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// GoToSocialCanAnnounceExtends returns true if the CanAnnounce type extends from -// the other type. -func GoToSocialCanAnnounceExtends(other vocab.Type) bool { - // Shortcut implementation: this does not extend anything. - return false -} - -// IsOrExtendsCanAnnounce returns true if the other provided type is the -// CanAnnounce type or extends from the CanAnnounce type. -func IsOrExtendsCanAnnounce(other vocab.Type) bool { - if other.GetTypeName() == "CanAnnounce" { - return true - } - return CanAnnounceIsExtendedBy(other) -} - -// NewGoToSocialCanAnnounce creates a new CanAnnounce type -func NewGoToSocialCanAnnounce() *GoToSocialCanAnnounce { - return &GoToSocialCanAnnounce{ - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetGoToSocialAlways returns the "always" property if it exists, and nil -// otherwise. -func (this GoToSocialCanAnnounce) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty { - return this.GoToSocialAlways -} - -// GetGoToSocialApprovalRequired returns the "approvalRequired" property if it -// exists, and nil otherwise. -func (this GoToSocialCanAnnounce) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty { - return this.GoToSocialApprovalRequired -} - -// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it -// exists, and nil otherwise. -func (this GoToSocialCanAnnounce) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { - return this.GoToSocialAutomaticApproval -} - -// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, -// and nil otherwise. -func (this GoToSocialCanAnnounce) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { - return this.GoToSocialManualApproval -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialCanAnnounce) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetTypeName returns the name of this type. -func (this GoToSocialCanAnnounce) GetTypeName() string { - return "CanAnnounce" -} - -// GetUnknownProperties returns the unknown properties for the CanAnnounce 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 GoToSocialCanAnnounce) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the CanAnnounce type extends from the other type. -func (this GoToSocialCanAnnounce) IsExtending(other vocab.Type) bool { - return GoToSocialCanAnnounceExtends(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 GoToSocialCanAnnounce) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.GoToSocialAlways, m) - m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) - m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) - - return m -} - -// LessThan computes if this CanAnnounce is lesser, with an arbitrary but stable -// determination. -func (this GoToSocialCanAnnounce) LessThan(o vocab.GoToSocialCanAnnounce) bool { - // Begin: Compare known properties - // Compare property "always" - if lhs, rhs := this.GoToSocialAlways, o.GetGoToSocialAlways(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "approvalRequired" - if lhs, rhs := this.GoToSocialApprovalRequired, o.GetGoToSocialApprovalRequired(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "automaticApproval" - if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "manualApproval" - if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is 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 GoToSocialCanAnnounce) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - // Begin: Serialize known properties - // Maybe serialize property "always" - if this.GoToSocialAlways != nil { - if i, err := this.GoToSocialAlways.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialAlways.Name()] = i - } - } - // Maybe serialize property "approvalRequired" - if this.GoToSocialApprovalRequired != nil { - if i, err := this.GoToSocialApprovalRequired.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovalRequired.Name()] = i - } - } - // Maybe serialize property "automaticApproval" - if this.GoToSocialAutomaticApproval != nil { - if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialAutomaticApproval.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 "manualApproval" - if this.GoToSocialManualApproval != nil { - if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialManualApproval.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 -} - -// SetGoToSocialAlways sets the "always" property. -func (this *GoToSocialCanAnnounce) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty) { - this.GoToSocialAlways = i -} - -// SetGoToSocialApprovalRequired sets the "approvalRequired" property. -func (this *GoToSocialCanAnnounce) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty) { - this.GoToSocialApprovalRequired = i -} - -// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. -func (this *GoToSocialCanAnnounce) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { - this.GoToSocialAutomaticApproval = i -} - -// SetGoToSocialManualApproval sets the "manualApproval" property. -func (this *GoToSocialCanAnnounce) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { - this.GoToSocialManualApproval = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialCanAnnounce) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialCanAnnounce) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialCanAnnounce) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_doc.go deleted file mode 100644 index c539c37d4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typecanlike contains the implementation for the CanLike 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 typecanlike diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go deleted file mode 100644 index a2baeeab0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_pkg.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecanlike - -import vocab "codeberg.org/superseriousbusiness/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 { - // DeserializeAlwaysPropertyGoToSocial returns the deserialization method - // for the "GoToSocialAlwaysProperty" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) - // DeserializeApprovalRequiredPropertyGoToSocial returns the - // deserialization method for the "GoToSocialApprovalRequiredProperty" - // non-functional property in the vocabulary "GoToSocial" - DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) - // DeserializeAutomaticApprovalPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialAutomaticApprovalProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, 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) - // DeserializeManualApprovalPropertyGoToSocial returns the deserialization - // method for the "GoToSocialManualApprovalProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go deleted file mode 100644 index e31145f3d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike/gen_type_gotosocial_canlike.go +++ /dev/null @@ -1,372 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecanlike - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -type GoToSocialCanLike struct { - GoToSocialAlways vocab.GoToSocialAlwaysProperty - GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty - GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty - JSONLDId vocab.JSONLDIdProperty - GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty - alias string - unknown map[string]interface{} -} - -// CanLikeIsDisjointWith returns true if the other provided type is disjoint with -// the CanLike type. -func CanLikeIsDisjointWith(other vocab.Type) bool { - // Shortcut implementation: is not disjoint with anything. - return false -} - -// CanLikeIsExtendedBy returns true if the other provided type extends from the -// CanLike type. Note that it returns false if the types are the same; see the -// "IsOrExtendsCanLike" variant instead. -func CanLikeIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeCanLike creates a CanLike from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeCanLike(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialCanLike, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - this := &GoToSocialCanLike{ - alias: alias, - unknown: make(map[string]interface{}), - } - - // Begin: Known property deserialization - if p, err := mgr.DeserializeAlwaysPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialAlways = p - } - if p, err := mgr.DeserializeApprovalRequiredPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovalRequired = p - } - if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialAutomaticApproval = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialManualApproval = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "always" { - continue - } else if k == "approvalRequired" { - continue - } else if k == "automaticApproval" { - continue - } else if k == "id" { - continue - } else if k == "manualApproval" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// GoToSocialCanLikeExtends returns true if the CanLike type extends from the -// other type. -func GoToSocialCanLikeExtends(other vocab.Type) bool { - // Shortcut implementation: this does not extend anything. - return false -} - -// IsOrExtendsCanLike returns true if the other provided type is the CanLike type -// or extends from the CanLike type. -func IsOrExtendsCanLike(other vocab.Type) bool { - if other.GetTypeName() == "CanLike" { - return true - } - return CanLikeIsExtendedBy(other) -} - -// NewGoToSocialCanLike creates a new CanLike type -func NewGoToSocialCanLike() *GoToSocialCanLike { - return &GoToSocialCanLike{ - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetGoToSocialAlways returns the "always" property if it exists, and nil -// otherwise. -func (this GoToSocialCanLike) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty { - return this.GoToSocialAlways -} - -// GetGoToSocialApprovalRequired returns the "approvalRequired" property if it -// exists, and nil otherwise. -func (this GoToSocialCanLike) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty { - return this.GoToSocialApprovalRequired -} - -// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it -// exists, and nil otherwise. -func (this GoToSocialCanLike) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { - return this.GoToSocialAutomaticApproval -} - -// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, -// and nil otherwise. -func (this GoToSocialCanLike) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { - return this.GoToSocialManualApproval -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialCanLike) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetTypeName returns the name of this type. -func (this GoToSocialCanLike) GetTypeName() string { - return "CanLike" -} - -// GetUnknownProperties returns the unknown properties for the CanLike 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 GoToSocialCanLike) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the CanLike type extends from the other type. -func (this GoToSocialCanLike) IsExtending(other vocab.Type) bool { - return GoToSocialCanLikeExtends(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 GoToSocialCanLike) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.GoToSocialAlways, m) - m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) - m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) - - return m -} - -// LessThan computes if this CanLike is lesser, with an arbitrary but stable -// determination. -func (this GoToSocialCanLike) LessThan(o vocab.GoToSocialCanLike) bool { - // Begin: Compare known properties - // Compare property "always" - if lhs, rhs := this.GoToSocialAlways, o.GetGoToSocialAlways(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "approvalRequired" - if lhs, rhs := this.GoToSocialApprovalRequired, o.GetGoToSocialApprovalRequired(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "automaticApproval" - if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "manualApproval" - if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is 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 GoToSocialCanLike) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - // Begin: Serialize known properties - // Maybe serialize property "always" - if this.GoToSocialAlways != nil { - if i, err := this.GoToSocialAlways.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialAlways.Name()] = i - } - } - // Maybe serialize property "approvalRequired" - if this.GoToSocialApprovalRequired != nil { - if i, err := this.GoToSocialApprovalRequired.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovalRequired.Name()] = i - } - } - // Maybe serialize property "automaticApproval" - if this.GoToSocialAutomaticApproval != nil { - if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialAutomaticApproval.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 "manualApproval" - if this.GoToSocialManualApproval != nil { - if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialManualApproval.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 -} - -// SetGoToSocialAlways sets the "always" property. -func (this *GoToSocialCanLike) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty) { - this.GoToSocialAlways = i -} - -// SetGoToSocialApprovalRequired sets the "approvalRequired" property. -func (this *GoToSocialCanLike) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty) { - this.GoToSocialApprovalRequired = i -} - -// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. -func (this *GoToSocialCanLike) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { - this.GoToSocialAutomaticApproval = i -} - -// SetGoToSocialManualApproval sets the "manualApproval" property. -func (this *GoToSocialCanLike) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { - this.GoToSocialManualApproval = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialCanLike) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialCanLike) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialCanLike) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_doc.go deleted file mode 100644 index 99859f18c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typecanquote contains the implementation for the CanQuote 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 typecanquote diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go deleted file mode 100644 index 7de8769fb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_pkg.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecanquote - -import vocab "codeberg.org/superseriousbusiness/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 { - // DeserializeAlwaysPropertyGoToSocial returns the deserialization method - // for the "GoToSocialAlwaysProperty" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) - // DeserializeApprovalRequiredPropertyGoToSocial returns the - // deserialization method for the "GoToSocialApprovalRequiredProperty" - // non-functional property in the vocabulary "GoToSocial" - DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) - // DeserializeAutomaticApprovalPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialAutomaticApprovalProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, 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) - // DeserializeManualApprovalPropertyGoToSocial returns the deserialization - // method for the "GoToSocialManualApprovalProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go deleted file mode 100644 index 4cf8034ef..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote/gen_type_gotosocial_canquote.go +++ /dev/null @@ -1,372 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecanquote - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -type GoToSocialCanQuote struct { - GoToSocialAlways vocab.GoToSocialAlwaysProperty - GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty - GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty - JSONLDId vocab.JSONLDIdProperty - GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty - alias string - unknown map[string]interface{} -} - -// CanQuoteIsDisjointWith returns true if the other provided type is disjoint with -// the CanQuote type. -func CanQuoteIsDisjointWith(other vocab.Type) bool { - // Shortcut implementation: is not disjoint with anything. - return false -} - -// CanQuoteIsExtendedBy returns true if the other provided type extends from the -// CanQuote type. Note that it returns false if the types are the same; see -// the "IsOrExtendsCanQuote" variant instead. -func CanQuoteIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeCanQuote creates a CanQuote from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeCanQuote(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialCanQuote, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - this := &GoToSocialCanQuote{ - alias: alias, - unknown: make(map[string]interface{}), - } - - // Begin: Known property deserialization - if p, err := mgr.DeserializeAlwaysPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialAlways = p - } - if p, err := mgr.DeserializeApprovalRequiredPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovalRequired = p - } - if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialAutomaticApproval = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialManualApproval = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "always" { - continue - } else if k == "approvalRequired" { - continue - } else if k == "automaticApproval" { - continue - } else if k == "id" { - continue - } else if k == "manualApproval" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// GoToSocialCanQuoteExtends returns true if the CanQuote type extends from the -// other type. -func GoToSocialCanQuoteExtends(other vocab.Type) bool { - // Shortcut implementation: this does not extend anything. - return false -} - -// IsOrExtendsCanQuote returns true if the other provided type is the CanQuote -// type or extends from the CanQuote type. -func IsOrExtendsCanQuote(other vocab.Type) bool { - if other.GetTypeName() == "CanQuote" { - return true - } - return CanQuoteIsExtendedBy(other) -} - -// NewGoToSocialCanQuote creates a new CanQuote type -func NewGoToSocialCanQuote() *GoToSocialCanQuote { - return &GoToSocialCanQuote{ - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetGoToSocialAlways returns the "always" property if it exists, and nil -// otherwise. -func (this GoToSocialCanQuote) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty { - return this.GoToSocialAlways -} - -// GetGoToSocialApprovalRequired returns the "approvalRequired" property if it -// exists, and nil otherwise. -func (this GoToSocialCanQuote) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty { - return this.GoToSocialApprovalRequired -} - -// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it -// exists, and nil otherwise. -func (this GoToSocialCanQuote) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { - return this.GoToSocialAutomaticApproval -} - -// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, -// and nil otherwise. -func (this GoToSocialCanQuote) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { - return this.GoToSocialManualApproval -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialCanQuote) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetTypeName returns the name of this type. -func (this GoToSocialCanQuote) GetTypeName() string { - return "CanQuote" -} - -// GetUnknownProperties returns the unknown properties for the CanQuote 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 GoToSocialCanQuote) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the CanQuote type extends from the other type. -func (this GoToSocialCanQuote) IsExtending(other vocab.Type) bool { - return GoToSocialCanQuoteExtends(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 GoToSocialCanQuote) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.GoToSocialAlways, m) - m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) - m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) - - return m -} - -// LessThan computes if this CanQuote is lesser, with an arbitrary but stable -// determination. -func (this GoToSocialCanQuote) LessThan(o vocab.GoToSocialCanQuote) bool { - // Begin: Compare known properties - // Compare property "always" - if lhs, rhs := this.GoToSocialAlways, o.GetGoToSocialAlways(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "approvalRequired" - if lhs, rhs := this.GoToSocialApprovalRequired, o.GetGoToSocialApprovalRequired(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "automaticApproval" - if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "manualApproval" - if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is 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 GoToSocialCanQuote) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - // Begin: Serialize known properties - // Maybe serialize property "always" - if this.GoToSocialAlways != nil { - if i, err := this.GoToSocialAlways.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialAlways.Name()] = i - } - } - // Maybe serialize property "approvalRequired" - if this.GoToSocialApprovalRequired != nil { - if i, err := this.GoToSocialApprovalRequired.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovalRequired.Name()] = i - } - } - // Maybe serialize property "automaticApproval" - if this.GoToSocialAutomaticApproval != nil { - if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialAutomaticApproval.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 "manualApproval" - if this.GoToSocialManualApproval != nil { - if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialManualApproval.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 -} - -// SetGoToSocialAlways sets the "always" property. -func (this *GoToSocialCanQuote) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty) { - this.GoToSocialAlways = i -} - -// SetGoToSocialApprovalRequired sets the "approvalRequired" property. -func (this *GoToSocialCanQuote) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty) { - this.GoToSocialApprovalRequired = i -} - -// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. -func (this *GoToSocialCanQuote) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { - this.GoToSocialAutomaticApproval = i -} - -// SetGoToSocialManualApproval sets the "manualApproval" property. -func (this *GoToSocialCanQuote) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { - this.GoToSocialManualApproval = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialCanQuote) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialCanQuote) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialCanQuote) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_doc.go deleted file mode 100644 index b17fa98ee..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typecanreply contains the implementation for the CanReply 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 typecanreply diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go deleted file mode 100644 index 20a991c1a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_pkg.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecanreply - -import vocab "codeberg.org/superseriousbusiness/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 { - // DeserializeAlwaysPropertyGoToSocial returns the deserialization method - // for the "GoToSocialAlwaysProperty" non-functional property in the - // vocabulary "GoToSocial" - DeserializeAlwaysPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAlwaysProperty, error) - // DeserializeApprovalRequiredPropertyGoToSocial returns the - // deserialization method for the "GoToSocialApprovalRequiredProperty" - // non-functional property in the vocabulary "GoToSocial" - DeserializeApprovalRequiredPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovalRequiredProperty, error) - // DeserializeAutomaticApprovalPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialAutomaticApprovalProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeAutomaticApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAutomaticApprovalProperty, 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) - // DeserializeManualApprovalPropertyGoToSocial returns the deserialization - // method for the "GoToSocialManualApprovalProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeManualApprovalPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialManualApprovalProperty, 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go deleted file mode 100644 index c0cfe9fed..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply/gen_type_gotosocial_canreply.go +++ /dev/null @@ -1,372 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecanreply - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -type GoToSocialCanReply struct { - GoToSocialAlways vocab.GoToSocialAlwaysProperty - GoToSocialApprovalRequired vocab.GoToSocialApprovalRequiredProperty - GoToSocialAutomaticApproval vocab.GoToSocialAutomaticApprovalProperty - JSONLDId vocab.JSONLDIdProperty - GoToSocialManualApproval vocab.GoToSocialManualApprovalProperty - alias string - unknown map[string]interface{} -} - -// CanReplyIsDisjointWith returns true if the other provided type is disjoint with -// the CanReply type. -func CanReplyIsDisjointWith(other vocab.Type) bool { - // Shortcut implementation: is not disjoint with anything. - return false -} - -// CanReplyIsExtendedBy returns true if the other provided type extends from the -// CanReply type. Note that it returns false if the types are the same; see -// the "IsOrExtendsCanReply" variant instead. -func CanReplyIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeCanReply creates a CanReply from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeCanReply(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialCanReply, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - this := &GoToSocialCanReply{ - alias: alias, - unknown: make(map[string]interface{}), - } - - // Begin: Known property deserialization - if p, err := mgr.DeserializeAlwaysPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialAlways = p - } - if p, err := mgr.DeserializeApprovalRequiredPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialApprovalRequired = p - } - if p, err := mgr.DeserializeAutomaticApprovalPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialAutomaticApproval = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeManualApprovalPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialManualApproval = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "always" { - continue - } else if k == "approvalRequired" { - continue - } else if k == "automaticApproval" { - continue - } else if k == "id" { - continue - } else if k == "manualApproval" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// GoToSocialCanReplyExtends returns true if the CanReply type extends from the -// other type. -func GoToSocialCanReplyExtends(other vocab.Type) bool { - // Shortcut implementation: this does not extend anything. - return false -} - -// IsOrExtendsCanReply returns true if the other provided type is the CanReply -// type or extends from the CanReply type. -func IsOrExtendsCanReply(other vocab.Type) bool { - if other.GetTypeName() == "CanReply" { - return true - } - return CanReplyIsExtendedBy(other) -} - -// NewGoToSocialCanReply creates a new CanReply type -func NewGoToSocialCanReply() *GoToSocialCanReply { - return &GoToSocialCanReply{ - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetGoToSocialAlways returns the "always" property if it exists, and nil -// otherwise. -func (this GoToSocialCanReply) GetGoToSocialAlways() vocab.GoToSocialAlwaysProperty { - return this.GoToSocialAlways -} - -// GetGoToSocialApprovalRequired returns the "approvalRequired" property if it -// exists, and nil otherwise. -func (this GoToSocialCanReply) GetGoToSocialApprovalRequired() vocab.GoToSocialApprovalRequiredProperty { - return this.GoToSocialApprovalRequired -} - -// GetGoToSocialAutomaticApproval returns the "automaticApproval" property if it -// exists, and nil otherwise. -func (this GoToSocialCanReply) GetGoToSocialAutomaticApproval() vocab.GoToSocialAutomaticApprovalProperty { - return this.GoToSocialAutomaticApproval -} - -// GetGoToSocialManualApproval returns the "manualApproval" property if it exists, -// and nil otherwise. -func (this GoToSocialCanReply) GetGoToSocialManualApproval() vocab.GoToSocialManualApprovalProperty { - return this.GoToSocialManualApproval -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialCanReply) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetTypeName returns the name of this type. -func (this GoToSocialCanReply) GetTypeName() string { - return "CanReply" -} - -// GetUnknownProperties returns the unknown properties for the CanReply 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 GoToSocialCanReply) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the CanReply type extends from the other type. -func (this GoToSocialCanReply) IsExtending(other vocab.Type) bool { - return GoToSocialCanReplyExtends(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 GoToSocialCanReply) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.GoToSocialAlways, m) - m = this.helperJSONLDContext(this.GoToSocialApprovalRequired, m) - m = this.helperJSONLDContext(this.GoToSocialAutomaticApproval, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.GoToSocialManualApproval, m) - - return m -} - -// LessThan computes if this CanReply is lesser, with an arbitrary but stable -// determination. -func (this GoToSocialCanReply) LessThan(o vocab.GoToSocialCanReply) bool { - // Begin: Compare known properties - // Compare property "always" - if lhs, rhs := this.GoToSocialAlways, o.GetGoToSocialAlways(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "approvalRequired" - if lhs, rhs := this.GoToSocialApprovalRequired, o.GetGoToSocialApprovalRequired(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "automaticApproval" - if lhs, rhs := this.GoToSocialAutomaticApproval, o.GetGoToSocialAutomaticApproval(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "manualApproval" - if lhs, rhs := this.GoToSocialManualApproval, o.GetGoToSocialManualApproval(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is 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 GoToSocialCanReply) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - // Begin: Serialize known properties - // Maybe serialize property "always" - if this.GoToSocialAlways != nil { - if i, err := this.GoToSocialAlways.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialAlways.Name()] = i - } - } - // Maybe serialize property "approvalRequired" - if this.GoToSocialApprovalRequired != nil { - if i, err := this.GoToSocialApprovalRequired.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialApprovalRequired.Name()] = i - } - } - // Maybe serialize property "automaticApproval" - if this.GoToSocialAutomaticApproval != nil { - if i, err := this.GoToSocialAutomaticApproval.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialAutomaticApproval.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 "manualApproval" - if this.GoToSocialManualApproval != nil { - if i, err := this.GoToSocialManualApproval.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialManualApproval.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 -} - -// SetGoToSocialAlways sets the "always" property. -func (this *GoToSocialCanReply) SetGoToSocialAlways(i vocab.GoToSocialAlwaysProperty) { - this.GoToSocialAlways = i -} - -// SetGoToSocialApprovalRequired sets the "approvalRequired" property. -func (this *GoToSocialCanReply) SetGoToSocialApprovalRequired(i vocab.GoToSocialApprovalRequiredProperty) { - this.GoToSocialApprovalRequired = i -} - -// SetGoToSocialAutomaticApproval sets the "automaticApproval" property. -func (this *GoToSocialCanReply) SetGoToSocialAutomaticApproval(i vocab.GoToSocialAutomaticApprovalProperty) { - this.GoToSocialAutomaticApproval = i -} - -// SetGoToSocialManualApproval sets the "manualApproval" property. -func (this *GoToSocialCanReply) SetGoToSocialManualApproval(i vocab.GoToSocialManualApprovalProperty) { - this.GoToSocialManualApproval = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialCanReply) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialCanReply) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialCanReply) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go deleted file mode 100644 index 1e13f6ef7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeinteractionpolicy contains the implementation for the -// InteractionPolicy 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 typeinteractionpolicy diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go deleted file mode 100644 index aa7273b19..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_pkg.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeinteractionpolicy - -import vocab "codeberg.org/superseriousbusiness/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 { - // DeserializeCanAnnouncePropertyGoToSocial returns the deserialization - // method for the "GoToSocialCanAnnounceProperty" non-functional - // property in the vocabulary "GoToSocial" - DeserializeCanAnnouncePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanAnnounceProperty, error) - // DeserializeCanLikePropertyGoToSocial returns the deserialization method - // for the "GoToSocialCanLikeProperty" non-functional property in the - // vocabulary "GoToSocial" - DeserializeCanLikePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanLikeProperty, error) - // DeserializeCanQuotePropertyGoToSocial returns the deserialization - // method for the "GoToSocialCanQuoteProperty" non-functional property - // in the vocabulary "GoToSocial" - DeserializeCanQuotePropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanQuoteProperty, error) - // DeserializeCanReplyPropertyGoToSocial returns the deserialization - // method for the "GoToSocialCanReplyProperty" non-functional property - // in the vocabulary "GoToSocial" - DeserializeCanReplyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialCanReplyProperty, 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) -} - -// 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go deleted file mode 100644 index 3c2600baf..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy/gen_type_gotosocial_interactionpolicy.go +++ /dev/null @@ -1,374 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeinteractionpolicy - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -// InteractionPolicy for an ActivityStreams Object. -type GoToSocialInteractionPolicy struct { - GoToSocialCanAnnounce vocab.GoToSocialCanAnnounceProperty - GoToSocialCanLike vocab.GoToSocialCanLikeProperty - GoToSocialCanQuote vocab.GoToSocialCanQuoteProperty - GoToSocialCanReply vocab.GoToSocialCanReplyProperty - JSONLDId vocab.JSONLDIdProperty - alias string - unknown map[string]interface{} -} - -// DeserializeInteractionPolicy creates a InteractionPolicy from a map -// representation that has been unmarshalled from a text or binary format. -func DeserializeInteractionPolicy(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialInteractionPolicy, error) { - alias := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - } - this := &GoToSocialInteractionPolicy{ - alias: alias, - unknown: make(map[string]interface{}), - } - - // Begin: Known property deserialization - if p, err := mgr.DeserializeCanAnnouncePropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialCanAnnounce = p - } - if p, err := mgr.DeserializeCanLikePropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialCanLike = p - } - if p, err := mgr.DeserializeCanQuotePropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialCanQuote = p - } - if p, err := mgr.DeserializeCanReplyPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialCanReply = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "canAnnounce" { - continue - } else if k == "canLike" { - continue - } else if k == "canQuote" { - continue - } else if k == "canReply" { - continue - } else if k == "id" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// GoToSocialInteractionPolicyExtends returns true if the InteractionPolicy type -// extends from the other type. -func GoToSocialInteractionPolicyExtends(other vocab.Type) bool { - // Shortcut implementation: this does not extend anything. - return false -} - -// InteractionPolicyIsDisjointWith returns true if the other provided type is -// disjoint with the InteractionPolicy type. -func InteractionPolicyIsDisjointWith(other vocab.Type) bool { - // Shortcut implementation: is not disjoint with anything. - return false -} - -// InteractionPolicyIsExtendedBy returns true if the other provided type extends -// from the InteractionPolicy type. Note that it returns false if the types -// are the same; see the "IsOrExtendsInteractionPolicy" variant instead. -func InteractionPolicyIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsInteractionPolicy returns true if the other provided type is the -// InteractionPolicy type or extends from the InteractionPolicy type. -func IsOrExtendsInteractionPolicy(other vocab.Type) bool { - if other.GetTypeName() == "InteractionPolicy" { - return true - } - return InteractionPolicyIsExtendedBy(other) -} - -// NewGoToSocialInteractionPolicy creates a new InteractionPolicy type -func NewGoToSocialInteractionPolicy() *GoToSocialInteractionPolicy { - return &GoToSocialInteractionPolicy{ - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetGoToSocialCanAnnounce returns the "canAnnounce" property if it exists, and -// nil otherwise. -func (this GoToSocialInteractionPolicy) GetGoToSocialCanAnnounce() vocab.GoToSocialCanAnnounceProperty { - return this.GoToSocialCanAnnounce -} - -// GetGoToSocialCanLike returns the "canLike" property if it exists, and nil -// otherwise. -func (this GoToSocialInteractionPolicy) GetGoToSocialCanLike() vocab.GoToSocialCanLikeProperty { - return this.GoToSocialCanLike -} - -// GetGoToSocialCanQuote returns the "canQuote" property if it exists, and nil -// otherwise. -func (this GoToSocialInteractionPolicy) GetGoToSocialCanQuote() vocab.GoToSocialCanQuoteProperty { - return this.GoToSocialCanQuote -} - -// GetGoToSocialCanReply returns the "canReply" property if it exists, and nil -// otherwise. -func (this GoToSocialInteractionPolicy) GetGoToSocialCanReply() vocab.GoToSocialCanReplyProperty { - return this.GoToSocialCanReply -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialInteractionPolicy) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetTypeName returns the name of this type. -func (this GoToSocialInteractionPolicy) GetTypeName() string { - return "InteractionPolicy" -} - -// GetUnknownProperties returns the unknown properties for the InteractionPolicy -// 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 GoToSocialInteractionPolicy) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the InteractionPolicy type extends from the other -// type. -func (this GoToSocialInteractionPolicy) IsExtending(other vocab.Type) bool { - return GoToSocialInteractionPolicyExtends(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 GoToSocialInteractionPolicy) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.GoToSocialCanAnnounce, m) - m = this.helperJSONLDContext(this.GoToSocialCanLike, m) - m = this.helperJSONLDContext(this.GoToSocialCanQuote, m) - m = this.helperJSONLDContext(this.GoToSocialCanReply, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - - return m -} - -// LessThan computes if this InteractionPolicy is lesser, with an arbitrary but -// stable determination. -func (this GoToSocialInteractionPolicy) LessThan(o vocab.GoToSocialInteractionPolicy) bool { - // Begin: Compare known properties - // Compare property "canAnnounce" - if lhs, rhs := this.GoToSocialCanAnnounce, o.GetGoToSocialCanAnnounce(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "canLike" - if lhs, rhs := this.GoToSocialCanLike, o.GetGoToSocialCanLike(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "canQuote" - if lhs, rhs := this.GoToSocialCanQuote, o.GetGoToSocialCanQuote(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "canReply" - if lhs, rhs := this.GoToSocialCanReply, o.GetGoToSocialCanReply(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 - // 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 GoToSocialInteractionPolicy) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - // Begin: Serialize known properties - // Maybe serialize property "canAnnounce" - if this.GoToSocialCanAnnounce != nil { - if i, err := this.GoToSocialCanAnnounce.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialCanAnnounce.Name()] = i - } - } - // Maybe serialize property "canLike" - if this.GoToSocialCanLike != nil { - if i, err := this.GoToSocialCanLike.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialCanLike.Name()] = i - } - } - // Maybe serialize property "canQuote" - if this.GoToSocialCanQuote != nil { - if i, err := this.GoToSocialCanQuote.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialCanQuote.Name()] = i - } - } - // Maybe serialize property "canReply" - if this.GoToSocialCanReply != nil { - if i, err := this.GoToSocialCanReply.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialCanReply.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 - } - } - // 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 -} - -// SetGoToSocialCanAnnounce sets the "canAnnounce" property. -func (this *GoToSocialInteractionPolicy) SetGoToSocialCanAnnounce(i vocab.GoToSocialCanAnnounceProperty) { - this.GoToSocialCanAnnounce = i -} - -// SetGoToSocialCanLike sets the "canLike" property. -func (this *GoToSocialInteractionPolicy) SetGoToSocialCanLike(i vocab.GoToSocialCanLikeProperty) { - this.GoToSocialCanLike = i -} - -// SetGoToSocialCanQuote sets the "canQuote" property. -func (this *GoToSocialInteractionPolicy) SetGoToSocialCanQuote(i vocab.GoToSocialCanQuoteProperty) { - this.GoToSocialCanQuote = i -} - -// SetGoToSocialCanReply sets the "canReply" property. -func (this *GoToSocialInteractionPolicy) SetGoToSocialCanReply(i vocab.GoToSocialCanReplyProperty) { - this.GoToSocialCanReply = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialInteractionPolicy) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialInteractionPolicy) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialInteractionPolicy) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go deleted file mode 100644 index ba2aa3d93..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typelikeapproval contains the implementation for the LikeApproval 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 typelikeapproval diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go deleted file mode 100644 index 8b9bb070d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_pkg.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelikeapproval - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go deleted file mode 100644 index 36eeac229..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval/gen_type_gotosocial_likeapproval.go +++ /dev/null @@ -1,1640 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelikeapproval - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -// DEPRECATED: Use `LikeAuthorization` instead. -type GoToSocialLikeApproval 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeLikeApproval creates a LikeApproval from a map representation that -// has been unmarshalled from a text or binary format. -func DeserializeLikeApproval(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialLikeApproval, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &GoToSocialLikeApproval{ - 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 != "LikeApproval" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "LikeApproval", 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) == "LikeApproval" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "LikeApproval") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GoToSocialLikeApprovalExtends returns true if the LikeApproval type extends -// from the other type. -func GoToSocialLikeApprovalExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsLikeApproval returns true if the other provided type is the -// LikeApproval type or extends from the LikeApproval type. -func IsOrExtendsLikeApproval(other vocab.Type) bool { - if other.GetTypeName() == "LikeApproval" { - return true - } - return LikeApprovalIsExtendedBy(other) -} - -// LikeApprovalIsDisjointWith returns true if the other provided type is disjoint -// with the LikeApproval type. -func LikeApprovalIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// LikeApprovalIsExtendedBy returns true if the other provided type extends from -// the LikeApproval type. Note that it returns false if the types are the -// same; see the "IsOrExtendsLikeApproval" variant instead. -func LikeApprovalIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// NewGoToSocialLikeApproval creates a new LikeApproval type -func NewGoToSocialLikeApproval() *GoToSocialLikeApproval { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("LikeApproval") - return &GoToSocialLikeApproval{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeApproval) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialLikeApproval) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this GoToSocialLikeApproval) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this GoToSocialLikeApproval) GetTypeName() string { - return "LikeApproval" -} - -// GetUnknownProperties returns the unknown properties for the LikeApproval 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 GoToSocialLikeApproval) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the LikeApproval type extends from the other type. -func (this GoToSocialLikeApproval) IsExtending(other vocab.Type) bool { - return GoToSocialLikeApprovalExtends(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 GoToSocialLikeApproval) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 LikeApproval is lesser, with an arbitrary but stable -// determination. -func (this GoToSocialLikeApproval) LessThan(o vocab.GoToSocialLikeApproval) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 GoToSocialLikeApproval) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "LikeApproval" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "LikeApproval" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialLikeApproval) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *GoToSocialLikeApproval) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialLikeApproval) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *GoToSocialLikeApproval) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialLikeApproval) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialLikeApproval) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go deleted file mode 100644 index b40a8815a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typelikeauthorization contains the implementation for the -// LikeAuthorization 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 typelikeauthorization diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go deleted file mode 100644 index 969bcc512..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_pkg.go +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelikeauthorization - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeInteractingObjectPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractingObjectProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) - // DeserializeInteractionTargetPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionTargetProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go deleted file mode 100644 index 4c049fb39..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization/gen_type_gotosocial_likeauthorization.go +++ /dev/null @@ -1,1724 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelikeauthorization - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -type GoToSocialLikeAuthorization 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 - GoToSocialInteractingObject vocab.GoToSocialInteractingObjectProperty - GoToSocialInteractionTarget vocab.GoToSocialInteractionTargetProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeLikeAuthorization creates a LikeAuthorization from a map -// representation that has been unmarshalled from a text or binary format. -func DeserializeLikeAuthorization(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialLikeAuthorization, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &GoToSocialLikeAuthorization{ - 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 != "LikeAuthorization" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "LikeAuthorization", 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) == "LikeAuthorization" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "LikeAuthorization") - } - // 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.DeserializeInteractingObjectPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractingObject = p - } - if p, err := mgr.DeserializeInteractionTargetPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionTarget = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "interactingObject" { - continue - } else if k == "interactionTarget" { - 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GoToSocialLikeAuthorizationExtends returns true if the LikeAuthorization type -// extends from the other type. -func GoToSocialLikeAuthorizationExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsLikeAuthorization returns true if the other provided type is the -// LikeAuthorization type or extends from the LikeAuthorization type. -func IsOrExtendsLikeAuthorization(other vocab.Type) bool { - if other.GetTypeName() == "LikeAuthorization" { - return true - } - return LikeAuthorizationIsExtendedBy(other) -} - -// LikeAuthorizationIsDisjointWith returns true if the other provided type is -// disjoint with the LikeAuthorization type. -func LikeAuthorizationIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// LikeAuthorizationIsExtendedBy returns true if the other provided type extends -// from the LikeAuthorization type. Note that it returns false if the types -// are the same; see the "IsOrExtendsLikeAuthorization" variant instead. -func LikeAuthorizationIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// NewGoToSocialLikeAuthorization creates a new LikeAuthorization type -func NewGoToSocialLikeAuthorization() *GoToSocialLikeAuthorization { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("LikeAuthorization") - return &GoToSocialLikeAuthorization{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeAuthorization) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetGoToSocialInteractingObject returns the "interactingObject" property if it -// exists, and nil otherwise. -func (this GoToSocialLikeAuthorization) GetGoToSocialInteractingObject() vocab.GoToSocialInteractingObjectProperty { - return this.GoToSocialInteractingObject -} - -// GetGoToSocialInteractionTarget returns the "interactionTarget" property if it -// exists, and nil otherwise. -func (this GoToSocialLikeAuthorization) GetGoToSocialInteractionTarget() vocab.GoToSocialInteractionTargetProperty { - return this.GoToSocialInteractionTarget -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialLikeAuthorization) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this GoToSocialLikeAuthorization) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this GoToSocialLikeAuthorization) GetTypeName() string { - return "LikeAuthorization" -} - -// GetUnknownProperties returns the unknown properties for the LikeAuthorization -// 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 GoToSocialLikeAuthorization) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the LikeAuthorization type extends from the other -// type. -func (this GoToSocialLikeAuthorization) IsExtending(other vocab.Type) bool { - return GoToSocialLikeAuthorizationExtends(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 GoToSocialLikeAuthorization) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.GoToSocialInteractingObject, m) - m = this.helperJSONLDContext(this.GoToSocialInteractionTarget, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 LikeAuthorization is lesser, with an arbitrary but -// stable determination. -func (this GoToSocialLikeAuthorization) LessThan(o vocab.GoToSocialLikeAuthorization) 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 "interactingObject" - if lhs, rhs := this.GoToSocialInteractingObject, o.GetGoToSocialInteractingObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "interactionTarget" - if lhs, rhs := this.GoToSocialInteractionTarget, o.GetGoToSocialInteractionTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 GoToSocialLikeAuthorization) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "LikeAuthorization" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "LikeAuthorization" - } - 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 "interactingObject" - if this.GoToSocialInteractingObject != nil { - if i, err := this.GoToSocialInteractingObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractingObject.Name()] = i - } - } - // Maybe serialize property "interactionTarget" - if this.GoToSocialInteractionTarget != nil { - if i, err := this.GoToSocialInteractionTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionTarget.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialLikeAuthorization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *GoToSocialLikeAuthorization) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetGoToSocialInteractingObject sets the "interactingObject" property. -func (this *GoToSocialLikeAuthorization) SetGoToSocialInteractingObject(i vocab.GoToSocialInteractingObjectProperty) { - this.GoToSocialInteractingObject = i -} - -// SetGoToSocialInteractionTarget sets the "interactionTarget" property. -func (this *GoToSocialLikeAuthorization) SetGoToSocialInteractionTarget(i vocab.GoToSocialInteractionTargetProperty) { - this.GoToSocialInteractionTarget = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialLikeAuthorization) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *GoToSocialLikeAuthorization) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialLikeAuthorization) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialLikeAuthorization) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go deleted file mode 100644 index c646e390d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typelikerequest contains the implementation for the LikeRequest 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 typelikerequest diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go deleted file mode 100644 index d6aa37ba6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelikerequest - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go deleted file mode 100644 index 20eaf0895..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest/gen_type_gotosocial_likerequest.go +++ /dev/null @@ -1,1849 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelikerequest - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -type GoToSocialLikeRequest 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeLikeRequest creates a LikeRequest from a map representation that has -// been unmarshalled from a text or binary format. -func DeserializeLikeRequest(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialLikeRequest, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &GoToSocialLikeRequest{ - 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 != "LikeRequest" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "LikeRequest", 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) == "LikeRequest" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "LikeRequest") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GoToSocialLikeRequestExtends returns true if the LikeRequest type extends from -// the other type. -func GoToSocialLikeRequestExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsLikeRequest returns true if the other provided type is the -// LikeRequest type or extends from the LikeRequest type. -func IsOrExtendsLikeRequest(other vocab.Type) bool { - if other.GetTypeName() == "LikeRequest" { - return true - } - return LikeRequestIsExtendedBy(other) -} - -// LikeRequestIsDisjointWith returns true if the other provided type is disjoint -// with the LikeRequest type. -func LikeRequestIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// LikeRequestIsExtendedBy returns true if the other provided type extends from -// the LikeRequest type. Note that it returns false if the types are the same; -// see the "IsOrExtendsLikeRequest" variant instead. -func LikeRequestIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// NewGoToSocialLikeRequest creates a new LikeRequest type -func NewGoToSocialLikeRequest() *GoToSocialLikeRequest { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("LikeRequest") - return &GoToSocialLikeRequest{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this GoToSocialLikeRequest) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialLikeRequest) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this GoToSocialLikeRequest) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this GoToSocialLikeRequest) GetTypeName() string { - return "LikeRequest" -} - -// GetUnknownProperties returns the unknown properties for the LikeRequest 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 GoToSocialLikeRequest) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the LikeRequest type extends from the other type. -func (this GoToSocialLikeRequest) IsExtending(other vocab.Type) bool { - return GoToSocialLikeRequestExtends(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 GoToSocialLikeRequest) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 LikeRequest is lesser, with an arbitrary but stable -// determination. -func (this GoToSocialLikeRequest) LessThan(o vocab.GoToSocialLikeRequest) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 GoToSocialLikeRequest) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "LikeRequest" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "LikeRequest" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialLikeRequest) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *GoToSocialLikeRequest) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialLikeRequest) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *GoToSocialLikeRequest) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialLikeRequest) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialLikeRequest) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go deleted file mode 100644 index 1fcd77550..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typereplyapproval contains the implementation for the ReplyApproval -// 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 typereplyapproval diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go deleted file mode 100644 index 6b81619c6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_pkg.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typereplyapproval - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go deleted file mode 100644 index c7c9bb38f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval/gen_type_gotosocial_replyapproval.go +++ /dev/null @@ -1,1640 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typereplyapproval - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -// DEPRECATED: Use `ReplyAuthorization` instead. -type GoToSocialReplyApproval 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeReplyApproval creates a ReplyApproval from a map representation that -// has been unmarshalled from a text or binary format. -func DeserializeReplyApproval(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialReplyApproval, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &GoToSocialReplyApproval{ - 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 != "ReplyApproval" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "ReplyApproval", 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) == "ReplyApproval" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "ReplyApproval") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GoToSocialReplyApprovalExtends returns true if the ReplyApproval type extends -// from the other type. -func GoToSocialReplyApprovalExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsReplyApproval returns true if the other provided type is the -// ReplyApproval type or extends from the ReplyApproval type. -func IsOrExtendsReplyApproval(other vocab.Type) bool { - if other.GetTypeName() == "ReplyApproval" { - return true - } - return ReplyApprovalIsExtendedBy(other) -} - -// NewGoToSocialReplyApproval creates a new ReplyApproval type -func NewGoToSocialReplyApproval() *GoToSocialReplyApproval { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("ReplyApproval") - return &GoToSocialReplyApproval{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// ReplyApprovalIsDisjointWith returns true if the other provided type is disjoint -// with the ReplyApproval type. -func ReplyApprovalIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ReplyApprovalIsExtendedBy returns true if the other provided type extends from -// the ReplyApproval type. Note that it returns false if the types are the -// same; see the "IsOrExtendsReplyApproval" variant instead. -func ReplyApprovalIsExtendedBy(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 GoToSocialReplyApproval) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyApproval) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialReplyApproval) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this GoToSocialReplyApproval) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this GoToSocialReplyApproval) GetTypeName() string { - return "ReplyApproval" -} - -// GetUnknownProperties returns the unknown properties for the ReplyApproval 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 GoToSocialReplyApproval) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the ReplyApproval type extends from the other type. -func (this GoToSocialReplyApproval) IsExtending(other vocab.Type) bool { - return GoToSocialReplyApprovalExtends(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 GoToSocialReplyApproval) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 ReplyApproval is lesser, with an arbitrary but stable -// determination. -func (this GoToSocialReplyApproval) LessThan(o vocab.GoToSocialReplyApproval) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 GoToSocialReplyApproval) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "ReplyApproval" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "ReplyApproval" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialReplyApproval) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *GoToSocialReplyApproval) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialReplyApproval) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *GoToSocialReplyApproval) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialReplyApproval) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialReplyApproval) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go deleted file mode 100644 index c25dc7ae7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typereplyauthorization contains the implementation for the -// ReplyAuthorization 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 typereplyauthorization diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go deleted file mode 100644 index adcdec7e2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_pkg.go +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typereplyauthorization - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeInteractingObjectPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractingObjectProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractingObjectPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractingObjectProperty, error) - // DeserializeInteractionTargetPropertyGoToSocial returns the - // deserialization method for the - // "GoToSocialInteractionTargetProperty" non-functional property in - // the vocabulary "GoToSocial" - DeserializeInteractionTargetPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionTargetProperty, 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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go deleted file mode 100644 index 380e1da85..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization/gen_type_gotosocial_replyauthorization.go +++ /dev/null @@ -1,1724 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typereplyauthorization - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -type GoToSocialReplyAuthorization 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 - GoToSocialInteractingObject vocab.GoToSocialInteractingObjectProperty - GoToSocialInteractionTarget vocab.GoToSocialInteractionTargetProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeReplyAuthorization creates a ReplyAuthorization from a map -// representation that has been unmarshalled from a text or binary format. -func DeserializeReplyAuthorization(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialReplyAuthorization, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &GoToSocialReplyAuthorization{ - 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 != "ReplyAuthorization" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "ReplyAuthorization", 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) == "ReplyAuthorization" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "ReplyAuthorization") - } - // 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.DeserializeInteractingObjectPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractingObject = p - } - if p, err := mgr.DeserializeInteractionTargetPropertyGoToSocial()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.GoToSocialInteractionTarget = 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "interactingObject" { - continue - } else if k == "interactionTarget" { - 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GoToSocialReplyAuthorizationExtends returns true if the ReplyAuthorization type -// extends from the other type. -func GoToSocialReplyAuthorizationExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsReplyAuthorization returns true if the other provided type is the -// ReplyAuthorization type or extends from the ReplyAuthorization type. -func IsOrExtendsReplyAuthorization(other vocab.Type) bool { - if other.GetTypeName() == "ReplyAuthorization" { - return true - } - return ReplyAuthorizationIsExtendedBy(other) -} - -// NewGoToSocialReplyAuthorization creates a new ReplyAuthorization type -func NewGoToSocialReplyAuthorization() *GoToSocialReplyAuthorization { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("ReplyAuthorization") - return &GoToSocialReplyAuthorization{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// ReplyAuthorizationIsDisjointWith returns true if the other provided type is -// disjoint with the ReplyAuthorization type. -func ReplyAuthorizationIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ReplyAuthorizationIsExtendedBy returns true if the other provided type extends -// from the ReplyAuthorization type. Note that it returns false if the types -// are the same; see the "IsOrExtendsReplyAuthorization" variant instead. -func ReplyAuthorizationIsExtendedBy(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 GoToSocialReplyAuthorization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyAuthorization) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetGoToSocialInteractingObject returns the "interactingObject" property if it -// exists, and nil otherwise. -func (this GoToSocialReplyAuthorization) GetGoToSocialInteractingObject() vocab.GoToSocialInteractingObjectProperty { - return this.GoToSocialInteractingObject -} - -// GetGoToSocialInteractionTarget returns the "interactionTarget" property if it -// exists, and nil otherwise. -func (this GoToSocialReplyAuthorization) GetGoToSocialInteractionTarget() vocab.GoToSocialInteractionTargetProperty { - return this.GoToSocialInteractionTarget -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialReplyAuthorization) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this GoToSocialReplyAuthorization) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this GoToSocialReplyAuthorization) GetTypeName() string { - return "ReplyAuthorization" -} - -// GetUnknownProperties returns the unknown properties for the ReplyAuthorization -// 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 GoToSocialReplyAuthorization) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the ReplyAuthorization type extends from the other -// type. -func (this GoToSocialReplyAuthorization) IsExtending(other vocab.Type) bool { - return GoToSocialReplyAuthorizationExtends(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 GoToSocialReplyAuthorization) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.GoToSocialInteractingObject, m) - m = this.helperJSONLDContext(this.GoToSocialInteractionTarget, 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 ReplyAuthorization is lesser, with an arbitrary but -// stable determination. -func (this GoToSocialReplyAuthorization) LessThan(o vocab.GoToSocialReplyAuthorization) 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 "interactingObject" - if lhs, rhs := this.GoToSocialInteractingObject, o.GetGoToSocialInteractingObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "interactionTarget" - if lhs, rhs := this.GoToSocialInteractionTarget, o.GetGoToSocialInteractionTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 GoToSocialReplyAuthorization) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "ReplyAuthorization" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "ReplyAuthorization" - } - 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 "interactingObject" - if this.GoToSocialInteractingObject != nil { - if i, err := this.GoToSocialInteractingObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractingObject.Name()] = i - } - } - // Maybe serialize property "interactionTarget" - if this.GoToSocialInteractionTarget != nil { - if i, err := this.GoToSocialInteractionTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.GoToSocialInteractionTarget.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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialReplyAuthorization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *GoToSocialReplyAuthorization) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetGoToSocialInteractingObject sets the "interactingObject" property. -func (this *GoToSocialReplyAuthorization) SetGoToSocialInteractingObject(i vocab.GoToSocialInteractingObjectProperty) { - this.GoToSocialInteractingObject = i -} - -// SetGoToSocialInteractionTarget sets the "interactionTarget" property. -func (this *GoToSocialReplyAuthorization) SetGoToSocialInteractionTarget(i vocab.GoToSocialInteractionTargetProperty) { - this.GoToSocialInteractionTarget = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialReplyAuthorization) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *GoToSocialReplyAuthorization) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialReplyAuthorization) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialReplyAuthorization) 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go deleted file mode 100644 index 1e20e43be..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typereplyrequest contains the implementation for the ReplyRequest 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 typereplyrequest diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go deleted file mode 100644 index 3a4e6793f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typereplyrequest - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go deleted file mode 100644 index 1a5713092..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest/gen_type_gotosocial_replyrequest.go +++ /dev/null @@ -1,1849 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typereplyrequest - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -type GoToSocialReplyRequest 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeReplyRequest creates a ReplyRequest from a map representation that -// has been unmarshalled from a text or binary format. -func DeserializeReplyRequest(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialReplyRequest, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &GoToSocialReplyRequest{ - 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 != "ReplyRequest" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "ReplyRequest", 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) == "ReplyRequest" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "ReplyRequest") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - 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 -} - -// GoToSocialReplyRequestExtends returns true if the ReplyRequest type extends -// from the other type. -func GoToSocialReplyRequestExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsReplyRequest returns true if the other provided type is the -// ReplyRequest type or extends from the ReplyRequest type. -func IsOrExtendsReplyRequest(other vocab.Type) bool { - if other.GetTypeName() == "ReplyRequest" { - return true - } - return ReplyRequestIsExtendedBy(other) -} - -// NewGoToSocialReplyRequest creates a new ReplyRequest type -func NewGoToSocialReplyRequest() *GoToSocialReplyRequest { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("ReplyRequest") - return &GoToSocialReplyRequest{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// ReplyRequestIsDisjointWith returns true if the other provided type is disjoint -// with the ReplyRequest type. -func ReplyRequestIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ReplyRequestIsExtendedBy returns true if the other provided type extends from -// the ReplyRequest type. Note that it returns false if the types are the -// same; see the "IsOrExtendsReplyRequest" variant instead. -func ReplyRequestIsExtendedBy(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 GoToSocialReplyRequest) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this GoToSocialReplyRequest) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this GoToSocialReplyRequest) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this GoToSocialReplyRequest) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this GoToSocialReplyRequest) GetTypeName() string { - return "ReplyRequest" -} - -// GetUnknownProperties returns the unknown properties for the ReplyRequest 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 GoToSocialReplyRequest) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the ReplyRequest type extends from the other type. -func (this GoToSocialReplyRequest) IsExtending(other vocab.Type) bool { - return GoToSocialReplyRequestExtends(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 GoToSocialReplyRequest) JSONLDContext() map[string]string { - m := map[string]string{"https://gotosocial.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, 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 ReplyRequest is lesser, with an arbitrary but stable -// determination. -func (this GoToSocialReplyRequest) LessThan(o vocab.GoToSocialReplyRequest) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 GoToSocialReplyRequest) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "ReplyRequest" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "ReplyRequest" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 *GoToSocialReplyRequest) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *GoToSocialReplyRequest) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *GoToSocialReplyRequest) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *GoToSocialReplyRequest) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this GoToSocialReplyRequest) VocabularyURI() string { - return "https://gotosocial.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this GoToSocialReplyRequest) 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/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_doc.go deleted file mode 100644 index cbf49e1ed..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyid contains the implementation for the id property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyid diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_pkg.go deleted file mode 100644 index 9ced09401..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyid - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go deleted file mode 100644 index 0e5f11850..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyid - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// JSONLDIdProperty is the functional property "id". It is permitted to be a -// single nilable value type. -type JSONLDIdProperty struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string -} - -// DeserializeIdProperty creates a "id" property from an interface representation -// that has been unmarshalled from a text or binary format. -func DeserializeIdProperty(m map[string]interface{}, aliasMap map[string]string) (*JSONLDIdProperty, error) { - alias := "" - - propName := "id" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "id") - } - i, ok := m[propName] - - if ok { - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &JSONLDIdProperty{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &JSONLDIdProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewJSONLDIdProperty creates a new id property. -func NewJSONLDIdProperty() *JSONLDIdProperty { - return &JSONLDIdProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *JSONLDIdProperty) Clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this JSONLDIdProperty) Get() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this JSONLDIdProperty) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this JSONLDIdProperty) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this JSONLDIdProperty) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this JSONLDIdProperty) IsXMLSchemaAnyURI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this JSONLDIdProperty) JSONLDContext() map[string]string { - var m map[string]string - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this JSONLDIdProperty) KindIndex() int { - if this.IsXMLSchemaAnyURI() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this JSONLDIdProperty) LessThan(o vocab.JSONLDIdProperty) bool { - if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return anyuri.LessAnyURI(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "id". -func (this JSONLDIdProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "id" - } else { - return "id" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this JSONLDIdProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *JSONLDIdProperty) Set(v *url.URL) { - this.Clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *JSONLDIdProperty) SetIRI(v *url.URL) { - this.Clear() - this.Set(v) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_doc.go deleted file mode 100644 index 64bb97ac5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertytype contains the implementation for the type property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertytype diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_pkg.go deleted file mode 100644 index 2dd73489a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytype - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go deleted file mode 100644 index bfa01e90a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go +++ /dev/null @@ -1,596 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytype - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// JSONLDTypePropertyIterator is an iterator for a property. It is permitted to be -// one of multiple value types. At most, one type of value can be present, or -// none at all. Setting a value will clear the other types of values so that -// only one of the 'Is' methods will return true. It is possible to clear all -// values, so that this property is empty. -type JSONLDTypePropertyIterator struct { - xmlschemaAnyURIMember *url.URL - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - alias string - myIdx int - parent vocab.JSONLDTypeProperty -} - -// NewJSONLDTypePropertyIterator creates a new JSONLDType property. -func NewJSONLDTypePropertyIterator() *JSONLDTypePropertyIterator { - return &JSONLDTypePropertyIterator{alias: ""} -} - -// deserializeJSONLDTypePropertyIterator creates an iterator from an element that -// has been unmarshalled from a text or binary format. -func deserializeJSONLDTypePropertyIterator(i interface{}, aliasMap map[string]string) (*JSONLDTypePropertyIterator, error) { - alias := "" - - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &JSONLDTypePropertyIterator{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } else if v, err := string1.DeserializeString(i); err == nil { - this := &JSONLDTypePropertyIterator{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &JSONLDTypePropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this JSONLDTypePropertyIterator) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetXMLSchemaAnyURI returns the value of this property. When IsXMLSchemaAnyURI -// returns false, GetXMLSchemaAnyURI will return an arbitrary value. -func (this JSONLDTypePropertyIterator) GetXMLSchemaAnyURI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString -// returns false, GetXMLSchemaString will return an arbitrary value. -func (this JSONLDTypePropertyIterator) GetXMLSchemaString() string { - return this.xmlschemaStringMember -} - -// HasAny returns true if any of the different values is set. -func (this JSONLDTypePropertyIterator) HasAny() bool { - return this.IsXMLSchemaAnyURI() || - this.IsXMLSchemaString() -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this JSONLDTypePropertyIterator) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". When -// true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI methods to access -// and set this property. -func (this JSONLDTypePropertyIterator) IsXMLSchemaAnyURI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaString returns true if this property has a type of "string". When -// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access -// and set this property. -func (this JSONLDTypePropertyIterator) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this JSONLDTypePropertyIterator) JSONLDContext() map[string]string { - var m map[string]string - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this JSONLDTypePropertyIterator) KindIndex() int { - if this.IsXMLSchemaAnyURI() { - return 0 - } - if this.IsXMLSchemaString() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this JSONLDTypePropertyIterator) LessThan(o vocab.JSONLDTypePropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsXMLSchemaAnyURI() { - return anyuri.LessAnyURI(this.GetXMLSchemaAnyURI(), o.GetXMLSchemaAnyURI()) - } else if this.IsXMLSchemaString() { - return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString()) - } - return false -} - -// Name returns the name of this property: "JSONLDType". -func (this JSONLDTypePropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "JSONLDType" - } else { - return "JSONLDType" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this JSONLDTypePropertyIterator) Next() vocab.JSONLDTypePropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this JSONLDTypePropertyIterator) Prev() vocab.JSONLDTypePropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *JSONLDTypePropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.SetXMLSchemaAnyURI(v) -} - -// SetXMLSchemaAnyURI sets the value of this property. Calling IsXMLSchemaAnyURI -// afterwards returns true. -func (this *JSONLDTypePropertyIterator) SetXMLSchemaAnyURI(v *url.URL) { - this.clear() - this.xmlschemaAnyURIMember = v -} - -// SetXMLSchemaString sets the value of this property. Calling IsXMLSchemaString -// afterwards returns true. -func (this *JSONLDTypePropertyIterator) SetXMLSchemaString(v string) { - this.clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *JSONLDTypePropertyIterator) clear() { - this.xmlschemaAnyURIMember = nil - this.hasStringMember = false - this.unknown = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this JSONLDTypePropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.GetXMLSchemaAnyURI()) - } else if this.IsXMLSchemaString() { - return string1.SerializeString(this.GetXMLSchemaString()) - } - return this.unknown, nil -} - -// JSONLDTypeProperty is the non-functional property "type". It is permitted to -// have one or more values, and of different value types. -type JSONLDTypeProperty struct { - properties []*JSONLDTypePropertyIterator - alias string -} - -// DeserializeTypeProperty creates a "type" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeTypeProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDTypeProperty, error) { - alias := "" - - propName := "type" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "type") - } - i, ok := m[propName] - - if ok { - this := &JSONLDTypeProperty{ - alias: alias, - properties: []*JSONLDTypePropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeJSONLDTypePropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeJSONLDTypePropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewJSONLDTypeProperty creates a new type property. -func NewJSONLDTypeProperty() *JSONLDTypeProperty { - return &JSONLDTypeProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property "type" -func (this *JSONLDTypeProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the -// property "type". Invalidates iterators that are traversing using Prev. -func (this *JSONLDTypeProperty) AppendXMLSchemaAnyURI(v *url.URL) { - this.properties = append(this.properties, &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaString appends a string value to the back of a list of the -// property "type". Invalidates iterators that are traversing using Prev. -func (this *JSONLDTypeProperty) AppendXMLSchemaString(v string) { - this.properties = append(this.properties, &JSONLDTypePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaStringMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this JSONLDTypeProperty) At(index int) vocab.JSONLDTypePropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this JSONLDTypeProperty) Begin() vocab.JSONLDTypePropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this JSONLDTypeProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this JSONLDTypeProperty) End() vocab.JSONLDTypePropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "type". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *JSONLDTypeProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a -// property "type". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *JSONLDTypeProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaString inserts a string value at the specified index for a -// property "type". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *JSONLDTypeProperty) InsertXMLSchemaString(idx int, v string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this JSONLDTypeProperty) JSONLDContext() map[string]string { - var m map[string]string - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this JSONLDTypeProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "type" property. -func (this JSONLDTypeProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this JSONLDTypeProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetXMLSchemaAnyURI() - rhs := this.properties[j].GetXMLSchemaAnyURI() - return anyuri.LessAnyURI(lhs, rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetXMLSchemaString() - rhs := this.properties[j].GetXMLSchemaString() - return string1.LessString(lhs, rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this JSONLDTypeProperty) LessThan(o vocab.JSONLDTypeProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("type") with any alias. -func (this JSONLDTypeProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "type" - } else { - return "type" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "type". -func (this *JSONLDTypeProperty) PrependIRI(v *url.URL) { - this.properties = append([]*JSONLDTypePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the -// property "type". Invalidates all iterators. -func (this *JSONLDTypeProperty) PrependXMLSchemaAnyURI(v *url.URL) { - this.properties = append([]*JSONLDTypePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaString prepends a string value to the front of a list of the -// property "type". Invalidates all iterators. -func (this *JSONLDTypeProperty) PrependXMLSchemaString(v string) { - this.properties = append([]*JSONLDTypePropertyIterator{{ - alias: this.alias, - hasStringMember: true, - myIdx: 0, - parent: this, - xmlschemaStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "type", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *JSONLDTypeProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &JSONLDTypePropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this JSONLDTypeProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetIRI sets an IRI value to be at the specified index for the property "type". -// Panics if the index is out of bounds. -func (this *JSONLDTypeProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for the -// property "type". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *JSONLDTypeProperty) SetXMLSchemaAnyURI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetXMLSchemaString sets a string value to be at the specified index for the -// property "type". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *JSONLDTypeProperty) SetXMLSchemaString(idx int, v string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } -} - -// Swap swaps the location of values at two indices for the "type" property. -func (this JSONLDTypeProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_doc.go deleted file mode 100644 index b46eed547..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyvalue contains the implementation for the value 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 propertyvalue diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_pkg.go deleted file mode 100644 index ebfb05bf0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyvalue - -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/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_property_schema_value.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_property_schema_value.go deleted file mode 100644 index 6b920511d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value/gen_property_schema_value.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyvalue - -import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// SchemaValueProperty is the functional property "value". It is permitted to be a -// single default-valued value type. -type SchemaValueProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeValueProperty creates a "value" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeValueProperty(m map[string]interface{}, aliasMap map[string]string) (*SchemaValueProperty, error) { - alias := "" - if a, ok := aliasMap["http://schema.org"]; ok { - alias = a - } - propName := "value" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "value") - } - 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 := &SchemaValueProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &SchemaValueProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &SchemaValueProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewSchemaValueProperty creates a new value property. -func NewSchemaValueProperty() *SchemaValueProperty { - return &SchemaValueProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *SchemaValueProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this SchemaValueProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this SchemaValueProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this SchemaValueProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this SchemaValueProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this SchemaValueProperty) 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 SchemaValueProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://schema.org": 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 SchemaValueProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this SchemaValueProperty) LessThan(o vocab.SchemaValueProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "value". -func (this SchemaValueProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "value" - } else { - return "value" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need 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 SchemaValueProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *SchemaValueProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *SchemaValueProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_doc.go deleted file mode 100644 index f657a11e6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typepropertyvalue contains the implementation for the PropertyValue -// 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 typepropertyvalue diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go deleted file mode 100644 index 76c22d938..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_pkg.go +++ /dev/null @@ -1,183 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepropertyvalue - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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) - // DeserializeValuePropertySchema returns the deserialization method for - // the "SchemaValueProperty" non-functional property in the vocabulary - // "Schema" - DeserializeValuePropertySchema() func(map[string]interface{}, map[string]string) (vocab.SchemaValueProperty, 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/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go deleted file mode 100644 index 44e3ad8a7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue/gen_type_schema_propertyvalue.go +++ /dev/null @@ -1,1682 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepropertyvalue - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -// A property-value pair, e.g. representing a feature of a product or place. Use -// the 'name' property for the name of the property. -type SchemaPropertyValue 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 - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - SchemaValue vocab.SchemaValueProperty - alias string - unknown map[string]interface{} -} - -// DeserializePropertyValue creates a PropertyValue from a map representation that -// has been unmarshalled from a text or binary format. -func DeserializePropertyValue(m map[string]interface{}, aliasMap map[string]string) (*SchemaPropertyValue, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["http://schema.org"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &SchemaPropertyValue{ - 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 != "PropertyValue" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "PropertyValue", 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) == "PropertyValue" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "PropertyValue") - } - // 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.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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.DeserializeValuePropertySchema()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.SchemaValue = 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 == "sensitive" { - 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 == "to" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } else if k == "value" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsPropertyValue returns true if the other provided type is the -// PropertyValue type or extends from the PropertyValue type. -func IsOrExtendsPropertyValue(other vocab.Type) bool { - if other.GetTypeName() == "PropertyValue" { - return true - } - return PropertyValueIsExtendedBy(other) -} - -// NewSchemaPropertyValue creates a new PropertyValue type -func NewSchemaPropertyValue() *SchemaPropertyValue { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("PropertyValue") - return &SchemaPropertyValue{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// PropertyValueIsDisjointWith returns true if the other provided type is disjoint -// with the PropertyValue type. -func PropertyValueIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// PropertyValueIsExtendedBy returns true if the other provided type extends from -// the PropertyValue type. Note that it returns false if the types are the -// same; see the "IsOrExtendsPropertyValue" variant instead. -func PropertyValueIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// SchemaPropertyValueExtends returns true if the PropertyValue type extends from -// the other type. -func SchemaPropertyValueExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this SchemaPropertyValue) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this SchemaPropertyValue) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this SchemaPropertyValue) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this SchemaPropertyValue) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetSchemaValue returns the "value" property if it exists, and nil otherwise. -func (this SchemaPropertyValue) GetSchemaValue() vocab.SchemaValueProperty { - return this.SchemaValue -} - -// GetTypeName returns the name of this type. -func (this SchemaPropertyValue) GetTypeName() string { - return "PropertyValue" -} - -// GetUnknownProperties returns the unknown properties for the PropertyValue 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 SchemaPropertyValue) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the PropertyValue type extends from the other type. -func (this SchemaPropertyValue) IsExtending(other vocab.Type) bool { - return SchemaPropertyValueExtends(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 SchemaPropertyValue) JSONLDContext() map[string]string { - m := map[string]string{"http://schema.org": 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.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - m = this.helperJSONLDContext(this.SchemaValue, m) - - return m -} - -// LessThan computes if this PropertyValue is lesser, with an arbitrary but stable -// determination. -func (this SchemaPropertyValue) LessThan(o vocab.SchemaPropertyValue) 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 "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "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 "value" - if lhs, rhs := this.SchemaValue, o.GetSchemaValue(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is 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 SchemaPropertyValue) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "PropertyValue" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "PropertyValue" - } - 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 "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "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 "value" - if this.SchemaValue != nil { - if i, err := this.SchemaValue.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.SchemaValue.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 *SchemaPropertyValue) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *SchemaPropertyValue) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *SchemaPropertyValue) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *SchemaPropertyValue) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *SchemaPropertyValue) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *SchemaPropertyValue) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *SchemaPropertyValue) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *SchemaPropertyValue) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *SchemaPropertyValue) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *SchemaPropertyValue) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *SchemaPropertyValue) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *SchemaPropertyValue) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *SchemaPropertyValue) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *SchemaPropertyValue) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *SchemaPropertyValue) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *SchemaPropertyValue) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *SchemaPropertyValue) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *SchemaPropertyValue) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *SchemaPropertyValue) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *SchemaPropertyValue) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *SchemaPropertyValue) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *SchemaPropertyValue) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *SchemaPropertyValue) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *SchemaPropertyValue) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *SchemaPropertyValue) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *SchemaPropertyValue) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *SchemaPropertyValue) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *SchemaPropertyValue) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *SchemaPropertyValue) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *SchemaPropertyValue) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *SchemaPropertyValue) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *SchemaPropertyValue) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *SchemaPropertyValue) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *SchemaPropertyValue) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetSchemaValue sets the "value" property. -func (this *SchemaPropertyValue) SetSchemaValue(i vocab.SchemaValueProperty) { - this.SchemaValue = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this SchemaPropertyValue) VocabularyURI() string { - return "http://schema.org" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this SchemaPropertyValue) 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/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_doc.go deleted file mode 100644 index bb9d0432c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyblurhash contains the implementation for the blurhash property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyblurhash diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_pkg.go deleted file mode 100644 index 1eac1c4e8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyblurhash - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go deleted file mode 100644 index 6f67d32ff..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyblurhash - -import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// TootBlurhashProperty is the functional property "blurhash". It is permitted to -// be a single default-valued value type. -type TootBlurhashProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeBlurhashProperty creates a "blurhash" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeBlurhashProperty(m map[string]interface{}, aliasMap map[string]string) (*TootBlurhashProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "blurhash" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "blurhash") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootBlurhashProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &TootBlurhashProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &TootBlurhashProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootBlurhashProperty creates a new blurhash property. -func NewTootBlurhashProperty() *TootBlurhashProperty { - return &TootBlurhashProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *TootBlurhashProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this TootBlurhashProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootBlurhashProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootBlurhashProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootBlurhashProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this TootBlurhashProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootBlurhashProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootBlurhashProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootBlurhashProperty) LessThan(o vocab.TootBlurhashProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "blurhash". -func (this TootBlurhashProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "blurhash" - } else { - return "blurhash" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootBlurhashProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *TootBlurhashProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *TootBlurhashProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_doc.go deleted file mode 100644 index 768104ece..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertydiscoverable contains the implementation for the discoverable -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertydiscoverable diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_pkg.go deleted file mode 100644 index bb9361723..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydiscoverable - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go deleted file mode 100644 index 7a1fec914..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydiscoverable - -import ( - boolean "codeberg.org/superseriousbusiness/activity/streams/values/boolean" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// TootDiscoverableProperty is the functional property "discoverable". It is -// permitted to be a single default-valued value type. -type TootDiscoverableProperty struct { - xmlschemaBooleanMember bool - hasBooleanMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeDiscoverableProperty creates a "discoverable" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeDiscoverableProperty(m map[string]interface{}, aliasMap map[string]string) (*TootDiscoverableProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "discoverable" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "discoverable") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootDiscoverableProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := boolean.DeserializeBoolean(i); err == nil { - this := &TootDiscoverableProperty{ - alias: alias, - hasBooleanMember: true, - xmlschemaBooleanMember: v, - } - return this, nil - } - this := &TootDiscoverableProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootDiscoverableProperty creates a new discoverable property. -func NewTootDiscoverableProperty() *TootDiscoverableProperty { - return &TootDiscoverableProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean -// afterwards will return false. -func (this *TootDiscoverableProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasBooleanMember = false -} - -// Get returns the value of this property. When IsXMLSchemaBoolean returns false, -// Get will return any arbitrary value. -func (this TootDiscoverableProperty) Get() bool { - return this.xmlschemaBooleanMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootDiscoverableProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootDiscoverableProperty) HasAny() bool { - return this.IsXMLSchemaBoolean() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootDiscoverableProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaBoolean returns true if this property is set and not an IRI. -func (this TootDiscoverableProperty) IsXMLSchemaBoolean() bool { - return this.hasBooleanMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootDiscoverableProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootDiscoverableProperty) KindIndex() int { - if this.IsXMLSchemaBoolean() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootDiscoverableProperty) LessThan(o vocab.TootDiscoverableProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return boolean.LessBoolean(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "discoverable". -func (this TootDiscoverableProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "discoverable" - } else { - return "discoverable" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootDiscoverableProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaBoolean() { - return boolean.SerializeBoolean(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will -// return true. -func (this *TootDiscoverableProperty) Set(v bool) { - this.Clear() - this.xmlschemaBooleanMember = v - this.hasBooleanMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *TootDiscoverableProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_doc.go deleted file mode 100644 index a1465f0c9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyfeatured contains the implementation for the featured property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyfeatured diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_pkg.go deleted file mode 100644 index 4418c6fde..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_pkg.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfeatured - -import vocab "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go deleted file mode 100644 index 2986de964..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfeatured - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// TootFeaturedProperty is the functional property "featured". It is permitted to -// be one of multiple value types. At most, one type of value can be present, -// or none at all. Setting a value will clear the other types of values so -// that only one of the 'Is' methods will return true. It is possible to clear -// all values, so that this property is empty. -type TootFeaturedProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeFeaturedProperty creates a "featured" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeFeaturedProperty(m map[string]interface{}, aliasMap map[string]string) (*TootFeaturedProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "featured" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "featured") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootFeaturedProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &TootFeaturedProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &TootFeaturedProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &TootFeaturedProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootFeaturedProperty creates a new featured property. -func NewTootFeaturedProperty() *TootFeaturedProperty { - return &TootFeaturedProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *TootFeaturedProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this TootFeaturedProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this TootFeaturedProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this TootFeaturedProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this TootFeaturedProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this TootFeaturedProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this TootFeaturedProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this TootFeaturedProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this TootFeaturedProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootFeaturedProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootFeaturedProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootFeaturedProperty) LessThan(o vocab.TootFeaturedProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "featured". -func (this TootFeaturedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "featured" - } else { - return "featured" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootFeaturedProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *TootFeaturedProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *TootFeaturedProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *TootFeaturedProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *TootFeaturedProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on featured property: %T", t) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_doc.go deleted file mode 100644 index 150fd5c77..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyfocalpoint contains the implementation for the focalPoint -// 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 propertyfocalpoint diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_pkg.go deleted file mode 100644 index 2bebe7347..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfocalpoint - -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/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go deleted file mode 100644 index cb1eb304c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint/gen_property_toot_focalPoint.go +++ /dev/null @@ -1,531 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfocalpoint - -import ( - float "codeberg.org/superseriousbusiness/activity/streams/values/float" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// TootFocalPointPropertyIterator is an iterator for a property. It is permitted -// to be a single default-valued value type. -type TootFocalPointPropertyIterator struct { - xmlschemaFloatMember float64 - hasFloatMember bool - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.TootFocalPointProperty -} - -// NewTootFocalPointPropertyIterator creates a new TootFocalPoint property. -func NewTootFocalPointPropertyIterator() *TootFocalPointPropertyIterator { - return &TootFocalPointPropertyIterator{alias: ""} -} - -// deserializeTootFocalPointPropertyIterator creates an iterator from an element -// that has been unmarshalled from a text or binary format. -func deserializeTootFocalPointPropertyIterator(i interface{}, aliasMap map[string]string) (*TootFocalPointPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootFocalPointPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := float.DeserializeFloat(i); err == nil { - this := &TootFocalPointPropertyIterator{ - alias: alias, - hasFloatMember: true, - xmlschemaFloatMember: v, - } - return this, nil - } - this := &TootFocalPointPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaFloat returns false, -// Get will return any arbitrary value. -func (this TootFocalPointPropertyIterator) Get() float64 { - return this.xmlschemaFloatMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootFocalPointPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootFocalPointPropertyIterator) HasAny() bool { - return this.IsXMLSchemaFloat() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootFocalPointPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaFloat returns true if this property is set and not an IRI. -func (this TootFocalPointPropertyIterator) 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 TootFocalPointPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootFocalPointPropertyIterator) 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 TootFocalPointPropertyIterator) LessThan(o vocab.TootFocalPointPropertyIterator) 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: "TootFocalPoint". -func (this TootFocalPointPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "TootFocalPoint" - } else { - return "TootFocalPoint" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this TootFocalPointPropertyIterator) Next() vocab.TootFocalPointPropertyIterator { - 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 TootFocalPointPropertyIterator) Prev() vocab.TootFocalPointPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will -// return true. -func (this *TootFocalPointPropertyIterator) 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 *TootFocalPointPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaFloat -// afterwards will return false. -func (this *TootFocalPointPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.hasFloatMember = 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 TootFocalPointPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaFloat() { - return float.SerializeFloat(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// TootFocalPointProperty is the non-functional property "focalPoint". It is -// permitted to have one or more values, and of different value types. -type TootFocalPointProperty struct { - properties []*TootFocalPointPropertyIterator - alias string -} - -// DeserializeFocalPointProperty creates a "focalPoint" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeFocalPointProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.TootFocalPointProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "focalPoint" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "focalPoint") - } - i, ok := m[propName] - - if ok { - this := &TootFocalPointProperty{ - alias: alias, - properties: []*TootFocalPointPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeTootFocalPointPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeTootFocalPointPropertyIterator(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 -} - -// NewTootFocalPointProperty creates a new focalPoint property. -func NewTootFocalPointProperty() *TootFocalPointProperty { - return &TootFocalPointProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "focalPoint" -func (this *TootFocalPointProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &TootFocalPointPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendXMLSchemaFloat appends a float value to the back of a list of the -// property "focalPoint". Invalidates iterators that are traversing using Prev. -func (this *TootFocalPointProperty) AppendXMLSchemaFloat(v float64) { - this.properties = append(this.properties, &TootFocalPointPropertyIterator{ - alias: this.alias, - hasFloatMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaFloatMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this TootFocalPointProperty) At(index int) vocab.TootFocalPointPropertyIterator { - 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 TootFocalPointProperty) Begin() vocab.TootFocalPointPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this TootFocalPointProperty) 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 TootFocalPointProperty) End() vocab.TootFocalPointPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "focalPoint". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *TootFocalPointProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &TootFocalPointPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaFloat inserts a float value at the specified index for a -// property "focalPoint". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *TootFocalPointProperty) InsertXMLSchemaFloat(idx int, v float64) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &TootFocalPointPropertyIterator{ - alias: this.alias, - hasFloatMember: true, - myIdx: idx, - parent: this, - xmlschemaFloatMember: 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 TootFocalPointProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this TootFocalPointProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "focalPoint" property. -func (this TootFocalPointProperty) 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 TootFocalPointProperty) 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 float.LessFloat(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 TootFocalPointProperty) LessThan(o vocab.TootFocalPointProperty) 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 ("focalPoint") with any alias. -func (this TootFocalPointProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "focalPoint" - } else { - return "focalPoint" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "focalPoint". -func (this *TootFocalPointProperty) PrependIRI(v *url.URL) { - this.properties = append([]*TootFocalPointPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaFloat prepends a float value to the front of a list of the -// property "focalPoint". Invalidates all iterators. -func (this *TootFocalPointProperty) PrependXMLSchemaFloat(v float64) { - this.properties = append([]*TootFocalPointPropertyIterator{{ - alias: this.alias, - hasFloatMember: true, - myIdx: 0, - parent: this, - xmlschemaFloatMember: 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 -// "focalPoint", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *TootFocalPointProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &TootFocalPointPropertyIterator{} - 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 TootFocalPointProperty) 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 float value to be at the specified index for the property -// "focalPoint". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *TootFocalPointProperty) Set(idx int, v float64) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &TootFocalPointPropertyIterator{ - alias: this.alias, - hasFloatMember: true, - myIdx: idx, - parent: this, - xmlschemaFloatMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "focalPoint". Panics if the index is out of bounds. -func (this *TootFocalPointProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &TootFocalPointPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// Swap swaps the location of values at two indices for the "focalPoint" property. -func (this TootFocalPointProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_doc.go deleted file mode 100644 index 256409d37..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyindexable contains the implementation for the indexable -// 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 propertyindexable diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_pkg.go deleted file mode 100644 index 9952e364b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyindexable - -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/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go deleted file mode 100644 index ea6742680..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable/gen_property_toot_indexable.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyindexable - -import ( - boolean "codeberg.org/superseriousbusiness/activity/streams/values/boolean" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// TootIndexableProperty is the functional property "indexable". It is permitted -// to be a single default-valued value type. -type TootIndexableProperty struct { - xmlschemaBooleanMember bool - hasBooleanMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeIndexableProperty creates a "indexable" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeIndexableProperty(m map[string]interface{}, aliasMap map[string]string) (*TootIndexableProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "indexable" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "indexable") - } - 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 := &TootIndexableProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := boolean.DeserializeBoolean(i); err == nil { - this := &TootIndexableProperty{ - alias: alias, - hasBooleanMember: true, - xmlschemaBooleanMember: v, - } - return this, nil - } - this := &TootIndexableProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootIndexableProperty creates a new indexable property. -func NewTootIndexableProperty() *TootIndexableProperty { - return &TootIndexableProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean -// afterwards will return false. -func (this *TootIndexableProperty) 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 TootIndexableProperty) Get() bool { - return this.xmlschemaBooleanMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootIndexableProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootIndexableProperty) HasAny() bool { - return this.IsXMLSchemaBoolean() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootIndexableProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaBoolean returns true if this property is set and not an IRI. -func (this TootIndexableProperty) 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 TootIndexableProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootIndexableProperty) 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 TootIndexableProperty) LessThan(o vocab.TootIndexableProperty) 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: "indexable". -func (this TootIndexableProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "indexable" - } else { - return "indexable" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need 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 TootIndexableProperty) 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 *TootIndexableProperty) 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 *TootIndexableProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go deleted file mode 100644 index d2293a47e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertysignaturealgorithm contains the implementation for the -// signatureAlgorithm property. All applications are strongly encouraged to -// use the interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertysignaturealgorithm diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go deleted file mode 100644 index 2ed0e281b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysignaturealgorithm - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go deleted file mode 100644 index e67819289..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysignaturealgorithm - -import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// TootSignatureAlgorithmProperty is the functional property "signatureAlgorithm". -// It is permitted to be a single default-valued value type. -type TootSignatureAlgorithmProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeSignatureAlgorithmProperty creates a "signatureAlgorithm" property -// from an interface representation that has been unmarshalled from a text or -// binary format. -func DeserializeSignatureAlgorithmProperty(m map[string]interface{}, aliasMap map[string]string) (*TootSignatureAlgorithmProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "signatureAlgorithm" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "signatureAlgorithm") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootSignatureAlgorithmProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &TootSignatureAlgorithmProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &TootSignatureAlgorithmProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootSignatureAlgorithmProperty creates a new signatureAlgorithm property. -func NewTootSignatureAlgorithmProperty() *TootSignatureAlgorithmProperty { - return &TootSignatureAlgorithmProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *TootSignatureAlgorithmProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this TootSignatureAlgorithmProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootSignatureAlgorithmProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootSignatureAlgorithmProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootSignatureAlgorithmProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this TootSignatureAlgorithmProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootSignatureAlgorithmProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootSignatureAlgorithmProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootSignatureAlgorithmProperty) LessThan(o vocab.TootSignatureAlgorithmProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "signatureAlgorithm". -func (this TootSignatureAlgorithmProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "signatureAlgorithm" - } else { - return "signatureAlgorithm" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootSignatureAlgorithmProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *TootSignatureAlgorithmProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *TootSignatureAlgorithmProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_doc.go deleted file mode 100644 index 668c4e8f3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertysignaturevalue contains the implementation for the -// signatureValue property. All applications are strongly encouraged to use -// the interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertysignaturevalue diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go deleted file mode 100644 index 540b6f1aa..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysignaturevalue - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go deleted file mode 100644 index 20fa50dda..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysignaturevalue - -import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// TootSignatureValueProperty is the functional property "signatureValue". It is -// permitted to be a single default-valued value type. -type TootSignatureValueProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeSignatureValueProperty creates a "signatureValue" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeSignatureValueProperty(m map[string]interface{}, aliasMap map[string]string) (*TootSignatureValueProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "signatureValue" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "signatureValue") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootSignatureValueProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &TootSignatureValueProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &TootSignatureValueProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootSignatureValueProperty creates a new signatureValue property. -func NewTootSignatureValueProperty() *TootSignatureValueProperty { - return &TootSignatureValueProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *TootSignatureValueProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this TootSignatureValueProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootSignatureValueProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootSignatureValueProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootSignatureValueProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this TootSignatureValueProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootSignatureValueProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootSignatureValueProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootSignatureValueProperty) LessThan(o vocab.TootSignatureValueProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "signatureValue". -func (this TootSignatureValueProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "signatureValue" - } else { - return "signatureValue" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootSignatureValueProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *TootSignatureValueProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *TootSignatureValueProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_doc.go deleted file mode 100644 index e2d1296b2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyvoterscount contains the implementation for the votersCount -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyvoterscount diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_pkg.go deleted file mode 100644 index 668695c06..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyvoterscount - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go deleted file mode 100644 index 28f0919eb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go +++ /dev/null @@ -1,205 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyvoterscount - -import ( - nonnegativeinteger "codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// TootVotersCountProperty is the functional property "votersCount". It is -// permitted to be a single default-valued value type. -type TootVotersCountProperty struct { - xmlschemaNonNegativeIntegerMember int - hasNonNegativeIntegerMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeVotersCountProperty creates a "votersCount" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeVotersCountProperty(m map[string]interface{}, aliasMap map[string]string) (*TootVotersCountProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "votersCount" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "votersCount") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootVotersCountProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil { - this := &TootVotersCountProperty{ - alias: alias, - hasNonNegativeIntegerMember: true, - xmlschemaNonNegativeIntegerMember: v, - } - return this, nil - } - this := &TootVotersCountProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootVotersCountProperty creates a new votersCount property. -func NewTootVotersCountProperty() *TootVotersCountProperty { - return &TootVotersCountProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling -// IsXMLSchemaNonNegativeInteger afterwards will return false. -func (this *TootVotersCountProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasNonNegativeIntegerMember = false -} - -// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger -// returns false, Get will return any arbitrary value. -func (this TootVotersCountProperty) Get() int { - return this.xmlschemaNonNegativeIntegerMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootVotersCountProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootVotersCountProperty) HasAny() bool { - return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootVotersCountProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an -// IRI. -func (this TootVotersCountProperty) IsXMLSchemaNonNegativeInteger() bool { - return this.hasNonNegativeIntegerMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootVotersCountProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootVotersCountProperty) KindIndex() int { - if this.IsXMLSchemaNonNegativeInteger() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootVotersCountProperty) LessThan(o vocab.TootVotersCountProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "votersCount". -func (this TootVotersCountProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "votersCount" - } else { - return "votersCount" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootVotersCountProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaNonNegativeInteger() { - return nonnegativeinteger.SerializeNonNegativeInteger(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger -// afterwards will return true. -func (this *TootVotersCountProperty) Set(v int) { - this.Clear() - this.xmlschemaNonNegativeIntegerMember = v - this.hasNonNegativeIntegerMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *TootVotersCountProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_doc.go deleted file mode 100644 index 1fadb2fe0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeemoji contains the implementation for the Emoji type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeemoji diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_pkg.go deleted file mode 100644 index 5a71e45cc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_pkg.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeemoji - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, 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) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go deleted file mode 100644 index 5748a9fb2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go +++ /dev/null @@ -1,1655 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeemoji - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -// { -// "content": "Hello world :Kappa:", -// "id": "https://example.com/@alice/hello-world", -// "tag": [ -// { -// "icon": { -// "mediaType": "image/png", -// "type": "Image", -// "url": "https://example.com/files/kappa.png" -// }, -// "id": "https://example.com/emoji/123", -// "name": ":Kappa:", -// "type": "Emoji" -// } -// ], -// "type": "Note" -// } -type TootEmoji struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeEmoji creates a Emoji from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeEmoji(m map[string]interface{}, aliasMap map[string]string) (*TootEmoji, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &TootEmoji{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Emoji" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Emoji", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Emoji" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Emoji") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = 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.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - 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 == "to" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// EmojiIsDisjointWith returns true if the other provided type is disjoint with -// the Emoji type. -func EmojiIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// EmojiIsExtendedBy returns true if the other provided type extends from the -// Emoji type. Note that it returns false if the types are the same; see the -// "IsOrExtendsEmoji" variant instead. -func EmojiIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsEmoji returns true if the other provided type is the Emoji type or -// extends from the Emoji type. -func IsOrExtendsEmoji(other vocab.Type) bool { - if other.GetTypeName() == "Emoji" { - return true - } - return EmojiIsExtendedBy(other) -} - -// NewTootEmoji creates a new Emoji type -func NewTootEmoji() *TootEmoji { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Emoji") - return &TootEmoji{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TootEmojiExtends returns true if the Emoji type extends from the other type. -func TootEmojiExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this TootEmoji) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this TootEmoji) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this TootEmoji) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this TootEmoji) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this TootEmoji) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this TootEmoji) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this TootEmoji) GetTypeName() string { - return "Emoji" -} - -// GetUnknownProperties returns the unknown properties for the Emoji type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this TootEmoji) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Emoji type extends from the other type. -func (this TootEmoji) IsExtending(other vocab.Type) bool { - return TootEmojiExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this TootEmoji) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, 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.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Emoji is lesser, with an arbitrary but stable -// determination. -func (this TootEmoji) LessThan(o vocab.TootEmoji) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than 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 "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 "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this TootEmoji) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Emoji" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Emoji" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.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 "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 "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *TootEmoji) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *TootEmoji) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *TootEmoji) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *TootEmoji) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *TootEmoji) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *TootEmoji) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *TootEmoji) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *TootEmoji) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *TootEmoji) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *TootEmoji) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *TootEmoji) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *TootEmoji) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *TootEmoji) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *TootEmoji) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *TootEmoji) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *TootEmoji) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *TootEmoji) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *TootEmoji) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *TootEmoji) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *TootEmoji) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *TootEmoji) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *TootEmoji) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *TootEmoji) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *TootEmoji) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *TootEmoji) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *TootEmoji) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *TootEmoji) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *TootEmoji) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *TootEmoji) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *TootEmoji) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *TootEmoji) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *TootEmoji) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *TootEmoji) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *TootEmoji) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this TootEmoji) VocabularyURI() string { - return "http://joinmastodon.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this TootEmoji) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_doc.go deleted file mode 100644 index ec71c25bc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typehashtag contains the implementation for the Hashtag 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 typehashtag diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_pkg.go deleted file mode 100644 index a8414fd01..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_pkg.go +++ /dev/null @@ -1,91 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typehashtag - -import vocab "codeberg.org/superseriousbusiness/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/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go deleted file mode 100644 index 02f8a8d98..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go +++ /dev/null @@ -1,726 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typehashtag - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -// { -// "content": "example", -// "id": "https://example.com/@alice/hello-world", -// "tag": [ -// { -// "href": "https://example.com/hashtag/example", -// "name": "#example", -// "type": "Hashtag" -// } -// ], -// "type": "Note" -// } -type TootHashtag 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{} -} - -// DeserializeHashtag creates a Hashtag from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeHashtag(m map[string]interface{}, aliasMap map[string]string) (*TootHashtag, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &TootHashtag{ - 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 != "Hashtag" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Hashtag", 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) == "Hashtag" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Hashtag") - } - // 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 -} - -// HashtagIsDisjointWith returns true if the other provided type is disjoint with -// the Hashtag type. -func HashtagIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// HashtagIsExtendedBy returns true if the other provided type extends from the -// Hashtag type. Note that it returns false if the types are the same; see the -// "IsOrExtendsHashtag" variant instead. -func HashtagIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsHashtag returns true if the other provided type is the Hashtag type -// or extends from the Hashtag type. -func IsOrExtendsHashtag(other vocab.Type) bool { - if other.GetTypeName() == "Hashtag" { - return true - } - return HashtagIsExtendedBy(other) -} - -// NewTootHashtag creates a new Hashtag type -func NewTootHashtag() *TootHashtag { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Hashtag") - return &TootHashtag{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TootHashtagExtends returns true if the Hashtag type extends from the other type. -func TootHashtagExtends(other vocab.Type) bool { - extensions := []string{"Link"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this TootHashtag) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsHeight returns the "height" property if it exists, and nil -// otherwise. -func (this TootHashtag) GetActivityStreamsHeight() vocab.ActivityStreamsHeightProperty { - return this.ActivityStreamsHeight -} - -// GetActivityStreamsHref returns the "href" property if it exists, and nil -// otherwise. -func (this TootHashtag) GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty { - return this.ActivityStreamsHref -} - -// GetActivityStreamsHreflang returns the "hreflang" property if it exists, and -// nil otherwise. -func (this TootHashtag) GetActivityStreamsHreflang() vocab.ActivityStreamsHreflangProperty { - return this.ActivityStreamsHreflang -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this TootHashtag) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this TootHashtag) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this TootHashtag) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsRel returns the "rel" property if it exists, and nil -// otherwise. -func (this TootHashtag) GetActivityStreamsRel() vocab.ActivityStreamsRelProperty { - return this.ActivityStreamsRel -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this TootHashtag) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsWidth returns the "width" property if it exists, and nil -// otherwise. -func (this TootHashtag) GetActivityStreamsWidth() vocab.ActivityStreamsWidthProperty { - return this.ActivityStreamsWidth -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this TootHashtag) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this TootHashtag) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this TootHashtag) GetTypeName() string { - return "Hashtag" -} - -// GetUnknownProperties returns the unknown properties for the Hashtag 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 TootHashtag) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Hashtag type extends from the other type. -func (this TootHashtag) IsExtending(other vocab.Type) bool { - return TootHashtagExtends(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 TootHashtag) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": 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 Hashtag is lesser, with an arbitrary but stable -// determination. -func (this TootHashtag) LessThan(o vocab.TootHashtag) 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 TootHashtag) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Hashtag" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Hashtag" - } - 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 *TootHashtag) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsHeight sets the "height" property. -func (this *TootHashtag) SetActivityStreamsHeight(i vocab.ActivityStreamsHeightProperty) { - this.ActivityStreamsHeight = i -} - -// SetActivityStreamsHref sets the "href" property. -func (this *TootHashtag) SetActivityStreamsHref(i vocab.ActivityStreamsHrefProperty) { - this.ActivityStreamsHref = i -} - -// SetActivityStreamsHreflang sets the "hreflang" property. -func (this *TootHashtag) SetActivityStreamsHreflang(i vocab.ActivityStreamsHreflangProperty) { - this.ActivityStreamsHreflang = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *TootHashtag) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *TootHashtag) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *TootHashtag) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsRel sets the "rel" property. -func (this *TootHashtag) SetActivityStreamsRel(i vocab.ActivityStreamsRelProperty) { - this.ActivityStreamsRel = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *TootHashtag) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsWidth sets the "width" property. -func (this *TootHashtag) SetActivityStreamsWidth(i vocab.ActivityStreamsWidthProperty) { - this.ActivityStreamsWidth = i -} - -// SetJSONLDId sets the "id" property. -func (this *TootHashtag) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *TootHashtag) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this TootHashtag) VocabularyURI() string { - return "http://joinmastodon.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this TootHashtag) 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/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_doc.go deleted file mode 100644 index a785de594..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeidentityproof contains the implementation for the IdentityProof -// type. All applications are strongly encouraged to use the interface instead -// of this concrete definition. The interfaces allow applications to consume -// only the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeidentityproof diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_pkg.go deleted file mode 100644 index abfb0dbfa..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_pkg.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeidentityproof - -import vocab "codeberg.org/superseriousbusiness/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) - // DeserializeSensitivePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSensitiveProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSignatureAlgorithmPropertyToot returns the deserialization - // method for the "TootSignatureAlgorithmProperty" non-functional - // property in the vocabulary "Toot" - DeserializeSignatureAlgorithmPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureAlgorithmProperty, error) - // DeserializeSignatureValuePropertyToot returns the deserialization - // method for the "TootSignatureValueProperty" non-functional property - // in the vocabulary "Toot" - DeserializeSignatureValuePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureValueProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // 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) - // 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/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go deleted file mode 100644 index daca4e62f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go +++ /dev/null @@ -1,1724 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeidentityproof - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "strings" -) - -// null -type TootIdentityProof struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - TootSignatureAlgorithm vocab.TootSignatureAlgorithmProperty - TootSignatureValue vocab.TootSignatureValueProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeIdentityProof creates a IdentityProof from a map representation that -// has been unmarshalled from a text or binary format. -func DeserializeIdentityProof(m map[string]interface{}, aliasMap map[string]string) (*TootIdentityProof, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &TootIdentityProof{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "IdentityProof" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "IdentityProof", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "IdentityProof" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "IdentityProof") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSensitive = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSignatureAlgorithmPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootSignatureAlgorithm = p - } - if p, err := mgr.DeserializeSignatureValuePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootSignatureValue = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = 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 == "sensitive" { - continue - } else if k == "shares" { - continue - } else if k == "signatureAlgorithm" { - continue - } else if k == "signatureValue" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "to" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IdentityProofIsDisjointWith returns true if the other provided type is disjoint -// with the IdentityProof type. -func IdentityProofIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Hashtag", "Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// IdentityProofIsExtendedBy returns true if the other provided type extends from -// the IdentityProof type. Note that it returns false if the types are the -// same; see the "IsOrExtendsIdentityProof" variant instead. -func IdentityProofIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsIdentityProof returns true if the other provided type is the -// IdentityProof type or extends from the IdentityProof type. -func IsOrExtendsIdentityProof(other vocab.Type) bool { - if other.GetTypeName() == "IdentityProof" { - return true - } - return IdentityProofIsExtendedBy(other) -} - -// NewTootIdentityProof creates a new IdentityProof type -func NewTootIdentityProof() *TootIdentityProof { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("IdentityProof") - return &TootIdentityProof{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TootIdentityProofExtends returns true if the IdentityProof type extends from -// the other type. -func TootIdentityProofExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this TootIdentityProof) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this TootIdentityProof) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this TootIdentityProof) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { - return this.ActivityStreamsSensitive -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this TootIdentityProof) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this TootIdentityProof) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this TootIdentityProof) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootSignatureAlgorithm returns the "signatureAlgorithm" property if it -// exists, and nil otherwise. -func (this TootIdentityProof) GetTootSignatureAlgorithm() vocab.TootSignatureAlgorithmProperty { - return this.TootSignatureAlgorithm -} - -// GetTootSignatureValue returns the "signatureValue" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetTootSignatureValue() vocab.TootSignatureValueProperty { - return this.TootSignatureValue -} - -// GetTypeName returns the name of this type. -func (this TootIdentityProof) GetTypeName() string { - return "IdentityProof" -} - -// GetUnknownProperties returns the unknown properties for the IdentityProof type. -// Note that this should not be used by app developers. It is only used to -// help determine which implementation is LessThan the other. Developers who -// are creating a different implementation of this type's interface can use -// this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this TootIdentityProof) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the IdentityProof type extends from the other type. -func (this TootIdentityProof) IsExtending(other vocab.Type) bool { - return TootIdentityProofExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this TootIdentityProof) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.TootSignatureAlgorithm, m) - m = this.helperJSONLDContext(this.TootSignatureValue, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this IdentityProof is lesser, with an arbitrary but stable -// determination. -func (this TootIdentityProof) LessThan(o vocab.TootIdentityProof) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "sensitive" - if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "signatureAlgorithm" - if lhs, rhs := this.TootSignatureAlgorithm, o.GetTootSignatureAlgorithm(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "signatureValue" - if lhs, rhs := this.TootSignatureValue, o.GetTootSignatureValue(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "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 "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this TootIdentityProof) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "IdentityProof" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "IdentityProof" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "sensitive" - if this.ActivityStreamsSensitive != nil { - if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSensitive.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "signatureAlgorithm" - if this.TootSignatureAlgorithm != nil { - if i, err := this.TootSignatureAlgorithm.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootSignatureAlgorithm.Name()] = i - } - } - // Maybe serialize property "signatureValue" - if this.TootSignatureValue != nil { - if i, err := this.TootSignatureValue.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootSignatureValue.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "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 "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *TootIdentityProof) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *TootIdentityProof) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *TootIdentityProof) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *TootIdentityProof) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *TootIdentityProof) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *TootIdentityProof) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *TootIdentityProof) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *TootIdentityProof) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *TootIdentityProof) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *TootIdentityProof) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *TootIdentityProof) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *TootIdentityProof) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *TootIdentityProof) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *TootIdentityProof) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *TootIdentityProof) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *TootIdentityProof) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *TootIdentityProof) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *TootIdentityProof) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *TootIdentityProof) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *TootIdentityProof) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *TootIdentityProof) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *TootIdentityProof) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *TootIdentityProof) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsSensitive sets the "sensitive" property. -func (this *TootIdentityProof) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { - this.ActivityStreamsSensitive = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *TootIdentityProof) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *TootIdentityProof) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *TootIdentityProof) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *TootIdentityProof) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *TootIdentityProof) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *TootIdentityProof) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *TootIdentityProof) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *TootIdentityProof) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetJSONLDId sets the "id" property. -func (this *TootIdentityProof) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *TootIdentityProof) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootSignatureAlgorithm sets the "signatureAlgorithm" property. -func (this *TootIdentityProof) SetTootSignatureAlgorithm(i vocab.TootSignatureAlgorithmProperty) { - this.TootSignatureAlgorithm = i -} - -// SetTootSignatureValue sets the "signatureValue" property. -func (this *TootIdentityProof) SetTootSignatureValue(i vocab.TootSignatureValueProperty) { - this.TootSignatureValue = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this TootIdentityProof) VocabularyURI() string { - return "http://joinmastodon.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this TootIdentityProof) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go deleted file mode 100644 index 1c77bcd7f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyowner contains the implementation for the owner property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyowner diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go deleted file mode 100644 index 3a38a9b85..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyowner - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go deleted file mode 100644 index 195f6cb63..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyowner - -import ( - anyuri "codeberg.org/superseriousbusiness/activity/streams/values/anyURI" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// W3IDSecurityV1OwnerProperty is the functional property "owner". It is permitted -// to be a single nilable value type. -type W3IDSecurityV1OwnerProperty struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string -} - -// DeserializeOwnerProperty creates a "owner" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeOwnerProperty(m map[string]interface{}, aliasMap map[string]string) (*W3IDSecurityV1OwnerProperty, error) { - alias := "" - if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { - alias = a - } - propName := "owner" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "owner") - } - i, ok := m[propName] - - if ok { - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &W3IDSecurityV1OwnerProperty{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &W3IDSecurityV1OwnerProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewW3IDSecurityV1OwnerProperty creates a new owner property. -func NewW3IDSecurityV1OwnerProperty() *W3IDSecurityV1OwnerProperty { - return &W3IDSecurityV1OwnerProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *W3IDSecurityV1OwnerProperty) Clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this W3IDSecurityV1OwnerProperty) Get() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this W3IDSecurityV1OwnerProperty) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this W3IDSecurityV1OwnerProperty) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this W3IDSecurityV1OwnerProperty) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this W3IDSecurityV1OwnerProperty) IsXMLSchemaAnyURI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this W3IDSecurityV1OwnerProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://w3id.org/security/v1": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this W3IDSecurityV1OwnerProperty) KindIndex() int { - if this.IsXMLSchemaAnyURI() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this W3IDSecurityV1OwnerProperty) LessThan(o vocab.W3IDSecurityV1OwnerProperty) bool { - if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return anyuri.LessAnyURI(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "owner". -func (this W3IDSecurityV1OwnerProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "owner" - } else { - return "owner" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this W3IDSecurityV1OwnerProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *W3IDSecurityV1OwnerProperty) Set(v *url.URL) { - this.Clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *W3IDSecurityV1OwnerProperty) SetIRI(v *url.URL) { - this.Clear() - this.Set(v) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go deleted file mode 100644 index 59947096d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertypublickey contains the implementation for the publicKey -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertypublickey diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go deleted file mode 100644 index 7454c0e14..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypublickey - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializePublicKeyW3IDSecurityV1 returns the deserialization method - // for the "W3IDSecurityV1PublicKey" non-functional property in the - // vocabulary "W3IDSecurityV1" - DeserializePublicKeyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKey, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go deleted file mode 100644 index d3d66a417..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go +++ /dev/null @@ -1,621 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypublickey - -import ( - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// W3IDSecurityV1PublicKeyPropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type W3IDSecurityV1PublicKeyPropertyIterator struct { - w3idsecurityv1PublicKeyMember vocab.W3IDSecurityV1PublicKey - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.W3IDSecurityV1PublicKeyProperty -} - -// NewW3IDSecurityV1PublicKeyPropertyIterator creates a new -// W3IDSecurityV1PublicKey property. -func NewW3IDSecurityV1PublicKeyPropertyIterator() *W3IDSecurityV1PublicKeyPropertyIterator { - return &W3IDSecurityV1PublicKeyPropertyIterator{alias: ""} -} - -// deserializeW3IDSecurityV1PublicKeyPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeW3IDSecurityV1PublicKeyPropertyIterator(i interface{}, aliasMap map[string]string) (*W3IDSecurityV1PublicKeyPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializePublicKeyW3IDSecurityV1()(m, aliasMap); err == nil { - this := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: alias, - w3idsecurityv1PublicKeyMember: v, - } - return this, nil - } - } - this := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsW3IDSecurityV1PublicKey returns -// false, Get will return any arbitrary value. -func (this W3IDSecurityV1PublicKeyPropertyIterator) Get() vocab.W3IDSecurityV1PublicKey { - return this.w3idsecurityv1PublicKeyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this W3IDSecurityV1PublicKeyPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this W3IDSecurityV1PublicKeyPropertyIterator) GetType() vocab.Type { - if this.IsW3IDSecurityV1PublicKey() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this W3IDSecurityV1PublicKeyPropertyIterator) HasAny() bool { - return this.IsW3IDSecurityV1PublicKey() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this W3IDSecurityV1PublicKeyPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsW3IDSecurityV1PublicKey returns true if this property is set and not an IRI. -func (this W3IDSecurityV1PublicKeyPropertyIterator) IsW3IDSecurityV1PublicKey() bool { - return this.w3idsecurityv1PublicKeyMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this W3IDSecurityV1PublicKeyPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://w3id.org/security/v1": this.alias} - var child map[string]string - if this.IsW3IDSecurityV1PublicKey() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this W3IDSecurityV1PublicKeyPropertyIterator) KindIndex() int { - if this.IsW3IDSecurityV1PublicKey() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this W3IDSecurityV1PublicKeyPropertyIterator) LessThan(o vocab.W3IDSecurityV1PublicKeyPropertyIterator) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsW3IDSecurityV1PublicKey() && !o.IsW3IDSecurityV1PublicKey() { - // Both are unknowns. - return false - } else if this.IsW3IDSecurityV1PublicKey() && !o.IsW3IDSecurityV1PublicKey() { - // Values are always greater than unknown values. - return false - } else if !this.IsW3IDSecurityV1PublicKey() && o.IsW3IDSecurityV1PublicKey() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "W3IDSecurityV1PublicKey". -func (this W3IDSecurityV1PublicKeyPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "W3IDSecurityV1PublicKey" - } else { - return "W3IDSecurityV1PublicKey" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this W3IDSecurityV1PublicKeyPropertyIterator) Next() vocab.W3IDSecurityV1PublicKeyPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this W3IDSecurityV1PublicKeyPropertyIterator) Prev() vocab.W3IDSecurityV1PublicKeyPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsW3IDSecurityV1PublicKey -// afterwards will return true. -func (this *W3IDSecurityV1PublicKeyPropertyIterator) Set(v vocab.W3IDSecurityV1PublicKey) { - this.clear() - this.w3idsecurityv1PublicKeyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *W3IDSecurityV1PublicKeyPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *W3IDSecurityV1PublicKeyPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.W3IDSecurityV1PublicKey); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on W3IDSecurityV1PublicKey property: %T", t) -} - -// clear ensures no value of this property is set. Calling -// IsW3IDSecurityV1PublicKey afterwards will return false. -func (this *W3IDSecurityV1PublicKeyPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.w3idsecurityv1PublicKeyMember = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this W3IDSecurityV1PublicKeyPropertyIterator) serialize() (interface{}, error) { - if this.IsW3IDSecurityV1PublicKey() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// W3IDSecurityV1PublicKeyProperty is the non-functional property "publicKey". It -// is permitted to have one or more values, and of different value types. -type W3IDSecurityV1PublicKeyProperty struct { - properties []*W3IDSecurityV1PublicKeyPropertyIterator - alias string -} - -// DeserializePublicKeyProperty creates a "publicKey" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializePublicKeyProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) { - alias := "" - if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { - alias = a - } - propName := "publicKey" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "publicKey") - } - i, ok := m[propName] - - if ok { - this := &W3IDSecurityV1PublicKeyProperty{ - alias: alias, - properties: []*W3IDSecurityV1PublicKeyPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeW3IDSecurityV1PublicKeyPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeW3IDSecurityV1PublicKeyPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewW3IDSecurityV1PublicKeyProperty creates a new publicKey property. -func NewW3IDSecurityV1PublicKeyProperty() *W3IDSecurityV1PublicKeyProperty { - return &W3IDSecurityV1PublicKeyProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property "publicKey" -func (this *W3IDSecurityV1PublicKeyProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "publicKey". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *W3IDSecurityV1PublicKeyProperty) AppendType(t vocab.Type) error { - n := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// AppendW3IDSecurityV1PublicKey appends a PublicKey value to the back of a list -// of the property "publicKey". Invalidates iterators that are traversing -// using Prev. -func (this *W3IDSecurityV1PublicKeyProperty) AppendW3IDSecurityV1PublicKey(v vocab.W3IDSecurityV1PublicKey) { - this.properties = append(this.properties, &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - w3idsecurityv1PublicKeyMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this W3IDSecurityV1PublicKeyProperty) At(index int) vocab.W3IDSecurityV1PublicKeyPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this W3IDSecurityV1PublicKeyProperty) Begin() vocab.W3IDSecurityV1PublicKeyPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this W3IDSecurityV1PublicKeyProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this W3IDSecurityV1PublicKeyProperty) End() vocab.W3IDSecurityV1PublicKeyPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "publicKey". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *W3IDSecurityV1PublicKeyProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "publicKey". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *W3IDSecurityV1PublicKeyProperty) InsertType(idx int, t vocab.Type) error { - n := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// InsertW3IDSecurityV1PublicKey inserts a PublicKey value at the specified index -// for a property "publicKey". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *W3IDSecurityV1PublicKeyProperty) InsertW3IDSecurityV1PublicKey(idx int, v vocab.W3IDSecurityV1PublicKey) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - w3idsecurityv1PublicKeyMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this W3IDSecurityV1PublicKeyProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://w3id.org/security/v1": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this W3IDSecurityV1PublicKeyProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "publicKey" property. -func (this W3IDSecurityV1PublicKeyProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this W3IDSecurityV1PublicKeyProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this W3IDSecurityV1PublicKeyProperty) LessThan(o vocab.W3IDSecurityV1PublicKeyProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("publicKey") with any alias. -func (this W3IDSecurityV1PublicKeyProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "publicKey" - } else { - return "publicKey" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "publicKey". -func (this *W3IDSecurityV1PublicKeyProperty) PrependIRI(v *url.URL) { - this.properties = append([]*W3IDSecurityV1PublicKeyPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "publicKey". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *W3IDSecurityV1PublicKeyProperty) PrependType(t vocab.Type) error { - n := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*W3IDSecurityV1PublicKeyPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// PrependW3IDSecurityV1PublicKey prepends a PublicKey value to the front of a -// list of the property "publicKey". Invalidates all iterators. -func (this *W3IDSecurityV1PublicKeyProperty) PrependW3IDSecurityV1PublicKey(v vocab.W3IDSecurityV1PublicKey) { - this.properties = append([]*W3IDSecurityV1PublicKeyPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - w3idsecurityv1PublicKeyMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "publicKey", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *W3IDSecurityV1PublicKeyProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &W3IDSecurityV1PublicKeyPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this W3IDSecurityV1PublicKeyProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// Set sets a PublicKey value to be at the specified index for the property -// "publicKey". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *W3IDSecurityV1PublicKeyProperty) Set(idx int, v vocab.W3IDSecurityV1PublicKey) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - w3idsecurityv1PublicKeyMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "publicKey". Panics if the index is out of bounds. -func (this *W3IDSecurityV1PublicKeyProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "publicKey". Invalidates all iterators. Returns an error if the type is not -// a valid one to set for this property. Panics if the index is out of bounds. -func (this *W3IDSecurityV1PublicKeyProperty) SetType(idx int, t vocab.Type) error { - n := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "publicKey" property. -func (this W3IDSecurityV1PublicKeyProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go deleted file mode 100644 index e1282c8f3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertypublickeypem contains the implementation for the publicKeyPem -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertypublickeypem diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go deleted file mode 100644 index 764de7fa5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypublickeypem - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go deleted file mode 100644 index bac088a04..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypublickeypem - -import ( - string1 "codeberg.org/superseriousbusiness/activity/streams/values/string" - vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - "fmt" - "net/url" -) - -// W3IDSecurityV1PublicKeyPemProperty is the functional property "publicKeyPem". -// It is permitted to be a single default-valued value type. -type W3IDSecurityV1PublicKeyPemProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializePublicKeyPemProperty creates a "publicKeyPem" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializePublicKeyPemProperty(m map[string]interface{}, aliasMap map[string]string) (*W3IDSecurityV1PublicKeyPemProperty, error) { - alias := "" - if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { - alias = a - } - propName := "publicKeyPem" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "publicKeyPem") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &W3IDSecurityV1PublicKeyPemProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &W3IDSecurityV1PublicKeyPemProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &W3IDSecurityV1PublicKeyPemProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewW3IDSecurityV1PublicKeyPemProperty creates a new publicKeyPem property. -func NewW3IDSecurityV1PublicKeyPemProperty() *W3IDSecurityV1PublicKeyPemProperty { - return &W3IDSecurityV1PublicKeyPemProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *W3IDSecurityV1PublicKeyPemProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this W3IDSecurityV1PublicKeyPemProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this W3IDSecurityV1PublicKeyPemProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this W3IDSecurityV1PublicKeyPemProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this W3IDSecurityV1PublicKeyPemProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this W3IDSecurityV1PublicKeyPemProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this W3IDSecurityV1PublicKeyPemProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://w3id.org/security/v1": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this W3IDSecurityV1PublicKeyPemProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this W3IDSecurityV1PublicKeyPemProperty) LessThan(o vocab.W3IDSecurityV1PublicKeyPemProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "publicKeyPem". -func (this W3IDSecurityV1PublicKeyPemProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "publicKeyPem" - } else { - return "publicKeyPem" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this W3IDSecurityV1PublicKeyPemProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *W3IDSecurityV1PublicKeyPemProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *W3IDSecurityV1PublicKeyPemProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go deleted file mode 100644 index c353f6f2f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typepublickey contains the implementation for the PublicKey type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typepublickey diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go deleted file mode 100644 index 533cc4475..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepublickey - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeOwnerPropertyW3IDSecurityV1 returns the deserialization - // method for the "W3IDSecurityV1OwnerProperty" non-functional - // property in the vocabulary "W3IDSecurityV1" - DeserializeOwnerPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) - // DeserializePublicKeyPemPropertyW3IDSecurityV1 returns the - // deserialization method for the "W3IDSecurityV1PublicKeyPemProperty" - // non-functional property in the vocabulary "W3IDSecurityV1" - DeserializePublicKeyPemPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go deleted file mode 100644 index bad656902..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go +++ /dev/null @@ -1,289 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepublickey - -import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" - -// A public key represents a public cryptographical key for a user -type W3IDSecurityV1PublicKey struct { - JSONLDId vocab.JSONLDIdProperty - W3IDSecurityV1Owner vocab.W3IDSecurityV1OwnerProperty - W3IDSecurityV1PublicKeyPem vocab.W3IDSecurityV1PublicKeyPemProperty - alias string - unknown map[string]interface{} -} - -// DeserializePublicKey creates a PublicKey from a map representation that has -// been unmarshalled from a text or binary format. -func DeserializePublicKey(m map[string]interface{}, aliasMap map[string]string) (*W3IDSecurityV1PublicKey, error) { - alias := "" - if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { - alias = a - } - this := &W3IDSecurityV1PublicKey{ - alias: alias, - unknown: make(map[string]interface{}), - } - - // Begin: Known property deserialization - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeOwnerPropertyW3IDSecurityV1()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.W3IDSecurityV1Owner = p - } - if p, err := mgr.DeserializePublicKeyPemPropertyW3IDSecurityV1()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.W3IDSecurityV1PublicKeyPem = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "id" { - continue - } else if k == "owner" { - continue - } else if k == "publicKeyPem" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsPublicKey returns true if the other provided type is the PublicKey -// type or extends from the PublicKey type. -func IsOrExtendsPublicKey(other vocab.Type) bool { - if other.GetTypeName() == "PublicKey" { - return true - } - return PublicKeyIsExtendedBy(other) -} - -// NewW3IDSecurityV1PublicKey creates a new PublicKey type -func NewW3IDSecurityV1PublicKey() *W3IDSecurityV1PublicKey { - return &W3IDSecurityV1PublicKey{ - alias: "", - unknown: make(map[string]interface{}), - } -} - -// PublicKeyIsDisjointWith returns true if the other provided type is disjoint -// with the PublicKey type. -func PublicKeyIsDisjointWith(other vocab.Type) bool { - // Shortcut implementation: is not disjoint with anything. - return false -} - -// PublicKeyIsExtendedBy returns true if the other provided type extends from the -// PublicKey type. Note that it returns false if the types are the same; see -// the "IsOrExtendsPublicKey" variant instead. -func PublicKeyIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// W3IDSecurityV1PublicKeyExtends returns true if the PublicKey type extends from -// the other type. -func W3IDSecurityV1PublicKeyExtends(other vocab.Type) bool { - // Shortcut implementation: this does not extend anything. - return false -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this W3IDSecurityV1PublicKey) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetTypeName returns the name of this type. -func (this W3IDSecurityV1PublicKey) GetTypeName() string { - return "PublicKey" -} - -// GetUnknownProperties returns the unknown properties for the PublicKey type. -// Note that this should not be used by app developers. It is only used to -// help determine which implementation is LessThan the other. Developers who -// are creating a different implementation of this type's interface can use -// this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this W3IDSecurityV1PublicKey) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// GetW3IDSecurityV1Owner returns the "owner" property if it exists, and nil -// otherwise. -func (this W3IDSecurityV1PublicKey) GetW3IDSecurityV1Owner() vocab.W3IDSecurityV1OwnerProperty { - return this.W3IDSecurityV1Owner -} - -// GetW3IDSecurityV1PublicKeyPem returns the "publicKeyPem" property if it exists, -// and nil otherwise. -func (this W3IDSecurityV1PublicKey) GetW3IDSecurityV1PublicKeyPem() vocab.W3IDSecurityV1PublicKeyPemProperty { - return this.W3IDSecurityV1PublicKeyPem -} - -// IsExtending returns true if the PublicKey type extends from the other type. -func (this W3IDSecurityV1PublicKey) IsExtending(other vocab.Type) bool { - return W3IDSecurityV1PublicKeyExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this W3IDSecurityV1PublicKey) JSONLDContext() map[string]string { - m := map[string]string{"https://w3id.org/security/v1": this.alias} - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.W3IDSecurityV1Owner, m) - m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKeyPem, m) - - return m -} - -// LessThan computes if this PublicKey is lesser, with an arbitrary but stable -// determination. -func (this W3IDSecurityV1PublicKey) LessThan(o vocab.W3IDSecurityV1PublicKey) bool { - // Begin: Compare known properties - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "owner" - if lhs, rhs := this.W3IDSecurityV1Owner, o.GetW3IDSecurityV1Owner(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "publicKeyPem" - if lhs, rhs := this.W3IDSecurityV1PublicKeyPem, o.GetW3IDSecurityV1PublicKeyPem(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this W3IDSecurityV1PublicKey) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - // Begin: Serialize known properties - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "owner" - if this.W3IDSecurityV1Owner != nil { - if i, err := this.W3IDSecurityV1Owner.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.W3IDSecurityV1Owner.Name()] = i - } - } - // Maybe serialize property "publicKeyPem" - if this.W3IDSecurityV1PublicKeyPem != nil { - if i, err := this.W3IDSecurityV1PublicKeyPem.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.W3IDSecurityV1PublicKeyPem.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetJSONLDId sets the "id" property. -func (this *W3IDSecurityV1PublicKey) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetW3IDSecurityV1Owner sets the "owner" property. -func (this *W3IDSecurityV1PublicKey) SetW3IDSecurityV1Owner(i vocab.W3IDSecurityV1OwnerProperty) { - this.W3IDSecurityV1Owner = i -} - -// SetW3IDSecurityV1PublicKeyPem sets the "publicKeyPem" property. -func (this *W3IDSecurityV1PublicKey) SetW3IDSecurityV1PublicKeyPem(i vocab.W3IDSecurityV1PublicKeyPemProperty) { - this.W3IDSecurityV1PublicKeyPem = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this W3IDSecurityV1PublicKey) VocabularyURI() string { - return "https://w3id.org/security/v1" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this W3IDSecurityV1PublicKey) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/util.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/util.go deleted file mode 100644 index cb9bf7253..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/util.go +++ /dev/null @@ -1,222 +0,0 @@ -package streams - -import ( - "maps" - "slices" - - "codeberg.org/superseriousbusiness/activity/streams/vocab" -) - -const ( - // jsonLDContext is the key for the JSON-LD specification's context - // value. It contains the definitions of the types contained within the - // rest of the payload. Important for linked-data representations, but - // only applicable to go-fed at code-generation time. - jsonLDContext = "@context" - - asNS = "https://www.w3.org/ns/activitystreams" - tootNS = "http://joinmastodon.org/ns" - schemaNS = "http://schema.org" -) - -// Map of inlines @context entries that may need to be added -// when vocabs include "https://www.w3.org/ns/activitystreams". -var asInlines = map[string]any{ - "Hashtag": "as:Hashtag", - "alsoKnownAs": "as:alsoKnownAs", - "manuallyApprovesFollowers": "as:manuallyApprovesFollowers", - "sensitive": "as:sensitive", - - "movedTo": map[string]string{ - "@id": "as:movedTo", - "@type": "@id", - }, -} - -// Map of inlines @context entries that may need to be -// added when vocabs include "http://joinmastodon.org/ns". -var tootInlines = map[string]any{ - "Emoji": "toot:Emoji", - "blurhash": "toot:blurhash", - "discoverable": "toot:discoverable", - "indexable": "toot:indexable", - "memorial": "toot:memorial", - "suspended": "toot:suspended", - "votersCount": "toot:votersCount", - - "featured": map[string]string{ - "@id": "toot:featured", - "@type": "@id", - }, - - "featuredTags": map[string]string{ - "@id": "toot:featuredTags", - "@type": "@id", - }, - - "focalPoint": map[string]string{ - "@container": "@list", - "@id": "toot:focalPoint", - }, -} - -// Map of inlines @context entries that may need to -// be added when vocabs include "http://schema.org". -var schemaInlines = map[string]any{ - "PropertyValue": "schema:PropertyValue", - "value": "schema:value", -} - -// getLookup returns a lookup map of all interesting field names -// + type names on the given "in" map that may need to be inlined. -func getLookup(in map[string]any) map[string]struct{} { - out := make(map[string]struct{}) - - for k, v := range in { - // Pull out keys from any nested maps. - if nested, ok := v.(map[string]any); ok { - maps.Copy(out, getLookup(nested)) - continue - } - - // Pull out keys from any - // arrays of nested maps. - if nestedIs, ok := v.([]any); ok { - for _, nestedI := range nestedIs { - if nested, ok := nestedI.(map[string]any); ok { - maps.Copy(out, getLookup(nested)) - continue - } - } - } - - // For types, we actually care about - // the *value*, ie., the name of the - // type, not the type key itself. - if k == "type" { - out[v.(string)] = struct{}{} - continue - } - - out[k] = struct{}{} - } - - return out -} - -func copyInlines( - src map[string]any, - dst map[string]any, - lookup map[string]struct{}, -) { - for k, v := range src { - _, ok := lookup[k] - if ok { - dst[k] = v - } - } -} - -// Serialize adds the context vocabularies contained within the type -// into the JSON-LD @context field, and aliases them appropriately. -func Serialize(a vocab.Type) (m map[string]any, e error) { - m, e = a.Serialize() - if e != nil { - return - } - - var ( - // Slice of vocab URIs - // used in this vocab.Type. - vocabs = a.JSONLDContext() - - // Slice of vocab URIs to add - // to the base @context slice. - includeVocabs []string - - // Object to inline as an extra - // entry in the @context slice. - inlinedContext = make(map[string]any) - ) - - // Get a lookup of all field and - // type names we need to care about. - lookup := getLookup(m) - - // Go through each used vocab and see - // if we need to special case it. - for vocab := range vocabs { - - switch vocab { - - case asNS: - // ActivityStreams vocab. - // - // The namespace URI already points to - // a proper @context document but we - // need to add some extra inlines. - includeVocabs = append(includeVocabs, asNS) - copyInlines(asInlines, inlinedContext, lookup) - - case schemaNS: - // Schema vocab. - // - // The URI doesn't point to a @context - // document so we need to inline everything. - inlinedContext["schema"] = schemaNS + "#" - copyInlines(schemaInlines, inlinedContext, lookup) - - case tootNS: - // Toot/Mastodon vocab. - // - // The URI doesn't point to a @context - // document so we need to inline everything. - inlinedContext["toot"] = tootNS + "#" - copyInlines(tootInlines, inlinedContext, lookup) - - default: - // No special case. - includeVocabs = append(includeVocabs, vocab) - } - } - - // Sort used vocab entries alphabetically - // to make their ordering predictable. - slices.Sort(includeVocabs) - - // Create final slice of @context - // entries we'll need to include. - contextEntries := make([]any, 0, len(includeVocabs)+1) - - // Append each included vocab to the slice. - for _, vocab := range includeVocabs { - contextEntries = append(contextEntries, vocab) - } - - // Append any inlinedContext to the slice. - if len(inlinedContext) != 0 { - contextEntries = append(contextEntries, inlinedContext) - } - - // Include @context on the final output, - // using an array if there's more than - // one entry, just a property otherwise. - if len(contextEntries) != 1 { - m[jsonLDContext] = contextEntries - } else { - m[jsonLDContext] = contextEntries[0] - } - - // Delete any existing `@context` in child maps. - var cleanFnRecur func(map[string]interface{}) - cleanFnRecur = func(r map[string]interface{}) { - for _, v := range r { - if n, ok := v.(map[string]interface{}); ok { - delete(n, jsonLDContext) - cleanFnRecur(n) - } - } - } - cleanFnRecur(m) - return -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/anyURI/gen_anyURI.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/anyURI/gen_anyURI.go deleted file mode 100644 index a1ac814af..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/anyURI/gen_anyURI.go +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package anyuri - -import ( - "fmt" - "net/url" -) - -// SerializeAnyURI converts a anyURI value to an interface representation suitable -// for marshalling into a text or binary format. -func SerializeAnyURI(this *url.URL) (interface{}, error) { - return this.String(), nil -} - -// DeserializeAnyURI creates anyURI value from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeAnyURI(this interface{}) (*url.URL, error) { - var u *url.URL - var err error - if s, ok := this.(string); ok { - u, err = url.Parse(s) - if err != nil { - err = fmt.Errorf("%v cannot be interpreted as a xsd:anyURI: %s", this, err) - } else if len(u.Scheme) == 0 { - err = fmt.Errorf("%v cannot be interpreted as a xsd:anyURI: no scheme", this) - } - } else { - err = fmt.Errorf("%v cannot be interpreted as a string for xsd:anyURI", this) - } - return u, err -} - -// LessAnyURI returns true if the left anyURI value is less than the right value. -func LessAnyURI(lhs, rhs *url.URL) bool { - return lhs.String() < rhs.String() -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/bcp47/gen_bcp47.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/bcp47/gen_bcp47.go deleted file mode 100644 index 0e0f70485..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/bcp47/gen_bcp47.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package bcp47 - -import "fmt" - -// SerializeBcp47 converts a bcp47 value to an interface representation suitable -// for marshalling into a text or binary format. -func SerializeBcp47(this string) (interface{}, error) { - return this, nil -} - -// DeserializeBcp47 creates bcp47 value from an interface representation that has -// been unmarshalled from a text or binary format. -func DeserializeBcp47(this interface{}) (string, error) { - if s, ok := this.(string); ok { - return s, nil - } else { - return "", fmt.Errorf("%v cannot be interpreted as a string for bcp47 languagetag", this) - } -} - -// LessBcp47 returns true if the left bcp47 value is less than the right value. -func LessBcp47(lhs, rhs string) bool { - return lhs < rhs -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/boolean/gen_boolean.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/boolean/gen_boolean.go deleted file mode 100644 index 1c75e485d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/boolean/gen_boolean.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package boolean - -import "fmt" - -// SerializeBoolean converts a boolean value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeBoolean(this bool) (interface{}, error) { - return this, nil -} - -// DeserializeBoolean creates boolean value from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeBoolean(this interface{}) (bool, error) { - if b, ok := this.(bool); ok { - return b, nil - } else if f, ok := this.(float64); ok { - if f == 0 { - return false, nil - } else if f == 1 { - return true, nil - } else { - return false, fmt.Errorf("%v cannot be interpreted as a bool float64 for xsd:boolean", this) - } - } else { - return false, fmt.Errorf("%v cannot be interpreted as a bool for xsd:boolean", this) - } -} - -// LessBoolean returns true if the left boolean value is less than the right value. -func LessBoolean(lhs, rhs bool) bool { - // Booleans don't have a natural ordering, so we pick that truth is greater than falsehood. - return !lhs && rhs -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/dateTime/gen_dateTime.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/dateTime/gen_dateTime.go deleted file mode 100644 index 327152fdb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/dateTime/gen_dateTime.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package datetime - -import ( - "fmt" - "time" -) - -// SerializeDateTime converts a dateTime value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeDateTime(this time.Time) (interface{}, error) { - return this.Format(time.RFC3339), nil -} - -// DeserializeDateTime creates dateTime value from an interface representation -// that has been unmarshalled from a text or binary format. -func DeserializeDateTime(this interface{}) (time.Time, error) { - var tmp time.Time - var err error - if s, ok := this.(string); ok { - tmp, err = time.Parse(time.RFC3339, s) - if err != nil { - tmp, err = time.Parse("2006-01-02T15:04Z07:00", s) - if err != nil { - err = fmt.Errorf("%v cannot be interpreted as xsd:datetime", this) - } - } - } else { - err = fmt.Errorf("%v cannot be interpreted as a string for xsd:datetime", this) - } - return tmp, err -} - -// LessDateTime returns true if the left dateTime value is less than the right -// value. -func LessDateTime(lhs, rhs time.Time) bool { - return lhs.Before(rhs) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/duration/gen_duration.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/duration/gen_duration.go deleted file mode 100644 index 8125a6822..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/duration/gen_duration.go +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package duration - -import ( - "fmt" - "math" - "regexp" - "strconv" - "time" -) - -// SerializeDuration converts a duration value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeDuration(this time.Duration) (interface{}, error) { - // Seriously questioning my life choices. - s := "P" - if this < 0 { - s = "-P" - this = -1 * this - } - var tally time.Duration - // Assume 8760 Hours per 365 days, cannot account for leap years in xsd:duration. :( - if years := this.Hours() / 8760.0; years >= 1 { - nYears := int64(math.Floor(years)) - tally += time.Duration(nYears) * 8760 * time.Hour - s = fmt.Sprintf("%s%dY", s, nYears) - } - // Assume 30 days per month, cannot account for months lasting 31, 30, 29, or 28 days in xsd:duration. :( - if months := (this.Hours() - tally.Hours()) / 720.0; months >= 1 { - nMonths := int64(math.Floor(months)) - tally += time.Duration(nMonths) * 720 * time.Hour - s = fmt.Sprintf("%s%dM", s, nMonths) - } - if days := (this.Hours() - tally.Hours()) / 24.0; days >= 1 { - nDays := int64(math.Floor(days)) - tally += time.Duration(nDays) * 24 * time.Hour - s = fmt.Sprintf("%s%dD", s, nDays) - } - if tally < this { - s = fmt.Sprintf("%sT", s) - if hours := this.Hours() - tally.Hours(); hours >= 1 { - nHours := int64(math.Floor(hours)) - tally += time.Duration(nHours) * time.Hour - s = fmt.Sprintf("%s%dH", s, nHours) - } - if minutes := this.Minutes() - tally.Minutes(); minutes >= 1 { - nMinutes := int64(math.Floor(minutes)) - tally += time.Duration(nMinutes) * time.Minute - s = fmt.Sprintf("%s%dM", s, nMinutes) - } - if seconds := this.Seconds() - tally.Seconds(); seconds >= 1 { - nSeconds := int64(math.Floor(seconds)) - tally += time.Duration(nSeconds) * time.Second - s = fmt.Sprintf("%s%dS", s, nSeconds) - } - } - return s, nil -} - -// DeserializeDuration creates duration value from an interface representation -// that has been unmarshalled from a text or binary format. -func DeserializeDuration(this interface{}) (time.Duration, error) { - // Maybe this time it will be easier. - if s, ok := this.(string); ok { - isNeg := false - if s[0] == '-' { - isNeg = true - s = s[1:] - } - if s[0] != 'P' { - return 0, fmt.Errorf("%s malformed: missing 'P' for xsd:duration", s) - } - re := regexp.MustCompile(`P(\d*Y)?(\d*M)?(\d*D)?(T(\d*H)?(\d*M)?(\d*S)?)?`) - res := re.FindStringSubmatch(s) - var dur time.Duration - nYear := res[1] - if len(nYear) > 0 { - nYear = nYear[:len(nYear)-1] - vYear, err := strconv.ParseInt(nYear, 10, 64) - if err != nil { - return 0, err - } - // Assume 8760 Hours per 365 days, cannot account for leap years in xsd:duration. :( - dur += time.Duration(vYear) * time.Hour * 8760 - } - nMonth := res[2] - if len(nMonth) > 0 { - nMonth = nMonth[:len(nMonth)-1] - vMonth, err := strconv.ParseInt(nMonth, 10, 64) - if err != nil { - return 0, err - } - // Assume 30 days per month, cannot account for months lasting 31, 30, 29, or 28 days in xsd:duration. :( - dur += time.Duration(vMonth) * time.Hour * 720 - } - nDay := res[3] - if len(nDay) > 0 { - nDay = nDay[:len(nDay)-1] - vDay, err := strconv.ParseInt(nDay, 10, 64) - if err != nil { - return 0, err - } - dur += time.Duration(vDay) * time.Hour * 24 - } - nHour := res[5] - if len(nHour) > 0 { - nHour = nHour[:len(nHour)-1] - vHour, err := strconv.ParseInt(nHour, 10, 64) - if err != nil { - return 0, err - } - dur += time.Duration(vHour) * time.Hour - } - nMinute := res[6] - if len(nMinute) > 0 { - nMinute = nMinute[:len(nMinute)-1] - vMinute, err := strconv.ParseInt(nMinute, 10, 64) - if err != nil { - return 0, err - } - dur += time.Duration(vMinute) * time.Minute - } - nSecond := res[7] - if len(nSecond) > 0 { - nSecond = nSecond[:len(nSecond)-1] - vSecond, err := strconv.ParseInt(nSecond, 10, 64) - if err != nil { - return 0, err - } - dur += time.Duration(vSecond) * time.Second - } - if isNeg { - dur *= -1 - } - return dur, nil - } else { - return 0, fmt.Errorf("%v cannot be interpreted as a string for xsd:duration", this) - } -} - -// LessDuration returns true if the left duration value is less than the right -// value. -func LessDuration(lhs, rhs time.Duration) bool { - return lhs < rhs -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/float/gen_float.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/float/gen_float.go deleted file mode 100644 index 7b88a6e66..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/float/gen_float.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package float - -import "fmt" - -// SerializeFloat converts a float value to an interface representation suitable -// for marshalling into a text or binary format. -func SerializeFloat(this float64) (interface{}, error) { - return this, nil -} - -// DeserializeFloat creates float value from an interface representation that has -// been unmarshalled from a text or binary format. -func DeserializeFloat(this interface{}) (float64, error) { - if f, ok := this.(float64); ok { - return f, nil - } else { - return 0, fmt.Errorf("%v cannot be interpreted as a float64 for xsd:float", this) - } -} - -// LessFloat returns true if the left float value is less than the right value. -func LessFloat(lhs, rhs float64) bool { - return lhs < rhs -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/langString/gen_langString.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/langString/gen_langString.go deleted file mode 100644 index 12dabf187..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/langString/gen_langString.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package langstring - -import ( - "fmt" - "sort" -) - -// SerializeLangString converts a langString value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeLangString(this map[string]string) (interface{}, error) { - return this, nil -} - -// DeserializeLangString creates langString value from an interface representation -// that has been unmarshalled from a text or binary format. -func DeserializeLangString(this interface{}) (map[string]string, error) { - if m, ok := this.(map[string]interface{}); ok { - r := make(map[string]string) - for k, v := range m { - if s, ok := v.(string); ok { - r[k] = s - } else { - return nil, fmt.Errorf("value %v cannot be interpreted as a string for rdf:langString", v) - } - } - return r, nil - } else { - return nil, fmt.Errorf("%v cannot be interpreted as a map[string]interface{} for rdf:langString", this) - } -} - -// LessLangString returns true if the left langString value is less than the right -// value. -func LessLangString(lhs, rhs map[string]string) bool { - var lk []string - var rk []string - for k := range lhs { - lk = append(lk, k) - } - for k := range rhs { - rk = append(rk, k) - } - sort.Strings(lk) - sort.Strings(rk) - for i := 0; i < len(lk) && i < len(rk); i++ { - if lk[i] < rk[i] { - return true - } else if rk[i] < lk[i] { - return false - } else if lhs[lk[i]] < rhs[rk[i]] { - return true - } else if rhs[rk[i]] < lhs[lk[i]] { - return false - } - } - if len(lk) < len(rk) { - return true - } else { - return false - } -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go deleted file mode 100644 index 020c68bab..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package nonnegativeinteger - -import "fmt" - -// SerializeNonNegativeInteger converts a nonNegativeInteger value to an interface -// representation suitable for marshalling into a text or binary format. -func SerializeNonNegativeInteger(this int) (interface{}, error) { - return this, nil -} - -// DeserializeNonNegativeInteger creates nonNegativeInteger value from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeNonNegativeInteger(this interface{}) (int, error) { - if i, ok := this.(float64); ok { - n := int(i) - if n >= 0 { - return n, nil - } else { - return 0, fmt.Errorf("%v is a negative integer for xsd:nonNegativeInteger", this) - } - } else { - return 0, fmt.Errorf("%v cannot be interpreted as a float for xsd:nonNegativeInteger", this) - } -} - -// LessNonNegativeInteger returns true if the left nonNegativeInteger value is -// less than the right value. -func LessNonNegativeInteger(lhs, rhs int) bool { - return lhs < rhs -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc2045/gen_rfc2045.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc2045/gen_rfc2045.go deleted file mode 100644 index cc28892c0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc2045/gen_rfc2045.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package rfc2045 - -import "fmt" - -// SerializeRfc2045 converts a rfc2045 value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeRfc2045(this string) (interface{}, error) { - return this, nil -} - -// DeserializeRfc2045 creates rfc2045 value from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeRfc2045(this interface{}) (string, error) { - if s, ok := this.(string); ok { - return s, nil - } else { - return "", fmt.Errorf("%v cannot be interpreted as a string for MIME media type", this) - } -} - -// LessRfc2045 returns true if the left rfc2045 value is less than the right value. -func LessRfc2045(lhs, rhs string) bool { - return lhs < rhs -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc5988/gen_rfc5988.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc5988/gen_rfc5988.go deleted file mode 100644 index eac2bc247..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/rfc5988/gen_rfc5988.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package rfc5988 - -import "fmt" - -// SerializeRfc5988 converts a rfc5988 value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeRfc5988(this string) (interface{}, error) { - return this, nil -} - -// DeserializeRfc5988 creates rfc5988 value from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeRfc5988(this interface{}) (string, error) { - if s, ok := this.(string); ok { - return s, nil - } else { - return "", fmt.Errorf("%v cannot be interpreted as a string for rel", this) - } -} - -// LessRfc5988 returns true if the left rfc5988 value is less than the right value. -func LessRfc5988(lhs, rhs string) bool { - return lhs < rhs -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/string/gen_string.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/values/string/gen_string.go deleted file mode 100644 index 23aee678f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/values/string/gen_string.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package string - -import "fmt" - -// SerializeString converts a string value to an interface representation suitable -// for marshalling into a text or binary format. -func SerializeString(this string) (interface{}, error) { - return this, nil -} - -// DeserializeString creates string value from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeString(this interface{}) (string, error) { - if s, ok := this.(string); ok { - return s, nil - } else { - return "", fmt.Errorf("%v cannot be interpreted as a string for xsd:string", this) - } -} - -// LessString returns true if the left string value is less than the right value. -func LessString(lhs, rhs string) bool { - return lhs < rhs -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_doc.go deleted file mode 100644 index c9faf499f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_doc.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package vocab contains the interfaces for the JSONLD vocabulary. All -// applications are strongly encouraged to use these interface types instead -// of the concrete definitions contained in the implementation subpackage. -// These interfaces allow applications to consume only the types and -// properties needed and be independent of the go-fed implementation if -// another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// Type interfaces contain "Get" and "Set" methods for its properties. Types -// also have a "Serialize" method to convert the type into an interface map -// for use with the json package. There is a convenience "IsExtending" method -// on each types which helps with the ActivityStreams hierarchy, which is not -// the same as object oriented inheritance. While types also have a "LessThan" -// method, it is an arbitrary sort. Do not use it if needing to sort on -// specific properties, such as publish time. It is best used for normalizing -// the type. Lastly, do not use the "GetUnknownProperties" method in an -// application. Instead, use the go-fed tool to code generate the property -// needed. -// -// Properties come in two flavors: functional and non-functional. Functional -// means that a property can have at most one value, while non-functional -// means a property could have zero, one, or more values. Any property value -// may also be an IRI, in which case the application will need to make a HTTP -// request to fetch the property value. -// -// Functional properties have "Get", "Is", and "Set" methods for determining -// what kind of value the property is, fetching that value, or setting that -// value. There is also a "Serialize" method which converts the property into -// an interface type, but applications should not typically use a property's -// "Serialize" and instead should use a type's "Serialize" instead. Like -// types, properties have an arbitrary "LessThan" comparison function that -// should not be used if needing to sort on specific values. Finally, -// applications should not use the "KindIndex" method as it is a comparison -// mechanism only for those looking to write an alternate implementation. -// -// Non-functional properties can have more than one value, so it has "Len" -// for getting its length, "At" for getting an iterator pointing to an -// element, "Append" and "Prepend" for adding values, "Remove" for removing a -// value, "Set" for overwriting a value, and "Swap" for swapping two values' -// indices. Note that a non-functional property satisfies the sort interface, -// but it results in an arbitrary but stable ordering best used as a -// normalized form. A non-functional property's iterator looks like a -// functional property with "Next" and "Previous" methods. Applications should -// not use the "KindIndex" methods as it is a comparison mechanism only for -// those looking to write an alternate implementation of this library. -// -// Types and properties have a "JSONLDContext" method that returns a mapping -// of vocabulary URIs to aliases that are required in the JSON-LD @context -// when serializing this value. The aliases used by this library when -// serializing objects is done at code-generation time, unless a different -// alias was used to deserialize the type or property. -// -// Types, functional properties, and non-functional properties are not -// designed for concurrent usage by two or more goroutines. Also, certain -// methods on a non-functional property will invalidate iterators and possibly -// cause unexpected behaviors. To avoid this, re-obtain an iterator after -// modifying a non-functional property. -package vocab diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_pkg.go deleted file mode 100644 index 1dd72c0d6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_pkg.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Type represents an ActivityStreams type. -type Type interface { - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetTypeName returns the ActivityStreams type name. - GetTypeName() string - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetJSONLDId sets the "id" property. - SetJSONLDId(JSONLDIdProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go deleted file mode 100644 index 4935d52a0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Indicates the accuracy of position coordinates on a Place objects. Expressed in -// properties of percentage. e.g. "94.0" means "94.0% accurate". -// -// Example 112 (https://www.w3.org/TR/activitystreams-vocabulary/#ex127-jsonld): -// -// { -// "accuracy": 94.5, -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Liu Gu Lu Cun, Pingdu, Qingdao, Shandong, China", -// "type": "Place" -// } -type ActivityStreamsAccuracyProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaFloat afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAccuracyProperty) bool - // Name returns the name of this property: "accuracy". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go deleted file mode 100644 index 95aa23eac..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go +++ /dev/null @@ -1,2063 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsActorPropertyIterator represents a single value for the "actor" -// property. -type ActivityStreamsActorPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsActorPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsActor". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsActorPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsActorPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Describes one or more entities that either performed or are expected to perform -// the activity. Any single activity can have multiple actors. The actor MAY -// be specified using an indirect Link. -// -// Example 63 (https://www.w3.org/TR/activitystreams-vocabulary/#ex59-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/foo", -// "summary": "Sally offered the Foo object", -// "type": "Offer" -// } -// -// Example 64 (https://www.w3.org/TR/activitystreams-vocabulary/#ex60-jsonld): -// -// { -// "actor": { -// "id": "http://sally.example.org", -// "summary": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/foo", -// "summary": "Sally offered the Foo object", -// "type": "Offer" -// } -// -// Example 65 (https://www.w3.org/TR/activitystreams-vocabulary/#ex61-jsonld): -// -// { -// "actor": [ -// "http://joe.example.org", -// { -// "id": "http://sally.example.org", -// "name": "Sally", -// "type": "Person" -// } -// ], -// "object": "http://example.org/foo", -// "summary": "Sally and Joe offered the Foo object", -// "type": "Offer" -// } -type ActivityStreamsActorProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "actor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "actor". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "actor". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "actor". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "actor". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "actor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "actor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "actor". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "actor". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "actor". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "actor". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "actor". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "actor". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "actor". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "actor". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "actor". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "actor" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "actor". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "actor". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsActorPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsActorPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsActorPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "actor". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "actor". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "actor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "actor". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "actor". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "actor". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "actor". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "actor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "actor". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "actor". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "actor". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "actor". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "actor" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsActorProperty) bool - // Name returns the name of this property ("actor") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "actor". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "actor". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "actor". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "actor". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "actor". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "actor". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "actor". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "actor". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "actor". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "actor". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "actor". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "actor". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "actor". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "actor". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "actor". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "actor". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "actor". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "actor", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "actor". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "actor". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "actor". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "actor". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "actor". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "actor". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "actor". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "actor". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "actor". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "actor". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "actor". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "actor". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "actor". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "actor" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go deleted file mode 100644 index b263a43d0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsAlsoKnownAsPropertyIterator represents a single value for the -// "alsoKnownAs" property. -type ActivityStreamsAlsoKnownAsPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAlsoKnownAsPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsAlsoKnownAs". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsAlsoKnownAsPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsAlsoKnownAsPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// List of other URIs/AP IDs by which this actor is also known (eg., URIs of 'alt' -// account, previous account, new account, etc). -type ActivityStreamsAlsoKnownAsProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "alsoKnownAs" - AppendIRI(v *url.URL) - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "alsoKnownAs". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsAlsoKnownAsPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsAlsoKnownAsPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsAlsoKnownAsPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "alsoKnownAs". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "alsoKnownAs". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "alsoKnownAs" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAlsoKnownAsProperty) bool - // Name returns the name of this property ("alsoKnownAs") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "alsoKnownAs". - PrependIRI(v *url.URL) - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "alsoKnownAs". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // Remove deletes an element at the specified index from a list of the - // property "alsoKnownAs", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a anyURI value to be at the specified index for the property - // "alsoKnownAs". Panics if the index is out of bounds. Invalidates - // all iterators. - Set(idx int, v *url.URL) - // SetIRI sets an IRI value to be at the specified index for the property - // "alsoKnownAs". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the "alsoKnownAs" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go deleted file mode 100644 index 6a0ed0330..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go +++ /dev/null @@ -1,65 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Indicates the altitude of a place. The measurement units is indicated using the -// units property. If units is not specified, the default is assumed to be "m" -// indicating meters. -// -// Example 113 (https://www.w3.org/TR/activitystreams-vocabulary/#ex129-jsonld): -// -// { -// "altitude": 15, -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsAltitudeProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaFloat afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAltitudeProperty) bool - // Name returns the name of this property: "altitude". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go deleted file mode 100644 index 2a3847f3b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go +++ /dev/null @@ -1,2042 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsAnyOfPropertyIterator represents a single value for the "anyOf" -// property. -type ActivityStreamsAnyOfPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAnyOfPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsAnyOf". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsAnyOfPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsAnyOfPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an inclusive option for a Question. Use of anyOf implies that the -// Question can have multiple answers. To indicate that a Question can have -// only one answer, use oneOf. -// -// Example 92 (https://www.w3.org/TR/activitystreams-vocabulary/#ex94-jsonld): -// -// { -// "anyOf": [ -// { -// "name": "Option A", -// "type": "Note" -// }, -// { -// "name": "Option B", -// "type": "Note" -// } -// ], -// "name": "What is the answer?", -// "type": "Question" -// } -type ActivityStreamsAnyOfProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "anyOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "anyOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "anyOf". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "anyOf". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "anyOf". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "anyOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "anyOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "anyOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "anyOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "anyOf". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "anyOf". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "anyOf". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "anyOf". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "anyOf". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "anyOf". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "anyOf". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "anyOf" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "anyOf". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "anyOf". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsAnyOfPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsAnyOfPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsAnyOfPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "anyOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "anyOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "anyOf". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "anyOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "anyOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "anyOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "anyOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "anyOf". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "anyOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "anyOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "anyOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "anyOf". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "anyOf" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAnyOfProperty) bool - // Name returns the name of this property ("anyOf") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "anyOf". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "anyOf". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "anyOf". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "anyOf". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "anyOf". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "anyOf". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "anyOf". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "anyOf". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "anyOf". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "anyOf". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "anyOf", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "anyOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "anyOf". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "anyOf". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "anyOf". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "anyOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "anyOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "anyOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "anyOf". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "anyOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "anyOf". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "anyOf". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "anyOf". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "anyOf". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "anyOf" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go deleted file mode 100644 index 6f255aeab..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go +++ /dev/null @@ -1,2056 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsAttachmentPropertyIterator represents a single value for the -// "attachment" property. -type ActivityStreamsAttachmentPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAttachmentPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsAttachment". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsAttachmentPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsAttachmentPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies a resource attached or related to an object that potentially -// requires special handling. The intent is to provide a model that is at -// least semantically similar to attachments in email. -// -// Example 66 (https://www.w3.org/TR/activitystreams-vocabulary/#ex64-jsonld): -// -// { -// "attachment": { -// "content": "This is what he looks like.", -// "type": "Image", -// "url": "http://example.org/cat.jpeg" -// }, -// "name": "Have you seen my cat?", -// "type": "Note" -// } -type ActivityStreamsAttachmentProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "attachment". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "attachment". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "attachment". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "attachment". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "attachment". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "attachment". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "attachment". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "attachment". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "attachment". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "attachment". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "attachment". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "attachment". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "attachment". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "attachment". - // Invalidates iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "attachment". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "attachment". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "attachment". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "attachment". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "attachment". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "attachment". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "attachment" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "attachment". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "attachment". Invalidates iterators that are traversing - // using Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsAttachmentPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsAttachmentPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsAttachmentPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "attachment". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "attachment". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "attachment". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "attachment". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "attachment". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "attachment". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "attachment". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "attachment". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "attachment". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "attachment". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "attachment". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attachment". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "attachment" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAttachmentProperty) bool - // Name returns the name of this property ("attachment") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "attachment". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "attachment". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "attachment". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "attachment". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "attachment". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "attachment". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "attachment". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "attachment". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "attachment". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "attachment". - // Invalidates all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "attachment". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "attachment". Invalidates - // all iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "attachment". Invalidates - // all iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "attachment". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "attachment". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "attachment". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attachment". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "attachment", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "attachment". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "attachment". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "attachment". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "attachment". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "attachment". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "attachment". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "attachment". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "attachment". Panics - // if the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "attachment". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "attachment". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "attachment". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "attachment". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "attachment" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go deleted file mode 100644 index 8817b523a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go +++ /dev/null @@ -1,2073 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsAttributedToPropertyIterator represents a single value for the -// "attributedTo" property. -type ActivityStreamsAttributedToPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAttributedToPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsAttributedTo". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsAttributedToPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsAttributedToPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies one or more entities to which this object is attributed. The -// attributed entities might not be Actors. For instance, an object might be -// attributed to the completion of another activity. -// -// Example 67 (https://www.w3.org/TR/activitystreams-vocabulary/#ex65-jsonld): -// -// { -// "attributedTo": { -// "name": "Sally", -// "type": "Person" -// }, -// "name": "My cat taking a nap", -// "type": "Image", -// "url": "http://example.org/cat.jpeg" -// } -// -// Example 68 (https://www.w3.org/TR/activitystreams-vocabulary/#ex66-jsonld): -// -// { -// "attributedTo": [ -// "http://joe.example.org", -// { -// "name": "Sally", -// "type": "Person" -// } -// ], -// "name": "My cat taking a nap", -// "type": "Image", -// "url": "http://example.org/cat.jpeg" -// } -type ActivityStreamsAttributedToProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "attributedTo". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "attributedTo". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "attributedTo". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "attributedTo". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "attributedTo". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "attributedTo". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "attributedTo". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "attributedTo". - // Invalidates iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "attributedTo". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "attributedTo". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "attributedTo". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "attributedTo". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "attributedTo" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "attributedTo". Invalidates iterators that - // are traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "attributedTo". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "attributedTo". Invalidates iterators that are traversing - // using Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsAttributedToPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsAttributedToPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsAttributedToPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "attributedTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "attributedTo". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "attributedTo". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "attributedTo". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "attributedTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "attributedTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "attributedTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "attributedTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "attributedTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "attributedTo". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "attributedTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "attributedTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "attributedTo". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "attributedTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "attributedTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attributedTo". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "attributedTo" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAttributedToProperty) bool - // Name returns the name of this property ("attributedTo") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "attributedTo". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "attributedTo". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "attributedTo". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "attributedTo". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "attributedTo". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "attributedTo". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "attributedTo". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "attributedTo". - // Invalidates all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "attributedTo". Invalidates - // all iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "attributedTo". Invalidates - // all iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "attributedTo". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "attributedTo". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "attributedTo". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attributedTo". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "attributedTo", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "attributedTo". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "attributedTo". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "attributedTo". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "attributedTo". - // Panics if the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "attributedTo". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "attributedTo". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "attributedTo". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - // Panics if the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "attributedTo" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go deleted file mode 100644 index d5ee18c79..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go +++ /dev/null @@ -1,2057 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsAudiencePropertyIterator represents a single value for the -// "audience" property. -type ActivityStreamsAudiencePropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAudiencePropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsAudience". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsAudiencePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsAudiencePropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies one or more entities that represent the total population of entities -// for which the object can considered to be relevant. -// -// Example 69 (https://www.w3.org/TR/activitystreams-vocabulary/#ex113-jsonld): -// -// { -// "audience": { -// "name": "ExampleCo LLC", -// "type": "http://example.org/Organization" -// }, -// "content": "Thursday will be a company-wide holiday. Enjoy your day -// -// off!", -// -// "name": "Holiday announcement", -// "type": "Note" -// } -type ActivityStreamsAudienceProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "audience". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "audience". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "audience". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "audience". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "audience". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "audience". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "audience". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "audience". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "audience". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "audience". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "audience". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "audience". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "audience" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "audience". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "audience". Invalidates iterators that are traversing - // using Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsAudiencePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsAudiencePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsAudiencePropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "audience". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "audience". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "audience". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "audience". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "audience". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "audience". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "audience". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "audience". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "audience". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "audience". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "audience". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "audience". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "audience". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "audience" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAudienceProperty) bool - // Name returns the name of this property ("audience") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "audience". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "audience". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "audience". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "audience". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "audience". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "audience". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "audience". - // Invalidates all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "audience". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "audience". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "audience". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "audience". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "audience". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "audience". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "audience". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "audience", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "audience". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "audience". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "audience". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "audience". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "audience". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "audience". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "audience". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "audience". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "audience". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "audience". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "audience". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "audience". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "audience" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go deleted file mode 100644 index 4a607704e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go +++ /dev/null @@ -1,2029 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsBccPropertyIterator represents a single value for the "bcc" -// property. -type ActivityStreamsBccPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsBccPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsBcc". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsBccPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsBccPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies one or more Objects that are part of the private secondary audience -// of this Object. -// -// Example 70 (https://www.w3.org/TR/activitystreams-vocabulary/#ex68-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "bcc": "http://joe.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered a post to John", -// "target": "http://john.example.org", -// "type": "Offer" -// } -type ActivityStreamsBccProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "bcc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "bcc". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "bcc". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "bcc". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "bcc". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "bcc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "bcc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "bcc". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "bcc". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "bcc". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "bcc". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "bcc". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "bcc". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "bcc". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "bcc" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsBccPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsBccPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsBccPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "bcc". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "bcc". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "bcc". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "bcc". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "bcc". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "bcc". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bcc". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "bcc" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsBccProperty) bool - // Name returns the name of this property ("bcc") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "bcc". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "bcc". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "bcc". Invalidates all - // iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "bcc". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "bcc". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "bcc". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "bcc". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "bcc". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "bcc". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "bcc". Invalidates all - // iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "bcc". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "bcc". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "bcc". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "bcc". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "bcc". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "bcc". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bcc". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "bcc", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "bcc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "bcc". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "bcc". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "bcc". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "bcc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "bcc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "bcc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "bcc". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "bcc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "bcc". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "bcc". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "bcc". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "bcc". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "bcc" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go deleted file mode 100644 index 2c7a956fd..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go +++ /dev/null @@ -1,2029 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsBtoPropertyIterator represents a single value for the "bto" -// property. -type ActivityStreamsBtoPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsBtoPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsBto". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsBtoPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsBtoPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an Object that is part of the private primary audience of this -// Object. -// -// Example 71 (https://www.w3.org/TR/activitystreams-vocabulary/#ex69-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "bto": "http://joe.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered a post to John", -// "target": "http://john.example.org", -// "type": "Offer" -// } -type ActivityStreamsBtoProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "bto". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "bto". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "bto". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "bto". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "bto". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "bto". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "bto". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "bto". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "bto". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "bto". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "bto". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "bto". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "bto". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "bto". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "bto". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "bto". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "bto" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "bto". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "bto". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsBtoPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsBtoPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsBtoPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "bto". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "bto". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "bto". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "bto". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "bto". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "bto". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bto". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "bto" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsBtoProperty) bool - // Name returns the name of this property ("bto") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "bto". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "bto". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "bto". Invalidates all - // iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "bto". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "bto". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "bto". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "bto". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "bto". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "bto". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "bto". Invalidates all - // iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "bto". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "bto". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "bto". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "bto". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "bto". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "bto". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bto". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "bto", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "bto". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "bto". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "bto". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "bto". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "bto". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "bto". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "bto". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "bto". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "bto". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "bto". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "bto". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "bto". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "bto". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "bto" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go deleted file mode 100644 index 31f5eae4f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go +++ /dev/null @@ -1,2022 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsCcPropertyIterator represents a single value for the "cc" -// property. -type ActivityStreamsCcPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsCcPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsCc". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsCcPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsCcPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an Object that is part of the public secondary audience of this -// Object. -// -// Example 72 (https://www.w3.org/TR/activitystreams-vocabulary/#ex70-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "cc": "http://joe.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered a post to John", -// "target": "http://john.example.org", -// "type": "Offer" -// } -type ActivityStreamsCcProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "cc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "cc". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "cc". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "cc". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "cc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "cc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "cc". Invalidates iterators that are traversing using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "cc". Invalidates iterators that are traversing using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "cc". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "cc". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "cc". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "cc". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "cc" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "cc". Invalidates iterators that are traversing using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "cc". Invalidates iterators that are traversing using Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsCcPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsCcPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsCcPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "cc". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "cc". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "cc". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "cc". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "cc". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property "cc". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "cc". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "cc" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsCcProperty) bool - // Name returns the name of this property ("cc") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "cc". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "cc". Invalidates all - // iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "cc". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "cc". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "cc". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "cc". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "cc". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "cc". Invalidates all iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "cc". Invalidates all - // iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "cc". Invalidates all iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "cc". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "cc". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "cc". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "cc". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "cc". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "cc". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "cc", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "cc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "cc". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "cc". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "cc". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "cc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "cc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "cc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "cc". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "cc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "cc". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "cc". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "cc". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "cc". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "cc" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go deleted file mode 100644 index bcad48671..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go +++ /dev/null @@ -1,2086 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// ActivityStreamsClosedPropertyIterator represents a single value for the -// "closed" property. -type ActivityStreamsClosedPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // GetXMLSchemaBoolean returns the value of this property. When - // IsXMLSchemaBoolean returns false, GetXMLSchemaBoolean will return - // an arbitrary value. - GetXMLSchemaBoolean() bool - // GetXMLSchemaDateTime returns the value of this property. When - // IsXMLSchemaDateTime returns false, GetXMLSchemaDateTime will return - // an arbitrary value. - GetXMLSchemaDateTime() time.Time - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // IsXMLSchemaBoolean returns true if this property has a type of - // "boolean". When true, use the GetXMLSchemaBoolean and - // SetXMLSchemaBoolean methods to access and set this property. - IsXMLSchemaBoolean() bool - // IsXMLSchemaDateTime returns true if this property has a type of - // "dateTime". When true, use the GetXMLSchemaDateTime and - // SetXMLSchemaDateTime methods to access and set this property. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsClosedPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsClosed". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsClosedPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsClosedPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error - // SetXMLSchemaBoolean sets the value of this property. Calling - // IsXMLSchemaBoolean afterwards returns true. - SetXMLSchemaBoolean(v bool) - // SetXMLSchemaDateTime sets the value of this property. Calling - // IsXMLSchemaDateTime afterwards returns true. - SetXMLSchemaDateTime(v time.Time) -} - -// Indicates that a question has been closed, and answers are no longer accepted. -// -// Example 93 (https://www.w3.org/TR/activitystreams-vocabulary/#ex94b-jsonld): -// -// { -// "closed": "2016-05-10T00:00:00Z", -// "name": "What is the answer?", -// "type": "Question" -// } -type ActivityStreamsClosedProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "closed". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "closed". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "closed". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "closed". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "closed". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "closed". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "closed". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "closed". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "closed". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "closed". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "closed". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "closed". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "closed". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "closed". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "closed". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "closed". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "closed" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "closed". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "closed". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // AppendXMLSchemaBoolean appends a boolean value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaBoolean(v bool) - // AppendXMLSchemaDateTime appends a dateTime value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaDateTime(v time.Time) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsClosedPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsClosedPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsClosedPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "closed". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "closed". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "closed". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "closed". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "closed". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "closed". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "closed". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "closed". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "closed". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "closed". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "closed". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "closed". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // InsertXMLSchemaBoolean inserts a boolean value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaBoolean(idx int, v bool) - // InsertXMLSchemaDateTime inserts a dateTime value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaDateTime(idx int, v time.Time) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "closed" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsClosedProperty) bool - // Name returns the name of this property ("closed") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "closed". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "closed". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "closed". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "closed". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "closed". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "closed". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "closed". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "closed". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "closed". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "closed". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "closed". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "closed". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "closed". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "closed". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "closed". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "closed". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "closed". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // PrependXMLSchemaBoolean prepends a boolean value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependXMLSchemaBoolean(v bool) - // PrependXMLSchemaDateTime prepends a dateTime value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependXMLSchemaDateTime(v time.Time) - // Remove deletes an element at the specified index from a list of the - // property "closed", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "closed". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "closed". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "closed". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "closed". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "closed". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "closed". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "closed". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "closed". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "closed". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "closed". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "closed". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "closed". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // SetXMLSchemaBoolean sets a boolean value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaBoolean(idx int, v bool) - // SetXMLSchemaDateTime sets a dateTime value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaDateTime(idx int, v time.Time) - // Swap swaps the location of values at two indices for the "closed" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_content_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_content_interface.go deleted file mode 100644 index a7b803c72..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_content_interface.go +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsContentPropertyIterator represents a single value for the -// "content" property. -type ActivityStreamsContentPropertyIterator interface { - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetLanguage returns the value for the specified BCP47 language code, or - // an empty string if it is either not a language map or no value is - // present. - GetLanguage(bcp47 string) string - // GetRDFLangString returns the value of this property. When - // IsRDFLangString returns false, GetRDFLangString will return an - // arbitrary value. - GetRDFLangString() map[string]string - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the values are set, except for the - // natural language map. When true, the specific has, getter, and - // setter methods may be used to determine what kind of value there is - // to access and set this property. To determine if the property was - // set as a natural language map, use the IsRDFLangString method - // instead. - HasAny() bool - // HasLanguage returns true if the natural language map has an entry for - // the specified BCP47 language code. - HasLanguage(bcp47 string) bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsRDFLangString returns true if this property has a type of - // "langString". When true, use the GetRDFLangString and - // SetRDFLangString methods to access and set this property.. To - // determine if the property was set as a natural language map, use - // the IsRDFLangString method instead. - IsRDFLangString() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property.. To determine if the - // property was set as a natural language map, use the IsRDFLangString - // method instead. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsContentPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsContent". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsContentPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsContentPropertyIterator - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetLanguage sets the value for the specified BCP47 language code. - SetLanguage(bcp47, value string) - // SetRDFLangString sets the value of this property and clears the natural - // language map. Calling IsRDFLangString afterwards will return true. - // Calling IsRDFLangString afterwards returns false. - SetRDFLangString(v map[string]string) - // SetXMLSchemaString sets the value of this property and clears the - // natural language map. Calling IsXMLSchemaString afterwards will - // return true. Calling IsRDFLangString afterwards returns false. - SetXMLSchemaString(v string) -} - -// The content or textual representation of the Object encoded as a JSON string. -// By default, the value of content is HTML. The mediaType property can be -// used in the object to indicate a different content type. The content MAY be -// expressed using multiple language-tagged values. -// -// Example 114 (https://www.w3.org/TR/activitystreams-vocabulary/#ex130-jsonld): -// -// { -// "content": "A \u003cem\u003esimple\u003c/em\u003e note", -// "summary": "A simple note", -// "type": "Note" -// } -// -// Example 115 (https://www.w3.org/TR/activitystreams-vocabulary/#ex131-jsonld): -// -// { -// "contentMap": { -// "en": "A \u003cem\u003esimple\u003c/em\u003e note", -// "es": "Una nota \u003cem\u003esencilla\u003c/em\u003e", -// "zh-hans": "一段\u003cem\u003e简单的\u003c/em\u003e笔记" -// }, -// "summary": "A simple note", -// "type": "Note" -// } -// -// Example 116 (https://www.w3.org/TR/activitystreams-vocabulary/#ex130b-jsonld): -// -// { -// "content": "## A simple note\nA simple markdown `note`", -// "mediaType": "text/markdown", -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsContentProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "content" - AppendIRI(v *url.URL) - // AppendRDFLangString appends a langString value to the back of a list of - // the property "content". Invalidates iterators that are traversing - // using Prev. - AppendRDFLangString(v map[string]string) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "content". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsContentPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsContentPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsContentPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "content". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertRDFLangString inserts a langString value at the specified index - // for a property "content". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertRDFLangString(idx int, v map[string]string) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "content". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "content" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsContentProperty) bool - // Name returns the name of this property ("content") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "content". - PrependIRI(v *url.URL) - // PrependRDFLangString prepends a langString value to the front of a list - // of the property "content". Invalidates all iterators. - PrependRDFLangString(v map[string]string) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "content". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "content", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets an IRI value to be at the specified index for the property - // "content". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetRDFLangString sets a langString value to be at the specified index - // for the property "content". Panics if the index is out of bounds. - // Invalidates all iterators. - SetRDFLangString(idx int, v map[string]string) - // SetXMLSchemaString sets a string value to be at the specified index for - // the property "content". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaString(idx int, v string) - // Swap swaps the location of values at two indices for the "content" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go deleted file mode 100644 index 086d48327..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go +++ /dev/null @@ -1,2056 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsContextPropertyIterator represents a single value for the -// "context" property. -type ActivityStreamsContextPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsContextPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsContext". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsContextPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsContextPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies the context within which the object exists or an activity was -// performed. The notion of "context" used is intentionally vague. The -// intended function is to serve as a means of grouping objects and activities -// that share a common originating context or purpose. An example could be all -// activities relating to a common project or event. -// -// Example 73 (https://www.w3.org/TR/activitystreams-vocabulary/#ex171-jsonld): -// -// { -// "items": [ -// { -// "actor": "http://sally.example.org", -// "context": "http://example.org/contexts/1", -// "object": "http://example.org/posts/1", -// "target": "http://john.example.org", -// "type": "Offer" -// }, -// { -// "actor": "http://joe.example.org", -// "context": "http://example.org/contexts/1", -// "object": "http://example.org/posts/2", -// "type": "Like" -// } -// ], -// "summary": "Activities in context 1", -// "type": "Collection" -// } -type ActivityStreamsContextProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "context". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "context". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "context". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "context". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "context". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "context". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "context". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "context" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "context". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "context". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsContextPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsContextPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsContextPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "context". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "context". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "context". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "context". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "context". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "context". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "context". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "context". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "context". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "context". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "context". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "context". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "context". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "context". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "context". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "context". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "context". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "context". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "context" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsContextProperty) bool - // Name returns the name of this property ("context") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "context". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "context". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "context". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "context". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "context". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "context". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "context". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "context". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "context". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "context". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "context". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "context". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "context". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "context". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "context". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "context". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "context". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "context". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "context". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "context". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "context". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "context". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "context". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "context". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "context". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "context". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "context". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "context". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "context". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "context", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "context". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "context". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "context". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "context". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "context". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "context". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "context". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "context". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "context". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "context". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "context". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "context". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "context" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_current_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_current_interface.go deleted file mode 100644 index 4befc78be..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_current_interface.go +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// In a paged Collection, indicates the page that contains the most recently -// updated member items. -// -// Example 74 (https://www.w3.org/TR/activitystreams-vocabulary/#ex71-jsonld): -// -// { -// "current": "http://example.org/collection", -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "summary": "Sally's blog posts", -// "totalItems": 3, -// "type": "Collection" -// } -// -// Example 75 (https://www.w3.org/TR/activitystreams-vocabulary/#ex72-jsonld): -// -// { -// "current": { -// "summary": "Most Recent Items", -// "type": "owl:Class", -// "url": "http://example.org/collection" -// }, -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "summary": "Sally's blog posts", -// "totalItems": 3, -// "type": "Collection" -// } -type ActivityStreamsCurrentProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsCurrentProperty) bool - // Name returns the name of this property: "current". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go deleted file mode 100644 index 56a602e42..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// On a Tombstone object, the deleted property is a timestamp for when the object -// was deleted. -// -// Example 143 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185c-jsonld): -// -// { -// "deleted": "2016-05-03T00:00:00Z", -// "summary": "This image has been deleted", -// "type": "Tombstone" -// } -type ActivityStreamsDeletedProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsDeletedProperty) bool - // Name returns the name of this property: "deleted". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go deleted file mode 100644 index ea11c6032..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go +++ /dev/null @@ -1,838 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// On a Profile object, the describes property identifies the object described by -// the Profile. -// -// Example 141 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185-jsonld): -// -// { -// "describes": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally's profile", -// "type": "Profile", -// "url": "http://sally.example.org" -// } -type ActivityStreamsDescribesProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsDescribesProperty) bool - // Name returns the name of this property: "describes". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_duration_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_duration_interface.go deleted file mode 100644 index 98e6b5cb7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_duration_interface.go +++ /dev/null @@ -1,68 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// When the object describes a time-bound resource, such as an audio or video, a -// meeting, etc, the duration property indicates the object's approximate -// duration. The value MUST be expressed as an xsd:duration as defined by -// [xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented -// as "PT5S"). -// -// Example 119 (https://www.w3.org/TR/activitystreams-vocabulary/#ex134-jsonld): -// -// { -// "duration": "PT2H", -// "name": "Birds Flying", -// "type": "Video", -// "url": "http://example.org/video.mkv" -// } -type ActivityStreamsDurationProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDuration afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDuration - // returns false, Get will return any arbitrary value. - Get() time.Duration - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDuration returns true if this property is set and not an IRI. - IsXMLSchemaDuration() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsDurationProperty) bool - // Name returns the name of this property: "duration". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDuration - // afterwards will return true. - Set(v time.Duration) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go deleted file mode 100644 index 7e74cd4b4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// The date and time describing the actual or expected ending time of the object. -// When used with an Activity object, for instance, the endTime property -// specifies the moment the activity concluded or is expected to conclude. -// -// Example 127 (https://www.w3.org/TR/activitystreams-vocabulary/#ex144-jsonld): -// -// { -// "endTime": "2015-01-01T06:00:00-08:00", -// "name": "Going-Away Party for Jim", -// "startTime": "2014-12-31T23:00:00-08:00", -// "type": "Event" -// } -type ActivityStreamsEndTimeProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsEndTimeProperty) bool - // Name returns the name of this property: "endTime". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go deleted file mode 100644 index 4142e7d58..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_endpoints_interface.go +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsEndpointsPropertyIterator represents a single value for the -// "endpoints" property. -type ActivityStreamsEndpointsPropertyIterator interface { - // Get returns the value of this property. When IsActivityStreamsEndpoints - // returns false, Get will return any arbitrary value. - Get() ActivityStreamsEndpoints - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsActivityStreamsEndpoints returns true if this property is set and not - // an IRI. - IsActivityStreamsEndpoints() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsEndpointsPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsEndpoints". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsEndpointsPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsEndpointsPropertyIterator - // Set sets the value of this property. Calling IsActivityStreamsEndpoints - // afterwards will return true. - Set(v ActivityStreamsEndpoints) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Endpoints for an ActivityStreams actor. -// -// null -type ActivityStreamsEndpointsProperty interface { - // AppendActivityStreamsEndpoints appends a Endpoints value to the back of - // a list of the property "endpoints". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEndpoints(v ActivityStreamsEndpoints) - // AppendIRI appends an IRI value to the back of a list of the property - // "endpoints" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "endpoints". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsEndpointsPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsEndpointsPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsEndpointsPropertyIterator - // InsertActivityStreamsEndpoints inserts a Endpoints value at the - // specified index for a property "endpoints". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsEndpoints(idx int, v ActivityStreamsEndpoints) - // Insert inserts an IRI value at the specified index for a property - // "endpoints". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "endpoints". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "endpoints" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsEndpointsProperty) bool - // Name returns the name of this property ("endpoints") with any alias. - Name() string - // PrependActivityStreamsEndpoints prepends a Endpoints value to the front - // of a list of the property "endpoints". Invalidates all iterators. - PrependActivityStreamsEndpoints(v ActivityStreamsEndpoints) - // PrependIRI prepends an IRI value to the front of a list of the property - // "endpoints". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "endpoints". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "endpoints", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a Endpoints value to be at the specified index for the - // property "endpoints". Panics if the index is out of bounds. - // Invalidates all iterators. - Set(idx int, v ActivityStreamsEndpoints) - // SetIRI sets an IRI value to be at the specified index for the property - // "endpoints". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "endpoints". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "endpoints" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_first_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_first_interface.go deleted file mode 100644 index e11b0fdb1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_first_interface.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// In a paged Collection, indicates the furthest preceeding page of items in the -// collection. -// -// Example 76 (https://www.w3.org/TR/activitystreams-vocabulary/#ex73-jsonld): -// -// { -// "first": "http://example.org/collection?page=0", -// "summary": "Sally's blog posts", -// "totalItems": 3, -// "type": "Collection" -// } -// -// Example 77 (https://www.w3.org/TR/activitystreams-vocabulary/#ex74-jsonld): -// -// { -// "first": { -// "summary": "First Page", -// "type": "owl:Class", -// "url": "http://example.org/collection?page=0" -// }, -// "summary": "Sally's blog posts", -// "totalItems": 3, -// "type": "Collection" -// } -type ActivityStreamsFirstProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsFirstProperty) bool - // Name returns the name of this property: "first". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_followers_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_followers_interface.go deleted file mode 100644 index 073f694d6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_followers_interface.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A link to an ActivityStreams collection of the actors that follow this actor -// -// Example 9 (https://www.w3.org/TR/activitypub/#example9): -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "ja" -// } -// ], -// "followers": "https://kenzoishii.example.com/followers.json", -// "following": "https://kenzoishii.example.com/following.json", -// "icon": [ -// "https://kenzoishii.example.com/image/165987aklre4" -// ], -// "id": "https://kenzoishii.example.com/", -// "inbox": "https://kenzoishii.example.com/inbox.json", -// "liked": "https://kenzoishii.example.com/liked.json", -// "name": "石井健蔵", -// "outbox": "https://kenzoishii.example.com/feed.json", -// "preferredUsername": "kenzoishii", -// "summary": "この方はただの例です", -// "type": "Person" -// } -type ActivityStreamsFollowersProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsFollowersProperty) bool - // Name returns the name of this property: "followers". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_following_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_following_interface.go deleted file mode 100644 index 625daa6bb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_following_interface.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A link to an ActivityStreams collection of the actors that this actor is -// following -// -// Example 9 (https://www.w3.org/TR/activitypub/#example9): -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "ja" -// } -// ], -// "followers": "https://kenzoishii.example.com/followers.json", -// "following": "https://kenzoishii.example.com/following.json", -// "icon": [ -// "https://kenzoishii.example.com/image/165987aklre4" -// ], -// "id": "https://kenzoishii.example.com/", -// "inbox": "https://kenzoishii.example.com/inbox.json", -// "liked": "https://kenzoishii.example.com/liked.json", -// "name": "石井健蔵", -// "outbox": "https://kenzoishii.example.com/feed.json", -// "preferredUsername": "kenzoishii", -// "summary": "この方はただの例です", -// "type": "Person" -// } -type ActivityStreamsFollowingProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsFollowingProperty) bool - // Name returns the name of this property: "following". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go deleted file mode 100644 index d31f1a72d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go +++ /dev/null @@ -1,2001 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsFormerTypePropertyIterator represents a single value for the -// "formerType" property. -type ActivityStreamsFormerTypePropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsFormerTypePropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsFormerType". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsFormerTypePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsFormerTypePropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error - // SetXMLSchemaString sets the value of this property. Calling - // IsXMLSchemaString afterwards returns true. - SetXMLSchemaString(v string) -} - -// On a Tombstone object, the formerType property identifies the type of the -// object that was deleted. -// -// Example 142 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185b-jsonld): -// -// { -// "formerType": "/Image", -// "summary": "This image has been deleted", -// "type": "Tombstone", -// "url": "http://example.org/image/2" -// } -type ActivityStreamsFormerTypeProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "formerType". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "formerType". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "formerType". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "formerType". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "formerType". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "formerType". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "formerType". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "formerType". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "formerType". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "formerType". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "formerType". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "formerType". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "formerType". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "formerType". - // Invalidates iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "formerType". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "formerType". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "formerType". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "formerType". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "formerType". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "formerType". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "formerType" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "formerType". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsFormerTypePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsFormerTypePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsFormerTypePropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "formerType". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "formerType". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "formerType". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "formerType". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "formerType". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "formerType". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "formerType". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "formerType". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "formerType". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "formerType". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "formerType". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "formerType". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "formerType" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsFormerTypeProperty) bool - // Name returns the name of this property ("formerType") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "formerType". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "formerType". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "formerType". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "formerType". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "formerType". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "formerType". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "formerType". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "formerType". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "formerType". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "formerType". - // Invalidates all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "formerType". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "formerType". Invalidates - // all iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "formerType". Invalidates - // all iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "formerType". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "formerType". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "formerType". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "formerType". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "formerType", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "formerType". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "formerType". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "formerType". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "formerType". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "formerType". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "formerType". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "formerType". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "formerType". Panics - // if the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "formerType". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "formerType". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "formerType". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "formerType". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // SetXMLSchemaString sets a string value to be at the specified index for - // the property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaString(idx int, v string) - // Swap swaps the location of values at two indices for the "formerType" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go deleted file mode 100644 index 380de7732..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go +++ /dev/null @@ -1,2054 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsGeneratorPropertyIterator represents a single value for the -// "generator" property. -type ActivityStreamsGeneratorPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsGeneratorPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsGenerator". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsGeneratorPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsGeneratorPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies the entity (e.g. an application) that generated the object. -// -// Example 78 (https://www.w3.org/TR/activitystreams-vocabulary/#ex75-jsonld): -// -// { -// "content": "This is all there is.", -// "generator": { -// "name": "Exampletron 3000", -// "type": "Application" -// }, -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsGeneratorProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "generator". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "generator". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "generator". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "generator". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "generator". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "generator". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "generator". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "generator". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "generator". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "generator". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "generator". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "generator". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "generator". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "generator". - // Invalidates iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "generator". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "generator". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "generator". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "generator". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "generator". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "generator". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "generator" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "generator". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "generator". Invalidates iterators that are traversing - // using Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsGeneratorPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsGeneratorPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsGeneratorPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "generator". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "generator". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "generator". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "generator". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "generator". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "generator". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "generator". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "generator". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "generator". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "generator". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "generator". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "generator". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "generator" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsGeneratorProperty) bool - // Name returns the name of this property ("generator") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "generator". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "generator". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "generator". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "generator". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "generator". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "generator". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "generator". - // Invalidates all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "generator". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "generator". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "generator". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "generator". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "generator". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "generator". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "generator". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "generator", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "generator". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "generator". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "generator". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "generator". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "generator". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "generator". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "generator". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "generator". Panics - // if the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "generator". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "generator". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "generator". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "generator". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "generator" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_height_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_height_interface.go deleted file mode 100644 index 1f55478ff..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_height_interface.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// On a Link, specifies a hint as to the rendering height in device-independent -// pixels of the linked resource. -// -// Example 120 (https://www.w3.org/TR/activitystreams-vocabulary/#ex136-jsonld): -// -// { -// "height": 100, -// "type": "Link", -// "url": "http://example.org/image.png", -// "width": 100 -// } -type ActivityStreamsHeightProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return false. - Clear() - // Get returns the value of this property. When - // IsXMLSchemaNonNegativeInteger returns false, Get will return any - // arbitrary value. - Get() int - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaNonNegativeInteger returns true if this property is set and - // not an IRI. - IsXMLSchemaNonNegativeInteger() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsHeightProperty) bool - // Name returns the name of this property: "height". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return true. - Set(v int) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_href_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_href_interface.go deleted file mode 100644 index 1a66dbd9a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_href_interface.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The target resource pointed to by a Link. -// -// Example 121 (https://www.w3.org/TR/activitystreams-vocabulary/#ex137-jsonld): -// -// { -// "mediaType": "text/html", -// "name": "Previous", -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsHrefProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaAnyURI afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsHrefProperty) bool - // Name returns the name of this property: "href". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go deleted file mode 100644 index 5a095a15f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Hints as to the language used by the target resource. Value MUST be a [BCP47] -// Language-Tag. -// -// Example 122 (https://www.w3.org/TR/activitystreams-vocabulary/#ex138-jsonld): -// -// { -// "hreflang": "en", -// "mediaType": "text/html", -// "name": "Previous", -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsHreflangProperty interface { - // Clear ensures no value of this property is set. Calling IsRFCBcp47 - // afterwards will return false. - Clear() - // Get returns the value of this property. When IsRFCBcp47 returns false, - // Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsRFCBcp47 returns true if this property is set and not an IRI. - IsRFCBcp47() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsHreflangProperty) bool - // Name returns the name of this property: "hreflang". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsRFCBcp47 afterwards will - // return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_icon_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_icon_interface.go deleted file mode 100644 index 4fff82b39..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_icon_interface.go +++ /dev/null @@ -1,276 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsIconPropertyIterator represents a single value for the "icon" -// property. -type ActivityStreamsIconPropertyIterator interface { - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsIconPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsIcon". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsIconPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsIconPropertyIterator - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Indicates an entity that describes an icon for this object. The image should -// have an aspect ratio of one (horizontal) to one (vertical) and should be -// suitable for presentation at a small size. -// -// Example 79 (https://www.w3.org/TR/activitystreams-vocabulary/#ex77-jsonld): -// -// { -// "content": "This is all there is.", -// "icon": { -// "height": 16, -// "name": "Note icon", -// "type": "Image", -// "url": "http://example.org/note.png", -// "width": 16 -// }, -// "summary": "A simple note", -// "type": "Note" -// } -// -// Example 80 (https://www.w3.org/TR/activitystreams-vocabulary/#ex78-jsonld): -// -// { -// "content": "A simple note", -// "icon": [ -// { -// "height": 16, -// "summary": "Note (16x16)", -// "type": "Image", -// "url": "http://example.org/note1.png", -// "width": 16 -// }, -// { -// "height": 32, -// "summary": "Note (32x32)", -// "type": "Image", -// "url": "http://example.org/note2.png", -// "width": 32 -// } -// ], -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsIconProperty interface { - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "icon". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "icon". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "icon". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendIRI appends an IRI value to the back of a list of the property - // "icon" - AppendIRI(v *url.URL) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "icon". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "icon". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsIconPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsIconPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsIconPropertyIterator - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "icon". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "icon". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "icon". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // Insert inserts an IRI value at the specified index for a property - // "icon". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "icon". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "icon". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "icon" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsIconProperty) bool - // Name returns the name of this property ("icon") with any alias. - Name() string - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "icon". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "icon". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "icon". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependIRI prepends an IRI value to the front of a list of the property - // "icon". - PrependIRI(v *url.URL) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "icon". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "icon". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "icon", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "icon". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "icon". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "icon". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetIRI sets an IRI value to be at the specified index for the property - // "icon". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "icon". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetType sets an arbitrary type value to the specified index of the - // property "icon". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "icon" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_image_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_image_interface.go deleted file mode 100644 index 7e8879b49..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_image_interface.go +++ /dev/null @@ -1,269 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsImagePropertyIterator represents a single value for the "image" -// property. -type ActivityStreamsImagePropertyIterator interface { - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsImagePropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsImage". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsImagePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsImagePropertyIterator - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Indicates an entity that describes an image for this object. Unlike the icon -// property, there are no aspect ratio or display size limitations assumed. -// -// Example 81 (https://www.w3.org/TR/activitystreams-vocabulary/#ex80-jsonld): -// -// { -// "content": "This is all there is.", -// "image": { -// "name": "A Cat", -// "type": "Image", -// "url": "http://example.org/cat.png" -// }, -// "name": "A simple note", -// "type": "Note" -// } -// -// Example 82 (https://www.w3.org/TR/activitystreams-vocabulary/#ex81-jsonld): -// -// { -// "content": "This is all there is.", -// "image": [ -// { -// "name": "Cat 1", -// "type": "Image", -// "url": "http://example.org/cat1.png" -// }, -// { -// "name": "Cat 2", -// "type": "Image", -// "url": "http://example.org/cat2.png" -// } -// ], -// "name": "A simple note", -// "type": "Note" -// } -type ActivityStreamsImageProperty interface { - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "image". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "image". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "image". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendIRI appends an IRI value to the back of a list of the property - // "image" - AppendIRI(v *url.URL) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "image". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "image". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsImagePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsImagePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsImagePropertyIterator - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "image". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "image". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "image". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // Insert inserts an IRI value at the specified index for a property - // "image". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "image". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "image". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "image" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsImageProperty) bool - // Name returns the name of this property ("image") with any alias. - Name() string - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "image". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "image". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "image". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependIRI prepends an IRI value to the front of a list of the property - // "image". - PrependIRI(v *url.URL) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "image". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "image". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "image", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "image". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "image". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "image". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetIRI sets an IRI value to be at the specified index for the property - // "image". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "image". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetType sets an arbitrary type value to the specified index of the - // property "image". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "image" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go deleted file mode 100644 index fcf1d5710..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go +++ /dev/null @@ -1,2064 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsInReplyToPropertyIterator represents a single value for the -// "inReplyTo" property. -type ActivityStreamsInReplyToPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsInReplyToPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsInReplyTo". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsInReplyToPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsInReplyToPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Indicates one or more entities for which this object is considered a response. -// -// Example 83 (https://www.w3.org/TR/activitystreams-vocabulary/#ex83-jsonld): -// -// { -// "content": "This is all there is.", -// "inReplyTo": { -// "content": "What else is there?", -// "summary": "Previous note", -// "type": "Note" -// }, -// "summary": "A simple note", -// "type": "Note" -// } -// -// Example 84 (https://www.w3.org/TR/activitystreams-vocabulary/#ex84-jsonld): -// -// { -// "content": "This is all there is.", -// "inReplyTo": "http://example.org/posts/1", -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsInReplyToProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "inReplyTo". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "inReplyTo". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "inReplyTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "inReplyTo". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "inReplyTo". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "inReplyTo". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "inReplyTo". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "inReplyTo". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "inReplyTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "inReplyTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "inReplyTo". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "inReplyTo". - // Invalidates iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "inReplyTo". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "inReplyTo". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "inReplyTo". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "inReplyTo". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "inReplyTo". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "inReplyTo". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "inReplyTo" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsInReplyToPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsInReplyToPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsInReplyToPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "inReplyTo". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "inReplyTo". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "inReplyTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "inReplyTo". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "inReplyTo". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "inReplyTo". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "inReplyTo". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "inReplyTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "inReplyTo". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "inReplyTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "inReplyTo". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "inReplyTo". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "inReplyTo" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsInReplyToProperty) bool - // Name returns the name of this property ("inReplyTo") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "inReplyTo". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "inReplyTo". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "inReplyTo". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "inReplyTo". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "inReplyTo". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "inReplyTo". - // Invalidates all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "inReplyTo". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "inReplyTo". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "inReplyTo". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "inReplyTo". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "inReplyTo", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "inReplyTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "inReplyTo". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "inReplyTo". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "inReplyTo". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "inReplyTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "inReplyTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "inReplyTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "inReplyTo". Panics - // if the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "inReplyTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "inReplyTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "inReplyTo". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "inReplyTo". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "inReplyTo" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go deleted file mode 100644 index cedb30e1b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A reference to an ActivityStreams OrderedCollection comprised of all the -// messages received by the actor. -// -// Example 9 (https://www.w3.org/TR/activitypub/#example9): -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "ja" -// } -// ], -// "followers": "https://kenzoishii.example.com/followers.json", -// "following": "https://kenzoishii.example.com/following.json", -// "icon": [ -// "https://kenzoishii.example.com/image/165987aklre4" -// ], -// "id": "https://kenzoishii.example.com/", -// "inbox": "https://kenzoishii.example.com/inbox.json", -// "liked": "https://kenzoishii.example.com/liked.json", -// "name": "石井健蔵", -// "outbox": "https://kenzoishii.example.com/feed.json", -// "preferredUsername": "kenzoishii", -// "summary": "この方はただの例です", -// "type": "Person" -// } -type ActivityStreamsInboxProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsInboxProperty) bool - // Name returns the name of this property: "inbox". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go deleted file mode 100644 index 7df49d1e1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go +++ /dev/null @@ -1,2062 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsInstrumentPropertyIterator represents a single value for the -// "instrument" property. -type ActivityStreamsInstrumentPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsInstrumentPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsInstrument". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsInstrumentPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsInstrumentPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies one or more objects used (or to be used) in the completion of an -// Activity. -// -// Example 85 (https://www.w3.org/TR/activitystreams-vocabulary/#ex101-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "instrument": { -// "name": "Acme Music Service", -// "type": "Service" -// }, -// "object": "http://example.org/foo.mp3", -// "summary": "Sally listened to a piece of music on the Acme Music -// -// Service", -// -// "type": "Listen" -// } -type ActivityStreamsInstrumentProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "instrument". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "instrument". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "instrument". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "instrument". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "instrument". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "instrument". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "instrument". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "instrument". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "instrument". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "instrument". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "instrument". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "instrument". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "instrument". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "instrument". - // Invalidates iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "instrument". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "instrument". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "instrument". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "instrument". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "instrument". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "instrument". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "instrument" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "instrument". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "instrument". Invalidates iterators that are traversing - // using Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsInstrumentPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsInstrumentPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsInstrumentPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "instrument". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "instrument". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "instrument". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "instrument". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "instrument". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "instrument". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "instrument". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "instrument". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "instrument". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "instrument". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "instrument". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "instrument". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "instrument" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsInstrumentProperty) bool - // Name returns the name of this property ("instrument") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "instrument". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "instrument". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "instrument". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "instrument". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "instrument". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "instrument". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "instrument". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "instrument". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "instrument". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "instrument". - // Invalidates all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "instrument". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "instrument". Invalidates - // all iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "instrument". Invalidates - // all iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "instrument". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "instrument". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "instrument". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "instrument". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "instrument", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "instrument". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "instrument". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "instrument". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "instrument". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "instrument". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "instrument". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "instrument". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "instrument". Panics - // if the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "instrument". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "instrument". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "instrument". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "instrument". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "instrument" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go deleted file mode 100644 index 3e554b3e4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go +++ /dev/null @@ -1,2042 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsItemsPropertyIterator represents a single value for the "items" -// property. -type ActivityStreamsItemsPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsItemsPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsItems". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsItemsPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsItemsPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies the items contained in a collection. The items might be ordered or -// unordered. -// -// Example 89 (https://www.w3.org/TR/activitystreams-vocabulary/#ex91-jsonld): -// -// { -// "items": [ -// { -// "name": "Reminder for Going-Away Party", -// "type": "Note" -// }, -// { -// "name": "Meeting 2016-11-17", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "Collection" -// } -type ActivityStreamsItemsProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "items". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "items". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "items". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "items". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "items". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "items". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "items". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "items". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "items". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "items". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "items". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "items". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "items". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "items". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "items". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "items". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "items" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "items". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "items". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsItemsPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsItemsPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsItemsPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "items". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "items". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "items". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "items". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "items". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "items". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "items". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "items". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "items". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "items". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "items". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "items". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "items" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsItemsProperty) bool - // Name returns the name of this property ("items") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "items". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "items". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "items". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "items". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "items". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "items". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "items". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "items". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "items". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "items". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "items". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "items". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "items". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "items". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "items". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "items". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "items". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "items". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "items". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "items". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "items". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "items". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "items". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "items". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "items". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "items". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "items". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "items". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "items". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "items". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "items", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "items". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "items". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "items". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "items". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "items". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "items". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "items". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "items". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "items". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "items". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "items". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "items". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "items". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "items" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_last_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_last_interface.go deleted file mode 100644 index c68eef3b9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_last_interface.go +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// In a paged Collection, indicates the furthest proceeding page of the collection. -// -// Example 86 (https://www.w3.org/TR/activitystreams-vocabulary/#ex87-jsonld): -// -// { -// "last": "http://example.org/collection?page=1", -// "summary": "A collection", -// "totalItems": 3, -// "type": "Collection" -// } -// -// Example 87 (https://www.w3.org/TR/activitystreams-vocabulary/#ex88-jsonld): -// -// { -// "last": { -// "summary": "Last Page", -// "type": "owl:Class", -// "url": "http://example.org/collection?page=1" -// }, -// "summary": "A collection", -// "totalItems": 5, -// "type": "Collection" -// } -type ActivityStreamsLastProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLastProperty) bool - // Name returns the name of this property: "last". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go deleted file mode 100644 index e3bc1d14e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The latitude of a place -// -// Example 124 (https://www.w3.org/TR/activitystreams-vocabulary/#ex140-jsonld): -// -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsLatitudeProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaFloat afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLatitudeProperty) bool - // Name returns the name of this property: "latitude". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_liked_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_liked_interface.go deleted file mode 100644 index 5e48afe10..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_liked_interface.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A link to an ActivityStreams collection of objects this actor has liked -// -// Example 9 (https://www.w3.org/TR/activitypub/#example9): -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "ja" -// } -// ], -// "followers": "https://kenzoishii.example.com/followers.json", -// "following": "https://kenzoishii.example.com/following.json", -// "icon": [ -// "https://kenzoishii.example.com/image/165987aklre4" -// ], -// "id": "https://kenzoishii.example.com/", -// "inbox": "https://kenzoishii.example.com/inbox.json", -// "liked": "https://kenzoishii.example.com/liked.json", -// "name": "石井健蔵", -// "outbox": "https://kenzoishii.example.com/feed.json", -// "preferredUsername": "kenzoishii", -// "summary": "この方はただの例です", -// "type": "Person" -// } -type ActivityStreamsLikedProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLikedProperty) bool - // Name returns the name of this property: "liked". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_likes_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_likes_interface.go deleted file mode 100644 index fac33a4e0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_likes_interface.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// This is a list of all Like activities with this object as the object property -type ActivityStreamsLikesProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLikesProperty) bool - // Name returns the name of this property: "likes". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go deleted file mode 100644 index 2401bbaea..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go +++ /dev/null @@ -1,2059 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsLocationPropertyIterator represents a single value for the -// "location" property. -type ActivityStreamsLocationPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLocationPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsLocation". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsLocationPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsLocationPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Indicates one or more physical or logical locations associated with the object. -// -// Example 88 (https://www.w3.org/TR/activitystreams-vocabulary/#ex89-jsonld): -// -// { -// "location": { -// "altitude": 90, -// "latitude": 56.78, -// "longitude": 12.34, -// "name": "Over the Arabian Sea, east of Socotra Island Nature -// -// Sanctuary", -// -// "type": "Place", -// "units": "m" -// }, -// "name": "Sally", -// "type": "Person" -// } -type ActivityStreamsLocationProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "location". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "location". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "location". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "location". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "location". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "location". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "location". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "location". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "location". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "location". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "location". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "location". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "location" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "location". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "location". Invalidates iterators that are traversing - // using Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsLocationPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsLocationPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsLocationPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "location". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "location". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "location". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "location". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "location". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "location". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "location". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "location". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "location". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "location". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "location". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "location". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "location". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "location" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLocationProperty) bool - // Name returns the name of this property ("location") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "location". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "location". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "location". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "location". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "location". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "location". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "location". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "location". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "location". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "location". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "location". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "location". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "location". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "location". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "location". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "location". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "location". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "location". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "location". - // Invalidates all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "location". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "location". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "location". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "location". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "location". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "location". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "location". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "location". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "location". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "location". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "location", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "location". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "location". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "location". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "location". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "location". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "location". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "location". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "location". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "location". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "location". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "location". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "location". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "location" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go deleted file mode 100644 index c523b7c42..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The longitude of a place -// -// Example 125 (https://www.w3.org/TR/activitystreams-vocabulary/#ex141-jsonld): -// -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsLongitudeProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaFloat afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLongitudeProperty) bool - // Name returns the name of this property: "longitude". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go deleted file mode 100644 index c66ff0ae1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Indicates that the actor manually approves Follow activities and that an -// automatic Accept should not be expected. -type ActivityStreamsManuallyApprovesFollowersProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaBoolean afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaBoolean returns - // false, Get will return any arbitrary value. - Get() bool - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaBoolean returns true if this property is set and not an IRI. - IsXMLSchemaBoolean() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsManuallyApprovesFollowersProperty) bool - // Name returns the name of this property: "manuallyApprovesFollowers". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaBoolean - // afterwards will return true. - Set(v bool) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go deleted file mode 100644 index 6ba878ad2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go +++ /dev/null @@ -1,65 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// When used on a Link, identifies the MIME media type of the referenced resource. -// When used on an Object, identifies the MIME media type of the value of the -// content property. If not specified, the content property is assumed to -// contain text/html content. -// -// Example 126 (https://www.w3.org/TR/activitystreams-vocabulary/#ex142-jsonld): -// -// { -// "hreflang": "en", -// "mediaType": "text/html", -// "name": "Next", -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsMediaTypeProperty interface { - // Clear ensures no value of this property is set. Calling IsRFCRfc2045 - // afterwards will return false. - Clear() - // Get returns the value of this property. When IsRFCRfc2045 returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsRFCRfc2045 returns true if this property is set and not an IRI. - IsRFCRfc2045() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsMediaTypeProperty) bool - // Name returns the name of this property: "mediaType". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsRFCRfc2045 afterwards - // will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go deleted file mode 100644 index ddba614ec..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// URI/ID to which this Actor has moved. A set value indicates that the Actor is -// now active at the target URI, and is no longer active on the Actor model on -// which this property is set. -type ActivityStreamsMovedToProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaAnyURI afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsMovedToProperty) bool - // Name returns the name of this property: "movedTo". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_name_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_name_interface.go deleted file mode 100644 index f46111dd1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_name_interface.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsNamePropertyIterator represents a single value for the "name" -// property. -type ActivityStreamsNamePropertyIterator interface { - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetLanguage returns the value for the specified BCP47 language code, or - // an empty string if it is either not a language map or no value is - // present. - GetLanguage(bcp47 string) string - // GetRDFLangString returns the value of this property. When - // IsRDFLangString returns false, GetRDFLangString will return an - // arbitrary value. - GetRDFLangString() map[string]string - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the values are set, except for the - // natural language map. When true, the specific has, getter, and - // setter methods may be used to determine what kind of value there is - // to access and set this property. To determine if the property was - // set as a natural language map, use the IsRDFLangString method - // instead. - HasAny() bool - // HasLanguage returns true if the natural language map has an entry for - // the specified BCP47 language code. - HasLanguage(bcp47 string) bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsRDFLangString returns true if this property has a type of - // "langString". When true, use the GetRDFLangString and - // SetRDFLangString methods to access and set this property.. To - // determine if the property was set as a natural language map, use - // the IsRDFLangString method instead. - IsRDFLangString() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property.. To determine if the - // property was set as a natural language map, use the IsRDFLangString - // method instead. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsNamePropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsName". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsNamePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsNamePropertyIterator - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetLanguage sets the value for the specified BCP47 language code. - SetLanguage(bcp47, value string) - // SetRDFLangString sets the value of this property and clears the natural - // language map. Calling IsRDFLangString afterwards will return true. - // Calling IsRDFLangString afterwards returns false. - SetRDFLangString(v map[string]string) - // SetXMLSchemaString sets the value of this property and clears the - // natural language map. Calling IsXMLSchemaString afterwards will - // return true. Calling IsRDFLangString afterwards returns false. - SetXMLSchemaString(v string) -} - -// A simple, human-readable, plain-text name for the object. HTML markup MUST NOT -// be included. The name MAY be expressed using multiple language-tagged -// values. -// -// Example 117 (https://www.w3.org/TR/activitystreams-vocabulary/#ex132-jsonld): -// -// { -// "name": "A simple note", -// "type": "Note" -// } -// -// Example 118 (https://www.w3.org/TR/activitystreams-vocabulary/#ex133-jsonld): -// -// { -// "nameMap": { -// "en": "A simple note", -// "es": "Una nota sencilla", -// "zh-hans": "一段简单的笔记" -// }, -// "type": "Note" -// } -type ActivityStreamsNameProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "name" - AppendIRI(v *url.URL) - // AppendRDFLangString appends a langString value to the back of a list of - // the property "name". Invalidates iterators that are traversing - // using Prev. - AppendRDFLangString(v map[string]string) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "name". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsNamePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsNamePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsNamePropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "name". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertRDFLangString inserts a langString value at the specified index - // for a property "name". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertRDFLangString(idx int, v map[string]string) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "name". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "name" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsNameProperty) bool - // Name returns the name of this property ("name") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "name". - PrependIRI(v *url.URL) - // PrependRDFLangString prepends a langString value to the front of a list - // of the property "name". Invalidates all iterators. - PrependRDFLangString(v map[string]string) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "name". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "name", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets an IRI value to be at the specified index for the property - // "name". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetRDFLangString sets a langString value to be at the specified index - // for the property "name". Panics if the index is out of bounds. - // Invalidates all iterators. - SetRDFLangString(idx int, v map[string]string) - // SetXMLSchemaString sets a string value to be at the specified index for - // the property "name". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaString(idx int, v string) - // Swap swaps the location of values at two indices for the "name" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_next_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_next_interface.go deleted file mode 100644 index 7386ecbe3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_next_interface.go +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// In a paged Collection, indicates the next page of items. -// -// Example 95 (https://www.w3.org/TR/activitystreams-vocabulary/#ex96-jsonld): -// -// { -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "next": "http://example.org/collection?page=2", -// "summary": "Page 2 of Sally's blog posts", -// "type": "CollectionPage" -// } -// -// Example 96 (https://www.w3.org/TR/activitystreams-vocabulary/#ex97-jsonld): -// -// { -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "next": { -// "name": "Next Page", -// "type": "owl:Class", -// "url": "http://example.org/collection?page=2" -// }, -// "summary": "Page 2 of Sally's blog posts", -// "type": "CollectionPage" -// } -type ActivityStreamsNextProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsNextProperty) bool - // Name returns the name of this property: "next". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go deleted file mode 100644 index 5ecc9b010..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go +++ /dev/null @@ -1,2062 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsObjectPropertyIterator represents a single value for the -// "object" property. -type ActivityStreamsObjectPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsObjectPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsObject". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsObjectPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsObjectPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// When used within an Activity, describes the direct object of the activity. For -// instance, in the activity "John added a movie to his wishlist", the object -// of the activity is the movie added. When used within a Relationship -// describes the entity to which the subject is related. -// -// Example 97 (https://www.w3.org/TR/activitystreams-vocabulary/#ex98-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally liked a post", -// "type": "Like" -// } -// -// Example 98 (https://www.w3.org/TR/activitystreams-vocabulary/#ex99-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": { -// "content": "A simple note", -// "type": "Note" -// }, -// "type": "Like" -// } -// -// Example 99 (https://www.w3.org/TR/activitystreams-vocabulary/#ex100-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": [ -// "http://example.org/posts/1", -// { -// "content": "That is a tree.", -// "summary": "A simple note", -// "type": "Note" -// } -// ], -// "summary": "Sally liked a note", -// "type": "Like" -// } -type ActivityStreamsObjectProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "object". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "object". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "object". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "object". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "object". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "object". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "object". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "object". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "object". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "object". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "object". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "object". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "object". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "object". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "object". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "object". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "object" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "object". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "object". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsObjectPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsObjectPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsObjectPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "object". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "object". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "object". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "object". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "object". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "object". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "object". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "object". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "object". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "object". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "object". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "object". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "object" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsObjectProperty) bool - // Name returns the name of this property ("object") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "object". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "object". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "object". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "object". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "object". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "object". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "object". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "object". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "object". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "object". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "object". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "object". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "object". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "object". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "object". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "object". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "object". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "object". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "object". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "object". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "object". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "object". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "object". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "object". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "object". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "object". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "object". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "object". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "object". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "object". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "object", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "object". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "object". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "object". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "object". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "object". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "object". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "object". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "object". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "object". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "object". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "object". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "object". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "object" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go deleted file mode 100644 index bde8a7953..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go +++ /dev/null @@ -1,2042 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsOneOfPropertyIterator represents a single value for the "oneOf" -// property. -type ActivityStreamsOneOfPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOneOfPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsOneOf". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsOneOfPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsOneOfPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an exclusive option for a Question. Use of oneOf implies that the -// Question can have only a single answer. To indicate that a Question can -// have multiple answers, use anyOf. -// -// Example 91 (https://www.w3.org/TR/activitystreams-vocabulary/#ex93-jsonld): -// -// { -// "name": "What is the answer?", -// "oneOf": [ -// { -// "name": "Option A", -// "type": "Note" -// }, -// { -// "name": "Option B", -// "type": "Note" -// } -// ], -// "type": "Question" -// } -type ActivityStreamsOneOfProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "oneOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "oneOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "oneOf". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "oneOf". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "oneOf". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "oneOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "oneOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "oneOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "oneOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "oneOf". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "oneOf". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "oneOf". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "oneOf". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "oneOf". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "oneOf". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "oneOf". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "oneOf" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "oneOf". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "oneOf". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsOneOfPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsOneOfPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsOneOfPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "oneOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "oneOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "oneOf". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "oneOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "oneOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "oneOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "oneOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "oneOf". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "oneOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "oneOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "oneOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "oneOf". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "oneOf" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOneOfProperty) bool - // Name returns the name of this property ("oneOf") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "oneOf". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "oneOf". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "oneOf". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "oneOf". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "oneOf". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "oneOf". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "oneOf". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "oneOf". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "oneOf". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "oneOf". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "oneOf", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "oneOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "oneOf". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "oneOf". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "oneOf". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "oneOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "oneOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "oneOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "oneOf". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "oneOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "oneOf". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "oneOf". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "oneOf". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "oneOf". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "oneOf" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go deleted file mode 100644 index 0af6120f8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go +++ /dev/null @@ -1,2062 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsOrderedItemsPropertyIterator represents a single value for the -// "orderedItems" property. -type ActivityStreamsOrderedItemsPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOrderedItemsPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsOrderedItems". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsOrderedItemsPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsOrderedItemsPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies the items contained in an ordered collection. The items are ordered. -// -// Example 90 (https://www.w3.org/TR/activitystreams-vocabulary/#ex92-jsonld): -// -// { -// "orderedItems": [ -// { -// "name": "Meeting 2016-11-17", -// "type": "Note" -// }, -// { -// "name": "Reminder for Going-Away Party", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "OrderedCollection" -// } -type ActivityStreamsOrderedItemsProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "orderedItems". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "orderedItems". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "orderedItems". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "orderedItems". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "orderedItems". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "orderedItems". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "orderedItems". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "orderedItems". - // Invalidates iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "orderedItems". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "orderedItems". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "orderedItems". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "orderedItems". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "orderedItems" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "orderedItems". Invalidates iterators that - // are traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "orderedItems". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "orderedItems". Invalidates iterators that are traversing - // using Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsOrderedItemsPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsOrderedItemsPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsOrderedItemsPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "orderedItems". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "orderedItems". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "orderedItems". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "orderedItems". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "orderedItems". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "orderedItems". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "orderedItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "orderedItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "orderedItems". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "orderedItems". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "orderedItems". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "orderedItems". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "orderedItems". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "orderedItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "orderedItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "orderedItems". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "orderedItems" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOrderedItemsProperty) bool - // Name returns the name of this property ("orderedItems") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "orderedItems". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "orderedItems". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "orderedItems". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "orderedItems". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "orderedItems". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "orderedItems". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "orderedItems". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "orderedItems". - // Invalidates all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "orderedItems". Invalidates - // all iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "orderedItems". Invalidates - // all iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "orderedItems". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "orderedItems". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "orderedItems". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "orderedItems". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "orderedItems", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "orderedItems". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "orderedItems". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "orderedItems". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "orderedItems". - // Panics if the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "orderedItems". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "orderedItems". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "orderedItems". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - // Panics if the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "orderedItems" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go deleted file mode 100644 index 43afc1b56..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go +++ /dev/null @@ -1,2043 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsOriginPropertyIterator represents a single value for the -// "origin" property. -type ActivityStreamsOriginPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOriginPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsOrigin". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsOriginPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsOriginPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Describes an indirect object of the activity from which the activity is -// directed. The precise meaning of the origin is the object of the English -// preposition "from". For instance, in the activity "John moved an item to -// List B from List A", the origin of the activity is "List A". -// -// Example 94 (https://www.w3.org/TR/activitystreams-vocabulary/#ex166-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "origin": { -// "name": "List A", -// "type": "Collection" -// }, -// "summary": "Sally moved a post from List A to List B", -// "target": { -// "name": "List B", -// "type": "Collection" -// }, -// "type": "Move" -// } -type ActivityStreamsOriginProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "origin". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "origin". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "origin". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "origin". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "origin". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "origin". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "origin". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "origin". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "origin". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "origin". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "origin". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "origin". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "origin". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "origin". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "origin". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "origin". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "origin" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "origin". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "origin". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsOriginPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsOriginPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsOriginPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "origin". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "origin". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "origin". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "origin". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "origin". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "origin". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "origin". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "origin". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "origin". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "origin". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "origin". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "origin". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "origin" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOriginProperty) bool - // Name returns the name of this property ("origin") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "origin". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "origin". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "origin". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "origin". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "origin". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "origin". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "origin". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "origin". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "origin". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "origin". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "origin". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "origin". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "origin". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "origin". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "origin". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "origin". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "origin". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "origin", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "origin". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "origin". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "origin". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "origin". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "origin". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "origin". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "origin". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "origin". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "origin". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "origin". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "origin". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "origin". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "origin" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go deleted file mode 100644 index 9a4eb0635..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// An ActivityStreams OrderedCollection comprised of all the messages produced by -// the actor -// -// Example 9 (https://www.w3.org/TR/activitypub/#example9): -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "ja" -// } -// ], -// "followers": "https://kenzoishii.example.com/followers.json", -// "following": "https://kenzoishii.example.com/following.json", -// "icon": [ -// "https://kenzoishii.example.com/image/165987aklre4" -// ], -// "id": "https://kenzoishii.example.com/", -// "inbox": "https://kenzoishii.example.com/inbox.json", -// "liked": "https://kenzoishii.example.com/liked.json", -// "name": "石井健蔵", -// "outbox": "https://kenzoishii.example.com/feed.json", -// "preferredUsername": "kenzoishii", -// "summary": "この方はただの例です", -// "type": "Person" -// } -type ActivityStreamsOutboxProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOutboxProperty) bool - // Name returns the name of this property: "outbox". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go deleted file mode 100644 index a9cbd7115..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Identifies the Collection to which a CollectionPage objects items belong. -// -// Example 123 (https://www.w3.org/TR/activitystreams-vocabulary/#ex139-jsonld): -// -// { -// "id": "http://example.org/collection?page=1", -// "items": [ -// { -// "name": "Pizza Toppings to Try", -// "type": "Note" -// }, -// { -// "name": "Thought about California", -// "type": "Note" -// } -// ], -// "partOf": "http://example.org/collection", -// "summary": "Page 1 of Sally's notes", -// "type": "CollectionPage" -// } -type ActivityStreamsPartOfProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPartOfProperty) bool - // Name returns the name of this property: "partOf". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go deleted file mode 100644 index 3cc09f68d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A short username which may be used to refer to the actor, with no uniqueness -// guarantees -type ActivityStreamsPreferredUsernameProperty interface { - // Clear ensures no value and no language map for this property is set. - // Calling HasAny or any of the 'Is' methods afterwards will return - // false. - Clear() - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetLanguage returns the value for the specified BCP47 language code, or - // an empty string if it is either not a language map or no value is - // present. - GetLanguage(bcp47 string) string - // GetRDFLangString returns the value of this property. When - // IsRDFLangString returns false, GetRDFLangString will return an - // arbitrary value. - GetRDFLangString() map[string]string - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the values are set, except for the - // natural language map. When true, the specific has, getter, and - // setter methods may be used to determine what kind of value there is - // to access and set this property. To determine if the property was - // set as a natural language map, use the IsRDFLangString method - // instead. - HasAny() bool - // HasLanguage returns true if the natural language map has an entry for - // the specified BCP47 language code. - HasLanguage(bcp47 string) bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsRDFLangString returns true if this property has a type of - // "langString". When true, use the GetRDFLangString and - // SetRDFLangString methods to access and set this property.. To - // determine if the property was set as a natural language map, use - // the IsRDFLangString method instead. - IsRDFLangString() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property.. To determine if the - // property was set as a natural language map, use the IsRDFLangString - // method instead. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPreferredUsernameProperty) bool - // Name returns the name of this property: "preferredUsername". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetLanguage sets the value for the specified BCP47 language code. - SetLanguage(bcp47, value string) - // SetRDFLangString sets the value of this property and clears the natural - // language map. Calling IsRDFLangString afterwards will return true. - // Calling IsRDFLangString afterwards returns false. - SetRDFLangString(v map[string]string) - // SetXMLSchemaString sets the value of this property and clears the - // natural language map. Calling IsXMLSchemaString afterwards will - // return true. Calling IsRDFLangString afterwards returns false. - SetXMLSchemaString(v string) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_prev_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_prev_interface.go deleted file mode 100644 index f2e8e610e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_prev_interface.go +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// In a paged Collection, identifies the previous page of items. -// -// Example 100 (https://www.w3.org/TR/activitystreams-vocabulary/#ex104-jsonld): -// -// { -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "prev": "http://example.org/collection?page=1", -// "summary": "Page 1 of Sally's blog posts", -// "type": "CollectionPage" -// } -// -// Example 101 (https://www.w3.org/TR/activitystreams-vocabulary/#ex105-jsonld): -// -// { -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "prev": { -// "name": "Previous Page", -// "type": "owl:Class", -// "url": "http://example.org/collection?page=1" -// }, -// "summary": "Page 1 of Sally's blog posts", -// "type": "CollectionPage" -// } -type ActivityStreamsPrevProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPrevProperty) bool - // Name returns the name of this property: "prev". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go deleted file mode 100644 index 210f801f0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go +++ /dev/null @@ -1,2047 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsPreviewPropertyIterator represents a single value for the -// "preview" property. -type ActivityStreamsPreviewPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPreviewPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsPreview". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsPreviewPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsPreviewPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an entity that provides a preview of this object. -// -// Example 102 (https://www.w3.org/TR/activitystreams-vocabulary/#ex106-jsonld): -// -// { -// "duration": "PT2H30M", -// "name": "Cool New Movie", -// "preview": { -// "duration": "PT1M", -// "name": "Trailer", -// "type": "Video", -// "url": { -// "mediaType": "video/mkv", -// "url": "http://example.org/trailer.mkv" -// } -// }, -// "type": "Video" -// } -type ActivityStreamsPreviewProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "preview". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "preview". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "preview". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "preview". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "preview". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "preview". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "preview". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "preview" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "preview". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "preview". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsPreviewPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsPreviewPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsPreviewPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "preview". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "preview". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "preview". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "preview". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "preview". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "preview". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "preview". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "preview". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "preview". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "preview". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "preview". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "preview". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "preview". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "preview". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "preview". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "preview". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "preview". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "preview". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "preview" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPreviewProperty) bool - // Name returns the name of this property ("preview") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "preview". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "preview". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "preview". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "preview". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "preview". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "preview". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "preview". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "preview". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "preview". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "preview". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "preview". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "preview". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "preview". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "preview". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "preview", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "preview". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "preview". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "preview". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "preview". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "preview". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "preview". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "preview". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "preview". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "preview". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "preview". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "preview". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "preview". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "preview" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_published_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_published_interface.go deleted file mode 100644 index 78bf3822c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_published_interface.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// The date and time at which the object was published -// -// Example 128 (https://www.w3.org/TR/activitystreams-vocabulary/#ex145-jsonld): -// -// { -// "content": "Fish swim.", -// "published": "2014-12-12T12:12:12Z", -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsPublishedProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPublishedProperty) bool - // Name returns the name of this property: "published". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_radius_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_radius_interface.go deleted file mode 100644 index e9f478770..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_radius_interface.go +++ /dev/null @@ -1,65 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The radius from the given latitude and longitude for a Place. The units is -// expressed by the units property. If units is not specified, the default is -// assumed to be "m" indicating "meters". -// -// Example 130 (https://www.w3.org/TR/activitystreams-vocabulary/#ex147-jsonld): -// -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsRadiusProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaFloat afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRadiusProperty) bool - // Name returns the name of this property: "radius". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_rel_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_rel_interface.go deleted file mode 100644 index edcf757b6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_rel_interface.go +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsRelPropertyIterator represents a single value for the "rel" -// property. -type ActivityStreamsRelPropertyIterator interface { - // Get returns the value of this property. When IsRFCRfc5988 returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsRFCRfc5988 returns true if this property is set and not an IRI. - IsRFCRfc5988() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRelPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsRel". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsRelPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsRelPropertyIterator - // Set sets the value of this property. Calling IsRFCRfc5988 afterwards - // will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// A link relation associated with a Link. The value MUST conform to both the -// [HTML5] and [RFC5988] "link relation" definitions. In the [HTML5], any -// string not containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A), -// "FF" (U+000C), "CR" (U+000D) or "," (U+002C) characters can be used as a -// valid link relation. -// -// Example 131 (https://www.w3.org/TR/activitystreams-vocabulary/#ex149-jsonld): -// -// { -// "hreflang": "en", -// "mediaType": "text/html", -// "name": "Preview", -// "rel": [ -// "canonical", -// "preview" -// ], -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsRelProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "rel" - AppendIRI(v *url.URL) - // AppendRFCRfc5988 appends a rfc5988 value to the back of a list of the - // property "rel". Invalidates iterators that are traversing using - // Prev. - AppendRFCRfc5988(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsRelPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsRelPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsRelPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "rel". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertRFCRfc5988 inserts a rfc5988 value at the specified index for a - // property "rel". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertRFCRfc5988(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "rel" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRelProperty) bool - // Name returns the name of this property ("rel") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "rel". - PrependIRI(v *url.URL) - // PrependRFCRfc5988 prepends a rfc5988 value to the front of a list of - // the property "rel". Invalidates all iterators. - PrependRFCRfc5988(v string) - // Remove deletes an element at the specified index from a list of the - // property "rel", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a rfc5988 value to be at the specified index for the property - // "rel". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v string) - // SetIRI sets an IRI value to be at the specified index for the property - // "rel". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the "rel" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go deleted file mode 100644 index c355348ed..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go +++ /dev/null @@ -1,1984 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsRelationshipPropertyIterator represents a single value for the -// "relationship" property. -type ActivityStreamsRelationshipPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRelationshipPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsRelationship". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsRelationshipPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsRelationshipPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// On a Relationship object, the relationship property identifies the kind of -// relationship that exists between subject and object. -// -// Example 140 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22c-jsonld): -// -// { -// "object": { -// "name": "John", -// "type": "Person" -// }, -// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf", -// "subject": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally is an acquaintance of John's", -// "type": "Relationship" -// } -type ActivityStreamsRelationshipProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "relationship". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "relationship". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "relationship". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "relationship". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "relationship". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "relationship". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "relationship". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "relationship". - // Invalidates iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "relationship". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "relationship". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "relationship". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "relationship". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "relationship" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "relationship". Invalidates iterators that - // are traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "relationship". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsRelationshipPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsRelationshipPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsRelationshipPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "relationship". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "relationship". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "relationship". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "relationship". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "relationship". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "relationship". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "relationship". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "relationship". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "relationship". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "relationship". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "relationship". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "relationship". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "relationship". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "relationship". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "relationship". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "relationship" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRelationshipProperty) bool - // Name returns the name of this property ("relationship") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "relationship". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "relationship". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "relationship". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "relationship". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "relationship". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "relationship". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "relationship". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "relationship". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "relationship". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "relationship". - // Invalidates all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "relationship". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "relationship". Invalidates - // all iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "relationship". Invalidates - // all iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "relationship". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "relationship". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "relationship". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "relationship". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "relationship", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "relationship". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "relationship". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "relationship". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "relationship". - // Panics if the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "relationship". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "relationship". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "relationship". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - // Panics if the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "relationship" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_replies_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_replies_interface.go deleted file mode 100644 index ecf57b8e8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_replies_interface.go +++ /dev/null @@ -1,125 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Identifies a Collection containing objects considered to be responses to this -// object. -// -// Example 104 (https://www.w3.org/TR/activitystreams-vocabulary/#ex112-jsonld): -// -// { -// "content": "I am fine.", -// "id": "http://www.test.example/notes/1", -// "replies": { -// "items": { -// "content": "I am glad to hear it.", -// "inReplyTo": "http://www.test.example/notes/1", -// "summary": "A response to the note", -// "type": "Note" -// }, -// "totalItems": 1, -// "type": "Collection" -// }, -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsRepliesProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRepliesProperty) bool - // Name returns the name of this property: "replies". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go deleted file mode 100644 index d81de3303..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go +++ /dev/null @@ -1,2041 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsResultPropertyIterator represents a single value for the -// "result" property. -type ActivityStreamsResultPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsResultPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsResult". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsResultPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsResultPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Describes the result of the activity. For instance, if a particular action -// results in the creation of a new resource, the result property can be used -// to describe that new resource. -// -// Example 103 (https://www.w3.org/TR/activitystreams-vocabulary/#ex108-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/flights/1", -// "result": { -// "name": "On Time", -// "type": "http://www.types.example/flightstatus" -// }, -// "summary": "Sally checked that her flight was on time", -// "type": [ -// "Activity", -// "http://www.verbs.example/Check" -// ] -// } -type ActivityStreamsResultProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "result". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "result". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "result". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "result". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "result". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "result". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "result". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "result". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "result". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "result". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "result". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "result". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "result". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "result". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "result". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "result". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "result" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "result". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "result". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsResultPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsResultPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsResultPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "result". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "result". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "result". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "result". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "result". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "result". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "result". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "result". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "result". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "result". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "result". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "result". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "result" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsResultProperty) bool - // Name returns the name of this property ("result") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "result". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "result". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "result". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "result". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "result". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "result". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "result". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "result". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "result". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "result". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "result". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "result". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "result". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "result". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "result". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "result". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "result". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "result". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "result". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "result". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "result". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "result". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "result". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "result". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "result". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "result". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "result". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "result". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "result". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "result". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "result", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "result". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "result". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "result". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "result". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "result". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "result". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "result". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "result". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "result". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "result". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "result". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "result". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "result" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go deleted file mode 100644 index 30a6563b6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sensitive_interface.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsSensitivePropertyIterator represents a single value for the -// "sensitive" property. -type ActivityStreamsSensitivePropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaBoolean returns - // false, Get will return any arbitrary value. - Get() bool - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaBoolean returns true if this property is set and not an IRI. - IsXMLSchemaBoolean() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSensitivePropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsSensitive". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsSensitivePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsSensitivePropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaBoolean - // afterwards will return true. - Set(v bool) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// Indicates that some users may wish to apply discretion about viewing this -// object's content, whether due to nudity, violence, or any other likely -// aspects that viewers may be sensitive to. -type ActivityStreamsSensitiveProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "sensitive" - AppendIRI(v *url.URL) - // AppendXMLSchemaBoolean appends a boolean value to the back of a list of - // the property "sensitive". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaBoolean(v bool) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsSensitivePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsSensitivePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsSensitivePropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "sensitive". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaBoolean inserts a boolean value at the specified index - // for a property "sensitive". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertXMLSchemaBoolean(idx int, v bool) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "sensitive" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSensitiveProperty) bool - // Name returns the name of this property ("sensitive") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "sensitive". - PrependIRI(v *url.URL) - // PrependXMLSchemaBoolean prepends a boolean value to the front of a list - // of the property "sensitive". Invalidates all iterators. - PrependXMLSchemaBoolean(v bool) - // Remove deletes an element at the specified index from a list of the - // property "sensitive", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a boolean value to be at the specified index for the property - // "sensitive". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v bool) - // SetIRI sets an IRI value to be at the specified index for the property - // "sensitive". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the "sensitive" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go deleted file mode 100644 index 67e4757f9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_sharedInbox_interface.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// An optional endpoint used for wide delivery of publicly addressed activities -// and activities sent to followers. sharedInbox endpoints SHOULD also be -// publicly readable OrderedCollection objects containing objects addressed to -// the Public special collection. Reading from the sharedInbox endpoint MUST -// NOT present objects which are not addressed to the Public endpoint. -type ActivityStreamsSharedInboxProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaAnyURI afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSharedInboxProperty) bool - // Name returns the name of this property: "sharedInbox". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_shares_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_shares_interface.go deleted file mode 100644 index f0eafd3e9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_shares_interface.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// This is a list of all Announce activities with this object as the object -// property -type ActivityStreamsSharesProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSharesProperty) bool - // Name returns the name of this property: "shares". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go deleted file mode 100644 index 9bb00e4b8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go +++ /dev/null @@ -1,880 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The source property is intended to convey some sort of source from which the -// content markup was derived, as a form of provenance, or to support future -// editing by clients. -// -// Example 8 (https://www.w3.org/TR/activitypub/#source-property): -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "en" -// } -// ], -// "content": "\u003cp\u003eI \u003cem\u003ereally\u003c/em\u003e like -// -// strawberries!\u003c/p\u003e", -// -// "id": "http://postparty.example/p/2415", -// "source": { -// "content": "I *really* like strawberries!", -// "mediaType": "text/markdown" -// }, -// "type": "Note" -// } -type ActivityStreamsSourceProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSourceProperty) bool - // Name returns the name of this property: "source". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go deleted file mode 100644 index 5dca404ad..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go +++ /dev/null @@ -1,73 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A non-negative integer value identifying the relative position within the -// logical view of a strictly ordered collection. -// -// Example 132 (https://www.w3.org/TR/activitystreams-vocabulary/#ex150-jsonld): -// -// { -// "orderedItems": [ -// { -// "name": "Density of Water", -// "type": "Note" -// }, -// { -// "name": "Air Mattress Idea", -// "type": "Note" -// } -// ], -// "startIndex": 0, -// "summary": "Page 1 of Sally's notes", -// "type": "OrderedCollectionPage" -// } -type ActivityStreamsStartIndexProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return false. - Clear() - // Get returns the value of this property. When - // IsXMLSchemaNonNegativeInteger returns false, Get will return any - // arbitrary value. - Get() int - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaNonNegativeInteger returns true if this property is set and - // not an IRI. - IsXMLSchemaNonNegativeInteger() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsStartIndexProperty) bool - // Name returns the name of this property: "startIndex". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return true. - Set(v int) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go deleted file mode 100644 index bae64843d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// The date and time describing the actual or expected starting time of the -// object. When used with an Activity object, for instance, the startTime -// property specifies the moment the activity began or is scheduled to begin. -// -// Example 129 (https://www.w3.org/TR/activitystreams-vocabulary/#ex146-jsonld): -// -// { -// "endTime": "2015-01-01T06:00:00-08:00", -// "name": "Going-Away Party for Jim", -// "startTime": "2014-12-31T23:00:00-08:00", -// "type": "Event" -// } -type ActivityStreamsStartTimeProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsStartTimeProperty) bool - // Name returns the name of this property: "startTime". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_streams_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_streams_interface.go deleted file mode 100644 index 1a1814f3a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_streams_interface.go +++ /dev/null @@ -1,252 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsStreamsPropertyIterator represents a single value for the -// "streams" property. -type ActivityStreamsStreamsPropertyIterator interface { - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsStreamsPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsStreams". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsStreamsPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsStreamsPropertyIterator - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// A list of supplementary Collections which may be of interest -type ActivityStreamsStreamsProperty interface { - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "streams". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "streams". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "streams". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "streams". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendIRI appends an IRI value to the back of a list of the property - // "streams" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "streams". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsStreamsPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsStreamsPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsStreamsPropertyIterator - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "streams". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "streams". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "streams". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "streams". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // Insert inserts an IRI value at the specified index for a property - // "streams". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "streams". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "streams" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsStreamsProperty) bool - // Name returns the name of this property ("streams") with any alias. - Name() string - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "streams". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "streams". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "streams". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "streams". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependIRI prepends an IRI value to the front of a list of the property - // "streams". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "streams". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "streams", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "streams". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "streams". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "streams". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "streams". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetIRI sets an IRI value to be at the specified index for the property - // "streams". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "streams". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "streams" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go deleted file mode 100644 index 55ab81707..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go +++ /dev/null @@ -1,875 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// On a Relationship object, the subject property identifies one of the connected -// individuals. For instance, for a Relationship object describing "John is -// related to Sally", subject would refer to John. -// -// Example 139 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22a-jsonld): -// -// { -// "object": { -// "name": "John", -// "type": "Person" -// }, -// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf", -// "subject": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally is an acquaintance of John's", -// "type": "Relationship" -// } -type ActivityStreamsSubjectProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSubjectProperty) bool - // Name returns the name of this property: "subject". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_summary_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_summary_interface.go deleted file mode 100644 index 373abeda2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_summary_interface.go +++ /dev/null @@ -1,200 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsSummaryPropertyIterator represents a single value for the -// "summary" property. -type ActivityStreamsSummaryPropertyIterator interface { - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetLanguage returns the value for the specified BCP47 language code, or - // an empty string if it is either not a language map or no value is - // present. - GetLanguage(bcp47 string) string - // GetRDFLangString returns the value of this property. When - // IsRDFLangString returns false, GetRDFLangString will return an - // arbitrary value. - GetRDFLangString() map[string]string - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the values are set, except for the - // natural language map. When true, the specific has, getter, and - // setter methods may be used to determine what kind of value there is - // to access and set this property. To determine if the property was - // set as a natural language map, use the IsRDFLangString method - // instead. - HasAny() bool - // HasLanguage returns true if the natural language map has an entry for - // the specified BCP47 language code. - HasLanguage(bcp47 string) bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsRDFLangString returns true if this property has a type of - // "langString". When true, use the GetRDFLangString and - // SetRDFLangString methods to access and set this property.. To - // determine if the property was set as a natural language map, use - // the IsRDFLangString method instead. - IsRDFLangString() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property.. To determine if the - // property was set as a natural language map, use the IsRDFLangString - // method instead. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSummaryPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsSummary". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsSummaryPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsSummaryPropertyIterator - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetLanguage sets the value for the specified BCP47 language code. - SetLanguage(bcp47, value string) - // SetRDFLangString sets the value of this property and clears the natural - // language map. Calling IsRDFLangString afterwards will return true. - // Calling IsRDFLangString afterwards returns false. - SetRDFLangString(v map[string]string) - // SetXMLSchemaString sets the value of this property and clears the - // natural language map. Calling IsXMLSchemaString afterwards will - // return true. Calling IsRDFLangString afterwards returns false. - SetXMLSchemaString(v string) -} - -// A natural language summarization of the object encoded as HTML. Multiple -// language tagged summaries MAY be provided. -// -// Example 133 (https://www.w3.org/TR/activitystreams-vocabulary/#ex152-jsonld): -// -// { -// "name": "Cane Sugar Processing", -// "summary": "A simple \u003cem\u003enote\u003c/em\u003e", -// "type": "Note" -// } -// -// Example 134 (https://www.w3.org/TR/activitystreams-vocabulary/#ex153-jsonld): -// -// { -// "name": "Cane Sugar Processing", -// "summaryMap": { -// "en": "A simple \u003cem\u003enote\u003c/em\u003e", -// "es": "Una \u003cem\u003enota\u003c/em\u003e sencilla", -// "zh-hans": "一段\u003cem\u003e简单的\u003c/em\u003e笔记" -// }, -// "type": "Note" -// } -type ActivityStreamsSummaryProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "summary" - AppendIRI(v *url.URL) - // AppendRDFLangString appends a langString value to the back of a list of - // the property "summary". Invalidates iterators that are traversing - // using Prev. - AppendRDFLangString(v map[string]string) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "summary". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsSummaryPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsSummaryPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsSummaryPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "summary". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertRDFLangString inserts a langString value at the specified index - // for a property "summary". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertRDFLangString(idx int, v map[string]string) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "summary". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "summary" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSummaryProperty) bool - // Name returns the name of this property ("summary") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "summary". - PrependIRI(v *url.URL) - // PrependRDFLangString prepends a langString value to the front of a list - // of the property "summary". Invalidates all iterators. - PrependRDFLangString(v map[string]string) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "summary". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "summary", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets an IRI value to be at the specified index for the property - // "summary". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetRDFLangString sets a langString value to be at the specified index - // for the property "summary". Panics if the index is out of bounds. - // Invalidates all iterators. - SetRDFLangString(idx int, v map[string]string) - // SetXMLSchemaString sets a string value to be at the specified index for - // the property "summary". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaString(idx int, v string) - // Swap swaps the location of values at two indices for the "summary" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go deleted file mode 100644 index 9e6e6df5e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go +++ /dev/null @@ -1,2033 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsTagPropertyIterator represents a single value for the "tag" -// property. -type ActivityStreamsTagPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsTagPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsTag". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsTagPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsTagPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// One or more "tags" that have been associated with an objects. A tag can be any -// kind of Object. The key difference between attachment and tag is that the -// former implies association by inclusion, while the latter implies -// associated by reference. -// -// Example 105 (https://www.w3.org/TR/activitystreams-vocabulary/#ex118-jsonld): -// -// { -// "summary": "Picture of Sally", -// "tag": { -// "id": "http://sally.example.org", -// "name": "Sally", -// "type": "Person" -// }, -// "type": "Image", -// "url": "http://example.org/sally.jpg" -// } -type ActivityStreamsTagProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "tag". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "tag". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "tag". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "tag". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "tag". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "tag". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "tag". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "tag". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "tag". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "tag". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "tag". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "tag". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "tag". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "tag". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "tag". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "tag". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "tag" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "tag". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "tag". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsTagPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsTagPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsTagPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "tag". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "tag". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "tag". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "tag". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "tag". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "tag". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "tag". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "tag" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsTagProperty) bool - // Name returns the name of this property ("tag") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "tag". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "tag". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "tag". Invalidates all - // iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "tag". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "tag". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "tag". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "tag". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "tag". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "tag". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "tag". Invalidates all - // iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "tag". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "tag". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "tag". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "tag". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "tag". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "tag". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "tag". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "tag", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "tag". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "tag". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "tag". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "tag". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "tag". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "tag". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "tag". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "tag". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "tag". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "tag". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "tag". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "tag". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "tag". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "tag" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go deleted file mode 100644 index e94c4138e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go +++ /dev/null @@ -1,2050 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsTargetPropertyIterator represents a single value for the -// "target" property. -type ActivityStreamsTargetPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsTargetPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsTarget". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsTargetPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsTargetPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Describes the indirect object, or target, of the activity. The precise meaning -// of the target is largely dependent on the type of action being described -// but will often be the object of the English preposition "to". For instance, -// in the activity "John added a movie to his wishlist", the target of the -// activity is John's wishlist. An activity can have more than one target. -// -// Example 106 (https://www.w3.org/TR/activitystreams-vocabulary/#ex120-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered the post to John", -// "target": "http://john.example.org", -// "type": "Offer" -// } -// -// Example 107 (https://www.w3.org/TR/activitystreams-vocabulary/#ex121-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered the post to John", -// "target": { -// "name": "John", -// "type": "Person" -// }, -// "type": "Offer" -// } -type ActivityStreamsTargetProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "target". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "target". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "target". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "target". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "target". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "target". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "target". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "target". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "target". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "target". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "target". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "target". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "target". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "target". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "target". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "target". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "target" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "target". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "target". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsTargetPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsTargetPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsTargetPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "target". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "target". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "target". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "target". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "target". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "target". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "target". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "target". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "target". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "target". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property - // "target". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "target". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "target" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsTargetProperty) bool - // Name returns the name of this property ("target") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "target". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "target". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "target". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "target". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "target". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "target". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "target". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "target". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "target". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "target". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "target". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "target". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "target". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "target". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "target". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "target". Invalidates all - // iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "target". Invalidates - // all iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "target". Invalidates all - // iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "target". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "target". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "target". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "target". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "target". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "target". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "target". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "target". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "target". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "target". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "target". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "target". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "target", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "target". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "target". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "target". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "target". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "target". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "target". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "target". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "target". Panics if - // the index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "target". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "target". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "target". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "target". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "target" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go deleted file mode 100644 index c625fff15..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go +++ /dev/null @@ -1,2022 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsToPropertyIterator represents a single value for the "to" -// property. -type ActivityStreamsToPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetFunkwhaleAlbum returns the value of this property. When - // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an - // arbitrary value. - GetFunkwhaleAlbum() FunkwhaleAlbum - // GetFunkwhaleArtist returns the value of this property. When - // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an - // arbitrary value. - GetFunkwhaleArtist() FunkwhaleArtist - // GetFunkwhaleLibrary returns the value of this property. When - // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return - // an arbitrary value. - GetFunkwhaleLibrary() FunkwhaleLibrary - // GetFunkwhaleTrack returns the value of this property. When - // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an - // arbitrary value. - GetFunkwhaleTrack() FunkwhaleTrack - // GetGoToSocialAnnounceApproval returns the value of this property. When - // IsGoToSocialAnnounceApproval returns false, - // GetGoToSocialAnnounceApproval will return an arbitrary value. - GetGoToSocialAnnounceApproval() GoToSocialAnnounceApproval - // GetGoToSocialAnnounceAuthorization returns the value of this property. - // When IsGoToSocialAnnounceAuthorization returns false, - // GetGoToSocialAnnounceAuthorization will return an arbitrary value. - GetGoToSocialAnnounceAuthorization() GoToSocialAnnounceAuthorization - // GetGoToSocialAnnounceRequest returns the value of this property. When - // IsGoToSocialAnnounceRequest returns false, - // GetGoToSocialAnnounceRequest will return an arbitrary value. - GetGoToSocialAnnounceRequest() GoToSocialAnnounceRequest - // GetGoToSocialLikeApproval returns the value of this property. When - // IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval - // will return an arbitrary value. - GetGoToSocialLikeApproval() GoToSocialLikeApproval - // GetGoToSocialLikeAuthorization returns the value of this property. When - // IsGoToSocialLikeAuthorization returns false, - // GetGoToSocialLikeAuthorization will return an arbitrary value. - GetGoToSocialLikeAuthorization() GoToSocialLikeAuthorization - // GetGoToSocialLikeRequest returns the value of this property. When - // IsGoToSocialLikeRequest returns false, GetGoToSocialLikeRequest - // will return an arbitrary value. - GetGoToSocialLikeRequest() GoToSocialLikeRequest - // GetGoToSocialReplyApproval returns the value of this property. When - // IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval - // will return an arbitrary value. - GetGoToSocialReplyApproval() GoToSocialReplyApproval - // GetGoToSocialReplyAuthorization returns the value of this property. - // When IsGoToSocialReplyAuthorization returns false, - // GetGoToSocialReplyAuthorization will return an arbitrary value. - GetGoToSocialReplyAuthorization() GoToSocialReplyAuthorization - // GetGoToSocialReplyRequest returns the value of this property. When - // IsGoToSocialReplyRequest returns false, GetGoToSocialReplyRequest - // will return an arbitrary value. - GetGoToSocialReplyRequest() GoToSocialReplyRequest - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetSchemaPropertyValue returns the value of this property. When - // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will - // return an arbitrary value. - GetSchemaPropertyValue() SchemaPropertyValue - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsFunkwhaleAlbum returns true if this property has a type of "Album". - // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods - // to access and set this property. - IsFunkwhaleAlbum() bool - // IsFunkwhaleArtist returns true if this property has a type of "Artist". - // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist - // methods to access and set this property. - IsFunkwhaleArtist() bool - // IsFunkwhaleLibrary returns true if this property has a type of - // "Library". When true, use the GetFunkwhaleLibrary and - // SetFunkwhaleLibrary methods to access and set this property. - IsFunkwhaleLibrary() bool - // IsFunkwhaleTrack returns true if this property has a type of "Track". - // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods - // to access and set this property. - IsFunkwhaleTrack() bool - // IsGoToSocialAnnounceApproval returns true if this property has a type - // of "AnnounceApproval". When true, use the - // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval - // methods to access and set this property. - IsGoToSocialAnnounceApproval() bool - // IsGoToSocialAnnounceAuthorization returns true if this property has a - // type of "AnnounceAuthorization". When true, use the - // GetGoToSocialAnnounceAuthorization and - // SetGoToSocialAnnounceAuthorization methods to access and set this - // property. - IsGoToSocialAnnounceAuthorization() bool - // IsGoToSocialAnnounceRequest returns true if this property has a type of - // "AnnounceRequest". When true, use the GetGoToSocialAnnounceRequest - // and SetGoToSocialAnnounceRequest methods to access and set this - // property. - IsGoToSocialAnnounceRequest() bool - // IsGoToSocialLikeApproval returns true if this property has a type of - // "LikeApproval". When true, use the GetGoToSocialLikeApproval and - // SetGoToSocialLikeApproval methods to access and set this property. - IsGoToSocialLikeApproval() bool - // IsGoToSocialLikeAuthorization returns true if this property has a type - // of "LikeAuthorization". When true, use the - // GetGoToSocialLikeAuthorization and SetGoToSocialLikeAuthorization - // methods to access and set this property. - IsGoToSocialLikeAuthorization() bool - // IsGoToSocialLikeRequest returns true if this property has a type of - // "LikeRequest". When true, use the GetGoToSocialLikeRequest and - // SetGoToSocialLikeRequest methods to access and set this property. - IsGoToSocialLikeRequest() bool - // IsGoToSocialReplyApproval returns true if this property has a type of - // "ReplyApproval". When true, use the GetGoToSocialReplyApproval and - // SetGoToSocialReplyApproval methods to access and set this property. - IsGoToSocialReplyApproval() bool - // IsGoToSocialReplyAuthorization returns true if this property has a type - // of "ReplyAuthorization". When true, use the - // GetGoToSocialReplyAuthorization and SetGoToSocialReplyAuthorization - // methods to access and set this property. - IsGoToSocialReplyAuthorization() bool - // IsGoToSocialReplyRequest returns true if this property has a type of - // "ReplyRequest". When true, use the GetGoToSocialReplyRequest and - // SetGoToSocialReplyRequest methods to access and set this property. - IsGoToSocialReplyRequest() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsSchemaPropertyValue returns true if this property has a type of - // "PropertyValue". When true, use the GetSchemaPropertyValue and - // SetSchemaPropertyValue methods to access and set this property. - IsSchemaPropertyValue() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsToPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsTo". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsToPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsToPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetFunkwhaleAlbum sets the value of this property. Calling - // IsFunkwhaleAlbum afterwards returns true. - SetFunkwhaleAlbum(v FunkwhaleAlbum) - // SetFunkwhaleArtist sets the value of this property. Calling - // IsFunkwhaleArtist afterwards returns true. - SetFunkwhaleArtist(v FunkwhaleArtist) - // SetFunkwhaleLibrary sets the value of this property. Calling - // IsFunkwhaleLibrary afterwards returns true. - SetFunkwhaleLibrary(v FunkwhaleLibrary) - // SetFunkwhaleTrack sets the value of this property. Calling - // IsFunkwhaleTrack afterwards returns true. - SetFunkwhaleTrack(v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets the value of this property. Calling - // IsGoToSocialAnnounceApproval afterwards returns true. - SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets the value of this property. - // Calling IsGoToSocialAnnounceAuthorization afterwards returns true. - SetGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets the value of this property. Calling - // IsGoToSocialAnnounceRequest afterwards returns true. - SetGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets the value of this property. Calling - // IsGoToSocialLikeApproval afterwards returns true. - SetGoToSocialLikeApproval(v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets the value of this property. Calling - // IsGoToSocialLikeAuthorization afterwards returns true. - SetGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets the value of this property. Calling - // IsGoToSocialLikeRequest afterwards returns true. - SetGoToSocialLikeRequest(v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets the value of this property. Calling - // IsGoToSocialReplyApproval afterwards returns true. - SetGoToSocialReplyApproval(v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets the value of this property. - // Calling IsGoToSocialReplyAuthorization afterwards returns true. - SetGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets the value of this property. Calling - // IsGoToSocialReplyRequest afterwards returns true. - SetGoToSocialReplyRequest(v GoToSocialReplyRequest) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetSchemaPropertyValue sets the value of this property. Calling - // IsSchemaPropertyValue afterwards returns true. - SetSchemaPropertyValue(v SchemaPropertyValue) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an entity considered to be part of the public primary audience of an -// Object -// -// Example 108 (https://www.w3.org/TR/activitystreams-vocabulary/#ex123-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered the post to John", -// "target": "http://john.example.org", -// "to": "http://joe.example.org", -// "type": "Offer" -// } -type ActivityStreamsToProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "to". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "to". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "to". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "to". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "to". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "to". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendFunkwhaleAlbum appends a Album value to the back of a list of the - // property "to". Invalidates iterators that are traversing using Prev. - AppendFunkwhaleAlbum(v FunkwhaleAlbum) - // AppendFunkwhaleArtist appends a Artist value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleArtist(v FunkwhaleArtist) - // AppendFunkwhaleLibrary appends a Library value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendFunkwhaleLibrary(v FunkwhaleLibrary) - // AppendFunkwhaleTrack appends a Track value to the back of a list of the - // property "to". Invalidates iterators that are traversing using Prev. - AppendFunkwhaleTrack(v FunkwhaleTrack) - // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to - // the back of a list of the property "to". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // AppendGoToSocialAnnounceAuthorization appends a AnnounceAuthorization - // value to the back of a list of the property "to". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // AppendGoToSocialAnnounceRequest appends a AnnounceRequest value to the - // back of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // AppendGoToSocialLikeApproval appends a LikeApproval value to the back - // of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeApproval(v GoToSocialLikeApproval) - // AppendGoToSocialLikeAuthorization appends a LikeAuthorization value to - // the back of a list of the property "to". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // AppendGoToSocialLikeRequest appends a LikeRequest value to the back of - // a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialLikeRequest(v GoToSocialLikeRequest) - // AppendGoToSocialReplyApproval appends a ReplyApproval value to the back - // of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyApproval(v GoToSocialReplyApproval) - // AppendGoToSocialReplyAuthorization appends a ReplyAuthorization value - // to the back of a list of the property "to". Invalidates iterators - // that are traversing using Prev. - AppendGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // AppendGoToSocialReplyRequest appends a ReplyRequest value to the back - // of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialReplyRequest(v GoToSocialReplyRequest) - // AppendIRI appends an IRI value to the back of a list of the property - // "to" - AppendIRI(v *url.URL) - // AppendSchemaPropertyValue appends a PropertyValue value to the back of - // a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendSchemaPropertyValue(v SchemaPropertyValue) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "to". Invalidates iterators that are traversing using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "to". Invalidates iterators that are traversing using Prev. - AppendTootHashtag(v TootHashtag) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsToPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsToPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsToPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "to". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "to". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "to". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertFunkwhaleAlbum inserts a Album value at the specified index for a - // property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // InsertFunkwhaleArtist inserts a Artist value at the specified index for - // a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) - // InsertFunkwhaleLibrary inserts a Library value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // InsertFunkwhaleTrack inserts a Track value at the specified index for a - // property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) - // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at - // the specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // InsertGoToSocialAnnounceAuthorization inserts a AnnounceAuthorization - // value at the specified index for a property "to". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // InsertGoToSocialAnnounceRequest inserts a AnnounceRequest value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // InsertGoToSocialLikeApproval inserts a LikeApproval value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // InsertGoToSocialLikeAuthorization inserts a LikeAuthorization value at - // the specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // InsertGoToSocialLikeRequest inserts a LikeRequest value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // InsertGoToSocialReplyApproval inserts a ReplyApproval value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // InsertGoToSocialReplyAuthorization inserts a ReplyAuthorization value - // at the specified index for a property "to". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // InsertGoToSocialReplyRequest inserts a ReplyRequest value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // Insert inserts an IRI value at the specified index for a property "to". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertSchemaPropertyValue inserts a PropertyValue value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertSchemaPropertyValue(idx int, v SchemaPropertyValue) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "to". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "to" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsToProperty) bool - // Name returns the name of this property ("to") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "to". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "to". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "to". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "to". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "to". Invalidates all - // iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "to". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "to". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "to". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "to". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "to". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependFunkwhaleAlbum prepends a Album value to the front of a list of - // the property "to". Invalidates all iterators. - PrependFunkwhaleAlbum(v FunkwhaleAlbum) - // PrependFunkwhaleArtist prepends a Artist value to the front of a list - // of the property "to". Invalidates all iterators. - PrependFunkwhaleArtist(v FunkwhaleArtist) - // PrependFunkwhaleLibrary prepends a Library value to the front of a list - // of the property "to". Invalidates all iterators. - PrependFunkwhaleLibrary(v FunkwhaleLibrary) - // PrependFunkwhaleTrack prepends a Track value to the front of a list of - // the property "to". Invalidates all iterators. - PrependFunkwhaleTrack(v FunkwhaleTrack) - // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to - // the front of a list of the property "to". Invalidates all iterators. - PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) - // PrependGoToSocialAnnounceAuthorization prepends a AnnounceAuthorization - // value to the front of a list of the property "to". Invalidates all - // iterators. - PrependGoToSocialAnnounceAuthorization(v GoToSocialAnnounceAuthorization) - // PrependGoToSocialAnnounceRequest prepends a AnnounceRequest value to - // the front of a list of the property "to". Invalidates all iterators. - PrependGoToSocialAnnounceRequest(v GoToSocialAnnounceRequest) - // PrependGoToSocialLikeApproval prepends a LikeApproval value to the - // front of a list of the property "to". Invalidates all iterators. - PrependGoToSocialLikeApproval(v GoToSocialLikeApproval) - // PrependGoToSocialLikeAuthorization prepends a LikeAuthorization value - // to the front of a list of the property "to". Invalidates all - // iterators. - PrependGoToSocialLikeAuthorization(v GoToSocialLikeAuthorization) - // PrependGoToSocialLikeRequest prepends a LikeRequest value to the front - // of a list of the property "to". Invalidates all iterators. - PrependGoToSocialLikeRequest(v GoToSocialLikeRequest) - // PrependGoToSocialReplyApproval prepends a ReplyApproval value to the - // front of a list of the property "to". Invalidates all iterators. - PrependGoToSocialReplyApproval(v GoToSocialReplyApproval) - // PrependGoToSocialReplyAuthorization prepends a ReplyAuthorization value - // to the front of a list of the property "to". Invalidates all - // iterators. - PrependGoToSocialReplyAuthorization(v GoToSocialReplyAuthorization) - // PrependGoToSocialReplyRequest prepends a ReplyRequest value to the - // front of a list of the property "to". Invalidates all iterators. - PrependGoToSocialReplyRequest(v GoToSocialReplyRequest) - // PrependIRI prepends an IRI value to the front of a list of the property - // "to". - PrependIRI(v *url.URL) - // PrependSchemaPropertyValue prepends a PropertyValue value to the front - // of a list of the property "to". Invalidates all iterators. - PrependSchemaPropertyValue(v SchemaPropertyValue) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "to". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "to". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "to". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "to". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "to", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "to". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "to". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "to". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "to". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "to". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "to". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetFunkwhaleAlbum sets a Album value to be at the specified index for - // the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) - // SetFunkwhaleArtist sets a Artist value to be at the specified index for - // the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleArtist(idx int, v FunkwhaleArtist) - // SetFunkwhaleLibrary sets a Library value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) - // SetFunkwhaleTrack sets a Track value to be at the specified index for - // the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetFunkwhaleTrack(idx int, v FunkwhaleTrack) - // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at - // the specified index for the property "to". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceApproval(idx int, v GoToSocialAnnounceApproval) - // SetGoToSocialAnnounceAuthorization sets a AnnounceAuthorization value - // to be at the specified index for the property "to". Panics if the - // index is out of bounds. Invalidates all iterators. - SetGoToSocialAnnounceAuthorization(idx int, v GoToSocialAnnounceAuthorization) - // SetGoToSocialAnnounceRequest sets a AnnounceRequest value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialAnnounceRequest(idx int, v GoToSocialAnnounceRequest) - // SetGoToSocialLikeApproval sets a LikeApproval value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialLikeApproval(idx int, v GoToSocialLikeApproval) - // SetGoToSocialLikeAuthorization sets a LikeAuthorization value to be at - // the specified index for the property "to". Panics if the index is - // out of bounds. Invalidates all iterators. - SetGoToSocialLikeAuthorization(idx int, v GoToSocialLikeAuthorization) - // SetGoToSocialLikeRequest sets a LikeRequest value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialLikeRequest(idx int, v GoToSocialLikeRequest) - // SetGoToSocialReplyApproval sets a ReplyApproval value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialReplyApproval(idx int, v GoToSocialReplyApproval) - // SetGoToSocialReplyAuthorization sets a ReplyAuthorization value to be - // at the specified index for the property "to". Panics if the index - // is out of bounds. Invalidates all iterators. - SetGoToSocialReplyAuthorization(idx int, v GoToSocialReplyAuthorization) - // SetGoToSocialReplyRequest sets a ReplyRequest value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetGoToSocialReplyRequest(idx int, v GoToSocialReplyRequest) - // SetIRI sets an IRI value to be at the specified index for the property - // "to". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetSchemaPropertyValue sets a PropertyValue value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetSchemaPropertyValue(idx int, v SchemaPropertyValue) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "to". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "to". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "to" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go deleted file mode 100644 index 2c90fb2d8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go +++ /dev/null @@ -1,74 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A non-negative integer specifying the total number of objects contained by the -// logical view of the collection. This number might not reflect the actual -// number of items serialized within the Collection object instance. -// -// Example 135 (https://www.w3.org/TR/activitystreams-vocabulary/#ex156-jsonld): -// -// { -// "items": [ -// { -// "name": "Which Staircase Should I Use", -// "type": "Note" -// }, -// { -// "name": "Something to Remember", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "Collection" -// } -type ActivityStreamsTotalItemsProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return false. - Clear() - // Get returns the value of this property. When - // IsXMLSchemaNonNegativeInteger returns false, Get will return any - // arbitrary value. - Get() int - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaNonNegativeInteger returns true if this property is set and - // not an IRI. - IsXMLSchemaNonNegativeInteger() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsTotalItemsProperty) bool - // Name returns the name of this property: "totalItems". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return true. - Set(v int) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_units_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_units_interface.go deleted file mode 100644 index 9d48828be..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_units_interface.go +++ /dev/null @@ -1,80 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Specifies the measurement units for the radius and altitude properties on a -// Place object. If not specified, the default is assumed to be "m" for -// "meters". -// -// Example 136 (https://www.w3.org/TR/activitystreams-vocabulary/#ex157-jsonld): -// -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsUnitsProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetXMLSchemaAnyURI returns the value of this property. When - // IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an - // arbitrary value. - GetXMLSchemaAnyURI() *url.URL - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". - // When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI - // methods to access and set this property. - IsXMLSchemaAnyURI() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsUnitsProperty) bool - // Name returns the name of this property: "units". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetXMLSchemaAnyURI sets the value of this property. Calling - // IsXMLSchemaAnyURI afterwards returns true. - SetXMLSchemaAnyURI(v *url.URL) - // SetXMLSchemaString sets the value of this property. Calling - // IsXMLSchemaString afterwards returns true. - SetXMLSchemaString(v string) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_updated_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_updated_interface.go deleted file mode 100644 index fec2749a1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_updated_interface.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// The date and time at which the object was updated -// -// Example 137 (https://www.w3.org/TR/activitystreams-vocabulary/#ex158-jsonld): -// -// { -// "content": "Mush it up so it does not have the same shape as the can.", -// "name": "Cranberry Sauce Idea", -// "type": "Note", -// "updated": "2014-12-12T12:12:12Z" -// } -type ActivityStreamsUpdatedProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsUpdatedProperty) bool - // Name returns the name of this property: "updated". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_url_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_url_interface.go deleted file mode 100644 index 1e2651c05..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_url_interface.go +++ /dev/null @@ -1,272 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsUrlPropertyIterator represents a single value for the "url" -// property. -type ActivityStreamsUrlPropertyIterator interface { - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootHashtag returns the value of this property. When IsTootHashtag - // returns false, GetTootHashtag will return an arbitrary value. - GetTootHashtag() TootHashtag - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // GetXMLSchemaAnyURI returns the value of this property. When - // IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an - // arbitrary value. - GetXMLSchemaAnyURI() *url.URL - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootHashtag returns true if this property has a type of "Hashtag". - // When true, use the GetTootHashtag and SetTootHashtag methods to - // access and set this property. - IsTootHashtag() bool - // IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". - // When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI - // methods to access and set this property. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsUrlPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsUrl". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsUrlPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsUrlPropertyIterator - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootHashtag sets the value of this property. Calling IsTootHashtag - // afterwards returns true. - SetTootHashtag(v TootHashtag) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error - // SetXMLSchemaAnyURI sets the value of this property. Calling - // IsXMLSchemaAnyURI afterwards returns true. - SetXMLSchemaAnyURI(v *url.URL) -} - -// Identifies one or more links to representations of the object -// -// Example 109 (https://www.w3.org/TR/activitystreams-vocabulary/#ex124-jsonld): -// -// { -// "name": "4Q Sales Forecast", -// "type": "Document", -// "url": "http://example.org/4q-sales-forecast.pdf" -// } -// -// Example 110 (https://www.w3.org/TR/activitystreams-vocabulary/#ex125-jsonld): -// -// { -// "name": "4Q Sales Forecast", -// "type": "Document", -// "url": { -// "type": "owl:Class", -// "url": "http://example.org/4q-sales-forecast.pdf" -// } -// } -// -// Example 111 (https://www.w3.org/TR/activitystreams-vocabulary/#ex126-jsonld): -// -// { -// "name": "4Q Sales Forecast", -// "type": "Document", -// "url": [ -// { -// "mediaType": "application/pdf", -// "type": "owl:Class", -// "url": "http://example.org/4q-sales-forecast.pdf" -// }, -// { -// "mediaType": "text/html", -// "type": "owl:Class", -// "url": "http://example.org/4q-sales-forecast.html" -// } -// ] -// } -type ActivityStreamsUrlProperty interface { - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "url". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "url". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendIRI appends an IRI value to the back of a list of the property - // "url" - AppendIRI(v *url.URL) - // AppendTootHashtag appends a Hashtag value to the back of a list of the - // property "url". Invalidates iterators that are traversing using - // Prev. - AppendTootHashtag(v TootHashtag) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "url". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "url". Invalidates iterators that are traversing using - // Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsUrlPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsUrlPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsUrlPropertyIterator - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "url". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "url". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // Insert inserts an IRI value at the specified index for a property - // "url". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootHashtag inserts a Hashtag value at the specified index for a - // property "url". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootHashtag(idx int, v TootHashtag) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "url". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "url". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "url" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsUrlProperty) bool - // Name returns the name of this property ("url") with any alias. - Name() string - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "url". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "url". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependIRI prepends an IRI value to the front of a list of the property - // "url". - PrependIRI(v *url.URL) - // PrependTootHashtag prepends a Hashtag value to the front of a list of - // the property "url". Invalidates all iterators. - PrependTootHashtag(v TootHashtag) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "url". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "url". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // Remove deletes an element at the specified index from a list of the - // property "url", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "url". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "url". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetIRI sets an IRI value to be at the specified index for the property - // "url". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootHashtag sets a Hashtag value to be at the specified index for - // the property "url". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootHashtag(idx int, v TootHashtag) - // SetType sets an arbitrary type value to the specified index of the - // property "url". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for - // the property "url". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaAnyURI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the "url" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_width_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_width_interface.go deleted file mode 100644 index 1f3cdd3c1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_width_interface.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// On a Link, specifies a hint as to the rendering width in device-independent -// pixels of the linked resource. -// -// Example 138 (https://www.w3.org/TR/activitystreams-vocabulary/#ex159-jsonld): -// -// { -// "height": 100, -// "type": "Link", -// "url": "http://example.org/image.png", -// "width": 100 -// } -type ActivityStreamsWidthProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return false. - Clear() - // Get returns the value of this property. When - // IsXMLSchemaNonNegativeInteger returns false, Get will return any - // arbitrary value. - Get() int - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaNonNegativeInteger returns true if this property is set and - // not an IRI. - IsXMLSchemaNonNegativeInteger() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsWidthProperty) bool - // Name returns the name of this property: "width". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return true. - Set(v int) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_always_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_always_interface.go deleted file mode 100644 index 2ed2009b2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_always_interface.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialAlwaysPropertyIterator represents a single value for the "always" -// property. -type GoToSocialAlwaysPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialAlwaysPropertyIterator) bool - // Name returns the name of this property: "GoToSocialAlways". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialAlwaysPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialAlwaysPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// DEPRECATED: Use `automaticApproval` instead. Indicates zero or more URI/IDs -// that can perform an interaction without requiring approval by the Object -// AttributedTo Actor. -type GoToSocialAlwaysProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "always" - AppendIRI(v *url.URL) - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "always". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialAlwaysPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialAlwaysPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialAlwaysPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "always". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "always". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "always" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialAlwaysProperty) bool - // Name returns the name of this property ("always") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "always". - PrependIRI(v *url.URL) - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "always". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // Remove deletes an element at the specified index from a list of the - // property "always", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a anyURI value to be at the specified index for the property - // "always". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v *url.URL) - // SetIRI sets an IRI value to be at the specified index for the property - // "always". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the "always" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go deleted file mode 100644 index a677f1372..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialApprovalRequiredPropertyIterator represents a single value for the -// "approvalRequired" property. -type GoToSocialApprovalRequiredPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialApprovalRequiredPropertyIterator) bool - // Name returns the name of this property: "GoToSocialApprovalRequired". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialApprovalRequiredPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialApprovalRequiredPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// DEPRECATED: Use `manualApproval` instead. Indicates zero or more URI/IDs that -// require approval by the Object AttributedTo Actor in order to perform an -// interaction. -type GoToSocialApprovalRequiredProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "approvalRequired" - AppendIRI(v *url.URL) - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "approvalRequired". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialApprovalRequiredPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialApprovalRequiredPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialApprovalRequiredPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "approvalRequired". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "approvalRequired". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "approvalRequired" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialApprovalRequiredProperty) bool - // Name returns the name of this property ("approvalRequired") with any - // alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "approvalRequired". - PrependIRI(v *url.URL) - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "approvalRequired". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // Remove deletes an element at the specified index from a list of the - // property "approvalRequired", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a anyURI value to be at the specified index for the property - // "approvalRequired". Panics if the index is out of bounds. - // Invalidates all iterators. - Set(idx int, v *url.URL) - // SetIRI sets an IRI value to be at the specified index for the property - // "approvalRequired". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the - // "approvalRequired" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go deleted file mode 100644 index c99467246..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// URI/ID of an Accept Activity or approval, which itself points towards the ID of -// the Activity or Object to which this property is attached. The presence of -// this property on an Activity or Object indicates that an interaction has -// been Approve'd by the Actor whose Object this Activity or Object interacts -// with. -type GoToSocialApprovedByProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaAnyURI afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialApprovedByProperty) bool - // Name returns the name of this property: "approvedBy". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go deleted file mode 100644 index b4f02850c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_automaticApproval_interface.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialAutomaticApprovalPropertyIterator represents a single value for the -// "automaticApproval" property. -type GoToSocialAutomaticApprovalPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialAutomaticApprovalPropertyIterator) bool - // Name returns the name of this property: "GoToSocialAutomaticApproval". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialAutomaticApprovalPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialAutomaticApprovalPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// Indicates zero or more URI/IDs that can perform an interaction without -// requiring manual approval by the Object AttributedTo Actor. -type GoToSocialAutomaticApprovalProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "automaticApproval" - AppendIRI(v *url.URL) - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "automaticApproval". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialAutomaticApprovalPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialAutomaticApprovalPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialAutomaticApprovalPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "automaticApproval". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "automaticApproval". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "automaticApproval" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialAutomaticApprovalProperty) bool - // Name returns the name of this property ("automaticApproval") with any - // alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "automaticApproval". - PrependIRI(v *url.URL) - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "automaticApproval". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // Remove deletes an element at the specified index from a list of the - // property "automaticApproval", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a anyURI value to be at the specified index for the property - // "automaticApproval". Panics if the index is out of bounds. - // Invalidates all iterators. - Set(idx int, v *url.URL) - // SetIRI sets an IRI value to be at the specified index for the property - // "automaticApproval". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the - // "automaticApproval" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go deleted file mode 100644 index c7c1ccd6a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialCanAnnouncePropertyIterator represents a single value for the -// "canAnnounce" property. -type GoToSocialCanAnnouncePropertyIterator interface { - // Get returns the value of this property. When IsGoToSocialCanAnnounce - // returns false, Get will return any arbitrary value. - Get() GoToSocialCanAnnounce - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsGoToSocialCanAnnounce returns true if this property is set and not an - // IRI. - IsGoToSocialCanAnnounce() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialCanAnnouncePropertyIterator) bool - // Name returns the name of this property: "GoToSocialCanAnnounce". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialCanAnnouncePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialCanAnnouncePropertyIterator - // Set sets the value of this property. Calling IsGoToSocialCanAnnounce - // afterwards will return true. - Set(v GoToSocialCanAnnounce) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Defines who can Announce with an object property set to the URI/ID of the -// Object to which this interactionPolicy is attached. -type GoToSocialCanAnnounceProperty interface { - // AppendGoToSocialCanAnnounce appends a CanAnnounce value to the back of - // a list of the property "canAnnounce". Invalidates iterators that - // are traversing using Prev. - AppendGoToSocialCanAnnounce(v GoToSocialCanAnnounce) - // AppendIRI appends an IRI value to the back of a list of the property - // "canAnnounce" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canAnnounce". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialCanAnnouncePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialCanAnnouncePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialCanAnnouncePropertyIterator - // InsertGoToSocialCanAnnounce inserts a CanAnnounce value at the - // specified index for a property "canAnnounce". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertGoToSocialCanAnnounce(idx int, v GoToSocialCanAnnounce) - // Insert inserts an IRI value at the specified index for a property - // "canAnnounce". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canAnnounce". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "canAnnounce" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialCanAnnounceProperty) bool - // Name returns the name of this property ("canAnnounce") with any alias. - Name() string - // PrependGoToSocialCanAnnounce prepends a CanAnnounce value to the front - // of a list of the property "canAnnounce". Invalidates all iterators. - PrependGoToSocialCanAnnounce(v GoToSocialCanAnnounce) - // PrependIRI prepends an IRI value to the front of a list of the property - // "canAnnounce". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canAnnounce". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "canAnnounce", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a CanAnnounce value to be at the specified index for the - // property "canAnnounce". Panics if the index is out of bounds. - // Invalidates all iterators. - Set(idx int, v GoToSocialCanAnnounce) - // SetIRI sets an IRI value to be at the specified index for the property - // "canAnnounce". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "canAnnounce". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "canAnnounce" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go deleted file mode 100644 index a6d9c4e0b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialCanLikePropertyIterator represents a single value for the "canLike" -// property. -type GoToSocialCanLikePropertyIterator interface { - // Get returns the value of this property. When IsGoToSocialCanLike - // returns false, Get will return any arbitrary value. - Get() GoToSocialCanLike - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsGoToSocialCanLike returns true if this property is set and not an IRI. - IsGoToSocialCanLike() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialCanLikePropertyIterator) bool - // Name returns the name of this property: "GoToSocialCanLike". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialCanLikePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialCanLikePropertyIterator - // Set sets the value of this property. Calling IsGoToSocialCanLike - // afterwards will return true. - Set(v GoToSocialCanLike) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Defines who can Like with an object property set to the URI/ID of the Object to -// which this interactionPolicy is attached. -type GoToSocialCanLikeProperty interface { - // AppendGoToSocialCanLike appends a CanLike value to the back of a list - // of the property "canLike". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialCanLike(v GoToSocialCanLike) - // AppendIRI appends an IRI value to the back of a list of the property - // "canLike" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canLike". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialCanLikePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialCanLikePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialCanLikePropertyIterator - // InsertGoToSocialCanLike inserts a CanLike value at the specified index - // for a property "canLike". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertGoToSocialCanLike(idx int, v GoToSocialCanLike) - // Insert inserts an IRI value at the specified index for a property - // "canLike". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canLike". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "canLike" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialCanLikeProperty) bool - // Name returns the name of this property ("canLike") with any alias. - Name() string - // PrependGoToSocialCanLike prepends a CanLike value to the front of a - // list of the property "canLike". Invalidates all iterators. - PrependGoToSocialCanLike(v GoToSocialCanLike) - // PrependIRI prepends an IRI value to the front of a list of the property - // "canLike". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canLike". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "canLike", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a CanLike value to be at the specified index for the property - // "canLike". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v GoToSocialCanLike) - // SetIRI sets an IRI value to be at the specified index for the property - // "canLike". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "canLike". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "canLike" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go deleted file mode 100644 index 4fd12a2c6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canQuote_interface.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialCanQuotePropertyIterator represents a single value for the "canQuote" -// property. -type GoToSocialCanQuotePropertyIterator interface { - // Get returns the value of this property. When IsGoToSocialCanQuote - // returns false, Get will return any arbitrary value. - Get() GoToSocialCanQuote - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsGoToSocialCanQuote returns true if this property is set and not an - // IRI. - IsGoToSocialCanQuote() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialCanQuotePropertyIterator) bool - // Name returns the name of this property: "GoToSocialCanQuote". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialCanQuotePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialCanQuotePropertyIterator - // Set sets the value of this property. Calling IsGoToSocialCanQuote - // afterwards will return true. - Set(v GoToSocialCanQuote) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Defines who can Create a new Object that quotes the Object to which this -// interactionPolicy is attached. -type GoToSocialCanQuoteProperty interface { - // AppendGoToSocialCanQuote appends a CanQuote value to the back of a list - // of the property "canQuote". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialCanQuote(v GoToSocialCanQuote) - // AppendIRI appends an IRI value to the back of a list of the property - // "canQuote" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canQuote". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialCanQuotePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialCanQuotePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialCanQuotePropertyIterator - // InsertGoToSocialCanQuote inserts a CanQuote value at the specified - // index for a property "canQuote". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialCanQuote(idx int, v GoToSocialCanQuote) - // Insert inserts an IRI value at the specified index for a property - // "canQuote". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canQuote". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "canQuote" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialCanQuoteProperty) bool - // Name returns the name of this property ("canQuote") with any alias. - Name() string - // PrependGoToSocialCanQuote prepends a CanQuote value to the front of a - // list of the property "canQuote". Invalidates all iterators. - PrependGoToSocialCanQuote(v GoToSocialCanQuote) - // PrependIRI prepends an IRI value to the front of a list of the property - // "canQuote". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canQuote". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "canQuote", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a CanQuote value to be at the specified index for the property - // "canQuote". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v GoToSocialCanQuote) - // SetIRI sets an IRI value to be at the specified index for the property - // "canQuote". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "canQuote". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "canQuote" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go deleted file mode 100644 index 9f2ad8577..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialCanReplyPropertyIterator represents a single value for the "canReply" -// property. -type GoToSocialCanReplyPropertyIterator interface { - // Get returns the value of this property. When IsGoToSocialCanReply - // returns false, Get will return any arbitrary value. - Get() GoToSocialCanReply - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsGoToSocialCanReply returns true if this property is set and not an - // IRI. - IsGoToSocialCanReply() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialCanReplyPropertyIterator) bool - // Name returns the name of this property: "GoToSocialCanReply". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialCanReplyPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialCanReplyPropertyIterator - // Set sets the value of this property. Calling IsGoToSocialCanReply - // afterwards will return true. - Set(v GoToSocialCanReply) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Defines who can Create a new Object with an inReplyTo property set to the -// URI/ID of the Object to which this interactionPolicy is attached. -type GoToSocialCanReplyProperty interface { - // AppendGoToSocialCanReply appends a CanReply value to the back of a list - // of the property "canReply". Invalidates iterators that are - // traversing using Prev. - AppendGoToSocialCanReply(v GoToSocialCanReply) - // AppendIRI appends an IRI value to the back of a list of the property - // "canReply" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canReply". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialCanReplyPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialCanReplyPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialCanReplyPropertyIterator - // InsertGoToSocialCanReply inserts a CanReply value at the specified - // index for a property "canReply". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertGoToSocialCanReply(idx int, v GoToSocialCanReply) - // Insert inserts an IRI value at the specified index for a property - // "canReply". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canReply". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "canReply" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialCanReplyProperty) bool - // Name returns the name of this property ("canReply") with any alias. - Name() string - // PrependGoToSocialCanReply prepends a CanReply value to the front of a - // list of the property "canReply". Invalidates all iterators. - PrependGoToSocialCanReply(v GoToSocialCanReply) - // PrependIRI prepends an IRI value to the front of a list of the property - // "canReply". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "canReply". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "canReply", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a CanReply value to be at the specified index for the property - // "canReply". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v GoToSocialCanReply) - // SetIRI sets an IRI value to be at the specified index for the property - // "canReply". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "canReply". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "canReply" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go deleted file mode 100644 index 53addb567..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactingObject_interface.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialInteractingObjectPropertyIterator represents a single value for the -// "interactingObject" property. -type GoToSocialInteractingObjectPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialInteractingObjectPropertyIterator) bool - // Name returns the name of this property: "GoToSocialInteractingObject". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialInteractingObjectPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialInteractingObjectPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -type GoToSocialInteractingObjectProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "interactingObject" - AppendIRI(v *url.URL) - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "interactingObject". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialInteractingObjectPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialInteractingObjectPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialInteractingObjectPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "interactingObject". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "interactingObject". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "interactingObject" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialInteractingObjectProperty) bool - // Name returns the name of this property ("interactingObject") with any - // alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "interactingObject". - PrependIRI(v *url.URL) - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "interactingObject". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // Remove deletes an element at the specified index from a list of the - // property "interactingObject", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a anyURI value to be at the specified index for the property - // "interactingObject". Panics if the index is out of bounds. - // Invalidates all iterators. - Set(idx int, v *url.URL) - // SetIRI sets an IRI value to be at the specified index for the property - // "interactingObject". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the - // "interactingObject" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go deleted file mode 100644 index b33a0763a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialInteractionPolicyPropertyIterator represents a single value for the -// "interactionPolicy" property. -type GoToSocialInteractionPolicyPropertyIterator interface { - // Get returns the value of this property. When - // IsGoToSocialInteractionPolicy returns false, Get will return any - // arbitrary value. - Get() GoToSocialInteractionPolicy - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsGoToSocialInteractionPolicy returns true if this property is set and - // not an IRI. - IsGoToSocialInteractionPolicy() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialInteractionPolicyPropertyIterator) bool - // Name returns the name of this property: "GoToSocialInteractionPolicy". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialInteractionPolicyPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialInteractionPolicyPropertyIterator - // Set sets the value of this property. Calling - // IsGoToSocialInteractionPolicy afterwards will return true. - Set(v GoToSocialInteractionPolicy) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// InteractionPolicy for an ActivityStreams Object. -// -// null -type GoToSocialInteractionPolicyProperty interface { - // AppendGoToSocialInteractionPolicy appends a InteractionPolicy value to - // the back of a list of the property "interactionPolicy". Invalidates - // iterators that are traversing using Prev. - AppendGoToSocialInteractionPolicy(v GoToSocialInteractionPolicy) - // AppendIRI appends an IRI value to the back of a list of the property - // "interactionPolicy" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "interactionPolicy". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialInteractionPolicyPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialInteractionPolicyPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialInteractionPolicyPropertyIterator - // InsertGoToSocialInteractionPolicy inserts a InteractionPolicy value at - // the specified index for a property "interactionPolicy". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertGoToSocialInteractionPolicy(idx int, v GoToSocialInteractionPolicy) - // Insert inserts an IRI value at the specified index for a property - // "interactionPolicy". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "interactionPolicy". Invalidates all iterators. - // Returns an error if the type is not a valid one to set for this - // property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "interactionPolicy" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialInteractionPolicyProperty) bool - // Name returns the name of this property ("interactionPolicy") with any - // alias. - Name() string - // PrependGoToSocialInteractionPolicy prepends a InteractionPolicy value - // to the front of a list of the property "interactionPolicy". - // Invalidates all iterators. - PrependGoToSocialInteractionPolicy(v GoToSocialInteractionPolicy) - // PrependIRI prepends an IRI value to the front of a list of the property - // "interactionPolicy". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "interactionPolicy". Invalidates all iterators. - // Returns an error if the type is not a valid one to set for this - // property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "interactionPolicy", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a InteractionPolicy value to be at the specified index for the - // property "interactionPolicy". Panics if the index is out of bounds. - // Invalidates all iterators. - Set(idx int, v GoToSocialInteractionPolicy) - // SetIRI sets an IRI value to be at the specified index for the property - // "interactionPolicy". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "interactionPolicy". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - // Panics if the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the - // "interactionPolicy" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go deleted file mode 100644 index 60805cfbe..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionTarget_interface.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialInteractionTargetPropertyIterator represents a single value for the -// "interactionTarget" property. -type GoToSocialInteractionTargetPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialInteractionTargetPropertyIterator) bool - // Name returns the name of this property: "GoToSocialInteractionTarget". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialInteractionTargetPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialInteractionTargetPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -type GoToSocialInteractionTargetProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "interactionTarget" - AppendIRI(v *url.URL) - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "interactionTarget". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialInteractionTargetPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialInteractionTargetPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialInteractionTargetPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "interactionTarget". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "interactionTarget". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "interactionTarget" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialInteractionTargetProperty) bool - // Name returns the name of this property ("interactionTarget") with any - // alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "interactionTarget". - PrependIRI(v *url.URL) - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "interactionTarget". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // Remove deletes an element at the specified index from a list of the - // property "interactionTarget", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a anyURI value to be at the specified index for the property - // "interactionTarget". Panics if the index is out of bounds. - // Invalidates all iterators. - Set(idx int, v *url.URL) - // SetIRI sets an IRI value to be at the specified index for the property - // "interactionTarget". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the - // "interactionTarget" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go deleted file mode 100644 index 828df0571..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_manualApproval_interface.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// GoToSocialManualApprovalPropertyIterator represents a single value for the -// "manualApproval" property. -type GoToSocialManualApprovalPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialManualApprovalPropertyIterator) bool - // Name returns the name of this property: "GoToSocialManualApproval". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() GoToSocialManualApprovalPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() GoToSocialManualApprovalPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// Indicates zero or more URI/IDs that require manual approval by the Object -// AttributedTo Actor in order to perform an interaction. -type GoToSocialManualApprovalProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "manualApproval" - AppendIRI(v *url.URL) - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "manualApproval". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) GoToSocialManualApprovalPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() GoToSocialManualApprovalPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() GoToSocialManualApprovalPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "manualApproval". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "manualApproval". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "manualApproval" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o GoToSocialManualApprovalProperty) bool - // Name returns the name of this property ("manualApproval") with any - // alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "manualApproval". - PrependIRI(v *url.URL) - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "manualApproval". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // Remove deletes an element at the specified index from a list of the - // property "manualApproval", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a anyURI value to be at the specified index for the property - // "manualApproval". Panics if the index is out of bounds. Invalidates - // all iterators. - Set(idx int, v *url.URL) - // SetIRI sets an IRI value to be at the specified index for the property - // "manualApproval". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the - // "manualApproval" property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_id_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_id_interface.go deleted file mode 100644 index 289ec2822..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_id_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Provides the globally unique identifier for JSON-LD entities. -type JSONLDIdProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaAnyURI afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o JSONLDIdProperty) bool - // Name returns the name of this property: "id". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_type_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_type_interface.go deleted file mode 100644 index 6c9e7a07b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_jsonld_type_interface.go +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// JSONLDTypePropertyIterator represents a single value for the "type" property. -type JSONLDTypePropertyIterator interface { - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetXMLSchemaAnyURI returns the value of this property. When - // IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an - // arbitrary value. - GetXMLSchemaAnyURI() *url.URL - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". - // When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI - // methods to access and set this property. - IsXMLSchemaAnyURI() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o JSONLDTypePropertyIterator) bool - // Name returns the name of this property: "JSONLDType". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() JSONLDTypePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() JSONLDTypePropertyIterator - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetXMLSchemaAnyURI sets the value of this property. Calling - // IsXMLSchemaAnyURI afterwards returns true. - SetXMLSchemaAnyURI(v *url.URL) - // SetXMLSchemaString sets the value of this property. Calling - // IsXMLSchemaString afterwards returns true. - SetXMLSchemaString(v string) -} - -// Identifies the schema type(s) of the JSON-LD entity. -type JSONLDTypeProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "type" - AppendIRI(v *url.URL) - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "type". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "type". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) JSONLDTypePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() JSONLDTypePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() JSONLDTypePropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "type". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "type". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "type". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "type" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o JSONLDTypeProperty) bool - // Name returns the name of this property ("type") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "type". - PrependIRI(v *url.URL) - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "type". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "type". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "type", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets an IRI value to be at the specified index for the property - // "type". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for - // the property "type". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaAnyURI(idx int, v *url.URL) - // SetXMLSchemaString sets a string value to be at the specified index for - // the property "type". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaString(idx int, v string) - // Swap swaps the location of values at two indices for the "type" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_schema_value_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_schema_value_interface.go deleted file mode 100644 index dbfb75a40..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_schema_value_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The value of the quantitative value or property value node. -type SchemaValueProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o SchemaValueProperty) bool - // Name returns the name of this property: "value". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_blurhash_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_blurhash_interface.go deleted file mode 100644 index 95f780fd5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_blurhash_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// null -type TootBlurhashProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootBlurhashProperty) bool - // Name returns the name of this property: "blurhash". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_discoverable_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_discoverable_interface.go deleted file mode 100644 index b150ae5f1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_discoverable_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// null -type TootDiscoverableProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaBoolean afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaBoolean returns - // false, Get will return any arbitrary value. - Get() bool - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaBoolean returns true if this property is set and not an IRI. - IsXMLSchemaBoolean() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootDiscoverableProperty) bool - // Name returns the name of this property: "discoverable". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaBoolean - // afterwards will return true. - Set(v bool) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_featured_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_featured_interface.go deleted file mode 100644 index a029b5f3c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_featured_interface.go +++ /dev/null @@ -1,80 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// null -type TootFeaturedProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootFeaturedProperty) bool - // Name returns the name of this property: "featured". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_focalPoint_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_focalPoint_interface.go deleted file mode 100644 index 32ceec47a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_focalPoint_interface.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// TootFocalPointPropertyIterator represents a single value for the "focalPoint" -// property. -type TootFocalPointPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootFocalPointPropertyIterator) bool - // Name returns the name of this property: "TootFocalPoint". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() TootFocalPointPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() TootFocalPointPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// null -type TootFocalPointProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "focalPoint" - AppendIRI(v *url.URL) - // AppendXMLSchemaFloat appends a float value to the back of a list of the - // property "focalPoint". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaFloat(v float64) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) TootFocalPointPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() TootFocalPointPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() TootFocalPointPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "focalPoint". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaFloat inserts a float value at the specified index for a - // property "focalPoint". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaFloat(idx int, v float64) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "focalPoint" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootFocalPointProperty) bool - // Name returns the name of this property ("focalPoint") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "focalPoint". - PrependIRI(v *url.URL) - // PrependXMLSchemaFloat prepends a float value to the front of a list of - // the property "focalPoint". Invalidates all iterators. - PrependXMLSchemaFloat(v float64) - // Remove deletes an element at the specified index from a list of the - // property "focalPoint", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a float value to be at the specified index for the property - // "focalPoint". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v float64) - // SetIRI sets an IRI value to be at the specified index for the property - // "focalPoint". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the "focalPoint" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_indexable_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_indexable_interface.go deleted file mode 100644 index 59be4b5c0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_indexable_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// null -type TootIndexableProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaBoolean afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaBoolean returns - // false, Get will return any arbitrary value. - Get() bool - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaBoolean returns true if this property is set and not an IRI. - IsXMLSchemaBoolean() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootIndexableProperty) bool - // Name returns the name of this property: "indexable". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaBoolean - // afterwards will return true. - Set(v bool) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go deleted file mode 100644 index aa8c92cd1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// null -type TootSignatureAlgorithmProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootSignatureAlgorithmProperty) bool - // Name returns the name of this property: "signatureAlgorithm". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureValue_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureValue_interface.go deleted file mode 100644 index 20b22631f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_signatureValue_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// null -type TootSignatureValueProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootSignatureValueProperty) bool - // Name returns the name of this property: "signatureValue". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_votersCount_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_votersCount_interface.go deleted file mode 100644 index 24e24bf42..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_toot_votersCount_interface.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// null -type TootVotersCountProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return false. - Clear() - // Get returns the value of this property. When - // IsXMLSchemaNonNegativeInteger returns false, Get will return any - // arbitrary value. - Get() int - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaNonNegativeInteger returns true if this property is set and - // not an IRI. - IsXMLSchemaNonNegativeInteger() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootVotersCountProperty) bool - // Name returns the name of this property: "votersCount". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return true. - Set(v int) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go deleted file mode 100644 index e45d44a77..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The owner of the public key for an ActivityStreams actor -type W3IDSecurityV1OwnerProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaAnyURI afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o W3IDSecurityV1OwnerProperty) bool - // Name returns the name of this property: "owner". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go deleted file mode 100644 index 906eb673d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The public key PEM encoded data for an ActivityStreams actor -type W3IDSecurityV1PublicKeyPemProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o W3IDSecurityV1PublicKeyPemProperty) bool - // Name returns the name of this property: "publicKeyPem". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go deleted file mode 100644 index dc628d9e8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// W3IDSecurityV1PublicKeyPropertyIterator represents a single value for the -// "publicKey" property. -type W3IDSecurityV1PublicKeyPropertyIterator interface { - // Get returns the value of this property. When IsW3IDSecurityV1PublicKey - // returns false, Get will return any arbitrary value. - Get() W3IDSecurityV1PublicKey - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsW3IDSecurityV1PublicKey returns true if this property is set and not - // an IRI. - IsW3IDSecurityV1PublicKey() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o W3IDSecurityV1PublicKeyPropertyIterator) bool - // Name returns the name of this property: "W3IDSecurityV1PublicKey". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() W3IDSecurityV1PublicKeyPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() W3IDSecurityV1PublicKeyPropertyIterator - // Set sets the value of this property. Calling IsW3IDSecurityV1PublicKey - // afterwards will return true. - Set(v W3IDSecurityV1PublicKey) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// The public key for an ActivityStreams actor -// -// null -type W3IDSecurityV1PublicKeyProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "publicKey" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "publicKey". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // AppendW3IDSecurityV1PublicKey appends a PublicKey value to the back of - // a list of the property "publicKey". Invalidates iterators that are - // traversing using Prev. - AppendW3IDSecurityV1PublicKey(v W3IDSecurityV1PublicKey) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) W3IDSecurityV1PublicKeyPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() W3IDSecurityV1PublicKeyPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() W3IDSecurityV1PublicKeyPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "publicKey". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "publicKey". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // InsertW3IDSecurityV1PublicKey inserts a PublicKey value at the - // specified index for a property "publicKey". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertW3IDSecurityV1PublicKey(idx int, v W3IDSecurityV1PublicKey) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "publicKey" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o W3IDSecurityV1PublicKeyProperty) bool - // Name returns the name of this property ("publicKey") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "publicKey". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "publicKey". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // PrependW3IDSecurityV1PublicKey prepends a PublicKey value to the front - // of a list of the property "publicKey". Invalidates all iterators. - PrependW3IDSecurityV1PublicKey(v W3IDSecurityV1PublicKey) - // Remove deletes an element at the specified index from a list of the - // property "publicKey", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a PublicKey value to be at the specified index for the - // property "publicKey". Panics if the index is out of bounds. - // Invalidates all iterators. - Set(idx int, v W3IDSecurityV1PublicKey) - // SetIRI sets an IRI value to be at the specified index for the property - // "publicKey". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "publicKey". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "publicKey" - // property. - Swap(i, j int) -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_accept_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_accept_interface.go deleted file mode 100644 index 9d119a74d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_accept_interface.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor accepts the object. The target property can be used in -// certain circumstances to indicate the context into which the object has -// been accepted. -// -// Example 9 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7a-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally accepted an invitation to a party", -// "type": "Accept" -// } -// -// Example 10 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7b-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "Joe", -// "type": "Person" -// }, -// "summary": "Sally accepted Joe into the club", -// "target": { -// "name": "The Club", -// "type": "Group" -// }, -// "type": "Accept" -// } -type ActivityStreamsAccept interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Accept - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Accept type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Accept is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsAccept) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_activity_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_activity_interface.go deleted file mode 100644 index c87f7898c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_activity_interface.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// An Activity is a subtype of Object that describes some form of action that may -// happen, is currently happening, or has already happened. The Activity type -// itself serves as an abstract base type for all types of activities. It is -// important to note that the Activity type itself does not carry any specific -// semantics about the kind of action being taken. -// -// Example 3 (https://www.w3.org/TR/activitystreams-vocabulary/#ex3-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Note", -// "type": "Note" -// }, -// "summary": "Sally did something to a note", -// "type": "Activity" -// } -type ActivityStreamsActivity interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Activity - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Activity type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Activity is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsActivity) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_add_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_add_interface.go deleted file mode 100644 index 2b1c54ace..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_add_interface.go +++ /dev/null @@ -1,267 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has added the object to the target. If the target -// property is not explicitly specified, the target would need to be -// determined implicitly by context. The origin can be used to identify the -// context from which the object originated. -// -// Example 12 (https://www.w3.org/TR/activitystreams-vocabulary/#ex9-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/abc", -// "summary": "Sally added an object", -// "type": "Add" -// } -// -// Example 13 (https://www.w3.org/TR/activitystreams-vocabulary/#ex10-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A picture of my cat", -// "type": "Image", -// "url": "http://example.org/img/cat.png" -// }, -// "origin": { -// "name": "Camera Roll", -// "type": "Collection" -// }, -// "summary": "Sally added a picture of her cat to her cat picture -// -// collection", -// -// "target": { -// "name": "My Cat Pictures", -// "type": "Collection" -// }, -// "type": "Add" -// } -type ActivityStreamsAdd interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Add type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Add type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Add is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsAdd) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_announce_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_announce_interface.go deleted file mode 100644 index 0b5aef0f1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_announce_interface.go +++ /dev/null @@ -1,252 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is calling the target's attention the object. The -// origin typically has no defined meaning. -// -// Example 36 (https://www.w3.org/TR/activitystreams-vocabulary/#ex170-jsonld): -// -// { -// "actor": { -// "id": "http://sally.example.org", -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://sally.example.org", -// "location": { -// "name": "Work", -// "type": "Place" -// }, -// "type": "Arrive" -// }, -// "summary": "Sally announced that she had arrived at work", -// "type": "Announce" -// } -type ActivityStreamsAnnounce interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Announce - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Announce type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Announce is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsAnnounce) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_application_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_application_interface.go deleted file mode 100644 index 70cf3c500..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_application_interface.go +++ /dev/null @@ -1,286 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Describes a software application. -// -// Example 42 (https://www.w3.org/TR/activitystreams-vocabulary/#ex34-jsonld): -// -// { -// "name": "Exampletron 3000", -// "type": "Application" -// } -type ActivityStreamsApplication interface { - // GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it - // exists, and nil otherwise. - GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsEndpoints returns the "endpoints" property if it - // exists, and nil otherwise. - GetActivityStreamsEndpoints() ActivityStreamsEndpointsProperty - // GetActivityStreamsFollowers returns the "followers" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowers() ActivityStreamsFollowersProperty - // GetActivityStreamsFollowing returns the "following" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowing() ActivityStreamsFollowingProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInbox returns the "inbox" property if it exists, and - // nil otherwise. - GetActivityStreamsInbox() ActivityStreamsInboxProperty - // GetActivityStreamsLiked returns the "liked" property if it exists, and - // nil otherwise. - GetActivityStreamsLiked() ActivityStreamsLikedProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsManuallyApprovesFollowers returns the - // "manuallyApprovesFollowers" property if it exists, and nil - // otherwise. - GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsMovedTo returns the "movedTo" property if it exists, - // and nil otherwise. - GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOutbox returns the "outbox" property if it exists, - // and nil otherwise. - GetActivityStreamsOutbox() ActivityStreamsOutboxProperty - // GetActivityStreamsPreferredUsername returns the "preferredUsername" - // property if it exists, and nil otherwise. - GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsStreams returns the "streams" property if it exists, - // and nil otherwise. - GetActivityStreamsStreams() ActivityStreamsStreamsProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootDiscoverable returns the "discoverable" property if it exists, - // and nil otherwise. - GetTootDiscoverable() TootDiscoverableProperty - // GetTootFeatured returns the "featured" property if it exists, and nil - // otherwise. - GetTootFeatured() TootFeaturedProperty - // GetTootIndexable returns the "indexable" property if it exists, and nil - // otherwise. - GetTootIndexable() TootIndexableProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Application - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty - // IsExtending returns true if the Application type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Application is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsApplication) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. - SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsEndpoints sets the "endpoints" property. - SetActivityStreamsEndpoints(i ActivityStreamsEndpointsProperty) - // SetActivityStreamsFollowers sets the "followers" property. - SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) - // SetActivityStreamsFollowing sets the "following" property. - SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInbox sets the "inbox" property. - SetActivityStreamsInbox(i ActivityStreamsInboxProperty) - // SetActivityStreamsLiked sets the "liked" property. - SetActivityStreamsLiked(i ActivityStreamsLikedProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsManuallyApprovesFollowers sets the - // "manuallyApprovesFollowers" property. - SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsMovedTo sets the "movedTo" property. - SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOutbox sets the "outbox" property. - SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) - // SetActivityStreamsPreferredUsername sets the "preferredUsername" - // property. - SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsStreams sets the "streams" property. - SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootDiscoverable sets the "discoverable" property. - SetTootDiscoverable(i TootDiscoverableProperty) - // SetTootFeatured sets the "featured" property. - SetTootFeatured(i TootFeaturedProperty) - // SetTootIndexable sets the "indexable" property. - SetTootIndexable(i TootIndexableProperty) - // SetW3IDSecurityV1PublicKey sets the "publicKey" property. - SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go deleted file mode 100644 index 997b819cc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// An IntransitiveActivity that indicates that the actor has arrived at the -// location. The origin can be used to identify the context from which the -// actor originated. The target typically has no defined meaning. -// -// Example 14 (https://www.w3.org/TR/activitystreams-vocabulary/#ex11-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "location": { -// "name": "Work", -// "type": "Place" -// }, -// "origin": { -// "name": "Home", -// "type": "Place" -// }, -// "summary": "Sally arrived at work", -// "type": "Arrive" -// } -type ActivityStreamsArrive interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Arrive - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Arrive type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Arrive is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsArrive) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_article_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_article_interface.go deleted file mode 100644 index 149fdb6a9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_article_interface.go +++ /dev/null @@ -1,223 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents any kind of multi-paragraph written work. -// -// Example 48 (https://www.w3.org/TR/activitystreams-vocabulary/#ex43-jsonld): -// -// { -// "attributedTo": "http://sally.example.org", -// "content": "\u003cdiv\u003e... you will never believe -// -// ...\u003c/div\u003e", -// -// "name": "What a Crazy Day I Had", -// "type": "Article" -// } -type ActivityStreamsArticle interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Article - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Article type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Article is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsArticle) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_audio_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_audio_interface.go deleted file mode 100644 index 70ad5d20a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_audio_interface.go +++ /dev/null @@ -1,232 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents an audio document of any kind. -// -// Example 50 (https://www.w3.org/TR/activitystreams-vocabulary/#ex49-jsonld): -// -// { -// "name": "Interview With A Famous Technologist", -// "type": "Audio", -// "url": { -// "mediaType": "audio/mp3", -// "type": "owl:Class", -// "url": "http://example.org/podcast.mp3" -// } -// } -type ActivityStreamsAudio interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootBlurhash returns the "blurhash" property if it exists, and nil - // otherwise. - GetTootBlurhash() TootBlurhashProperty - // GetTootFocalPoint returns the "focalPoint" property if it exists, and - // nil otherwise. - GetTootFocalPoint() TootFocalPointProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Audio type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Audio type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Audio is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsAudio) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootBlurhash sets the "blurhash" property. - SetTootBlurhash(i TootBlurhashProperty) - // SetTootFocalPoint sets the "focalPoint" property. - SetTootFocalPoint(i TootFocalPointProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_block_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_block_interface.go deleted file mode 100644 index bd94785f0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_block_interface.go +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is blocking the object. Blocking is a stronger form of -// Ignore. The typical use is to support social systems that allow one user to -// block activities or content of other users. The target and origin typically -// have no defined meaning. -// -// Example 37 (https://www.w3.org/TR/activitystreams-vocabulary/#ex173-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": "http://joe.example.org", -// "summary": "Sally blocked Joe", -// "type": "Block" -// } -type ActivityStreamsBlock interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Block type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Block type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Block is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsBlock) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collection_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collection_interface.go deleted file mode 100644 index 35877b1c2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collection_interface.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A Collection is a subtype of Object that represents ordered or unordered sets -// of Object or Link instances. Refer to the Activity Streams 2.0 Core -// specification for a complete description of the Collection type. -// -// Example 5 (https://www.w3.org/TR/activitystreams-vocabulary/#ex5-jsonld): -// -// { -// "items": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "Collection" -// } -type ActivityStreamsCollection interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsCurrent returns the "current" property if it exists, - // and nil otherwise. - GetActivityStreamsCurrent() ActivityStreamsCurrentProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFirst returns the "first" property if it exists, and - // nil otherwise. - GetActivityStreamsFirst() ActivityStreamsFirstProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsItems returns the "items" property if it exists, and - // nil otherwise. - GetActivityStreamsItems() ActivityStreamsItemsProperty - // GetActivityStreamsLast returns the "last" property if it exists, and - // nil otherwise. - GetActivityStreamsLast() ActivityStreamsLastProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsTotalItems returns the "totalItems" property if it - // exists, and nil otherwise. - GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Collection - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Collection type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Collection is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsCollection) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsCurrent sets the "current" property. - SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFirst sets the "first" property. - SetActivityStreamsFirst(i ActivityStreamsFirstProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsItems sets the "items" property. - SetActivityStreamsItems(i ActivityStreamsItemsProperty) - // SetActivityStreamsLast sets the "last" property. - SetActivityStreamsLast(i ActivityStreamsLastProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsTotalItems sets the "totalItems" property. - SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go deleted file mode 100644 index c067671d8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go +++ /dev/null @@ -1,262 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Used to represent distinct subsets of items from a Collection. Refer to the -// Activity Streams 2.0 Core for a complete description of the CollectionPage -// object. -// -// Example 7 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6b-jsonld): -// -// { -// "id": "http://example.org/foo?page=1", -// "items": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "partOf": "http://example.org/foo", -// "summary": "Page 1 of Sally's notes", -// "type": "CollectionPage" -// } -type ActivityStreamsCollectionPage interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsCurrent returns the "current" property if it exists, - // and nil otherwise. - GetActivityStreamsCurrent() ActivityStreamsCurrentProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFirst returns the "first" property if it exists, and - // nil otherwise. - GetActivityStreamsFirst() ActivityStreamsFirstProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsItems returns the "items" property if it exists, and - // nil otherwise. - GetActivityStreamsItems() ActivityStreamsItemsProperty - // GetActivityStreamsLast returns the "last" property if it exists, and - // nil otherwise. - GetActivityStreamsLast() ActivityStreamsLastProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsNext returns the "next" property if it exists, and - // nil otherwise. - GetActivityStreamsNext() ActivityStreamsNextProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPartOf returns the "partOf" property if it exists, - // and nil otherwise. - GetActivityStreamsPartOf() ActivityStreamsPartOfProperty - // GetActivityStreamsPrev returns the "prev" property if it exists, and - // nil otherwise. - GetActivityStreamsPrev() ActivityStreamsPrevProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsTotalItems returns the "totalItems" property if it - // exists, and nil otherwise. - GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // CollectionPage type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the CollectionPage type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this CollectionPage is lesser, with an arbitrary - // but stable determination. - LessThan(o ActivityStreamsCollectionPage) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsCurrent sets the "current" property. - SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFirst sets the "first" property. - SetActivityStreamsFirst(i ActivityStreamsFirstProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsItems sets the "items" property. - SetActivityStreamsItems(i ActivityStreamsItemsProperty) - // SetActivityStreamsLast sets the "last" property. - SetActivityStreamsLast(i ActivityStreamsLastProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsNext sets the "next" property. - SetActivityStreamsNext(i ActivityStreamsNextProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPartOf sets the "partOf" property. - SetActivityStreamsPartOf(i ActivityStreamsPartOfProperty) - // SetActivityStreamsPrev sets the "prev" property. - SetActivityStreamsPrev(i ActivityStreamsPrevProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsTotalItems sets the "totalItems" property. - SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_create_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_create_interface.go deleted file mode 100644 index fcd4f15f4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_create_interface.go +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has created the object. -// -// Example 15 (https://www.w3.org/TR/activitystreams-vocabulary/#ex12-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "content": "This is a simple note", -// "name": "A Simple Note", -// "type": "Note" -// }, -// "summary": "Sally created a note", -// "type": "Create" -// } -type ActivityStreamsCreate interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Create - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Create type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Create is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsCreate) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_delete_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_delete_interface.go deleted file mode 100644 index dfedaefd4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_delete_interface.go +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has deleted the object. If specified, the origin -// indicates the context from which the object was deleted. -// -// Example 16 (https://www.w3.org/TR/activitystreams-vocabulary/#ex13-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "origin": { -// "name": "Sally's Notes", -// "type": "Collection" -// }, -// "summary": "Sally deleted a note", -// "type": "Delete" -// } -type ActivityStreamsDelete interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Delete - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Delete type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Delete is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsDelete) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go deleted file mode 100644 index 1cdfee2bd..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go +++ /dev/null @@ -1,235 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor dislikes the object. -// -// Example 39 (https://www.w3.org/TR/activitystreams-vocabulary/#ex175-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally disliked a post", -// "type": "Dislike" -// } -type ActivityStreamsDislike interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Dislike - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Dislike type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Dislike is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsDislike) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_document_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_document_interface.go deleted file mode 100644 index f417c9452..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_document_interface.go +++ /dev/null @@ -1,229 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a document of any kind. -// -// Example 49 (https://www.w3.org/TR/activitystreams-vocabulary/#ex48-jsonld): -// -// { -// "name": "4Q Sales Forecast", -// "type": "Document", -// "url": "http://example.org/4q-sales-forecast.pdf" -// } -type ActivityStreamsDocument interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootBlurhash returns the "blurhash" property if it exists, and nil - // otherwise. - GetTootBlurhash() TootBlurhashProperty - // GetTootFocalPoint returns the "focalPoint" property if it exists, and - // nil otherwise. - GetTootFocalPoint() TootFocalPointProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Document - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Document type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Document is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsDocument) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootBlurhash sets the "blurhash" property. - SetTootBlurhash(i TootBlurhashProperty) - // SetTootFocalPoint sets the "focalPoint" property. - SetTootFocalPoint(i TootFocalPointProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go deleted file mode 100644 index 19210f6ee..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_endpoints_interface.go +++ /dev/null @@ -1,44 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A json object which maps additional (typically server/domain-wide) endpoints -// which may be useful either for this actor or someone referencing this -// actor. This mapping may be nested inside the actor document as the value or -// may be a link to a JSON-LD document with these properties. -type ActivityStreamsEndpoints interface { - // GetActivityStreamsSharedInbox returns the "sharedInbox" property if it - // exists, and nil otherwise. - GetActivityStreamsSharedInbox() ActivityStreamsSharedInboxProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Endpoints - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Endpoints type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Endpoints is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsEndpoints) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsSharedInbox sets the "sharedInbox" property. - SetActivityStreamsSharedInbox(i ActivityStreamsSharedInboxProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_event_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_event_interface.go deleted file mode 100644 index 9edbb7b36..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_event_interface.go +++ /dev/null @@ -1,219 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents any kind of event. -// -// Example 55 (https://www.w3.org/TR/activitystreams-vocabulary/#ex56-jsonld): -// -// { -// "endTime": "2015-01-01T06:00:00-08:00", -// "name": "Going-Away Party for Jim", -// "startTime": "2014-12-31T23:00:00-08:00", -// "type": "Event" -// } -type ActivityStreamsEvent interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Event type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Event type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Event is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsEvent) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_flag_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_flag_interface.go deleted file mode 100644 index 737538ec7..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_flag_interface.go +++ /dev/null @@ -1,239 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is "flagging" the object. Flagging is defined in the -// sense common to many social platforms as reporting content as being -// inappropriate for any number of reasons. -// -// Example 38 (https://www.w3.org/TR/activitystreams-vocabulary/#ex174-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": { -// "content": "An inappropriate note", -// "type": "Note" -// }, -// "summary": "Sally flagged an inappropriate note", -// "type": "Flag" -// } -type ActivityStreamsFlag interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Flag type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Flag type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Flag is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsFlag) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_follow_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_follow_interface.go deleted file mode 100644 index 12d1ea9f6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_follow_interface.go +++ /dev/null @@ -1,243 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is "following" the object. Following is defined in the -// sense typically used within Social systems in which the actor is interested -// in any activity performed by or on the object. The target and origin -// typically have no defined meaning. -// -// Example 17 (https://www.w3.org/TR/activitystreams-vocabulary/#ex15-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "John", -// "type": "Person" -// }, -// "summary": "Sally followed John", -// "type": "Follow" -// } -type ActivityStreamsFollow interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Follow - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Follow type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Follow is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsFollow) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_group_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_group_interface.go deleted file mode 100644 index 1153f8537..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_group_interface.go +++ /dev/null @@ -1,285 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a formal or informal collective of Actors. -// -// Example 43 (https://www.w3.org/TR/activitystreams-vocabulary/#ex37-jsonld): -// -// { -// "name": "Big Beards of Austin", -// "type": "Group" -// } -type ActivityStreamsGroup interface { - // GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it - // exists, and nil otherwise. - GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsEndpoints returns the "endpoints" property if it - // exists, and nil otherwise. - GetActivityStreamsEndpoints() ActivityStreamsEndpointsProperty - // GetActivityStreamsFollowers returns the "followers" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowers() ActivityStreamsFollowersProperty - // GetActivityStreamsFollowing returns the "following" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowing() ActivityStreamsFollowingProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInbox returns the "inbox" property if it exists, and - // nil otherwise. - GetActivityStreamsInbox() ActivityStreamsInboxProperty - // GetActivityStreamsLiked returns the "liked" property if it exists, and - // nil otherwise. - GetActivityStreamsLiked() ActivityStreamsLikedProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsManuallyApprovesFollowers returns the - // "manuallyApprovesFollowers" property if it exists, and nil - // otherwise. - GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsMovedTo returns the "movedTo" property if it exists, - // and nil otherwise. - GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOutbox returns the "outbox" property if it exists, - // and nil otherwise. - GetActivityStreamsOutbox() ActivityStreamsOutboxProperty - // GetActivityStreamsPreferredUsername returns the "preferredUsername" - // property if it exists, and nil otherwise. - GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsStreams returns the "streams" property if it exists, - // and nil otherwise. - GetActivityStreamsStreams() ActivityStreamsStreamsProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootDiscoverable returns the "discoverable" property if it exists, - // and nil otherwise. - GetTootDiscoverable() TootDiscoverableProperty - // GetTootFeatured returns the "featured" property if it exists, and nil - // otherwise. - GetTootFeatured() TootFeaturedProperty - // GetTootIndexable returns the "indexable" property if it exists, and nil - // otherwise. - GetTootIndexable() TootIndexableProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Group type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty - // IsExtending returns true if the Group type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Group is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsGroup) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. - SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsEndpoints sets the "endpoints" property. - SetActivityStreamsEndpoints(i ActivityStreamsEndpointsProperty) - // SetActivityStreamsFollowers sets the "followers" property. - SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) - // SetActivityStreamsFollowing sets the "following" property. - SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInbox sets the "inbox" property. - SetActivityStreamsInbox(i ActivityStreamsInboxProperty) - // SetActivityStreamsLiked sets the "liked" property. - SetActivityStreamsLiked(i ActivityStreamsLikedProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsManuallyApprovesFollowers sets the - // "manuallyApprovesFollowers" property. - SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsMovedTo sets the "movedTo" property. - SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOutbox sets the "outbox" property. - SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) - // SetActivityStreamsPreferredUsername sets the "preferredUsername" - // property. - SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsStreams sets the "streams" property. - SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootDiscoverable sets the "discoverable" property. - SetTootDiscoverable(i TootDiscoverableProperty) - // SetTootFeatured sets the "featured" property. - SetTootFeatured(i TootFeaturedProperty) - // SetTootIndexable sets the "indexable" property. - SetTootIndexable(i TootIndexableProperty) - // SetW3IDSecurityV1PublicKey sets the "publicKey" property. - SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go deleted file mode 100644 index faabedab4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go +++ /dev/null @@ -1,238 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is ignoring the object. The target and origin -// typically have no defined meaning. -// -// Example 18 (https://www.w3.org/TR/activitystreams-vocabulary/#ex16-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally ignored a note", -// "type": "Ignore" -// } -type ActivityStreamsIgnore interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Ignore - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Ignore type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Ignore is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsIgnore) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_image_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_image_interface.go deleted file mode 100644 index 5073d044a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_image_interface.go +++ /dev/null @@ -1,249 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// An image document of any kind -// -// Example 51 (https://www.w3.org/TR/activitystreams-vocabulary/#ex50-jsonld): -// -// { -// "name": "Cat Jumping on Wagon", -// "type": "Image", -// "url": [ -// { -// "mediaType": "image/jpeg", -// "type": "Link", -// "url": "http://example.org/image.jpeg" -// }, -// { -// "mediaType": "image/png", -// "type": "Link", -// "url": "http://example.org/image.png" -// } -// ] -// } -type ActivityStreamsImage interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsHeight returns the "height" property if it exists, - // and nil otherwise. - GetActivityStreamsHeight() ActivityStreamsHeightProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetActivityStreamsWidth returns the "width" property if it exists, and - // nil otherwise. - GetActivityStreamsWidth() ActivityStreamsWidthProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootBlurhash returns the "blurhash" property if it exists, and nil - // otherwise. - GetTootBlurhash() TootBlurhashProperty - // GetTootFocalPoint returns the "focalPoint" property if it exists, and - // nil otherwise. - GetTootFocalPoint() TootFocalPointProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Image type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Image type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Image is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsImage) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsHeight sets the "height" property. - SetActivityStreamsHeight(i ActivityStreamsHeightProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetActivityStreamsWidth sets the "width" property. - SetActivityStreamsWidth(i ActivityStreamsWidthProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootBlurhash sets the "blurhash" property. - SetTootBlurhash(i TootBlurhashProperty) - // SetTootFocalPoint sets the "focalPoint" property. - SetTootFocalPoint(i TootFocalPointProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go deleted file mode 100644 index 139f2f2b8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go +++ /dev/null @@ -1,238 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Instances of IntransitiveActivity are a subtype of Activity representing -// intransitive actions. The object property is therefore inappropriate for -// these activities. -// -// Example 4 (https://www.w3.org/TR/activitystreams-vocabulary/#ex182-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally went to work", -// "target": { -// "name": "Work", -// "type": "Place" -// }, -// "type": "Travel" -// } -type ActivityStreamsIntransitiveActivity interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // IntransitiveActivity type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the IntransitiveActivity type extends from - // the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this IntransitiveActivity is lesser, with an - // arbitrary but stable determination. - LessThan(o ActivityStreamsIntransitiveActivity) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_invite_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_invite_interface.go deleted file mode 100644 index 1803e9345..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_invite_interface.go +++ /dev/null @@ -1,251 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A specialization of Offer in which the actor is extending an invitation for the -// object to the target. -// -// Example 24 (https://www.w3.org/TR/activitystreams-vocabulary/#ex24-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Party", -// "type": "Event" -// }, -// "summary": "Sally invited John and Lisa to a party", -// "target": [ -// { -// "name": "John", -// "type": "Person" -// }, -// { -// "name": "Lisa", -// "type": "Person" -// } -// ], -// "type": "Invite" -// } -type ActivityStreamsInvite interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Invite - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Invite type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Invite is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsInvite) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_join_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_join_interface.go deleted file mode 100644 index 5cbf66263..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_join_interface.go +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has joined the object. The target and origin typically -// have no defined meaning. -// -// Example 19 (https://www.w3.org/TR/activitystreams-vocabulary/#ex17-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Simple Group", -// "type": "Group" -// }, -// "summary": "Sally joined a group", -// "type": "Join" -// } -type ActivityStreamsJoin interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Join type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Join type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Join is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsJoin) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_leave_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_leave_interface.go deleted file mode 100644 index dad45976f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_leave_interface.go +++ /dev/null @@ -1,256 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has left the object. The target and origin typically -// have no meaning. -// -// Example 20 (https://www.w3.org/TR/activitystreams-vocabulary/#ex18-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "Work", -// "type": "Place" -// }, -// "summary": "Sally left work", -// "type": "Leave" -// } -// -// Example 21 (https://www.w3.org/TR/activitystreams-vocabulary/#ex19-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Simple Group", -// "type": "Group" -// }, -// "summary": "Sally left a group", -// "type": "Leave" -// } -type ActivityStreamsLeave interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Leave type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Leave type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Leave is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsLeave) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_like_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_like_interface.go deleted file mode 100644 index 1dcbdd914..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_like_interface.go +++ /dev/null @@ -1,243 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor likes, recommends or endorses the object. The target -// and origin typically have no defined meaning. -// -// Example 22 (https://www.w3.org/TR/activitystreams-vocabulary/#ex20-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally liked a note", -// "type": "Like" -// } -type ActivityStreamsLike interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Like type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Like type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Like is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsLike) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_link_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_link_interface.go deleted file mode 100644 index 0e52881b9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_link_interface.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A Link is an indirect, qualified reference to a resource identified by a URL. -// The fundamental model for links is established by [RFC5988]. Many of the -// properties defined by the Activity Vocabulary allow values that are either -// instances of Object or Link. When a Link is used, it establishes a -// qualified relation connecting the subject (the containing object) to the -// resource identified by the href. Properties of the Link are properties of -// the reference as opposed to properties of the resource. -// -// Example 2 (https://www.w3.org/TR/activitystreams-vocabulary/#ex2-jsonld): -// -// { -// "hreflang": "en", -// "mediaType": "text/html", -// "name": "An example link", -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsLink interface { - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsHeight returns the "height" property if it exists, - // and nil otherwise. - GetActivityStreamsHeight() ActivityStreamsHeightProperty - // GetActivityStreamsHref returns the "href" property if it exists, and - // nil otherwise. - GetActivityStreamsHref() ActivityStreamsHrefProperty - // GetActivityStreamsHreflang returns the "hreflang" property if it - // exists, and nil otherwise. - GetActivityStreamsHreflang() ActivityStreamsHreflangProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsRel returns the "rel" property if it exists, and nil - // otherwise. - GetActivityStreamsRel() ActivityStreamsRelProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsWidth returns the "width" property if it exists, and - // nil otherwise. - GetActivityStreamsWidth() ActivityStreamsWidthProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Link type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Link type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Link is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsLink) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsHeight sets the "height" property. - SetActivityStreamsHeight(i ActivityStreamsHeightProperty) - // SetActivityStreamsHref sets the "href" property. - SetActivityStreamsHref(i ActivityStreamsHrefProperty) - // SetActivityStreamsHreflang sets the "hreflang" property. - SetActivityStreamsHreflang(i ActivityStreamsHreflangProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsRel sets the "rel" property. - SetActivityStreamsRel(i ActivityStreamsRelProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsWidth sets the "width" property. - SetActivityStreamsWidth(i ActivityStreamsWidthProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_listen_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_listen_interface.go deleted file mode 100644 index 1ca8846be..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_listen_interface.go +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has listened to the object. -// -// Example 32 (https://www.w3.org/TR/activitystreams-vocabulary/#ex163-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/music.mp3", -// "summary": "Sally listened to a piece of music", -// "type": "Listen" -// } -type ActivityStreamsListen interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Listen - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Listen type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Listen is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsListen) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_mention_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_mention_interface.go deleted file mode 100644 index 2a91f47f9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_mention_interface.go +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A specialized Link that represents an @mention. -// -// Example 58 (https://www.w3.org/TR/activitystreams-vocabulary/#ex181-jsonld): -// -// { -// "name": "Joe", -// "summary": "Mention of Joe by Carrie in her note", -// "type": "Mention", -// "url": "http://example.org/joe" -// } -type ActivityStreamsMention interface { - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsHeight returns the "height" property if it exists, - // and nil otherwise. - GetActivityStreamsHeight() ActivityStreamsHeightProperty - // GetActivityStreamsHref returns the "href" property if it exists, and - // nil otherwise. - GetActivityStreamsHref() ActivityStreamsHrefProperty - // GetActivityStreamsHreflang returns the "hreflang" property if it - // exists, and nil otherwise. - GetActivityStreamsHreflang() ActivityStreamsHreflangProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsRel returns the "rel" property if it exists, and nil - // otherwise. - GetActivityStreamsRel() ActivityStreamsRelProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsWidth returns the "width" property if it exists, and - // nil otherwise. - GetActivityStreamsWidth() ActivityStreamsWidthProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Mention - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Mention type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Mention is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsMention) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsHeight sets the "height" property. - SetActivityStreamsHeight(i ActivityStreamsHeightProperty) - // SetActivityStreamsHref sets the "href" property. - SetActivityStreamsHref(i ActivityStreamsHrefProperty) - // SetActivityStreamsHreflang sets the "hreflang" property. - SetActivityStreamsHreflang(i ActivityStreamsHreflangProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsRel sets the "rel" property. - SetActivityStreamsRel(i ActivityStreamsRelProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsWidth sets the "width" property. - SetActivityStreamsWidth(i ActivityStreamsWidthProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_move_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_move_interface.go deleted file mode 100644 index a12f08138..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_move_interface.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has moved object from origin to target. If the origin -// or target are not specified, either can be determined by context. -// -// Example 34 (https://www.w3.org/TR/activitystreams-vocabulary/#ex168-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/posts/1", -// "origin": { -// "name": "List A", -// "type": "Collection" -// }, -// "summary": "Sally moved a post from List A to List B", -// "target": { -// "name": "List B", -// "type": "Collection" -// }, -// "type": "Move" -// } -type ActivityStreamsMove interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Move type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Move type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Move is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsMove) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_note_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_note_interface.go deleted file mode 100644 index d78560050..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_note_interface.go +++ /dev/null @@ -1,219 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a short written work typically less than a single paragraph in -// length. -// -// Example 53 (https://www.w3.org/TR/activitystreams-vocabulary/#ex52-jsonld): -// -// { -// "content": "Looks like it is going to rain today. Bring an umbrella!", -// "name": "A Word of Warning", -// "type": "Note" -// } -type ActivityStreamsNote interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Note type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Note type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Note is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsNote) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_object_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_object_interface.go deleted file mode 100644 index d6307684e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_object_interface.go +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Describes an object of any kind. The Object type serves as the base type for -// most of the other kinds of objects defined in the Activity Vocabulary, -// including other Core types such as Activity, IntransitiveActivity, -// Collection and OrderedCollection. -// -// Example 1 (https://www.w3.org/TR/activitystreams-vocabulary/#ex1-jsonld): -// -// { -// "id": "http://www.test.example/object/1", -// "name": "A Simple, non-specific object", -// "type": "Object" -// } -type ActivityStreamsObject interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Object - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Object type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Object is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsObject) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_offer_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_offer_interface.go deleted file mode 100644 index b04780f2c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_offer_interface.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is offering the object. If specified, the target -// indicates the entity to which the object is being offered. -// -// Example 23 (https://www.w3.org/TR/activitystreams-vocabulary/#ex21-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "50% Off!", -// "type": "http://www.types.example/ProductOffer" -// }, -// "summary": "Sally offered 50% off to Lewis", -// "target": { -// "name": "Lewis", -// "type": "Person" -// }, -// "type": "Offer" -// } -type ActivityStreamsOffer interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Offer type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Offer type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Offer is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsOffer) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go deleted file mode 100644 index e8a30934e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A subtype of Collection in which members of the logical collection are assumed -// to always be strictly ordered. -// -// Example 6 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6-jsonld): -// -// { -// "orderedItems": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "OrderedCollection" -// } -type ActivityStreamsOrderedCollection interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsCurrent returns the "current" property if it exists, - // and nil otherwise. - GetActivityStreamsCurrent() ActivityStreamsCurrentProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFirst returns the "first" property if it exists, and - // nil otherwise. - GetActivityStreamsFirst() ActivityStreamsFirstProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLast returns the "last" property if it exists, and - // nil otherwise. - GetActivityStreamsLast() ActivityStreamsLastProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrderedItems returns the "orderedItems" property if - // it exists, and nil otherwise. - GetActivityStreamsOrderedItems() ActivityStreamsOrderedItemsProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsTotalItems returns the "totalItems" property if it - // exists, and nil otherwise. - GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // OrderedCollection type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the OrderedCollection type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this OrderedCollection is lesser, with an - // arbitrary but stable determination. - LessThan(o ActivityStreamsOrderedCollection) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsCurrent sets the "current" property. - SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFirst sets the "first" property. - SetActivityStreamsFirst(i ActivityStreamsFirstProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLast sets the "last" property. - SetActivityStreamsLast(i ActivityStreamsLastProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrderedItems sets the "orderedItems" property. - SetActivityStreamsOrderedItems(i ActivityStreamsOrderedItemsProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsTotalItems sets the "totalItems" property. - SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go deleted file mode 100644 index e12c7c0cb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go +++ /dev/null @@ -1,267 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Used to represent ordered subsets of items from an OrderedCollection. Refer to -// the Activity Streams 2.0 Core for a complete description of the -// OrderedCollectionPage object. -// -// Example 8 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6c-jsonld): -// -// { -// "id": "http://example.org/foo?page=1", -// "orderedItems": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "partOf": "http://example.org/foo", -// "summary": "Page 1 of Sally's notes", -// "type": "OrderedCollectionPage" -// } -type ActivityStreamsOrderedCollectionPage interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsCurrent returns the "current" property if it exists, - // and nil otherwise. - GetActivityStreamsCurrent() ActivityStreamsCurrentProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFirst returns the "first" property if it exists, and - // nil otherwise. - GetActivityStreamsFirst() ActivityStreamsFirstProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLast returns the "last" property if it exists, and - // nil otherwise. - GetActivityStreamsLast() ActivityStreamsLastProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsNext returns the "next" property if it exists, and - // nil otherwise. - GetActivityStreamsNext() ActivityStreamsNextProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrderedItems returns the "orderedItems" property if - // it exists, and nil otherwise. - GetActivityStreamsOrderedItems() ActivityStreamsOrderedItemsProperty - // GetActivityStreamsPartOf returns the "partOf" property if it exists, - // and nil otherwise. - GetActivityStreamsPartOf() ActivityStreamsPartOfProperty - // GetActivityStreamsPrev returns the "prev" property if it exists, and - // nil otherwise. - GetActivityStreamsPrev() ActivityStreamsPrevProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartIndex returns the "startIndex" property if it - // exists, and nil otherwise. - GetActivityStreamsStartIndex() ActivityStreamsStartIndexProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsTotalItems returns the "totalItems" property if it - // exists, and nil otherwise. - GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // OrderedCollectionPage type. Note that this should not be used by - // app developers. It is only used to help determine which - // implementation is LessThan the other. Developers who are creating a - // different implementation of this type's interface can use this - // method in their LessThan implementation, but routine ActivityPub - // applications should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the OrderedCollectionPage type extends from - // the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this OrderedCollectionPage is lesser, with an - // arbitrary but stable determination. - LessThan(o ActivityStreamsOrderedCollectionPage) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsCurrent sets the "current" property. - SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFirst sets the "first" property. - SetActivityStreamsFirst(i ActivityStreamsFirstProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLast sets the "last" property. - SetActivityStreamsLast(i ActivityStreamsLastProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsNext sets the "next" property. - SetActivityStreamsNext(i ActivityStreamsNextProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrderedItems sets the "orderedItems" property. - SetActivityStreamsOrderedItems(i ActivityStreamsOrderedItemsProperty) - // SetActivityStreamsPartOf sets the "partOf" property. - SetActivityStreamsPartOf(i ActivityStreamsPartOfProperty) - // SetActivityStreamsPrev sets the "prev" property. - SetActivityStreamsPrev(i ActivityStreamsPrevProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartIndex sets the "startIndex" property. - SetActivityStreamsStartIndex(i ActivityStreamsStartIndexProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsTotalItems sets the "totalItems" property. - SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_organization_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_organization_interface.go deleted file mode 100644 index 8b10c848a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_organization_interface.go +++ /dev/null @@ -1,286 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents an organization. -// -// Example 44 (https://www.w3.org/TR/activitystreams-vocabulary/#ex186-jsonld): -// -// { -// "name": "Example Co.", -// "type": "Organization" -// } -type ActivityStreamsOrganization interface { - // GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it - // exists, and nil otherwise. - GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsEndpoints returns the "endpoints" property if it - // exists, and nil otherwise. - GetActivityStreamsEndpoints() ActivityStreamsEndpointsProperty - // GetActivityStreamsFollowers returns the "followers" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowers() ActivityStreamsFollowersProperty - // GetActivityStreamsFollowing returns the "following" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowing() ActivityStreamsFollowingProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInbox returns the "inbox" property if it exists, and - // nil otherwise. - GetActivityStreamsInbox() ActivityStreamsInboxProperty - // GetActivityStreamsLiked returns the "liked" property if it exists, and - // nil otherwise. - GetActivityStreamsLiked() ActivityStreamsLikedProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsManuallyApprovesFollowers returns the - // "manuallyApprovesFollowers" property if it exists, and nil - // otherwise. - GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsMovedTo returns the "movedTo" property if it exists, - // and nil otherwise. - GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOutbox returns the "outbox" property if it exists, - // and nil otherwise. - GetActivityStreamsOutbox() ActivityStreamsOutboxProperty - // GetActivityStreamsPreferredUsername returns the "preferredUsername" - // property if it exists, and nil otherwise. - GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsStreams returns the "streams" property if it exists, - // and nil otherwise. - GetActivityStreamsStreams() ActivityStreamsStreamsProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootDiscoverable returns the "discoverable" property if it exists, - // and nil otherwise. - GetTootDiscoverable() TootDiscoverableProperty - // GetTootFeatured returns the "featured" property if it exists, and nil - // otherwise. - GetTootFeatured() TootFeaturedProperty - // GetTootIndexable returns the "indexable" property if it exists, and nil - // otherwise. - GetTootIndexable() TootIndexableProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // Organization type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty - // IsExtending returns true if the Organization type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Organization is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsOrganization) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. - SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsEndpoints sets the "endpoints" property. - SetActivityStreamsEndpoints(i ActivityStreamsEndpointsProperty) - // SetActivityStreamsFollowers sets the "followers" property. - SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) - // SetActivityStreamsFollowing sets the "following" property. - SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInbox sets the "inbox" property. - SetActivityStreamsInbox(i ActivityStreamsInboxProperty) - // SetActivityStreamsLiked sets the "liked" property. - SetActivityStreamsLiked(i ActivityStreamsLikedProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsManuallyApprovesFollowers sets the - // "manuallyApprovesFollowers" property. - SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsMovedTo sets the "movedTo" property. - SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOutbox sets the "outbox" property. - SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) - // SetActivityStreamsPreferredUsername sets the "preferredUsername" - // property. - SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsStreams sets the "streams" property. - SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootDiscoverable sets the "discoverable" property. - SetTootDiscoverable(i TootDiscoverableProperty) - // SetTootFeatured sets the "featured" property. - SetTootFeatured(i TootFeaturedProperty) - // SetTootIndexable sets the "indexable" property. - SetTootIndexable(i TootIndexableProperty) - // SetW3IDSecurityV1PublicKey sets the "publicKey" property. - SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_page_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_page_interface.go deleted file mode 100644 index 635dab3b2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_page_interface.go +++ /dev/null @@ -1,228 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a Web Page. -// -// Example 54 (https://www.w3.org/TR/activitystreams-vocabulary/#ex53-jsonld): -// -// { -// "name": "Omaha Weather Report", -// "type": "Page", -// "url": "http://example.org/weather-in-omaha.html" -// } -type ActivityStreamsPage interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootBlurhash returns the "blurhash" property if it exists, and nil - // otherwise. - GetTootBlurhash() TootBlurhashProperty - // GetTootFocalPoint returns the "focalPoint" property if it exists, and - // nil otherwise. - GetTootFocalPoint() TootFocalPointProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Page type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Page type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Page is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsPage) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootBlurhash sets the "blurhash" property. - SetTootBlurhash(i TootBlurhashProperty) - // SetTootFocalPoint sets the "focalPoint" property. - SetTootFocalPoint(i TootFocalPointProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_person_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_person_interface.go deleted file mode 100644 index 66446bd11..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_person_interface.go +++ /dev/null @@ -1,285 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents an individual person. -// -// Example 45 (https://www.w3.org/TR/activitystreams-vocabulary/#ex39-jsonld): -// -// { -// "name": "Sally Smith", -// "type": "Person" -// } -type ActivityStreamsPerson interface { - // GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it - // exists, and nil otherwise. - GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsEndpoints returns the "endpoints" property if it - // exists, and nil otherwise. - GetActivityStreamsEndpoints() ActivityStreamsEndpointsProperty - // GetActivityStreamsFollowers returns the "followers" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowers() ActivityStreamsFollowersProperty - // GetActivityStreamsFollowing returns the "following" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowing() ActivityStreamsFollowingProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInbox returns the "inbox" property if it exists, and - // nil otherwise. - GetActivityStreamsInbox() ActivityStreamsInboxProperty - // GetActivityStreamsLiked returns the "liked" property if it exists, and - // nil otherwise. - GetActivityStreamsLiked() ActivityStreamsLikedProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsManuallyApprovesFollowers returns the - // "manuallyApprovesFollowers" property if it exists, and nil - // otherwise. - GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsMovedTo returns the "movedTo" property if it exists, - // and nil otherwise. - GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOutbox returns the "outbox" property if it exists, - // and nil otherwise. - GetActivityStreamsOutbox() ActivityStreamsOutboxProperty - // GetActivityStreamsPreferredUsername returns the "preferredUsername" - // property if it exists, and nil otherwise. - GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsStreams returns the "streams" property if it exists, - // and nil otherwise. - GetActivityStreamsStreams() ActivityStreamsStreamsProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootDiscoverable returns the "discoverable" property if it exists, - // and nil otherwise. - GetTootDiscoverable() TootDiscoverableProperty - // GetTootFeatured returns the "featured" property if it exists, and nil - // otherwise. - GetTootFeatured() TootFeaturedProperty - // GetTootIndexable returns the "indexable" property if it exists, and nil - // otherwise. - GetTootIndexable() TootIndexableProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Person - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty - // IsExtending returns true if the Person type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Person is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsPerson) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. - SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsEndpoints sets the "endpoints" property. - SetActivityStreamsEndpoints(i ActivityStreamsEndpointsProperty) - // SetActivityStreamsFollowers sets the "followers" property. - SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) - // SetActivityStreamsFollowing sets the "following" property. - SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInbox sets the "inbox" property. - SetActivityStreamsInbox(i ActivityStreamsInboxProperty) - // SetActivityStreamsLiked sets the "liked" property. - SetActivityStreamsLiked(i ActivityStreamsLikedProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsManuallyApprovesFollowers sets the - // "manuallyApprovesFollowers" property. - SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsMovedTo sets the "movedTo" property. - SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOutbox sets the "outbox" property. - SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) - // SetActivityStreamsPreferredUsername sets the "preferredUsername" - // property. - SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsStreams sets the "streams" property. - SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootDiscoverable sets the "discoverable" property. - SetTootDiscoverable(i TootDiscoverableProperty) - // SetTootFeatured sets the "featured" property. - SetTootFeatured(i TootFeaturedProperty) - // SetTootIndexable sets the "indexable" property. - SetTootIndexable(i TootIndexableProperty) - // SetW3IDSecurityV1PublicKey sets the "publicKey" property. - SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_place_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_place_interface.go deleted file mode 100644 index 0c983542e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_place_interface.go +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a logical or physical location. See 5.3 Representing Places for -// additional information. -// -// Example 56 (https://www.w3.org/TR/activitystreams-vocabulary/#ex57-jsonld): -// -// { -// "name": "Work", -// "type": "Place" -// } -// -// Example 57 (https://www.w3.org/TR/activitystreams-vocabulary/#ex58-jsonld): -// -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsPlace interface { - // GetActivityStreamsAccuracy returns the "accuracy" property if it - // exists, and nil otherwise. - GetActivityStreamsAccuracy() ActivityStreamsAccuracyProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLatitude returns the "latitude" property if it - // exists, and nil otherwise. - GetActivityStreamsLatitude() ActivityStreamsLatitudeProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsLongitude returns the "longitude" property if it - // exists, and nil otherwise. - GetActivityStreamsLongitude() ActivityStreamsLongitudeProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsRadius returns the "radius" property if it exists, - // and nil otherwise. - GetActivityStreamsRadius() ActivityStreamsRadiusProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUnits returns the "units" property if it exists, and - // nil otherwise. - GetActivityStreamsUnits() ActivityStreamsUnitsProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Place type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Place type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Place is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsPlace) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAccuracy sets the "accuracy" property. - SetActivityStreamsAccuracy(i ActivityStreamsAccuracyProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLatitude sets the "latitude" property. - SetActivityStreamsLatitude(i ActivityStreamsLatitudeProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsLongitude sets the "longitude" property. - SetActivityStreamsLongitude(i ActivityStreamsLongitudeProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsRadius sets the "radius" property. - SetActivityStreamsRadius(i ActivityStreamsRadiusProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUnits sets the "units" property. - SetActivityStreamsUnits(i ActivityStreamsUnitsProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_profile_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_profile_interface.go deleted file mode 100644 index b4b8a7697..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_profile_interface.go +++ /dev/null @@ -1,229 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A Profile is a content object that describes another Object, typically used to -// describe Actor Type objects. The describes property is used to reference -// the object being described by the profile. -// -// Example 59 (https://www.w3.org/TR/activitystreams-vocabulary/#ex184a-jsonld): -// -// { -// "describes": { -// "name": "Sally Smith", -// "type": "Person" -// }, -// "summary": "Sally's Profile", -// "type": "Profile" -// } -type ActivityStreamsProfile interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDescribes returns the "describes" property if it - // exists, and nil otherwise. - GetActivityStreamsDescribes() ActivityStreamsDescribesProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Profile - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Profile type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Profile is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsProfile) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDescribes sets the "describes" property. - SetActivityStreamsDescribes(i ActivityStreamsDescribesProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_question_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_question_interface.go deleted file mode 100644 index c249bfc33..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_question_interface.go +++ /dev/null @@ -1,281 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a question being asked. Question objects are an extension of -// IntransitiveActivity. That is, the Question object is an Activity, but the -// direct object is the question itself and therefore it would not contain an -// object property. Either of the anyOf and oneOf properties MAY be used to -// express possible answers, but a Question object MUST NOT have both -// properties. -// -// Example 40 (https://www.w3.org/TR/activitystreams-vocabulary/#ex55a-jsonld): -// -// { -// "name": "What is the answer?", -// "oneOf": [ -// { -// "name": "Option A", -// "type": "Note" -// }, -// { -// "name": "Option B", -// "type": "Note" -// } -// ], -// "type": "Question" -// } -// -// Example 41 (https://www.w3.org/TR/activitystreams-vocabulary/#ex55b-jsonld): -// -// { -// "closed": "2016-05-10T00:00:00Z", -// "name": "What is the answer?", -// "type": "Question" -// } -type ActivityStreamsQuestion interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAnyOf returns the "anyOf" property if it exists, and - // nil otherwise. - GetActivityStreamsAnyOf() ActivityStreamsAnyOfProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsClosed returns the "closed" property if it exists, - // and nil otherwise. - GetActivityStreamsClosed() ActivityStreamsClosedProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsOneOf returns the "oneOf" property if it exists, and - // nil otherwise. - GetActivityStreamsOneOf() ActivityStreamsOneOfProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootVotersCount returns the "votersCount" property if it exists, and - // nil otherwise. - GetTootVotersCount() TootVotersCountProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Question - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Question type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Question is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsQuestion) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAnyOf sets the "anyOf" property. - SetActivityStreamsAnyOf(i ActivityStreamsAnyOfProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsClosed sets the "closed" property. - SetActivityStreamsClosed(i ActivityStreamsClosedProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsOneOf sets the "oneOf" property. - SetActivityStreamsOneOf(i ActivityStreamsOneOfProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootVotersCount sets the "votersCount" property. - SetTootVotersCount(i TootVotersCountProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_read_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_read_interface.go deleted file mode 100644 index b8eba8099..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_read_interface.go +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has read the object. -// -// Example 33 (https://www.w3.org/TR/activitystreams-vocabulary/#ex164-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/posts/1", -// "summary": "Sally read a blog post", -// "type": "Read" -// } -type ActivityStreamsRead interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Read type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Read type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Read is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsRead) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_reject_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_reject_interface.go deleted file mode 100644 index 498ed0799..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_reject_interface.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is rejecting the object. The target and origin -// typically have no defined meaning. -// -// Example 25 (https://www.w3.org/TR/activitystreams-vocabulary/#ex26-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally rejected an invitation to a party", -// "type": "Reject" -// } -type ActivityStreamsReject interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Reject - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Reject type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Reject is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsReject) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go deleted file mode 100644 index 20b6d2b0a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go +++ /dev/null @@ -1,229 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Describes a relationship between two individuals. The subject and object -// properties are used to identify the connected individuals. See 5.2 -// Representing Relationships Between Entities for additional information. -// -// Example 47 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22-jsonld): -// -// { -// "object": { -// "name": "John", -// "type": "Person" -// }, -// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf", -// "subject": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally is an acquaintance of John", -// "type": "Relationship" -// } -type ActivityStreamsRelationship interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsRelationship returns the "relationship" property if - // it exists, and nil otherwise. - GetActivityStreamsRelationship() ActivityStreamsRelationshipProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSubject returns the "subject" property if it exists, - // and nil otherwise. - GetActivityStreamsSubject() ActivityStreamsSubjectProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // Relationship type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Relationship type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Relationship is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsRelationship) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsRelationship sets the "relationship" property. - SetActivityStreamsRelationship(i ActivityStreamsRelationshipProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSubject sets the "subject" property. - SetActivityStreamsSubject(i ActivityStreamsSubjectProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_remove_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_remove_interface.go deleted file mode 100644 index cc50e7cc6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_remove_interface.go +++ /dev/null @@ -1,261 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is removing the object. If specified, the origin -// indicates the context from which the object is being removed. -// -// Example 27 (https://www.w3.org/TR/activitystreams-vocabulary/#ex28-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally removed a note from her notes folder", -// "target": { -// "name": "Notes Folder", -// "type": "Collection" -// }, -// "type": "Remove" -// } -// -// Example 28 (https://www.w3.org/TR/activitystreams-vocabulary/#ex29-jsonld): -// -// { -// "actor": { -// "name": "The Moderator", -// "type": "http://example.org/Role" -// }, -// "object": { -// "name": "Sally", -// "type": "Person" -// }, -// "origin": { -// "name": "A Simple Group", -// "type": "Group" -// }, -// "summary": "The moderator removed Sally from a group", -// "type": "Remove" -// } -type ActivityStreamsRemove interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Remove - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Remove type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Remove is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsRemove) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_service_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_service_interface.go deleted file mode 100644 index fb21b5c21..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_service_interface.go +++ /dev/null @@ -1,286 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a service of any kind. -// -// Example 46 (https://www.w3.org/TR/activitystreams-vocabulary/#ex42-jsonld): -// -// { -// "name": "Acme Web Service", -// "type": "Service" -// } -type ActivityStreamsService interface { - // GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it - // exists, and nil otherwise. - GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsEndpoints returns the "endpoints" property if it - // exists, and nil otherwise. - GetActivityStreamsEndpoints() ActivityStreamsEndpointsProperty - // GetActivityStreamsFollowers returns the "followers" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowers() ActivityStreamsFollowersProperty - // GetActivityStreamsFollowing returns the "following" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowing() ActivityStreamsFollowingProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInbox returns the "inbox" property if it exists, and - // nil otherwise. - GetActivityStreamsInbox() ActivityStreamsInboxProperty - // GetActivityStreamsLiked returns the "liked" property if it exists, and - // nil otherwise. - GetActivityStreamsLiked() ActivityStreamsLikedProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsManuallyApprovesFollowers returns the - // "manuallyApprovesFollowers" property if it exists, and nil - // otherwise. - GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsMovedTo returns the "movedTo" property if it exists, - // and nil otherwise. - GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOutbox returns the "outbox" property if it exists, - // and nil otherwise. - GetActivityStreamsOutbox() ActivityStreamsOutboxProperty - // GetActivityStreamsPreferredUsername returns the "preferredUsername" - // property if it exists, and nil otherwise. - GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsStreams returns the "streams" property if it exists, - // and nil otherwise. - GetActivityStreamsStreams() ActivityStreamsStreamsProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootDiscoverable returns the "discoverable" property if it exists, - // and nil otherwise. - GetTootDiscoverable() TootDiscoverableProperty - // GetTootFeatured returns the "featured" property if it exists, and nil - // otherwise. - GetTootFeatured() TootFeaturedProperty - // GetTootIndexable returns the "indexable" property if it exists, and nil - // otherwise. - GetTootIndexable() TootIndexableProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Service - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty - // IsExtending returns true if the Service type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Service is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsService) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property. - SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsEndpoints sets the "endpoints" property. - SetActivityStreamsEndpoints(i ActivityStreamsEndpointsProperty) - // SetActivityStreamsFollowers sets the "followers" property. - SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) - // SetActivityStreamsFollowing sets the "following" property. - SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInbox sets the "inbox" property. - SetActivityStreamsInbox(i ActivityStreamsInboxProperty) - // SetActivityStreamsLiked sets the "liked" property. - SetActivityStreamsLiked(i ActivityStreamsLikedProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsManuallyApprovesFollowers sets the - // "manuallyApprovesFollowers" property. - SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsMovedTo sets the "movedTo" property. - SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOutbox sets the "outbox" property. - SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) - // SetActivityStreamsPreferredUsername sets the "preferredUsername" - // property. - SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsStreams sets the "streams" property. - SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootDiscoverable sets the "discoverable" property. - SetTootDiscoverable(i TootDiscoverableProperty) - // SetTootFeatured sets the "featured" property. - SetTootFeatured(i TootFeaturedProperty) - // SetTootIndexable sets the "indexable" property. - SetTootIndexable(i TootIndexableProperty) - // SetW3IDSecurityV1PublicKey sets the "publicKey" property. - SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go deleted file mode 100644 index 0483ec2fd..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A specialization of Accept indicating that the acceptance is tentative. -// -// Example 11 (https://www.w3.org/TR/activitystreams-vocabulary/#ex8-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally tentatively accepted an invitation to a party", -// "type": "TentativeAccept" -// } -type ActivityStreamsTentativeAccept interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // TentativeAccept type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the TentativeAccept type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this TentativeAccept is lesser, with an arbitrary - // but stable determination. - LessThan(o ActivityStreamsTentativeAccept) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go deleted file mode 100644 index e21d5659d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A specialization of Reject in which the rejection is considered tentative. -// -// Example 26 (https://www.w3.org/TR/activitystreams-vocabulary/#ex27-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally tentatively rejected an invitation to a party", -// "type": "TentativeReject" -// } -type ActivityStreamsTentativeReject interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // TentativeReject type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the TentativeReject type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this TentativeReject is lesser, with an arbitrary - // but stable determination. - LessThan(o ActivityStreamsTentativeReject) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go deleted file mode 100644 index f8d343905..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A Tombstone represents a content object that has been deleted. It can be used -// in Collections to signify that there used to be an object at this position, -// but it has been deleted. -// -// Example 60 (https://www.w3.org/TR/activitystreams-vocabulary/#ex184b-jsonld): -// -// { -// "name": "Vacation photos 2016", -// "orderedItems": [ -// { -// "id": "http://image.example/1", -// "type": "Image" -// }, -// { -// "deleted": "2016-03-17T00:00:00Z", -// "formerType": "/Image", -// "id": "http://image.example/2", -// "type": "Tombstone" -// }, -// { -// "id": "http://image.example/3", -// "type": "Image" -// } -// ], -// "totalItems": 3, -// "type": "OrderedCollection" -// } -type ActivityStreamsTombstone interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDeleted returns the "deleted" property if it exists, - // and nil otherwise. - GetActivityStreamsDeleted() ActivityStreamsDeletedProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFormerType returns the "formerType" property if it - // exists, and nil otherwise. - GetActivityStreamsFormerType() ActivityStreamsFormerTypeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Tombstone - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Tombstone type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Tombstone is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsTombstone) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDeleted sets the "deleted" property. - SetActivityStreamsDeleted(i ActivityStreamsDeletedProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFormerType sets the "formerType" property. - SetActivityStreamsFormerType(i ActivityStreamsFormerTypeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_travel_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_travel_interface.go deleted file mode 100644 index afbbf2928..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_travel_interface.go +++ /dev/null @@ -1,241 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is traveling to target from origin. Travel is an -// IntransitiveActivity whose actor specifies the direct object. If the target -// or origin are not specified, either can be determined by context. -// -// Example 35 (https://www.w3.org/TR/activitystreams-vocabulary/#ex169-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "origin": { -// "name": "Work", -// "type": "Place" -// }, -// "summary": "Sally went home from work", -// "target": { -// "name": "Home", -// "type": "Place" -// }, -// "type": "Travel" -// } -type ActivityStreamsTravel interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Travel - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Travel type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Travel is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsTravel) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_undo_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_undo_interface.go deleted file mode 100644 index d7f46a77e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_undo_interface.go +++ /dev/null @@ -1,243 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is undoing the object. In most cases, the object will -// be an Activity describing some previously performed action (for instance, a -// person may have previously "liked" an article but, for whatever reason, -// might choose to undo that like at some later point in time). The target and -// origin typically have no defined meaning. -// -// Example 29 (https://www.w3.org/TR/activitystreams-vocabulary/#ex32-jsonld): -// -// { -// "actor": "http://sally.example.org", -// "object": { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "target": "http://john.example.org", -// "type": "Offer" -// }, -// "summary": "Sally retracted her offer to John", -// "type": "Undo" -// } -type ActivityStreamsUndo interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Undo type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Undo type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Undo is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsUndo) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_update_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_update_interface.go deleted file mode 100644 index 55421447a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_update_interface.go +++ /dev/null @@ -1,240 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has updated the object. Note, however, that this -// vocabulary does not define a mechanism for describing the actual set of -// modifications made to object. The target and origin typically have no -// defined meaning. -// -// Example 30 (https://www.w3.org/TR/activitystreams-vocabulary/#ex33-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally updated her note", -// "type": "Update" -// } -type ActivityStreamsUpdate interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Update - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Update type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Update is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsUpdate) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_video_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_video_interface.go deleted file mode 100644 index c42dd635a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_video_interface.go +++ /dev/null @@ -1,229 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a video document of any kind. -// -// Example 52 (https://www.w3.org/TR/activitystreams-vocabulary/#ex51-jsonld): -// -// { -// "duration": "PT2H", -// "name": "Puppy Plays With Ball", -// "type": "Video", -// "url": "http://example.org/video.mkv" -// } -type ActivityStreamsVideo interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, - // and nil otherwise. - GetGoToSocialApprovedBy() GoToSocialApprovedByProperty - // GetGoToSocialInteractionPolicy returns the "interactionPolicy" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootBlurhash returns the "blurhash" property if it exists, and nil - // otherwise. - GetTootBlurhash() TootBlurhashProperty - // GetTootFocalPoint returns the "focalPoint" property if it exists, and - // nil otherwise. - GetTootFocalPoint() TootFocalPointProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Video type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Video type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Video is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsVideo) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialApprovedBy sets the "approvedBy" property. - SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty) - // SetGoToSocialInteractionPolicy sets the "interactionPolicy" property. - SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootBlurhash sets the "blurhash" property. - SetTootBlurhash(i TootBlurhashProperty) - // SetTootFocalPoint sets the "focalPoint" property. - SetTootFocalPoint(i TootFocalPointProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_view_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_view_interface.go deleted file mode 100644 index 2d3a1199f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_activitystreams_view_interface.go +++ /dev/null @@ -1,240 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has viewed the object. -// -// Example 31 (https://www.w3.org/TR/activitystreams-vocabulary/#ex161-jsonld): -// -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "What You Should Know About Activity Streams", -// "type": "Article" -// }, -// "summary": "Sally read an article", -// "type": "View" -// } -type ActivityStreamsView interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the View type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the View type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this View is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsView) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_album_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_album_interface.go deleted file mode 100644 index e07f5be05..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_album_interface.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type FunkwhaleAlbum interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Album type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Album type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Album is lesser, with an arbitrary but stable - // determination. - LessThan(o FunkwhaleAlbum) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_artist_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_artist_interface.go deleted file mode 100644 index 1ed43d51a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_artist_interface.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type FunkwhaleArtist interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Artist - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Artist type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Artist is lesser, with an arbitrary but - // stable determination. - LessThan(o FunkwhaleArtist) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_library_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_library_interface.go deleted file mode 100644 index cd878ab74..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_library_interface.go +++ /dev/null @@ -1,200 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type FunkwhaleLibrary interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Library - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Library type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Library is lesser, with an arbitrary but - // stable determination. - LessThan(o FunkwhaleLibrary) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_track_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_track_interface.go deleted file mode 100644 index ac0509c09..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_track_interface.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type FunkwhaleTrack interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Track type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Track type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Track is lesser, with an arbitrary but stable - // determination. - LessThan(o FunkwhaleTrack) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go deleted file mode 100644 index 576b4efe9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceapproval_interface.go +++ /dev/null @@ -1,201 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// DEPRECATED: Use `AnnounceAuthorization` instead. -type GoToSocialAnnounceApproval interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // AnnounceApproval type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the AnnounceApproval type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this AnnounceApproval is lesser, with an arbitrary - // but stable determination. - LessThan(o GoToSocialAnnounceApproval) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go deleted file mode 100644 index 7e08fe47a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announceauthorization_interface.go +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type GoToSocialAnnounceAuthorization interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialInteractingObject returns the "interactingObject" property - // if it exists, and nil otherwise. - GetGoToSocialInteractingObject() GoToSocialInteractingObjectProperty - // GetGoToSocialInteractionTarget returns the "interactionTarget" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionTarget() GoToSocialInteractionTargetProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // AnnounceAuthorization type. Note that this should not be used by - // app developers. It is only used to help determine which - // implementation is LessThan the other. Developers who are creating a - // different implementation of this type's interface can use this - // method in their LessThan implementation, but routine ActivityPub - // applications should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the AnnounceAuthorization type extends from - // the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this AnnounceAuthorization is lesser, with an - // arbitrary but stable determination. - LessThan(o GoToSocialAnnounceAuthorization) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialInteractingObject sets the "interactingObject" property. - SetGoToSocialInteractingObject(i GoToSocialInteractingObjectProperty) - // SetGoToSocialInteractionTarget sets the "interactionTarget" property. - SetGoToSocialInteractionTarget(i GoToSocialInteractionTargetProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go deleted file mode 100644 index 599ac798b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_announcerequest_interface.go +++ /dev/null @@ -1,225 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type GoToSocialAnnounceRequest interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // AnnounceRequest type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the AnnounceRequest type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this AnnounceRequest is lesser, with an arbitrary - // but stable determination. - LessThan(o GoToSocialAnnounceRequest) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go deleted file mode 100644 index e80c483bb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type GoToSocialCanAnnounce interface { - // GetGoToSocialAlways returns the "always" property if it exists, and nil - // otherwise. - GetGoToSocialAlways() GoToSocialAlwaysProperty - // GetGoToSocialApprovalRequired returns the "approvalRequired" property - // if it exists, and nil otherwise. - GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty - // GetGoToSocialAutomaticApproval returns the "automaticApproval" property - // if it exists, and nil otherwise. - GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty - // GetGoToSocialManualApproval returns the "manualApproval" property if it - // exists, and nil otherwise. - GetGoToSocialManualApproval() GoToSocialManualApprovalProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the CanAnnounce - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the CanAnnounce type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this CanAnnounce is lesser, with an arbitrary but - // stable determination. - LessThan(o GoToSocialCanAnnounce) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetGoToSocialAlways sets the "always" property. - SetGoToSocialAlways(i GoToSocialAlwaysProperty) - // SetGoToSocialApprovalRequired sets the "approvalRequired" property. - SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) - // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. - SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) - // SetGoToSocialManualApproval sets the "manualApproval" property. - SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go deleted file mode 100644 index e417bd4f0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type GoToSocialCanLike interface { - // GetGoToSocialAlways returns the "always" property if it exists, and nil - // otherwise. - GetGoToSocialAlways() GoToSocialAlwaysProperty - // GetGoToSocialApprovalRequired returns the "approvalRequired" property - // if it exists, and nil otherwise. - GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty - // GetGoToSocialAutomaticApproval returns the "automaticApproval" property - // if it exists, and nil otherwise. - GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty - // GetGoToSocialManualApproval returns the "manualApproval" property if it - // exists, and nil otherwise. - GetGoToSocialManualApproval() GoToSocialManualApprovalProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the CanLike - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the CanLike type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this CanLike is lesser, with an arbitrary but - // stable determination. - LessThan(o GoToSocialCanLike) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetGoToSocialAlways sets the "always" property. - SetGoToSocialAlways(i GoToSocialAlwaysProperty) - // SetGoToSocialApprovalRequired sets the "approvalRequired" property. - SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) - // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. - SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) - // SetGoToSocialManualApproval sets the "manualApproval" property. - SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go deleted file mode 100644 index 98e09421c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canquote_interface.go +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type GoToSocialCanQuote interface { - // GetGoToSocialAlways returns the "always" property if it exists, and nil - // otherwise. - GetGoToSocialAlways() GoToSocialAlwaysProperty - // GetGoToSocialApprovalRequired returns the "approvalRequired" property - // if it exists, and nil otherwise. - GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty - // GetGoToSocialAutomaticApproval returns the "automaticApproval" property - // if it exists, and nil otherwise. - GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty - // GetGoToSocialManualApproval returns the "manualApproval" property if it - // exists, and nil otherwise. - GetGoToSocialManualApproval() GoToSocialManualApprovalProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the CanQuote - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the CanQuote type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this CanQuote is lesser, with an arbitrary but - // stable determination. - LessThan(o GoToSocialCanQuote) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetGoToSocialAlways sets the "always" property. - SetGoToSocialAlways(i GoToSocialAlwaysProperty) - // SetGoToSocialApprovalRequired sets the "approvalRequired" property. - SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) - // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. - SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) - // SetGoToSocialManualApproval sets the "manualApproval" property. - SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go deleted file mode 100644 index 2a0db5448..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type GoToSocialCanReply interface { - // GetGoToSocialAlways returns the "always" property if it exists, and nil - // otherwise. - GetGoToSocialAlways() GoToSocialAlwaysProperty - // GetGoToSocialApprovalRequired returns the "approvalRequired" property - // if it exists, and nil otherwise. - GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty - // GetGoToSocialAutomaticApproval returns the "automaticApproval" property - // if it exists, and nil otherwise. - GetGoToSocialAutomaticApproval() GoToSocialAutomaticApprovalProperty - // GetGoToSocialManualApproval returns the "manualApproval" property if it - // exists, and nil otherwise. - GetGoToSocialManualApproval() GoToSocialManualApprovalProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the CanReply - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the CanReply type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this CanReply is lesser, with an arbitrary but - // stable determination. - LessThan(o GoToSocialCanReply) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetGoToSocialAlways sets the "always" property. - SetGoToSocialAlways(i GoToSocialAlwaysProperty) - // SetGoToSocialApprovalRequired sets the "approvalRequired" property. - SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty) - // SetGoToSocialAutomaticApproval sets the "automaticApproval" property. - SetGoToSocialAutomaticApproval(i GoToSocialAutomaticApprovalProperty) - // SetGoToSocialManualApproval sets the "manualApproval" property. - SetGoToSocialManualApproval(i GoToSocialManualApprovalProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go deleted file mode 100644 index a2497a44a..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// InteractionPolicy for an ActivityStreams Object. -type GoToSocialInteractionPolicy interface { - // GetGoToSocialCanAnnounce returns the "canAnnounce" property if it - // exists, and nil otherwise. - GetGoToSocialCanAnnounce() GoToSocialCanAnnounceProperty - // GetGoToSocialCanLike returns the "canLike" property if it exists, and - // nil otherwise. - GetGoToSocialCanLike() GoToSocialCanLikeProperty - // GetGoToSocialCanQuote returns the "canQuote" property if it exists, and - // nil otherwise. - GetGoToSocialCanQuote() GoToSocialCanQuoteProperty - // GetGoToSocialCanReply returns the "canReply" property if it exists, and - // nil otherwise. - GetGoToSocialCanReply() GoToSocialCanReplyProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // InteractionPolicy type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the InteractionPolicy type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this InteractionPolicy is lesser, with an - // arbitrary but stable determination. - LessThan(o GoToSocialInteractionPolicy) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetGoToSocialCanAnnounce sets the "canAnnounce" property. - SetGoToSocialCanAnnounce(i GoToSocialCanAnnounceProperty) - // SetGoToSocialCanLike sets the "canLike" property. - SetGoToSocialCanLike(i GoToSocialCanLikeProperty) - // SetGoToSocialCanQuote sets the "canQuote" property. - SetGoToSocialCanQuote(i GoToSocialCanQuoteProperty) - // SetGoToSocialCanReply sets the "canReply" property. - SetGoToSocialCanReply(i GoToSocialCanReplyProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go deleted file mode 100644 index 602abef07..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeapproval_interface.go +++ /dev/null @@ -1,201 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// DEPRECATED: Use `LikeAuthorization` instead. -type GoToSocialLikeApproval interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // LikeApproval type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the LikeApproval type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this LikeApproval is lesser, with an arbitrary but - // stable determination. - LessThan(o GoToSocialLikeApproval) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go deleted file mode 100644 index 02e176fb4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likeauthorization_interface.go +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type GoToSocialLikeAuthorization interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialInteractingObject returns the "interactingObject" property - // if it exists, and nil otherwise. - GetGoToSocialInteractingObject() GoToSocialInteractingObjectProperty - // GetGoToSocialInteractionTarget returns the "interactionTarget" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionTarget() GoToSocialInteractionTargetProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // LikeAuthorization type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the LikeAuthorization type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this LikeAuthorization is lesser, with an - // arbitrary but stable determination. - LessThan(o GoToSocialLikeAuthorization) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialInteractingObject sets the "interactingObject" property. - SetGoToSocialInteractingObject(i GoToSocialInteractingObjectProperty) - // SetGoToSocialInteractionTarget sets the "interactionTarget" property. - SetGoToSocialInteractionTarget(i GoToSocialInteractionTargetProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go deleted file mode 100644 index 8490ea228..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_likerequest_interface.go +++ /dev/null @@ -1,225 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type GoToSocialLikeRequest interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the LikeRequest - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the LikeRequest type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this LikeRequest is lesser, with an arbitrary but - // stable determination. - LessThan(o GoToSocialLikeRequest) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go deleted file mode 100644 index 616dcbdf4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyapproval_interface.go +++ /dev/null @@ -1,201 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// DEPRECATED: Use `ReplyAuthorization` instead. -type GoToSocialReplyApproval interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // ReplyApproval type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the ReplyApproval type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this ReplyApproval is lesser, with an arbitrary - // but stable determination. - LessThan(o GoToSocialReplyApproval) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go deleted file mode 100644 index 4d3975153..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyauthorization_interface.go +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type GoToSocialReplyAuthorization interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetGoToSocialInteractingObject returns the "interactingObject" property - // if it exists, and nil otherwise. - GetGoToSocialInteractingObject() GoToSocialInteractingObjectProperty - // GetGoToSocialInteractionTarget returns the "interactionTarget" property - // if it exists, and nil otherwise. - GetGoToSocialInteractionTarget() GoToSocialInteractionTargetProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // ReplyAuthorization type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the ReplyAuthorization type extends from - // the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this ReplyAuthorization is lesser, with an - // arbitrary but stable determination. - LessThan(o GoToSocialReplyAuthorization) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetGoToSocialInteractingObject sets the "interactingObject" property. - SetGoToSocialInteractingObject(i GoToSocialInteractingObjectProperty) - // SetGoToSocialInteractionTarget sets the "interactionTarget" property. - SetGoToSocialInteractionTarget(i GoToSocialInteractionTargetProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go deleted file mode 100644 index b6572c357..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_replyrequest_interface.go +++ /dev/null @@ -1,225 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -type GoToSocialReplyRequest interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // ReplyRequest type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the ReplyRequest type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this ReplyRequest is lesser, with an arbitrary but - // stable determination. - LessThan(o GoToSocialReplyRequest) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go deleted file mode 100644 index 704708474..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_schema_propertyvalue_interface.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A property-value pair, e.g. representing a feature of a product or place. Use -// the 'name' property for the name of the property. -type SchemaPropertyValue interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetSchemaValue returns the "value" property if it exists, and nil - // otherwise. - GetSchemaValue() SchemaValueProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // PropertyValue type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the PropertyValue type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this PropertyValue is lesser, with an arbitrary - // but stable determination. - LessThan(o SchemaPropertyValue) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetSchemaValue sets the "value" property. - SetSchemaValue(i SchemaValueProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_emoji_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_emoji_interface.go deleted file mode 100644 index f7386b8fb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_emoji_interface.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// { -// "content": "Hello world :Kappa:", -// "id": "https://example.com/@alice/hello-world", -// "tag": [ -// { -// "icon": { -// "mediaType": "image/png", -// "type": "Image", -// "url": "https://example.com/files/kappa.png" -// }, -// "id": "https://example.com/emoji/123", -// "name": ":Kappa:", -// "type": "Emoji" -// } -// ], -// "type": "Note" -// } -type TootEmoji interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Emoji type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Emoji type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Emoji is lesser, with an arbitrary but stable - // determination. - LessThan(o TootEmoji) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_hashtag_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_hashtag_interface.go deleted file mode 100644 index f9fe3420e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_hashtag_interface.go +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// { -// "content": "example", -// "id": "https://example.com/@alice/hello-world", -// "tag": [ -// { -// "href": "https://example.com/hashtag/example", -// "name": "#example", -// "type": "Hashtag" -// } -// ], -// "type": "Note" -// } -type TootHashtag interface { - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsHeight returns the "height" property if it exists, - // and nil otherwise. - GetActivityStreamsHeight() ActivityStreamsHeightProperty - // GetActivityStreamsHref returns the "href" property if it exists, and - // nil otherwise. - GetActivityStreamsHref() ActivityStreamsHrefProperty - // GetActivityStreamsHreflang returns the "hreflang" property if it - // exists, and nil otherwise. - GetActivityStreamsHreflang() ActivityStreamsHreflangProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsRel returns the "rel" property if it exists, and nil - // otherwise. - GetActivityStreamsRel() ActivityStreamsRelProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsWidth returns the "width" property if it exists, and - // nil otherwise. - GetActivityStreamsWidth() ActivityStreamsWidthProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Hashtag - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Hashtag type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Hashtag is lesser, with an arbitrary but - // stable determination. - LessThan(o TootHashtag) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsHeight sets the "height" property. - SetActivityStreamsHeight(i ActivityStreamsHeightProperty) - // SetActivityStreamsHref sets the "href" property. - SetActivityStreamsHref(i ActivityStreamsHrefProperty) - // SetActivityStreamsHreflang sets the "hreflang" property. - SetActivityStreamsHreflang(i ActivityStreamsHreflangProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsRel sets the "rel" property. - SetActivityStreamsRel(i ActivityStreamsRelProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsWidth sets the "width" property. - SetActivityStreamsWidth(i ActivityStreamsWidthProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_identityproof_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_identityproof_interface.go deleted file mode 100644 index e8fee3044..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_toot_identityproof_interface.go +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// null -type TootIdentityProof interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsSensitive returns the "sensitive" property if it - // exists, and nil otherwise. - GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootSignatureAlgorithm returns the "signatureAlgorithm" property if - // it exists, and nil otherwise. - GetTootSignatureAlgorithm() TootSignatureAlgorithmProperty - // GetTootSignatureValue returns the "signatureValue" property if it - // exists, and nil otherwise. - GetTootSignatureValue() TootSignatureValueProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // IdentityProof type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the IdentityProof type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this IdentityProof is lesser, with an arbitrary - // but stable determination. - LessThan(o TootIdentityProof) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsSensitive sets the "sensitive" property. - SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootSignatureAlgorithm sets the "signatureAlgorithm" property. - SetTootSignatureAlgorithm(i TootSignatureAlgorithmProperty) - // SetTootSignatureValue sets the "signatureValue" property. - SetTootSignatureValue(i TootSignatureValueProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go deleted file mode 100644 index 7b6b7ffb8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A public key represents a public cryptographical key for a user -type W3IDSecurityV1PublicKey interface { - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the PublicKey - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1Owner returns the "owner" property if it exists, and - // nil otherwise. - GetW3IDSecurityV1Owner() W3IDSecurityV1OwnerProperty - // GetW3IDSecurityV1PublicKeyPem returns the "publicKeyPem" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKeyPem() W3IDSecurityV1PublicKeyPemProperty - // IsExtending returns true if the PublicKey type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this PublicKey is lesser, with an arbitrary but - // stable determination. - LessThan(o W3IDSecurityV1PublicKey) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetW3IDSecurityV1Owner sets the "owner" property. - SetW3IDSecurityV1Owner(i W3IDSecurityV1OwnerProperty) - // SetW3IDSecurityV1PublicKeyPem sets the "publicKeyPem" property. - SetW3IDSecurityV1PublicKeyPem(i W3IDSecurityV1PublicKeyPemProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/LICENSE b/vendor/codeberg.org/superseriousbusiness/exif-terminator/LICENSE deleted file mode 100644 index dba13ed2d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/README.md b/vendor/codeberg.org/superseriousbusiness/exif-terminator/README.md deleted file mode 100644 index ddb97fbb6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/README.md +++ /dev/null @@ -1,122 +0,0 @@ -# exif-terminator - -`exif-terminator` removes exif data from images (jpeg and png currently supported) in a streaming manner. All you need to do is provide a reader of the image in, and exif-terminator will provide a reader of the image out. - -Hasta la vista, baby! - -```text - .,lddxococ. - ..',lxO0Oo;'. - . .. .,coodO0klc:. - .,. ..','. .. .,..'. .':llxKXk' - .;c:cc;;,... .''.,l:cc. .....:l:,,:oo:.. - .,:ll'. .,;cox0OxOKKXX0kOOxlcld0X0d;,,,'. - .:xkl. .':cdKNWWWWMMMMMMMMMMWWNXK0KWNd. - .coxo,..:ollk0KKXNWMMMMMMMMMMWWXXXOoOM0; - ,oc,. .;cloxOKXXWWMMMMMMMMMMMWNXk;;OWO' - . ..;cdOKXNNWWMMMMMMMMMMMMWO,,ONO' - ...... ....;okOO000XWWMMMMMMMMMWXx;,ONNx. -.;c;. .:l'ckl. ..';looooolldolloooodolcc:;'.;oo:. -.oxl. ;:..OO. .. .. .,' .;. -.oko. .cc.'Ok. .:; .:,..';. -.cdc. .;;lc.,Ox. . .',,'..','. .dN0; .. .c:,,':. -.:oc. ,dxkl.,0x. . .. . .oNMMKc.. ...:l. -.:o:. cKXKl.,Ox. .. .lKWMMMXo,. ...''. -.:l; c0KKo.,0x. ...........';:lk0OKNNXKkl,..,;cxd' -.::' ;k00l.;0d. .. .,cloooddddxxddol;:ddloxdc,:odOWNc -.;,. ,ONKc.;0d. 'l,.. .:clllllllokKOl::cllclkKx'.lolxx' -.,. '0W0:.;0d. .:l,. .,:ccc:::oOXNXOkxdook0NWNx,,;c;. -... .kX0c.;0d. .loc' .,::;;;;lk0kddoooooddooO0o',ld; -.. .oOkk:cKd. .... .;:,',;cxK0o::ldkOkkOkxod:';oKx. -.. :dlOolKO, '::'.';:oOK0xdddoollooxOx::ccOx. -.. ';:o,.xKo. .,;'...';lddolooodkkkdol:,::lc. -.. ...:..oOl. ........';:codxxOXKKKk;':;:kl -.. .,..lOc. .. ....,codxkxxxxxo:,,;lKO. .,;'.. -... .. ck: ';,'. .;:cllloc,;;;colOK; .;odxxoc;. -...,.... . :x; .;:cc;'. .,;::c:'..,kXk:xNc .':oook00x:. - . cKx. .'.. ':clllc,...'';:::cc:;.,kOo:xNx. .'codddoox - .. ,xxl;',col:;. .:cccccc;;;:lxkkOOkdc,,lolcxWO' ;kNKc.' - .,. .c' ':dkO0O; .. .;ccccccc:::cldxkxoll:;oolcdN0:.. .xWNk; - .:' .c',xXNKkOXo .,. .,:cccccllc::lloooolc:;lo:;oXKc,::. .kWWX - ,' .cONMWMWkco, ', .';::ccclolc:llolollcccodo;:KXl..cl,. ;KWN - '. .xWWWWMKc;; ....;' ',;::::coolclloooollc:,:o;;0Xx, .,:;... ,0Ko - . ,kKNWWXd,cdd0NXKk:,;;;'';::::coollllllllllc;;ccl0Nkc. ..';loOx' - 'lxXWMXOOXNMMMMWWNNNWXkc;;;;;:cllccccccccc::lllkNWXd,. .cxO0Ol' - ,xKNWWXkkXWM0dxKNWWWMWNX0OOkl;;:c::cccc:,...:oONMMXOo;. :kOkOkl; - .;,;:;...,::. .;lokXKKNMMMWNOc,;;;,::;'...lOKNWNKkol:,..cKdcO0do - .:;... .. .,:okO0KNN0:.',,''''. ':xNMWKkxxOKXd,.cNk,:l:o -``` - -## Why? - -Exif removal is a pain in the arse. Most other libraries seem to parse the whole image into memory, then remove the exif data, then encode the image again. - -`exif-terminator` differs in that it removes exif data *while scanning through the image bytes*, and it doesn't do any reencoding of the image. Bytes of exif data are simply all set to 0, and the image data is piped back out again into the returned reader. - -The only exception is orientation data: if an image contains orientation data, this and only this data will be preserved since it's *actually useful*. - -## Example - -You can run the following example with `go run ./example/main.go`: - -```go -package main - -import ( - "io" - "os" - - terminator "codeberg.org/superseriousbusiness/exif-terminator" -) - -func main() { - // open a file - sloth, err := os.Open("./images/sloth.jpg") - if err != nil { - panic(err) - } - defer sloth.Close() - - // get the length of the file - stat, err := sloth.Stat() - if err != nil { - panic(err) - } - - // terminate! - out, err := terminator.Terminate(sloth, int(stat.Size()), "jpeg") - if err != nil { - panic(err) - } - - // read the bytes from the reader - b, err := io.ReadAll(out) - if err != nil { - panic(err) - } - - // save the file somewhere - if err := os.WriteFile("./images/sloth-clean.jpg", b, 0666); err != nil { - panic(err) - } -} -``` - -## Credits - -### Libraries - -`exif-terminator` borrows heavily from the two [`dsoprea`](https://github.com/dsoprea) libraries credited below. In fact, it's basically a hack on top of those libraries. Thanks `dsoprea`! - -- [dsoprea/go-exif](https://github.com/dsoprea/go-exif): exif header reconstruction. [MIT License](https://spdx.org/licenses/MIT.html). -- [dsoprea/go-jpeg-image-structure](https://github.com/dsoprea/go-jpeg-image-structure): jpeg structure parsing. [MIT License](https://spdx.org/licenses/MIT.html). -- [dsoprea/go-png-image-structure](https://github.com/dsoprea/go-png-image-structure): png structure parsing. [MIT License](https://spdx.org/licenses/MIT.html). -- [stretchr/testify](https://github.com/stretchr/testify); test framework. [MIT License](https://spdx.org/licenses/MIT.html). - -## License - -![the gnu AGPL logo](https://www.gnu.org/graphics/agplv3-155x51.png) - -`exif-terminator` is free software, licensed under the [GNU AGPL v3 LICENSE](LICENSE). - -Copyright (C) 2022-2024 SuperSeriousBusiness. diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/exif.go b/vendor/codeberg.org/superseriousbusiness/exif-terminator/exif.go deleted file mode 100644 index 02dacc654..000000000 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/exif.go +++ /dev/null @@ -1,53 +0,0 @@ -/* - exif-terminator - Copyright (C) 2022 SuperSeriousBusiness admin@gotosocial.org - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -package terminator - -import ( - "strings" - - exif "github.com/dsoprea/go-exif/v3" - exifcommon "github.com/dsoprea/go-exif/v3/common" -) - -type withEXIF interface { - Exif() (rootIfd *exif.Ifd, data []byte, err error) - SetExif(ib *exif.IfdBuilder) (err error) -} - -func terminateEXIF(data withEXIF) error { - ifd, _, err := data.Exif() - if err != nil { - if strings.Contains(err.Error(), "no exif data") { - err = nil - } - return err - } - - ifdb := exif.NewIfdBuilderFromExistingChain(ifd) - orientation, _ := ifdb.FindTagWithName("Orientation") - - im, ti := exifcommon.NewIfdMapping(), exif.NewTagIndex() - ifdb = exif.NewIfdBuilder(im, ti, ifd.IfdIdentity(), ifd.ByteOrder()) - - if orientation != nil { - ifdb.Add(orientation) - } - - return data.SetExif(ifdb) -} diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/jpeg.go b/vendor/codeberg.org/superseriousbusiness/exif-terminator/jpeg.go deleted file mode 100644 index 25b21e3c5..000000000 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/jpeg.go +++ /dev/null @@ -1,132 +0,0 @@ -/* - exif-terminator - Copyright (C) 2022 SuperSeriousBusiness admin@gotosocial.org - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -package terminator - -import ( - "encoding/binary" - "fmt" - "io" - - jpegstructure "codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2" -) - -var markerLen = map[byte]int{ - 0x00: 0, - 0x01: 0, - 0xd0: 0, - 0xd1: 0, - 0xd2: 0, - 0xd3: 0, - 0xd4: 0, - 0xd5: 0, - 0xd6: 0, - 0xd7: 0, - 0xd8: 0, - 0xd9: 0, - 0xda: 0, - - // J2C - 0x30: 0, - 0x31: 0, - 0x32: 0, - 0x33: 0, - 0x34: 0, - 0x35: 0, - 0x36: 0, - 0x37: 0, - 0x38: 0, - 0x39: 0, - 0x3a: 0, - 0x3b: 0, - 0x3c: 0, - 0x3d: 0, - 0x3e: 0, - 0x3f: 0, - 0x4f: 0, - 0x92: 0, - 0x93: 0, - - // J2C extensions - 0x74: 4, - 0x75: 4, - 0x77: 4, -} - -type jpegVisitor struct { - js *jpegstructure.JpegSplitter - writer io.Writer -} - -// HandleSegment satisfies the visitor interface{} of the jpegstructure library. -// -// We don't really care about many of the parameters, since all we're interested -// in here is the very last segment that was scanned. -func (v *jpegVisitor) HandleSegment(segmentMarker byte, _ string, _ int, _ bool) error { - segmentList := v.js.Segments() - segments := segmentList.Segments() - mostRecentSegment := segments[len(segments)-1] - return v.writeSegment(mostRecentSegment) -} - -func (v *jpegVisitor) writeSegment(s *jpegstructure.Segment) error { - w := v.writer - - defer func() { - // whatever happens, when we finished then evict data from the segment; - // once we've written it we don't want it in memory anymore - s.Data = nil - }() - - if s.IsExif() { - // Segment contains exif data, terminate! - if err := terminateEXIF(s); err != nil { - return err - } - } - - // The scan-data will have a marker-ID of (0) because it doesn't have a marker-ID or length. - if s.MarkerId != 0 { - _, err := w.Write([]byte{0xff, s.MarkerId}) - if err != nil { - return err - } - - sizeLen, found := markerLen[s.MarkerId] - if !found || sizeLen == 2 { - l := uint16(len(s.Data) + 2) - b := make([]byte, 2) - binary.BigEndian.PutUint16(b, l) - if _, err := w.Write(b); err != nil { - return err - } - } else if sizeLen == 4 { - l := uint32(len(s.Data) + 4) - b := make([]byte, 4) - binary.BigEndian.PutUint32(b, l) - if _, err := w.Write(b); err != nil { - return err - } - } else if sizeLen != 0 { - return fmt.Errorf("not a supported marker-size: MARKER-ID=(0x%02x) MARKER-SIZE-LEN=(%d)", s.MarkerId, sizeLen) - } - } - - _, err := w.Write(s.Data) - return err -} diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/png.go b/vendor/codeberg.org/superseriousbusiness/exif-terminator/png.go deleted file mode 100644 index a8245271c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/png.go +++ /dev/null @@ -1,85 +0,0 @@ -/* - exif-terminator - Copyright (C) 2022 SuperSeriousBusiness admin@gotosocial.org - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -package terminator - -import ( - "io" - - pngstructure "codeberg.org/superseriousbusiness/go-png-image-structure/v2" -) - -type pngVisitor struct { - ps *pngstructure.PngSplitter - writer io.Writer - lastWrittenChunk int -} - -func (v *pngVisitor) split(data []byte, atEOF bool) (int, []byte, error) { - // execute the ps split function to read in data - advance, token, err := v.ps.Split(data, atEOF) - if err != nil { - return advance, token, err - } - - // if we haven't written anything at all yet, then - // write the png header back into the writer first - if v.lastWrittenChunk == -1 { - if _, err := v.writer.Write(pngstructure.PngSignature[:]); err != nil { - return advance, token, err - } - } - - // Check if the splitter now has - // any new chunks in it for us. - chunkSlice, err := v.ps.Chunks() - if err != nil { - return advance, token, err - } - - // Write each chunk by passing it - // through our custom write func, - // which strips out exif and fixes - // the CRC of each chunk. - chunks := chunkSlice.Chunks() - for i := v.lastWrittenChunk + 1; i < len(chunks); i++ { - chunk := chunks[i] - - if chunk.Type == pngstructure.EXifChunkType { - // Finally, some exif data! Terminate it!! - if err := terminateEXIF(chunkSlice); err != nil { - return advance, token, err - } - - // Update chunk crc. - chunk.UpdateCrc32() - } - - // Write this new chunk. - if _, err := chunk.WriteTo(v.writer); err != nil { - return advance, token, err - } - v.lastWrittenChunk = i - - // Zero data; here you - // go garbage collector. - chunk.Data = nil - } - - return advance, token, err -} diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/terminator.go b/vendor/codeberg.org/superseriousbusiness/exif-terminator/terminator.go deleted file mode 100644 index 8e4976631..000000000 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/terminator.go +++ /dev/null @@ -1,146 +0,0 @@ -/* - exif-terminator - Copyright (C) 2022 SuperSeriousBusiness admin@gotosocial.org - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -package terminator - -import ( - "bufio" - "bytes" - "errors" - "fmt" - "io" - - jpegstructure "codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2" - pngstructure "codeberg.org/superseriousbusiness/go-png-image-structure/v2" -) - -func Terminate(in io.Reader, mediaType string) (io.Reader, error) { - // To avoid keeping too much stuff - // in memory we want to pipe data - // directly to the reader. - pr, pw := io.Pipe() - - // Setup scanner to terminate exif into pipe writer. - scanner, err := terminatingScanner(pw, in, mediaType) - if err != nil { - _ = pw.Close() - return nil, err - } - - go func() { - var err error - - defer func() { - // Always close writer, using returned - // scanner error (if any). If err is nil - // then the standard io.EOF will be used. - // (this will not overwrite existing). - pw.CloseWithError(err) - }() - - // Scan through input. - for scanner.Scan() { - } - - // Set error on return. - err = scanner.Err() - }() - - return pr, nil -} - -func TerminateInto(out io.Writer, in io.Reader, mediaType string) error { - // Setup scanner to terminate exif from 'in' to 'out'. - scanner, err := terminatingScanner(out, in, mediaType) - if err != nil { - return err - } - - // Scan through input. - for scanner.Scan() { - } - - // Return scan errors. - return scanner.Err() -} - -func terminatingScanner(out io.Writer, in io.Reader, mediaType string) (*bufio.Scanner, error) { - scanner := bufio.NewScanner(in) - - // 40mb buffer size should be enough - // to scan through most file chunks - // without running into issues, they're - // usually chunked smaller than this... - scanner.Buffer(nil, 40*1024*1024) - - switch mediaType { - case "image/jpeg", "jpeg", "jpg": - v := &jpegVisitor{ - writer: out, - } - - // Provide the visitor to the splitter so - // that it triggers on every section scan. - js := jpegstructure.NewJpegSplitter(v) - - // The visitor also needs to read back the - // list of segments: for this it needs to - // know what jpeg splitter it's attached to, - // so give it a pointer to the splitter. - v.js = js - - // Jpeg visitor's 'split' function - // satisfies bufio.SplitFunc{}. - scanner.Split(js.Split) - - case "image/webp", "webp": - // Webp visitor's 'split' function - // satisfies bufio.SplitFunc{}. - scanner.Split((&webpVisitor{ - writer: out, - }).split) - - case "image/png", "png": - // For pngs we need to skip the header bytes, so read - // them in and check we're really dealing with a png. - header := make([]byte, len(pngstructure.PngSignature)) - if _, headerError := in.Read(header); headerError != nil { - return nil, headerError - } else if !bytes.Equal(header, pngstructure.PngSignature[:]) { - return nil, errors.New("could not decode png: invalid header") - } - - // Don't bother checking CRC; - // we're overwriting it anyway. - ps := pngstructure.NewPngSplitter() - ps.DoCheckCrc(false) - - // Png visitor's 'split' function - // satisfies bufio.SplitFunc{}. - scanner.Split((&pngVisitor{ - ps: ps, - writer: out, - lastWrittenChunk: -1, - }).split) - - default: - return nil, fmt.Errorf("mediaType %s cannot be processed", mediaType) - } - - return scanner, nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/exif-terminator/webp.go b/vendor/codeberg.org/superseriousbusiness/exif-terminator/webp.go deleted file mode 100644 index b050f38fc..000000000 --- a/vendor/codeberg.org/superseriousbusiness/exif-terminator/webp.go +++ /dev/null @@ -1,109 +0,0 @@ -/* - exif-terminator - Copyright (C) 2022 SuperSeriousBusiness admin@gotosocial.org - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -package terminator - -import ( - "encoding/binary" - "errors" - "io" -) - -const ( - riffHeader = "RIFF" - webpHeader = "WEBP" - exifFourcc = "EXIF" - xmpFourcc = "XMP " -) - -var ( - errNoRiffHeader = errors.New("no RIFF header") - errNoWebpHeader = errors.New("not a WEBP file") - errInvalidChunk = errors.New("invalid chunk") -) - -type webpVisitor struct { - writer io.Writer - doneHeader bool -} - -func (v *webpVisitor) split(data []byte, atEOF bool) (advance int, token []byte, err error) { - // parse/write the header first - if !v.doneHeader { - - // const rifHeaderSize = 12 - if len(data) < 12 { - if atEOF { - err = errNoRiffHeader - } - return - } - - if string(data[:4]) != riffHeader { - err = errNoRiffHeader - return - } - - if string(data[8:12]) != webpHeader { - err = errNoWebpHeader - return - } - - if _, err = v.writer.Write(data[:12]); err != nil { - return - } - - advance += 12 - data = data[12:] - v.doneHeader = true - } - - for { - // need enough for - // fourcc and size - if len(data) < 8 { - return - } - - size := int64(binary.LittleEndian.Uint32(data[4:])) - - if (size & 1) != 0 { - // odd chunk size: - // extra padding byte - size++ - } - - // wait until there is enough - if int64(len(data)) < 8+size { - return - } - - // replace exif/xmp with blank - switch string(data[:4]) { - case exifFourcc, xmpFourcc: - clear(data[8 : 8+size]) - } - - if _, err = v.writer.Write(data[:8+size]); err != nil { - return - } - - advance += 8 + int(size) - data = data[8+size:] - } -} diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/.MODULE_ROOT b/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/.MODULE_ROOT deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/LICENSE b/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/LICENSE deleted file mode 100644 index 163291ed6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/LICENSE +++ /dev/null @@ -1,9 +0,0 @@ -MIT LICENSE - -Copyright 2020 Dustin Oprea - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/README.md b/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/README.md deleted file mode 100644 index 80c68c9f8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/README.md +++ /dev/null @@ -1,7 +0,0 @@ -**Forked from https://github.com/dsoprea/go-jpeg-image-structure** - -## Overview - -Parse raw JPEG data into individual segments of data. You can print or export this data, including hash digests for each. You can also parse/modify the EXIF data and write an updated image. - -EXIF, XMP, and IPTC data can also be extracted. The provided CLI tool can print this data as well. diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/markers.go b/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/markers.go deleted file mode 100644 index a12171bd8..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/markers.go +++ /dev/null @@ -1,212 +0,0 @@ -package jpegstructure - -import ( - "github.com/dsoprea/go-logging" -) - -const ( - // MARKER_SOI marker - MARKER_SOI = 0xd8 - - // MARKER_EOI marker - MARKER_EOI = 0xd9 - - // MARKER_SOS marker - MARKER_SOS = 0xda - - // MARKER_SOD marker - MARKER_SOD = 0x93 - - // MARKER_DQT marker - MARKER_DQT = 0xdb - - // MARKER_APP0 marker - MARKER_APP0 = 0xe0 - - // MARKER_APP1 marker - MARKER_APP1 = 0xe1 - - // MARKER_APP2 marker - MARKER_APP2 = 0xe2 - - // MARKER_APP3 marker - MARKER_APP3 = 0xe3 - - // MARKER_APP4 marker - MARKER_APP4 = 0xe4 - - // MARKER_APP5 marker - MARKER_APP5 = 0xe5 - - // MARKER_APP6 marker - MARKER_APP6 = 0xe6 - - // MARKER_APP7 marker - MARKER_APP7 = 0xe7 - - // MARKER_APP8 marker - MARKER_APP8 = 0xe8 - - // MARKER_APP10 marker - MARKER_APP10 = 0xea - - // MARKER_APP12 marker - MARKER_APP12 = 0xec - - // MARKER_APP13 marker - MARKER_APP13 = 0xed - - // MARKER_APP14 marker - MARKER_APP14 = 0xee - - // MARKER_APP15 marker - MARKER_APP15 = 0xef - - // MARKER_COM marker - MARKER_COM = 0xfe - - // MARKER_CME marker - MARKER_CME = 0x64 - - // MARKER_SIZ marker - MARKER_SIZ = 0x51 - - // MARKER_DHT marker - MARKER_DHT = 0xc4 - - // MARKER_JPG marker - MARKER_JPG = 0xc8 - - // MARKER_DAC marker - MARKER_DAC = 0xcc - - // MARKER_SOF0 marker - MARKER_SOF0 = 0xc0 - - // MARKER_SOF1 marker - MARKER_SOF1 = 0xc1 - - // MARKER_SOF2 marker - MARKER_SOF2 = 0xc2 - - // MARKER_SOF3 marker - MARKER_SOF3 = 0xc3 - - // MARKER_SOF5 marker - MARKER_SOF5 = 0xc5 - - // MARKER_SOF6 marker - MARKER_SOF6 = 0xc6 - - // MARKER_SOF7 marker - MARKER_SOF7 = 0xc7 - - // MARKER_SOF9 marker - MARKER_SOF9 = 0xc9 - - // MARKER_SOF10 marker - MARKER_SOF10 = 0xca - - // MARKER_SOF11 marker - MARKER_SOF11 = 0xcb - - // MARKER_SOF13 marker - MARKER_SOF13 = 0xcd - - // MARKER_SOF14 marker - MARKER_SOF14 = 0xce - - // MARKER_SOF15 marker - MARKER_SOF15 = 0xcf -) - -var ( - jpegLogger = log.NewLogger("jpegstructure.jpeg") - jpegMagicStandard = []byte{0xff, MARKER_SOI, 0xff} - jpegMagic2000 = []byte{0xff, 0x4f, 0xff} - - markerLen = map[byte]int{ - 0x00: 0, - 0x01: 0, - 0xd0: 0, - 0xd1: 0, - 0xd2: 0, - 0xd3: 0, - 0xd4: 0, - 0xd5: 0, - 0xd6: 0, - 0xd7: 0, - 0xd8: 0, - 0xd9: 0, - 0xda: 0, - - // J2C - 0x30: 0, - 0x31: 0, - 0x32: 0, - 0x33: 0, - 0x34: 0, - 0x35: 0, - 0x36: 0, - 0x37: 0, - 0x38: 0, - 0x39: 0, - 0x3a: 0, - 0x3b: 0, - 0x3c: 0, - 0x3d: 0, - 0x3e: 0, - 0x3f: 0, - 0x4f: 0, - 0x92: 0, - 0x93: 0, - - // J2C extensions - 0x74: 4, - 0x75: 4, - 0x77: 4, - } - - markerNames = map[byte]string{ - MARKER_SOI: "SOI", - MARKER_EOI: "EOI", - MARKER_SOS: "SOS", - MARKER_SOD: "SOD", - MARKER_DQT: "DQT", - MARKER_APP0: "APP0", - MARKER_APP1: "APP1", - MARKER_APP2: "APP2", - MARKER_APP3: "APP3", - MARKER_APP4: "APP4", - MARKER_APP5: "APP5", - MARKER_APP6: "APP6", - MARKER_APP7: "APP7", - MARKER_APP8: "APP8", - MARKER_APP10: "APP10", - MARKER_APP12: "APP12", - MARKER_APP13: "APP13", - MARKER_APP14: "APP14", - MARKER_APP15: "APP15", - MARKER_COM: "COM", - MARKER_CME: "CME", - MARKER_SIZ: "SIZ", - - MARKER_DHT: "DHT", - MARKER_JPG: "JPG", - MARKER_DAC: "DAC", - - MARKER_SOF0: "SOF0", - MARKER_SOF1: "SOF1", - MARKER_SOF2: "SOF2", - MARKER_SOF3: "SOF3", - MARKER_SOF5: "SOF5", - MARKER_SOF6: "SOF6", - MARKER_SOF7: "SOF7", - MARKER_SOF9: "SOF9", - MARKER_SOF10: "SOF10", - MARKER_SOF11: "SOF11", - MARKER_SOF13: "SOF13", - MARKER_SOF14: "SOF14", - MARKER_SOF15: "SOF15", - } -) diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/media_parser.go b/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/media_parser.go deleted file mode 100644 index e6fc60bc4..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/media_parser.go +++ /dev/null @@ -1,139 +0,0 @@ -package jpegstructure - -import ( - "bufio" - "bytes" - "image" - "io" - "os" - - "image/jpeg" - - "github.com/dsoprea/go-logging" - "github.com/dsoprea/go-utility/v2/image" -) - -// JpegMediaParser is a `riimage.MediaParser` that knows how to parse JPEG -// images. -type JpegMediaParser struct { -} - -// NewJpegMediaParser returns a new JpegMediaParser. -func NewJpegMediaParser() *JpegMediaParser { - - // TODO(dustin): Add test - - return new(JpegMediaParser) -} - -// Parse parses a JPEG uses an `io.ReadSeeker`. Even if it fails, it will return -// the list of segments encountered prior to the failure. -func (jmp *JpegMediaParser) Parse(rs io.ReadSeeker, size int) (ec riimage.MediaContext, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - s := bufio.NewScanner(rs) - - // Since each segment can be any size, our buffer must allowed to grow as - // large as the file. - buffer := []byte{} - s.Buffer(buffer, size) - - js := NewJpegSplitter(nil) - s.Split(js.Split) - - for s.Scan() != false { - } - - // Always return the segments that were parsed, at least until there was an - // error. - ec = js.Segments() - - log.PanicIf(s.Err()) - - return ec, nil -} - -// ParseFile parses a JPEG file. Even if it fails, it will return the list of -// segments encountered prior to the failure. -func (jmp *JpegMediaParser) ParseFile(filepath string) (ec riimage.MediaContext, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - // TODO(dustin): Add test - - f, err := os.Open(filepath) - log.PanicIf(err) - - defer f.Close() - - stat, err := f.Stat() - log.PanicIf(err) - - size := stat.Size() - - sl, err := jmp.Parse(f, int(size)) - - // Always return the segments that were parsed, at least until there was an - // error. - ec = sl - - log.PanicIf(err) - - return ec, nil -} - -// ParseBytes parses a JPEG byte-slice. Even if it fails, it will return the -// list of segments encountered prior to the failure. -func (jmp *JpegMediaParser) ParseBytes(data []byte) (ec riimage.MediaContext, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - br := bytes.NewReader(data) - - sl, err := jmp.Parse(br, len(data)) - - // Always return the segments that were parsed, at least until there was an - // error. - ec = sl - - log.PanicIf(err) - - return ec, nil -} - -// LooksLikeFormat indicates whether the data looks like a JPEG image. -func (jmp *JpegMediaParser) LooksLikeFormat(data []byte) bool { - if len(data) < 4 { - return false - } - - l := len(data) - if data[0] != 0xff || data[1] != MARKER_SOI || data[l-2] != 0xff || data[l-1] != MARKER_EOI { - return false - } - - return true -} - -// GetImage returns an image.Image-compatible struct. -func (jmp *JpegMediaParser) GetImage(r io.Reader) (img image.Image, err error) { - img, err = jpeg.Decode(r) - log.PanicIf(err) - - return img, nil -} - -var ( - // Enforce interface conformance. - _ riimage.MediaParser = new(JpegMediaParser) -) diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment.go b/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment.go deleted file mode 100644 index 6b433bf1f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment.go +++ /dev/null @@ -1,352 +0,0 @@ -package jpegstructure - -import ( - "bytes" - "errors" - "fmt" - - "crypto/sha1" - "encoding/hex" - - "github.com/dsoprea/go-exif/v3" - "github.com/dsoprea/go-exif/v3/common" - "github.com/dsoprea/go-iptc" - "github.com/dsoprea/go-logging" - "github.com/dsoprea/go-photoshop-info-format" - "github.com/dsoprea/go-utility/v2/image" -) - -const ( - pirIptcImageResourceId = uint16(0x0404) -) - -var ( - // exifPrefix is the prefix found at the top of an EXIF slice. This is JPEG- - // specific. - exifPrefix = []byte{'E', 'x', 'i', 'f', 0, 0} - - xmpPrefix = []byte("http://ns.adobe.com/xap/1.0/\000") - - ps30Prefix = []byte("Photoshop 3.0\000") -) - -var ( - // ErrNoXmp is returned if XMP data was requested but not found. - ErrNoXmp = errors.New("no XMP data") - - // ErrNoIptc is returned if IPTC data was requested but not found. - ErrNoIptc = errors.New("no IPTC data") - - // ErrNoPhotoshopData is returned if Photoshop info was requested but not - // found. - ErrNoPhotoshopData = errors.New("no photoshop data") -) - -// SofSegment has info read from a SOF segment. -type SofSegment struct { - // BitsPerSample is the bits-per-sample. - BitsPerSample byte - - // Width is the image width. - Width uint16 - - // Height is the image height. - Height uint16 - - // ComponentCount is the number of color components. - ComponentCount byte -} - -// String returns a string representation of the SOF segment. -func (ss SofSegment) String() string { - - // TODO(dustin): Add test - - return fmt.Sprintf("SOF", ss.BitsPerSample, ss.Width, ss.Height, ss.ComponentCount) -} - -// SegmentVisitor describes a segment-visitor struct. -type SegmentVisitor interface { - // HandleSegment is triggered for each segment encountered as well as the - // scan-data. - HandleSegment(markerId byte, markerName string, counter int, lastIsScanData bool) error -} - -// SofSegmentVisitor describes a visitor that is only called for each SOF -// segment. -type SofSegmentVisitor interface { - // HandleSof is called for each encountered SOF segment. - HandleSof(sof *SofSegment) error -} - -// Segment describes a single segment. -type Segment struct { - MarkerId byte - MarkerName string - Offset int - Data []byte - - photoshopInfo map[uint16]photoshopinfo.Photoshop30InfoRecord - iptcTags map[iptc.StreamTagKey][]iptc.TagData -} - -// SetExif encodes and sets EXIF data into this segment. -func (s *Segment) SetExif(ib *exif.IfdBuilder) (err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - ibe := exif.NewIfdByteEncoder() - - exifData, err := ibe.EncodeToExif(ib) - log.PanicIf(err) - - l := len(exifPrefix) - - s.Data = make([]byte, l+len(exifData)) - copy(s.Data[0:], exifPrefix) - copy(s.Data[l:], exifData) - - return nil -} - -// Exif returns an `exif.Ifd` instance for the EXIF data we currently have. -func (s *Segment) Exif() (rootIfd *exif.Ifd, data []byte, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - l := len(exifPrefix) - - rawExif := s.Data[l:] - - jpegLogger.Debugf(nil, "Attempting to parse (%d) byte EXIF blob (Exif).", len(rawExif)) - - im, err := exifcommon.NewIfdMappingWithStandard() - log.PanicIf(err) - - ti := exif.NewTagIndex() - - _, index, err := exif.Collect(im, ti, rawExif) - log.PanicIf(err) - - return index.RootIfd, rawExif, nil -} - -// FlatExif parses the EXIF data and just returns a list of tags. -func (s *Segment) FlatExif() (exifTags []exif.ExifTag, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - // TODO(dustin): Add test - - l := len(exifPrefix) - - rawExif := s.Data[l:] - - jpegLogger.Debugf(nil, "Attempting to parse (%d) byte EXIF blob (FlatExif).", len(rawExif)) - - exifTags, _, err = exif.GetFlatExifData(rawExif, nil) - log.PanicIf(err) - - return exifTags, nil -} - -// EmbeddedString returns a string of properties that can be embedded into an -// longer string of properties. -func (s *Segment) EmbeddedString() string { - h := sha1.New() - h.Write(s.Data) - - // TODO(dustin): Add test - - digestString := hex.EncodeToString(h.Sum(nil)) - - return fmt.Sprintf("OFFSET=(0x%08x %10d) ID=(0x%02x) NAME=[%-5s] SIZE=(%10d) SHA1=[%s]", s.Offset, s.Offset, s.MarkerId, markerNames[s.MarkerId], len(s.Data), digestString) -} - -// String returns a descriptive string. -func (s *Segment) String() string { - - // TODO(dustin): Add test - - return fmt.Sprintf("Segment<%s>", s.EmbeddedString()) -} - -// IsExif returns true if EXIF data. -func (s *Segment) IsExif() bool { - if s.MarkerId != MARKER_APP1 { - return false - } - - // TODO(dustin): Add test - - l := len(exifPrefix) - - if len(s.Data) < l { - return false - } - - if bytes.Equal(s.Data[:l], exifPrefix) == false { - return false - } - - return true -} - -// IsXmp returns true if XMP data. -func (s *Segment) IsXmp() bool { - if s.MarkerId != MARKER_APP1 { - return false - } - - // TODO(dustin): Add test - - l := len(xmpPrefix) - - if len(s.Data) < l { - return false - } - - if bytes.Equal(s.Data[:l], xmpPrefix) == false { - return false - } - - return true -} - -// FormattedXmp returns a formatted XML string. This only makes sense for a -// segment comprised of XML data (like XMP). -func (s *Segment) FormattedXmp() (formatted string, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - // TODO(dustin): Add test - - if s.IsXmp() != true { - log.Panicf("not an XMP segment") - } - - l := len(xmpPrefix) - - raw := string(s.Data[l:]) - - formatted, err = FormatXml(raw) - log.PanicIf(err) - - return formatted, nil -} - -func (s *Segment) parsePhotoshopInfo() (photoshopInfo map[uint16]photoshopinfo.Photoshop30InfoRecord, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - if s.photoshopInfo != nil { - return s.photoshopInfo, nil - } - - if s.MarkerId != MARKER_APP13 { - return nil, ErrNoPhotoshopData - } - - l := len(ps30Prefix) - - if len(s.Data) < l { - return nil, ErrNoPhotoshopData - } - - if bytes.Equal(s.Data[:l], ps30Prefix) == false { - return nil, ErrNoPhotoshopData - } - - data := s.Data[l:] - b := bytes.NewBuffer(data) - - // Parse it. - - pirIndex, err := photoshopinfo.ReadPhotoshop30Info(b) - log.PanicIf(err) - - s.photoshopInfo = pirIndex - - return s.photoshopInfo, nil -} - -// IsIptc returns true if XMP data. -func (s *Segment) IsIptc() bool { - // TODO(dustin): Add test - - // There's a cost to determining if there's IPTC data, so we won't do it - // more than once. - if s.iptcTags != nil { - return true - } - - photoshopInfo, err := s.parsePhotoshopInfo() - if err != nil { - if err == ErrNoPhotoshopData { - return false - } - - log.Panic(err) - } - - // Bail if the Photoshop info doesn't have IPTC data. - - _, found := photoshopInfo[pirIptcImageResourceId] - if found == false { - return false - } - - return true -} - -// Iptc parses Photoshop info (if present) and then parses the IPTC info inside -// it (if present). -func (s *Segment) Iptc() (tags map[iptc.StreamTagKey][]iptc.TagData, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - // Cache the parse. - if s.iptcTags != nil { - return s.iptcTags, nil - } - - photoshopInfo, err := s.parsePhotoshopInfo() - log.PanicIf(err) - - iptcPir, found := photoshopInfo[pirIptcImageResourceId] - if found == false { - return nil, ErrNoIptc - } - - b := bytes.NewBuffer(iptcPir.Data) - - tags, err = iptc.ParseStream(b) - log.PanicIf(err) - - s.iptcTags = tags - - return tags, nil -} - -var ( - // Enforce interface conformance. - _ riimage.MediaContext = new(Segment) -) diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment_list.go b/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment_list.go deleted file mode 100644 index b4f4d5810..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/segment_list.go +++ /dev/null @@ -1,416 +0,0 @@ -package jpegstructure - -import ( - "bytes" - "fmt" - "io" - - "crypto/sha1" - "encoding/binary" - - "github.com/dsoprea/go-exif/v3" - "github.com/dsoprea/go-exif/v3/common" - "github.com/dsoprea/go-iptc" - "github.com/dsoprea/go-logging" -) - -// SegmentList contains a slice of segments. -type SegmentList struct { - segments []*Segment -} - -// NewSegmentList returns a new SegmentList struct. -func NewSegmentList(segments []*Segment) (sl *SegmentList) { - if segments == nil { - segments = make([]*Segment, 0) - } - - return &SegmentList{ - segments: segments, - } -} - -// OffsetsEqual returns true is all segments have the same marker-IDs and were -// found at the same offsets. -func (sl *SegmentList) OffsetsEqual(o *SegmentList) bool { - if len(o.segments) != len(sl.segments) { - return false - } - - for i, s := range o.segments { - if s.MarkerId != sl.segments[i].MarkerId || s.Offset != sl.segments[i].Offset { - return false - } - } - - return true -} - -// Segments returns the underlying slice of segments. -func (sl *SegmentList) Segments() []*Segment { - return sl.segments -} - -// Add adds another segment. -func (sl *SegmentList) Add(s *Segment) { - sl.segments = append(sl.segments, s) -} - -// Print prints segment info. -func (sl *SegmentList) Print() { - if len(sl.segments) == 0 { - fmt.Printf("No segments.\n") - } else { - exifIndex, _, err := sl.FindExif() - if err != nil { - if err == exif.ErrNoExif { - exifIndex = -1 - } else { - log.Panic(err) - } - } - - xmpIndex, _, err := sl.FindXmp() - if err != nil { - if err == ErrNoXmp { - xmpIndex = -1 - } else { - log.Panic(err) - } - } - - iptcIndex, _, err := sl.FindIptc() - if err != nil { - if err == ErrNoIptc { - iptcIndex = -1 - } else { - log.Panic(err) - } - } - - for i, s := range sl.segments { - fmt.Printf("%2d: %s", i, s.EmbeddedString()) - - if i == exifIndex { - fmt.Printf(" [EXIF]") - } else if i == xmpIndex { - fmt.Printf(" [XMP]") - } else if i == iptcIndex { - fmt.Printf(" [IPTC]") - } - - fmt.Printf("\n") - } - } -} - -// Validate checks that all of the markers are actually located at all of the -// recorded offsets. -func (sl *SegmentList) Validate(data []byte) (err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - if len(sl.segments) < 2 { - log.Panicf("minimum segments not found") - } - - if sl.segments[0].MarkerId != MARKER_SOI { - log.Panicf("first segment not SOI") - } else if sl.segments[len(sl.segments)-1].MarkerId != MARKER_EOI { - log.Panicf("last segment not EOI") - } - - lastOffset := 0 - for i, s := range sl.segments { - if lastOffset != 0 && s.Offset <= lastOffset { - log.Panicf("segment offset not greater than the last: SEGMENT=(%d) (0x%08x) <= (0x%08x)", i, s.Offset, lastOffset) - } - - // The scan-data doesn't start with a marker. - if s.MarkerId == 0x0 { - continue - } - - o := s.Offset - if bytes.Compare(data[o:o+2], []byte{0xff, s.MarkerId}) != 0 { - log.Panicf("segment offset does not point to the start of a segment: SEGMENT=(%d) (0x%08x)", i, s.Offset) - } - - lastOffset = o - } - - return nil -} - -// FindExif returns the the segment that hosts the EXIF data (if present). -func (sl *SegmentList) FindExif() (index int, segment *Segment, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - for i, s := range sl.segments { - if s.IsExif() == true { - return i, s, nil - } - } - - return -1, nil, exif.ErrNoExif -} - -// FindXmp returns the the segment that hosts the XMP data (if present). -func (sl *SegmentList) FindXmp() (index int, segment *Segment, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - for i, s := range sl.segments { - if s.IsXmp() == true { - return i, s, nil - } - } - - return -1, nil, ErrNoXmp -} - -// FindIptc returns the the segment that hosts the IPTC data (if present). -func (sl *SegmentList) FindIptc() (index int, segment *Segment, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - for i, s := range sl.segments { - if s.IsIptc() == true { - return i, s, nil - } - } - - return -1, nil, ErrNoIptc -} - -// Exif returns an `exif.Ifd` instance for the EXIF data we currently have. -func (sl *SegmentList) Exif() (rootIfd *exif.Ifd, rawExif []byte, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - _, s, err := sl.FindExif() - log.PanicIf(err) - - rootIfd, rawExif, err = s.Exif() - log.PanicIf(err) - - return rootIfd, rawExif, nil -} - -// Iptc returns embedded IPTC data if present. -func (sl *SegmentList) Iptc() (tags map[iptc.StreamTagKey][]iptc.TagData, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - // TODO(dustin): Add comment and return data. - - _, s, err := sl.FindIptc() - log.PanicIf(err) - - tags, err = s.Iptc() - log.PanicIf(err) - - return tags, nil -} - -// ConstructExifBuilder returns an `exif.IfdBuilder` instance (needed for -// modifying) preloaded with all existing tags. -func (sl *SegmentList) ConstructExifBuilder() (rootIb *exif.IfdBuilder, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - rootIfd, _, err := sl.Exif() - if log.Is(err, exif.ErrNoExif) == true { - // No EXIF. Just create a boilerplate builder. - - im := exifcommon.NewIfdMapping() - - err := exifcommon.LoadStandardIfds(im) - log.PanicIf(err) - - ti := exif.NewTagIndex() - - rootIb := - exif.NewIfdBuilder( - im, - ti, - exifcommon.IfdStandardIfdIdentity, - exifcommon.EncodeDefaultByteOrder) - - return rootIb, nil - } else if err != nil { - log.Panic(err) - } - - rootIb = exif.NewIfdBuilderFromExistingChain(rootIfd) - - return rootIb, nil -} - -// DumpExif returns an unstructured list of tags (useful when just reviewing). -func (sl *SegmentList) DumpExif() (segmentIndex int, segment *Segment, exifTags []exif.ExifTag, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - segmentIndex, s, err := sl.FindExif() - if err != nil { - if err == exif.ErrNoExif { - return 0, nil, nil, err - } - - log.Panic(err) - } - - exifTags, err = s.FlatExif() - log.PanicIf(err) - - return segmentIndex, s, exifTags, nil -} - -func makeEmptyExifSegment() (s *Segment) { - - // TODO(dustin): Add test - - return &Segment{ - MarkerId: MARKER_APP1, - } -} - -// SetExif encodes and sets EXIF data into the given segment. If `index` is -1, -// append a new segment. -func (sl *SegmentList) SetExif(ib *exif.IfdBuilder) (err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - _, s, err := sl.FindExif() - if err != nil { - if log.Is(err, exif.ErrNoExif) == false { - log.Panic(err) - } - - s = makeEmptyExifSegment() - - prefix := sl.segments[:1] - - // Install it near the beginning where we know it's safe. We can't - // insert it after the EOI segment, and there might be more than one - // depending on implementation and/or lax adherence to the standard. - tail := append([]*Segment{s}, sl.segments[1:]...) - - sl.segments = append(prefix, tail...) - } - - err = s.SetExif(ib) - log.PanicIf(err) - - return nil -} - -// DropExif will drop the EXIF data if present. -func (sl *SegmentList) DropExif() (wasDropped bool, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - // TODO(dustin): Add test - - i, _, err := sl.FindExif() - if err == nil { - // Found. - sl.segments = append(sl.segments[:i], sl.segments[i+1:]...) - - return true, nil - } else if log.Is(err, exif.ErrNoExif) == false { - log.Panic(err) - } - - // Not found. - return false, nil -} - -// Write writes the segment data to the given `io.Writer`. -func (sl *SegmentList) Write(w io.Writer) (err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - offset := 0 - - for i, s := range sl.segments { - h := sha1.New() - h.Write(s.Data) - - // The scan-data will have a marker-ID of (0) because it doesn't have a - // marker-ID or length. - if s.MarkerId != 0 { - _, err := w.Write([]byte{0xff}) - log.PanicIf(err) - - offset++ - - _, err = w.Write([]byte{s.MarkerId}) - log.PanicIf(err) - - offset++ - - sizeLen, found := markerLen[s.MarkerId] - if found == false || sizeLen == 2 { - sizeLen = 2 - l := uint16(len(s.Data) + sizeLen) - - err = binary.Write(w, binary.BigEndian, &l) - log.PanicIf(err) - - offset += 2 - } else if sizeLen == 4 { - l := uint32(len(s.Data) + sizeLen) - - err = binary.Write(w, binary.BigEndian, &l) - log.PanicIf(err) - - offset += 4 - } else if sizeLen != 0 { - log.Panicf("not a supported marker-size: SEGMENT-INDEX=(%d) MARKER-ID=(0x%02x) MARKER-SIZE-LEN=(%d)", i, s.MarkerId, sizeLen) - } - } - - _, err := w.Write(s.Data) - log.PanicIf(err) - - offset += len(s.Data) - } - - return nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/splitter.go b/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/splitter.go deleted file mode 100644 index 1856beddf..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/splitter.go +++ /dev/null @@ -1,437 +0,0 @@ -package jpegstructure - -import ( - "bufio" - "bytes" - "io" - - "encoding/binary" - - "github.com/dsoprea/go-logging" -) - -// JpegSplitter uses the Go stream splitter to divide the JPEG stream into -// segments. -type JpegSplitter struct { - lastMarkerId byte - lastMarkerName string - counter int - lastIsScanData bool - visitor interface{} - - currentOffset int - segments *SegmentList - - scandataOffset int -} - -// NewJpegSplitter returns a new JpegSplitter. -func NewJpegSplitter(visitor interface{}) *JpegSplitter { - return &JpegSplitter{ - segments: NewSegmentList(nil), - visitor: visitor, - } -} - -// Segments returns all found segments. -func (js *JpegSplitter) Segments() *SegmentList { - return js.segments -} - -// MarkerId returns the ID of the last processed marker. -func (js *JpegSplitter) MarkerId() byte { - return js.lastMarkerId -} - -// MarkerName returns the name of the last-processed marker. -func (js *JpegSplitter) MarkerName() string { - return js.lastMarkerName -} - -// Counter returns the number of processed segments. -func (js *JpegSplitter) Counter() int { - return js.counter -} - -// IsScanData returns whether the last processed segment was scan-data. -func (js *JpegSplitter) IsScanData() bool { - return js.lastIsScanData -} - -func (js *JpegSplitter) processScanData(data []byte) (advanceBytes int, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - // Search through the segment, past all 0xff's therein, until we encounter - // the EOI segment. - - dataLength := -1 - for i := js.scandataOffset; i < len(data); i++ { - thisByte := data[i] - - if i == 0 { - continue - } - - lastByte := data[i-1] - if lastByte != 0xff { - continue - } - - if thisByte == 0x00 || thisByte >= 0xd0 && thisByte <= 0xd8 { - continue - } - - // After all of the other checks, this means that we're on the EOF - // segment. - if thisByte != MARKER_EOI { - continue - } - - dataLength = i - 1 - break - } - - if dataLength == -1 { - // On the next pass, start on the last byte of this pass, just in case - // the first byte of the two-byte sequence is here. - js.scandataOffset = len(data) - 1 - - jpegLogger.Debugf(nil, "Scan-data not fully available (%d).", len(data)) - return 0, nil - } - - js.lastIsScanData = true - js.lastMarkerId = 0 - js.lastMarkerName = "" - - // Note that we don't increment the counter since this isn't an actual - // segment. - - jpegLogger.Debugf(nil, "End of scan-data.") - - err = js.handleSegment(0x0, "!SCANDATA", 0x0, data[:dataLength]) - log.PanicIf(err) - - return dataLength, nil -} - -func (js *JpegSplitter) readSegment(data []byte) (count int, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - if js.counter == 0 { - // Verify magic bytes. - - if len(data) < 3 { - jpegLogger.Debugf(nil, "Not enough (1)") - return 0, nil - } - - if data[0] == jpegMagic2000[0] && data[1] == jpegMagic2000[1] && data[2] == jpegMagic2000[2] { - // TODO(dustin): Revisit JPEG2000 support. - log.Panicf("JPEG2000 not supported") - } - - if data[0] != jpegMagicStandard[0] || data[1] != jpegMagicStandard[1] || data[2] != jpegMagicStandard[2] { - log.Panicf("file does not look like a JPEG: (%02x) (%02x) (%02x)", data[0], data[1], data[2]) - } - } - - chunkLength := len(data) - - jpegLogger.Debugf(nil, "SPLIT: LEN=(%d) COUNTER=(%d)", chunkLength, js.counter) - - if js.scanDataIsNext() == true { - // If the last segment was the SOS, we're currently sitting on scan data. - // Search for the EOI marker afterward in order to know how much data - // there is. Return this as its own token. - // - // REF: https://stackoverflow.com/questions/26715684/parsing-jpeg-sos-marker - - advanceBytes, err := js.processScanData(data) - log.PanicIf(err) - - // This will either return 0 and implicitly request that we need more - // data and then need to run again or will return an actual byte count - // to progress by. - - return advanceBytes, nil - } else if js.lastMarkerId == MARKER_EOI { - // We have more data following the EOI, which is unexpected. There - // might be non-standard cruft at the end of the file. Terminate the - // parse because the file-structure is, technically, complete at this - // point. - - return 0, io.EOF - } else { - js.lastIsScanData = false - } - - // If we're here, we're supposed to be sitting on the 0xff bytes at the - // beginning of a segment (just before the marker). - - if data[0] != 0xff { - log.Panicf("not on new segment marker @ (%d): (%02X)", js.currentOffset, data[0]) - } - - i := 0 - found := false - for ; i < chunkLength; i++ { - jpegLogger.Debugf(nil, "Prefix check: (%d) %02X", i, data[i]) - - if data[i] != 0xff { - found = true - break - } - } - - jpegLogger.Debugf(nil, "Skipped over leading 0xFF bytes: (%d)", i) - - if found == false || i >= chunkLength { - jpegLogger.Debugf(nil, "Not enough (3)") - return 0, nil - } - - markerId := data[i] - - js.lastMarkerName = markerNames[markerId] - - sizeLen, found := markerLen[markerId] - jpegLogger.Debugf(nil, "MARKER-ID=%x SIZELEN=%v FOUND=%v", markerId, sizeLen, found) - - i++ - - b := bytes.NewBuffer(data[i:]) - payloadLength := 0 - - // marker-ID + size => 2 + - headerSize := 2 + sizeLen - - if found == false { - - // It's not one of the static-length markers. Read the length. - // - // The length is an unsigned 16-bit network/big-endian. - - // marker-ID + size => 2 + 2 - headerSize = 2 + 2 - - if i+2 >= chunkLength { - jpegLogger.Debugf(nil, "Not enough (4)") - return 0, nil - } - - l := uint16(0) - err = binary.Read(b, binary.BigEndian, &l) - log.PanicIf(err) - - if l < 2 { - log.Panicf("length of size read for non-special marker (%02x) is unexpectedly less than two.", markerId) - } - - // (l includes the bytes of the length itself.) - payloadLength = int(l) - 2 - jpegLogger.Debugf(nil, "DataLength (dynamically-sized segment): (%d)", payloadLength) - - i += 2 - } else if sizeLen > 0 { - - // Accommodates the non-zero markers in our marker index, which only - // represent J2C extensions. - // - // The length is an unsigned 32-bit network/big-endian. - - // TODO(dustin): !! This needs to be tested, but we need an image. - - if sizeLen != 4 { - log.Panicf("known non-zero marker is not four bytes, which is not currently handled: M=(%x)", markerId) - } - - if i+4 >= chunkLength { - jpegLogger.Debugf(nil, "Not enough (5)") - return 0, nil - } - - l := uint32(0) - err = binary.Read(b, binary.BigEndian, &l) - log.PanicIf(err) - - payloadLength = int(l) - 4 - jpegLogger.Debugf(nil, "DataLength (four-byte-length segment): (%u)", l) - - i += 4 - } - - jpegLogger.Debugf(nil, "PAYLOAD-LENGTH: %d", payloadLength) - - payload := data[i:] - - if payloadLength < 0 { - log.Panicf("payload length less than zero: (%d)", payloadLength) - } - - i += int(payloadLength) - - if i > chunkLength { - jpegLogger.Debugf(nil, "Not enough (6)") - return 0, nil - } - - jpegLogger.Debugf(nil, "Found whole segment.") - - js.lastMarkerId = markerId - - payloadWindow := payload[:payloadLength] - err = js.handleSegment(markerId, js.lastMarkerName, headerSize, payloadWindow) - log.PanicIf(err) - - js.counter++ - - jpegLogger.Debugf(nil, "Returning advance of (%d)", i) - - return i, nil -} - -func (js *JpegSplitter) scanDataIsNext() bool { - return js.lastMarkerId == MARKER_SOS -} - -// Split is the base splitting function that satisfies `bufio.SplitFunc`. -func (js *JpegSplitter) Split(data []byte, atEOF bool) (advance int, token []byte, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - for len(data) > 0 { - currentAdvance, err := js.readSegment(data) - if err != nil { - if err == io.EOF { - // We've encountered an EOI marker. - return 0, nil, err - } - - log.Panic(err) - } - - if currentAdvance == 0 { - if len(data) > 0 && atEOF == true { - // Provide a little context in the error message. - - if js.scanDataIsNext() == true { - // Yes, we've ran into this. - - log.Panicf("scan-data is unbounded; EOI not encountered before EOF") - } else { - log.Panicf("partial segment data encountered before scan-data") - } - } - - // We don't have enough data for another segment. - break - } - - data = data[currentAdvance:] - advance += currentAdvance - } - - return advance, nil, nil -} - -func (js *JpegSplitter) parseSof(data []byte) (sof *SofSegment, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - stream := bytes.NewBuffer(data) - buffer := bufio.NewReader(stream) - - bitsPerSample, err := buffer.ReadByte() - log.PanicIf(err) - - height := uint16(0) - err = binary.Read(buffer, binary.BigEndian, &height) - log.PanicIf(err) - - width := uint16(0) - err = binary.Read(buffer, binary.BigEndian, &width) - log.PanicIf(err) - - componentCount, err := buffer.ReadByte() - log.PanicIf(err) - - sof = &SofSegment{ - BitsPerSample: bitsPerSample, - Width: width, - Height: height, - ComponentCount: componentCount, - } - - return sof, nil -} - -func (js *JpegSplitter) parseAppData(markerId byte, data []byte) (err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - return nil -} - -func (js *JpegSplitter) handleSegment(markerId byte, markerName string, headerSize int, payload []byte) (err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - cloned := make([]byte, len(payload)) - copy(cloned, payload) - - s := &Segment{ - MarkerId: markerId, - MarkerName: markerName, - Offset: js.currentOffset, - Data: cloned, - } - - jpegLogger.Debugf(nil, "Encountered marker (0x%02x) [%s] at offset (%d)", markerId, markerName, js.currentOffset) - - js.currentOffset += headerSize + len(payload) - - js.segments.Add(s) - - sv, ok := js.visitor.(SegmentVisitor) - if ok == true { - err = sv.HandleSegment(js.lastMarkerId, js.lastMarkerName, js.counter, js.lastIsScanData) - log.PanicIf(err) - } - - if markerId >= MARKER_SOF0 && markerId <= MARKER_SOF15 { - ssv, ok := js.visitor.(SofSegmentVisitor) - if ok == true { - sof, err := js.parseSof(payload) - log.PanicIf(err) - - err = ssv.HandleSof(sof) - log.PanicIf(err) - } - } else if markerId >= MARKER_APP0 && markerId <= MARKER_APP15 { - err := js.parseAppData(markerId, payload) - log.PanicIf(err) - } - - return nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/testing_common.go b/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/testing_common.go deleted file mode 100644 index e7169c2f0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/testing_common.go +++ /dev/null @@ -1,73 +0,0 @@ -package jpegstructure - -import ( - "os" - "path" - - "github.com/dsoprea/go-logging" -) - -var ( - testImageRelFilepath = "NDM_8901.jpg" -) - -var ( - moduleRootPath = "" - assetsPath = "" -) - -// GetModuleRootPath returns the root-path of the module. -func GetModuleRootPath() string { - if moduleRootPath == "" { - moduleRootPath = os.Getenv("JPEG_MODULE_ROOT_PATH") - if moduleRootPath != "" { - return moduleRootPath - } - - currentWd, err := os.Getwd() - log.PanicIf(err) - - currentPath := currentWd - visited := make([]string, 0) - - for { - tryStampFilepath := path.Join(currentPath, ".MODULE_ROOT") - - _, err := os.Stat(tryStampFilepath) - if err != nil && os.IsNotExist(err) != true { - log.Panic(err) - } else if err == nil { - break - } - - visited = append(visited, tryStampFilepath) - - currentPath = path.Dir(currentPath) - if currentPath == "/" { - log.Panicf("could not find module-root: %v", visited) - } - } - - moduleRootPath = currentPath - } - - return moduleRootPath -} - -// GetTestAssetsPath returns the path of the test-assets. -func GetTestAssetsPath() string { - if assetsPath == "" { - moduleRootPath := GetModuleRootPath() - assetsPath = path.Join(moduleRootPath, "assets") - } - - return assetsPath -} - -// GetTestImageFilepath returns the file-path of the common test-image. -func GetTestImageFilepath() string { - assetsPath := GetTestAssetsPath() - filepath := path.Join(assetsPath, testImageRelFilepath) - - return filepath -} diff --git a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/utility.go b/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/utility.go deleted file mode 100644 index 1c618ba6d..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2/utility.go +++ /dev/null @@ -1,110 +0,0 @@ -package jpegstructure - -import ( - "bytes" - "fmt" - "sort" - "strings" - - "github.com/dsoprea/go-logging" - "github.com/go-xmlfmt/xmlfmt" -) - -// DumpBytes prints the hex for a given byte-slice. -func DumpBytes(data []byte) { - fmt.Printf("DUMP: ") - for _, x := range data { - fmt.Printf("%02x ", x) - } - - fmt.Printf("\n") -} - -// DumpBytesClause prints a Go-formatted byte-slice expression. -func DumpBytesClause(data []byte) { - fmt.Printf("DUMP: ") - - fmt.Printf("[]byte { ") - - for i, x := range data { - fmt.Printf("0x%02x", x) - - if i < len(data)-1 { - fmt.Printf(", ") - } - } - - fmt.Printf(" }\n") -} - -// DumpBytesToString returns a string of hex-encoded bytes. -func DumpBytesToString(data []byte) string { - b := new(bytes.Buffer) - - for i, x := range data { - _, err := b.WriteString(fmt.Sprintf("%02x", x)) - log.PanicIf(err) - - if i < len(data)-1 { - _, err := b.WriteRune(' ') - log.PanicIf(err) - } - } - - return b.String() -} - -// DumpBytesClauseToString returns a string of Go-formatted byte values. -func DumpBytesClauseToString(data []byte) string { - b := new(bytes.Buffer) - - for i, x := range data { - _, err := b.WriteString(fmt.Sprintf("0x%02x", x)) - log.PanicIf(err) - - if i < len(data)-1 { - _, err := b.WriteString(", ") - log.PanicIf(err) - } - } - - return b.String() -} - -// FormatXml prettifies XML data. -func FormatXml(raw string) (formatted string, err error) { - defer func() { - if state := recover(); state != nil { - err = log.Wrap(state.(error)) - } - }() - - formatted = xmlfmt.FormatXML(raw, " ", " ") - formatted = strings.TrimSpace(formatted) - - return formatted, nil -} - -// SortStringStringMap sorts a string-string dictionary and returns it as a list -// of 2-tuples. -func SortStringStringMap(data map[string]string) (sorted [][2]string) { - // Sort keys. - - sortedKeys := make([]string, len(data)) - i := 0 - for key := range data { - sortedKeys[i] = key - i++ - } - - sort.Strings(sortedKeys) - - // Build result. - - sorted = make([][2]string, len(sortedKeys)) - for i, key := range sortedKeys { - sorted[i] = [2]string{key, data[key]} - } - - return sorted -} diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/.MODULE_ROOT b/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/.MODULE_ROOT deleted file mode 100644 index e69de29bb..000000000 diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/LICENSE b/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/LICENSE deleted file mode 100644 index 163291ed6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/LICENSE +++ /dev/null @@ -1,9 +0,0 @@ -MIT LICENSE - -Copyright 2020 Dustin Oprea - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/chunk_decoder.go b/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/chunk_decoder.go deleted file mode 100644 index 518bc91ad..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/chunk_decoder.go +++ /dev/null @@ -1,81 +0,0 @@ -package pngstructure - -import ( - "bytes" - "fmt" - - "encoding/binary" -) - -type ChunkDecoder struct { -} - -func NewChunkDecoder() *ChunkDecoder { - return new(ChunkDecoder) -} - -func (cd *ChunkDecoder) Decode(c *Chunk) (decoded interface{}, err error) { - switch c.Type { - case "IHDR": - return cd.decodeIHDR(c) - } - - // We don't decode this type. - return nil, nil -} - -type ChunkIHDR struct { - Width uint32 - Height uint32 - BitDepth uint8 - ColorType uint8 - CompressionMethod uint8 - FilterMethod uint8 - InterlaceMethod uint8 -} - -func (ihdr *ChunkIHDR) String() string { - return fmt.Sprintf("IHDR", - ihdr.Width, ihdr.Height, ihdr.BitDepth, ihdr.ColorType, ihdr.CompressionMethod, ihdr.FilterMethod, ihdr.InterlaceMethod, - ) -} - -func (cd *ChunkDecoder) decodeIHDR(c *Chunk) (*ChunkIHDR, error) { - var ( - b = bytes.NewBuffer(c.Data) - ihdr = new(ChunkIHDR) - readf = func(data interface{}) error { - return binary.Read(b, binary.BigEndian, data) - } - ) - - if err := readf(&ihdr.Width); err != nil { - return nil, err - } - - if err := readf(&ihdr.Height); err != nil { - return nil, err - } - - if err := readf(&ihdr.BitDepth); err != nil { - return nil, err - } - - if err := readf(&ihdr.ColorType); err != nil { - return nil, err - } - - if err := readf(&ihdr.CompressionMethod); err != nil { - return nil, err - } - - if err := readf(&ihdr.FilterMethod); err != nil { - return nil, err - } - - if err := readf(&ihdr.InterlaceMethod); err != nil { - return nil, err - } - - return ihdr, nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/media_parser.go b/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/media_parser.go deleted file mode 100644 index 4c8421905..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/media_parser.go +++ /dev/null @@ -1,85 +0,0 @@ -package pngstructure - -import ( - "bufio" - "bytes" - "image" - "io" - "os" - - "image/png" - - riimage "github.com/dsoprea/go-utility/v2/image" -) - -// PngMediaParser knows how to parse a PNG stream. -type PngMediaParser struct { -} - -// NewPngMediaParser returns a new `PngMediaParser`. -func NewPngMediaParser() riimage.MediaParser { - return new(PngMediaParser) -} - -// Parse parses a PNG stream given a `io.ReadSeeker`. -func (pmp *PngMediaParser) Parse( - rs io.ReadSeeker, - size int, -) (riimage.MediaContext, error) { - ps := NewPngSplitter() - if err := ps.readHeader(rs); err != nil { - return nil, err - } - - s := bufio.NewScanner(rs) - - // Since each segment can be any - // size, our buffer must be allowed - // to grow as large as the file. - buffer := []byte{} - s.Buffer(buffer, size) - s.Split(ps.Split) - - for s.Scan() { - } - - if err := s.Err(); err != nil { - return nil, err - } - - return ps.Chunks() -} - -// ParseFile parses a PNG stream given a file-path. -func (pmp *PngMediaParser) ParseFile(filepath string) (riimage.MediaContext, error) { - f, err := os.Open(filepath) - if err != nil { - return nil, err - } - defer f.Close() - - stat, err := f.Stat() - if err != nil { - return nil, err - } - - size := stat.Size() - return pmp.Parse(f, int(size)) -} - -// ParseBytes parses a PNG stream given a byte-slice. -func (pmp *PngMediaParser) ParseBytes(data []byte) (riimage.MediaContext, error) { - br := bytes.NewReader(data) - return pmp.Parse(br, len(data)) -} - -// LooksLikeFormat returns a boolean indicating -// whether the stream looks like a PNG image. -func (pmp *PngMediaParser) LooksLikeFormat(data []byte) bool { - return bytes.Equal(data[:len(PngSignature)], PngSignature[:]) -} - -// GetImage returns an image.Image-compatible struct. -func (pmp *PngMediaParser) GetImage(r io.Reader) (img image.Image, err error) { - return png.Decode(r) -} diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/png.go b/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/png.go deleted file mode 100644 index 5c476f737..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/png.go +++ /dev/null @@ -1,390 +0,0 @@ -package pngstructure - -import ( - "bytes" - "errors" - "fmt" - "io" - - "encoding/binary" - "hash/crc32" - - "github.com/dsoprea/go-exif/v3" - exifcommon "github.com/dsoprea/go-exif/v3/common" - riimage "github.com/dsoprea/go-utility/v2/image" -) - -var ( - PngSignature = [8]byte{137, 'P', 'N', 'G', '\r', '\n', 26, '\n'} - EXifChunkType = "eXIf" - IHDRChunkType = "IHDR" -) - -var ( - ErrNotPng = errors.New("not png data") - ErrCrcFailure = errors.New("crc failure") -) - -// ChunkSlice encapsulates a slice of chunks. -type ChunkSlice struct { - chunks []*Chunk -} - -func NewChunkSlice(chunks []*Chunk) (*ChunkSlice, error) { - if len(chunks) == 0 { - err := errors.New("ChunkSlice must be initialized with at least one chunk (IHDR)") - return nil, err - } else if chunks[0].Type != IHDRChunkType { - err := errors.New("first chunk in any ChunkSlice must be an IHDR") - return nil, err - } - - return &ChunkSlice{chunks}, nil -} - -func NewPngChunkSlice() (*ChunkSlice, error) { - ihdrChunk := &Chunk{ - Type: IHDRChunkType, - } - - ihdrChunk.UpdateCrc32() - - return NewChunkSlice([]*Chunk{ihdrChunk}) -} - -func (cs *ChunkSlice) String() string { - return fmt.Sprintf("ChunkSlize", len(cs.chunks)) -} - -// Chunks exposes the actual slice. -func (cs *ChunkSlice) Chunks() []*Chunk { - return cs.chunks -} - -// Write encodes and writes all chunks. -func (cs *ChunkSlice) WriteTo(w io.Writer) error { - if _, err := w.Write(PngSignature[:]); err != nil { - return err - } - - // TODO(dustin): !! This should respect - // the safe-to-copy characteristic. - for _, c := range cs.chunks { - if _, err := c.WriteTo(w); err != nil { - return err - } - } - - return nil -} - -// Index returns a map of chunk types to chunk slices, grouping all like chunks. -func (cs *ChunkSlice) Index() (index map[string][]*Chunk) { - index = make(map[string][]*Chunk) - for _, c := range cs.chunks { - if grouped, found := index[c.Type]; found { - index[c.Type] = append(grouped, c) - } else { - index[c.Type] = []*Chunk{c} - } - } - - return index -} - -// FindExif returns the the segment that hosts the EXIF data. -func (cs *ChunkSlice) FindExif() (chunk *Chunk, err error) { - index := cs.Index() - if chunks, found := index[EXifChunkType]; found { - return chunks[0], nil - } - - return nil, exif.ErrNoExif -} - -// Exif returns an `exif.Ifd` instance with the existing tags. -func (cs *ChunkSlice) Exif() (*exif.Ifd, []byte, error) { - chunk, err := cs.FindExif() - if err != nil { - return nil, nil, err - } - - im, err := exifcommon.NewIfdMappingWithStandard() - if err != nil { - return nil, nil, err - } - - ti := exif.NewTagIndex() - - _, index, err := exif.Collect(im, ti, chunk.Data) - if err != nil { - return nil, nil, err - } - - return index.RootIfd, chunk.Data, nil -} - -// ConstructExifBuilder returns an `exif.IfdBuilder` instance -// (needed for modifying) preloaded with all existing tags. -func (cs *ChunkSlice) ConstructExifBuilder() (*exif.IfdBuilder, error) { - rootIfd, _, err := cs.Exif() - if err != nil { - return nil, err - } - - return exif.NewIfdBuilderFromExistingChain(rootIfd), nil -} - -// SetExif encodes and sets EXIF data into this segment. -func (cs *ChunkSlice) SetExif(ib *exif.IfdBuilder) error { - // Encode. - - ibe := exif.NewIfdByteEncoder() - - exifData, err := ibe.EncodeToExif(ib) - if err != nil { - return err - } - - // Set. - - exifChunk, err := cs.FindExif() - - switch { - case err == nil: - // EXIF chunk already exists. - exifChunk.Data = exifData - exifChunk.Length = uint32(len(exifData)) - - case errors.Is(err, exif.ErrNoExif): - // Add a EXIF chunk for the first time. - exifChunk = &Chunk{ - Type: EXifChunkType, - Data: exifData, - Length: uint32(len(exifData)), - } - - // Insert exif after the IHDR chunk; it's - // a reliably appropriate place to put it. - cs.chunks = append( - cs.chunks[:1], - append( - []*Chunk{exifChunk}, - cs.chunks[1:]..., - )..., - ) - - default: - return err - } - - exifChunk.UpdateCrc32() - return nil -} - -// PngSplitter hosts the princpal `Split()` -// method uses by `bufio.Scanner`. -type PngSplitter struct { - chunks []*Chunk - currentOffset int - - doCheckCrc bool - crcErrors []string -} - -func (ps *PngSplitter) Chunks() (*ChunkSlice, error) { - return NewChunkSlice(ps.chunks) -} - -func (ps *PngSplitter) DoCheckCrc(doCheck bool) { - ps.doCheckCrc = doCheck -} - -func (ps *PngSplitter) CrcErrors() []string { - return ps.crcErrors -} - -func NewPngSplitter() *PngSplitter { - return &PngSplitter{ - chunks: make([]*Chunk, 0), - doCheckCrc: true, - crcErrors: make([]string, 0), - } -} - -// Chunk describes a single chunk. -type Chunk struct { - Offset int - Length uint32 - Type string - Data []byte - Crc uint32 -} - -func (c *Chunk) String() string { - return fmt.Sprintf("Chunk", c.Offset, c.Length, c.Type, c.Crc) -} - -func calculateCrc32(chunk *Chunk) uint32 { - c := crc32.NewIEEE() - - c.Write([]byte(chunk.Type)) - c.Write(chunk.Data) - - return c.Sum32() -} - -func (c *Chunk) UpdateCrc32() { - c.Crc = calculateCrc32(c) -} - -func (c *Chunk) CheckCrc32() bool { - expected := calculateCrc32(c) - return c.Crc == expected -} - -// Bytes encodes and returns the bytes for this chunk. -func (c *Chunk) Bytes() ([]byte, error) { - if len(c.Data) != int(c.Length) { - return nil, errors.New("length of data not correct") - } - - preallocated := make([]byte, 0, 4+4+c.Length+4) - b := bytes.NewBuffer(preallocated) - - err := binary.Write(b, binary.BigEndian, c.Length) - if err != nil { - return nil, err - } - - if _, err := b.Write([]byte(c.Type)); err != nil { - return nil, err - } - - if c.Data != nil { - if _, err := b.Write(c.Data); err != nil { - return nil, err - } - } - - if err := binary.Write(b, binary.BigEndian, c.Crc); err != nil { - return nil, err - } - - return b.Bytes(), nil -} - -// Write encodes and writes the bytes for this chunk. -func (c *Chunk) WriteTo(w io.Writer) (int, error) { - if len(c.Data) != int(c.Length) { - return 0, errors.New("length of data not correct") - } - - if err := binary.Write(w, binary.BigEndian, c.Length); err != nil { - return 0, err - } - - if _, err := w.Write([]byte(c.Type)); err != nil { - return 0, err - } - - if _, err := w.Write(c.Data); err != nil { - return 0, err - } - - if err := binary.Write(w, binary.BigEndian, c.Crc); err != nil { - return 0, err - } - - return 4 + len(c.Type) + len(c.Data) + 4, nil -} - -// readHeader verifies that the PNG header bytes appear next. -func (ps *PngSplitter) readHeader(r io.Reader) error { - var ( - sigLen = len(PngSignature) - header = make([]byte, sigLen) - ) - - if _, err := r.Read(header); err != nil { - return err - } - - ps.currentOffset += sigLen - if !bytes.Equal(header, PngSignature[:]) { - return ErrNotPng - } - - return nil -} - -// Split fulfills the `bufio.SplitFunc` -// function definition for `bufio.Scanner`. -func (ps *PngSplitter) Split( - data []byte, - atEOF bool, -) ( - advance int, - token []byte, - err error, -) { - // We might have more than one chunk's worth, and, - // if `atEOF` is true, we won't be called again. - // We'll repeatedly try to read additional chunks, - // but, when we run out of the data we were given - // then we'll return the number of bytes for the - // chunks we've already completely read. Then, we'll - // be called again from the end ofthose bytes, at - // which point we'll indicate that we don't yet have - // enough for another chunk, and we should be then - // called with more. - for { - len_ := len(data) - if len_ < 8 { - return advance, nil, nil - } - - length := binary.BigEndian.Uint32(data[:4]) - type_ := string(data[4:8]) - chunkSize := (8 + int(length) + 4) - - if len_ < chunkSize { - return advance, nil, nil - } - - crcIndex := 8 + length - crc := binary.BigEndian.Uint32(data[crcIndex : crcIndex+4]) - - content := make([]byte, length) - copy(content, data[8:8+length]) - - c := &Chunk{ - Length: length, - Type: type_, - Data: content, - Crc: crc, - Offset: ps.currentOffset, - } - - ps.chunks = append(ps.chunks, c) - - if !c.CheckCrc32() { - ps.crcErrors = append(ps.crcErrors, type_) - - if ps.doCheckCrc { - err = ErrCrcFailure - return - } - } - - advance += chunkSize - ps.currentOffset += chunkSize - - data = data[chunkSize:] - } -} - -var ( - // Enforce interface conformance. - _ riimage.MediaContext = new(ChunkSlice) -) diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/testing_common.go b/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/testing_common.go deleted file mode 100644 index 42f28d282..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/testing_common.go +++ /dev/null @@ -1,77 +0,0 @@ -package pngstructure - -import ( - "fmt" - "os" - "path" -) - -var ( - assetsPath = "assets" -) - -func getModuleRootPath() (string, error) { - moduleRootPath := os.Getenv("PNG_MODULE_ROOT_PATH") - if moduleRootPath != "" { - return moduleRootPath, nil - } - - currentWd, err := os.Getwd() - if err != nil { - return "", err - } - - currentPath := currentWd - visited := make([]string, 0) - - for { - tryStampFilepath := path.Join(currentPath, ".MODULE_ROOT") - - _, err := os.Stat(tryStampFilepath) - if err != nil && !os.IsNotExist(err) { - return "", err - } else if err == nil { - break - } - - visited = append(visited, tryStampFilepath) - - currentPath = path.Dir(currentPath) - if currentPath == "/" { - return "", fmt.Errorf("could not find module-root: %v", visited) - } - } - - return currentPath, nil -} - -func getTestAssetsPath() (string, error) { - if assetsPath == "" { - moduleRootPath, err := getModuleRootPath() - if err != nil { - return "", err - } - - assetsPath = path.Join(moduleRootPath, "assets") - } - - return assetsPath, nil -} - -func getTestBasicImageFilepath() (string, error) { - assetsPath, err := getTestAssetsPath() - if err != nil { - return "", err - } - - return path.Join(assetsPath, "libpng.png"), nil -} - -func getTestExifImageFilepath() (string, error) { - assetsPath, err := getTestAssetsPath() - if err != nil { - return "", err - } - - return path.Join(assetsPath, "exif.png"), nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/utility.go b/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/utility.go deleted file mode 100644 index cac6020f2..000000000 --- a/vendor/codeberg.org/superseriousbusiness/go-png-image-structure/v2/utility.go +++ /dev/null @@ -1,67 +0,0 @@ -package pngstructure - -import ( - "bytes" - "fmt" -) - -func DumpBytes(data []byte) { - fmt.Printf("DUMP: ") - for _, x := range data { - fmt.Printf("%02x ", x) - } - - fmt.Printf("\n") -} - -func DumpBytesClause(data []byte) { - fmt.Printf("DUMP: ") - - fmt.Printf("[]byte { ") - - for i, x := range data { - fmt.Printf("0x%02x", x) - - if i < len(data)-1 { - fmt.Printf(", ") - } - } - - fmt.Printf(" }\n") -} - -func DumpBytesToString(data []byte) (string, error) { - b := new(bytes.Buffer) - - for i, x := range data { - if _, err := b.WriteString(fmt.Sprintf("%02x", x)); err != nil { - return "", err - } - - if i < len(data)-1 { - if _, err := b.WriteRune(' '); err != nil { - return "", err - } - } - } - - return b.String(), nil -} - -func DumpBytesClauseToString(data []byte) (string, error) { - b := new(bytes.Buffer) - - for i, x := range data { - if _, err := b.WriteString(fmt.Sprintf("0x%02x", x)); err != nil { - return "", err - } - - if i < len(data)-1 { - if _, err := b.WriteString(", "); err != nil { - return "", err - } - } - } - - return b.String(), nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/LICENSE b/vendor/codeberg.org/superseriousbusiness/httpsig/LICENSE deleted file mode 100644 index a9e8aefad..000000000 --- a/vendor/codeberg.org/superseriousbusiness/httpsig/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2018, go-fed -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/README.md b/vendor/codeberg.org/superseriousbusiness/httpsig/README.md deleted file mode 100644 index 2108ed06c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/httpsig/README.md +++ /dev/null @@ -1,101 +0,0 @@ -# httpsig - -**THIS IS A FORK OF https://github.com/go-fed/httpsig, WHICH WAS NO LONGER MAINTAINED. THANK YOU TO [cjslep](https://github.com/cjslep) FOR ALL YOUR HARD WORK!** - -> HTTP Signatures made simple - -`go get codeberg.org/superseriousbusiness/httpsig` - -Implementation of [HTTP Signatures](https://tools.ietf.org/html/draft-cavage-http-signatures). - -Supports many different combinations of MAC, HMAC signing of hash, or RSA -signing of hash schemes. Its goals are: - -* Have a very simple interface for signing and validating -* Support a variety of signing algorithms and combinations -* Support setting either headers (`Authorization` or `Signature`) -* Remaining flexible with headers included in the signing string -* Support both HTTP requests and responses -* Explicitly not support known-cryptographically weak algorithms -* Support automatic signing and validating Digest headers - -## How to use - -`import "codeberg.org/superseriousbusiness/httpsig"` - -### Signing - -Signing a request or response requires creating a new `Signer` and using it: - -```go -func sign(privateKey crypto.PrivateKey, pubKeyId string, r *http.Request) error { - prefs := []httpsig.Algorithm{httpsig.RSA_SHA512, httpsig.RSA_SHA256} - digestAlgorithm := DigestSha256 - // The "Date" and "Digest" headers must already be set on r, as well as r.URL. - headersToSign := []string{httpsig.RequestTarget, "date", "digest"} - signer, chosenAlgo, err := httpsig.NewSigner(prefs, digestAlgorithm, headersToSign, httpsig.Signature) - if err != nil { - return err - } - // To sign the digest, we need to give the signer a copy of the body... - // ...but it is optional, no digest will be signed if given "nil" - body := ... - // If r were a http.ResponseWriter, call SignResponse instead. - return signer.SignRequest(privateKey, pubKeyId, r, body) -} -``` - -`Signer`s are not safe for concurrent use by goroutines, so be sure to guard -access: - -```go -type server struct { - signer httpsig.Signer - mu *sync.Mutex -} - -func (s *server) handlerFunc(w http.ResponseWriter, r *http.Request) { - privateKey := ... - pubKeyId := ... - // Set headers and such on w - s.mu.Lock() - defer s.mu.Unlock() - // To sign the digest, we need to give the signer a copy of the response body... - // ...but it is optional, no digest will be signed if given "nil" - body := ... - err := s.signer.SignResponse(privateKey, pubKeyId, w, body) - if err != nil { - ... - } - ... -} -``` - -The `pubKeyId` will be used at verification time. - -### Verifying - -Verifying requires an application to use the `pubKeyId` to both retrieve the key -needed for verification as well as determine the algorithm to use. Use a -`Verifier`: - -```go -func verify(r *http.Request) error { - verifier, err := httpsig.NewVerifier(r) - if err != nil { - return err - } - pubKeyId := verifier.KeyId() - var algo httpsig.Algorithm = ... - var pubKey crypto.PublicKey = ... - // The verifier will verify the Digest in addition to the HTTP signature - return verifier.Verify(pubKey, algo) -} -``` - -`Verifier`s are not safe for concurrent use by goroutines, but since they are -constructed on a per-request or per-response basis it should not be a common -restriction. - -[License-Image]: https://img.shields.io/github/license/go-fed/httpsig?color=blue -[License-Url]: https://opensource.org/licenses/BSD-3-Clause diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/algorithms.go b/vendor/codeberg.org/superseriousbusiness/httpsig/algorithms.go deleted file mode 100644 index 9595941be..000000000 --- a/vendor/codeberg.org/superseriousbusiness/httpsig/algorithms.go +++ /dev/null @@ -1,532 +0,0 @@ -package httpsig - -import ( - "crypto" - "crypto/ecdsa" - "crypto/hmac" - "crypto/rsa" - "crypto/sha1" - "crypto/sha256" - "crypto/sha512" - "crypto/subtle" // Use should trigger great care - "encoding/asn1" - "errors" - "fmt" - "hash" - "io" - "math/big" - "strings" - - "golang.org/x/crypto/blake2b" - "golang.org/x/crypto/blake2s" - "golang.org/x/crypto/ed25519" - "golang.org/x/crypto/ripemd160" - "golang.org/x/crypto/sha3" - "golang.org/x/crypto/ssh" -) - -const ( - hmacPrefix = "hmac" - rsaPrefix = "rsa" - sshPrefix = "ssh" - ecdsaPrefix = "ecdsa" - ed25519Prefix = "ed25519" - md4String = "md4" - md5String = "md5" - sha1String = "sha1" - sha224String = "sha224" - sha256String = "sha256" - sha384String = "sha384" - sha512String = "sha512" - md5sha1String = "md5sha1" - ripemd160String = "ripemd160" - sha3_224String = "sha3-224" - sha3_256String = "sha3-256" - sha3_384String = "sha3-384" - sha3_512String = "sha3-512" - sha512_224String = "sha512-224" - sha512_256String = "sha512-256" - blake2s_256String = "blake2s-256" - blake2b_256String = "blake2b-256" - blake2b_384String = "blake2b-384" - blake2b_512String = "blake2b-512" -) - -var blake2Algorithms = map[crypto.Hash]bool{ - crypto.BLAKE2s_256: true, - crypto.BLAKE2b_256: true, - crypto.BLAKE2b_384: true, - crypto.BLAKE2b_512: true, -} - -var hashToDef = map[crypto.Hash]struct { - name string - new func(key []byte) (hash.Hash, error) // Only MACers will accept a key -}{ - // Which standard names these? - // The spec lists the following as a canonical reference, which is dead: - // http://www.iana.org/assignments/signature-algorithms - // - // Note that the forbidden hashes have an invalid 'new' function. - crypto.MD4: {md4String, func(key []byte) (hash.Hash, error) { return nil, nil }}, - crypto.MD5: {md5String, func(key []byte) (hash.Hash, error) { return nil, nil }}, - // Temporarily enable SHA1 because of issue https://github.com/golang/go/issues/37278 - crypto.SHA1: {sha1String, func(key []byte) (hash.Hash, error) { return sha1.New(), nil }}, - crypto.SHA224: {sha224String, func(key []byte) (hash.Hash, error) { return sha256.New224(), nil }}, - crypto.SHA256: {sha256String, func(key []byte) (hash.Hash, error) { return sha256.New(), nil }}, - crypto.SHA384: {sha384String, func(key []byte) (hash.Hash, error) { return sha512.New384(), nil }}, - crypto.SHA512: {sha512String, func(key []byte) (hash.Hash, error) { return sha512.New(), nil }}, - crypto.MD5SHA1: {md5sha1String, func(key []byte) (hash.Hash, error) { return nil, nil }}, - crypto.RIPEMD160: {ripemd160String, func(key []byte) (hash.Hash, error) { return ripemd160.New(), nil }}, - crypto.SHA3_224: {sha3_224String, func(key []byte) (hash.Hash, error) { return sha3.New224(), nil }}, - crypto.SHA3_256: {sha3_256String, func(key []byte) (hash.Hash, error) { return sha3.New256(), nil }}, - crypto.SHA3_384: {sha3_384String, func(key []byte) (hash.Hash, error) { return sha3.New384(), nil }}, - crypto.SHA3_512: {sha3_512String, func(key []byte) (hash.Hash, error) { return sha3.New512(), nil }}, - crypto.SHA512_224: {sha512_224String, func(key []byte) (hash.Hash, error) { return sha512.New512_224(), nil }}, - crypto.SHA512_256: {sha512_256String, func(key []byte) (hash.Hash, error) { return sha512.New512_256(), nil }}, - crypto.BLAKE2s_256: {blake2s_256String, func(key []byte) (hash.Hash, error) { return blake2s.New256(key) }}, - crypto.BLAKE2b_256: {blake2b_256String, func(key []byte) (hash.Hash, error) { return blake2b.New256(key) }}, - crypto.BLAKE2b_384: {blake2b_384String, func(key []byte) (hash.Hash, error) { return blake2b.New384(key) }}, - crypto.BLAKE2b_512: {blake2b_512String, func(key []byte) (hash.Hash, error) { return blake2b.New512(key) }}, -} - -var stringToHash map[string]crypto.Hash - -const ( - defaultAlgorithm = RSA_SHA256 - defaultAlgorithmHashing = sha256String -) - -func init() { - stringToHash = make(map[string]crypto.Hash, len(hashToDef)) - for k, v := range hashToDef { - stringToHash[v.name] = k - } - // This should guarantee that at runtime the defaultAlgorithm will not - // result in errors when fetching a macer or signer (see algorithms.go) - if ok, err := isAvailable(string(defaultAlgorithmHashing)); err != nil { - panic(err) - } else if !ok { - panic(fmt.Sprintf("the default httpsig algorithm is unavailable: %q", defaultAlgorithm)) - } -} - -func isForbiddenHash(h crypto.Hash) bool { - switch h { - // Not actually cryptographically secure - case crypto.MD4: - fallthrough - case crypto.MD5: - fallthrough - case crypto.MD5SHA1: // shorthand for crypto/tls, not actually implemented - return true - } - // Still cryptographically secure - return false -} - -// signer is an internally public type. -type signer interface { - Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) - Verify(pub crypto.PublicKey, toHash, signature []byte) error - String() string -} - -// macer is an internally public type. -type macer interface { - Sign(sig, key []byte) ([]byte, error) - Equal(sig, actualMAC, key []byte) (bool, error) - String() string -} - -var _ macer = &hmacAlgorithm{} - -type hmacAlgorithm struct { - fn func(key []byte) (hash.Hash, error) - kind crypto.Hash -} - -func (h *hmacAlgorithm) Sign(sig, key []byte) ([]byte, error) { - hs, err := h.fn(key) - if err = setSig(hs, sig); err != nil { - return nil, err - } - return hs.Sum(nil), nil -} - -func (h *hmacAlgorithm) Equal(sig, actualMAC, key []byte) (bool, error) { - hs, err := h.fn(key) - if err != nil { - return false, err - } - defer hs.Reset() - err = setSig(hs, sig) - if err != nil { - return false, err - } - expected := hs.Sum(nil) - return hmac.Equal(actualMAC, expected), nil -} - -func (h *hmacAlgorithm) String() string { - return fmt.Sprintf("%s-%s", hmacPrefix, hashToDef[h.kind].name) -} - -var _ signer = &rsaAlgorithm{} - -type rsaAlgorithm struct { - hash.Hash - kind crypto.Hash - sshSigner ssh.Signer -} - -func (r *rsaAlgorithm) setSig(b []byte) error { - n, err := r.Write(b) - if err != nil { - r.Reset() - return err - } else if n != len(b) { - r.Reset() - return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) - } - return nil -} - -func (r *rsaAlgorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { - if r.sshSigner != nil { - sshsig, err := r.sshSigner.Sign(rand, sig) - if err != nil { - return nil, err - } - - return sshsig.Blob, nil - } - defer r.Reset() - - if err := r.setSig(sig); err != nil { - return nil, err - } - rsaK, ok := p.(*rsa.PrivateKey) - if !ok { - return nil, errors.New("crypto.PrivateKey is not *rsa.PrivateKey") - } - return rsa.SignPKCS1v15(rand, rsaK, r.kind, r.Sum(nil)) -} - -func (r *rsaAlgorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { - defer r.Reset() - rsaK, ok := pub.(*rsa.PublicKey) - if !ok { - return errors.New("crypto.PublicKey is not *rsa.PublicKey") - } - if err := r.setSig(toHash); err != nil { - return err - } - return rsa.VerifyPKCS1v15(rsaK, r.kind, r.Sum(nil), signature) -} - -func (r *rsaAlgorithm) String() string { - return fmt.Sprintf("%s-%s", rsaPrefix, hashToDef[r.kind].name) -} - -var _ signer = &ed25519Algorithm{} - -type ed25519Algorithm struct { - sshSigner ssh.Signer -} - -func (r *ed25519Algorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { - if r.sshSigner != nil { - sshsig, err := r.sshSigner.Sign(rand, sig) - if err != nil { - return nil, err - } - - return sshsig.Blob, nil - } - ed25519K, ok := p.(ed25519.PrivateKey) - if !ok { - return nil, errors.New("crypto.PrivateKey is not ed25519.PrivateKey") - } - return ed25519.Sign(ed25519K, sig), nil -} - -func (r *ed25519Algorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { - ed25519K, ok := pub.(ed25519.PublicKey) - if !ok { - return errors.New("crypto.PublicKey is not ed25519.PublicKey") - } - - if ed25519.Verify(ed25519K, toHash, signature) { - return nil - } - - return errors.New("ed25519 verify failed") -} - -func (r *ed25519Algorithm) String() string { - return fmt.Sprintf("%s", ed25519Prefix) -} - -var _ signer = &ecdsaAlgorithm{} - -type ecdsaAlgorithm struct { - hash.Hash - kind crypto.Hash -} - -func (r *ecdsaAlgorithm) setSig(b []byte) error { - n, err := r.Write(b) - if err != nil { - r.Reset() - return err - } else if n != len(b) { - r.Reset() - return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) - } - return nil -} - -type ECDSASignature struct { - R, S *big.Int -} - -func (r *ecdsaAlgorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { - defer r.Reset() - if err := r.setSig(sig); err != nil { - return nil, err - } - ecdsaK, ok := p.(*ecdsa.PrivateKey) - if !ok { - return nil, errors.New("crypto.PrivateKey is not *ecdsa.PrivateKey") - } - R, S, err := ecdsa.Sign(rand, ecdsaK, r.Sum(nil)) - if err != nil { - return nil, err - } - - signature := ECDSASignature{R: R, S: S} - bytes, err := asn1.Marshal(signature) - - return bytes, err -} - -func (r *ecdsaAlgorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { - defer r.Reset() - ecdsaK, ok := pub.(*ecdsa.PublicKey) - if !ok { - return errors.New("crypto.PublicKey is not *ecdsa.PublicKey") - } - if err := r.setSig(toHash); err != nil { - return err - } - - sig := new(ECDSASignature) - _, err := asn1.Unmarshal(signature, sig) - if err != nil { - return err - } - - if ecdsa.Verify(ecdsaK, r.Sum(nil), sig.R, sig.S) { - return nil - } else { - return errors.New("Invalid signature") - } -} - -func (r *ecdsaAlgorithm) String() string { - return fmt.Sprintf("%s-%s", ecdsaPrefix, hashToDef[r.kind].name) -} - -var _ macer = &blakeMacAlgorithm{} - -type blakeMacAlgorithm struct { - fn func(key []byte) (hash.Hash, error) - kind crypto.Hash -} - -func (r *blakeMacAlgorithm) Sign(sig, key []byte) ([]byte, error) { - hs, err := r.fn(key) - if err != nil { - return nil, err - } - if err = setSig(hs, sig); err != nil { - return nil, err - } - return hs.Sum(nil), nil -} - -func (r *blakeMacAlgorithm) Equal(sig, actualMAC, key []byte) (bool, error) { - hs, err := r.fn(key) - if err != nil { - return false, err - } - defer hs.Reset() - err = setSig(hs, sig) - if err != nil { - return false, err - } - expected := hs.Sum(nil) - return subtle.ConstantTimeCompare(actualMAC, expected) == 1, nil -} - -func (r *blakeMacAlgorithm) String() string { - return fmt.Sprintf("%s", hashToDef[r.kind].name) -} - -func setSig(a hash.Hash, b []byte) error { - n, err := a.Write(b) - if err != nil { - a.Reset() - return err - } else if n != len(b) { - a.Reset() - return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) - } - return nil -} - -// IsSupportedHttpSigAlgorithm returns true if the string is supported by this -// library, is not a hash known to be weak, and is supported by the hardware. -func IsSupportedHttpSigAlgorithm(algo string) bool { - a, err := isAvailable(algo) - return a && err == nil -} - -// isAvailable is an internally public function -func isAvailable(algo string) (bool, error) { - c, ok := stringToHash[algo] - if !ok { - return false, fmt.Errorf("no match for %q", algo) - } - if isForbiddenHash(c) { - return false, fmt.Errorf("forbidden hash type in %q", algo) - } - return c.Available(), nil -} - -func newAlgorithmConstructor(algo string) (fn func(k []byte) (hash.Hash, error), c crypto.Hash, e error) { - ok := false - c, ok = stringToHash[algo] - if !ok { - e = fmt.Errorf("no match for %q", algo) - return - } - if isForbiddenHash(c) { - e = fmt.Errorf("forbidden hash type in %q", algo) - return - } - algoDef, ok := hashToDef[c] - if !ok { - e = fmt.Errorf("have crypto.Hash %v but no definition", c) - return - } - fn = func(key []byte) (hash.Hash, error) { - h, err := algoDef.new(key) - if err != nil { - return nil, err - } - return h, nil - } - return -} - -func newAlgorithm(algo string, key []byte) (hash.Hash, crypto.Hash, error) { - fn, c, err := newAlgorithmConstructor(algo) - if err != nil { - return nil, c, err - } - h, err := fn(key) - return h, c, err -} - -func signerFromSSHSigner(sshSigner ssh.Signer, s string) (signer, error) { - switch { - case strings.HasPrefix(s, rsaPrefix): - return &rsaAlgorithm{ - sshSigner: sshSigner, - }, nil - case strings.HasPrefix(s, ed25519Prefix): - return &ed25519Algorithm{ - sshSigner: sshSigner, - }, nil - default: - return nil, fmt.Errorf("no signer matching %q", s) - } -} - -// signerFromString is an internally public method constructor -func signerFromString(s string) (signer, error) { - s = strings.ToLower(s) - isEcdsa := false - isEd25519 := false - var algo string = "" - if strings.HasPrefix(s, ecdsaPrefix) { - algo = strings.TrimPrefix(s, ecdsaPrefix+"-") - isEcdsa = true - } else if strings.HasPrefix(s, rsaPrefix) { - algo = strings.TrimPrefix(s, rsaPrefix+"-") - } else if strings.HasPrefix(s, ed25519Prefix) { - isEd25519 = true - algo = "sha512" - } else { - return nil, fmt.Errorf("no signer matching %q", s) - } - hash, cHash, err := newAlgorithm(algo, nil) - if err != nil { - return nil, err - } - if isEd25519 { - return &ed25519Algorithm{}, nil - } - if isEcdsa { - return &ecdsaAlgorithm{ - Hash: hash, - kind: cHash, - }, nil - } - return &rsaAlgorithm{ - Hash: hash, - kind: cHash, - }, nil -} - -// macerFromString is an internally public method constructor -func macerFromString(s string) (macer, error) { - s = strings.ToLower(s) - if strings.HasPrefix(s, hmacPrefix) { - algo := strings.TrimPrefix(s, hmacPrefix+"-") - hashFn, cHash, err := newAlgorithmConstructor(algo) - if err != nil { - return nil, err - } - // Ensure below does not panic - _, err = hashFn(nil) - if err != nil { - return nil, err - } - return &hmacAlgorithm{ - fn: func(key []byte) (hash.Hash, error) { - return hmac.New(func() hash.Hash { - h, e := hashFn(nil) - if e != nil { - panic(e) - } - return h - }, key), nil - }, - kind: cHash, - }, nil - } else if bl, ok := stringToHash[s]; ok && blake2Algorithms[bl] { - hashFn, cHash, err := newAlgorithmConstructor(s) - if err != nil { - return nil, err - } - return &blakeMacAlgorithm{ - fn: hashFn, - kind: cHash, - }, nil - } else { - return nil, fmt.Errorf("no MACer matching %q", s) - } -} diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/digest.go b/vendor/codeberg.org/superseriousbusiness/httpsig/digest.go deleted file mode 100644 index bf9e3a914..000000000 --- a/vendor/codeberg.org/superseriousbusiness/httpsig/digest.go +++ /dev/null @@ -1,120 +0,0 @@ -package httpsig - -import ( - "bytes" - "crypto" - "encoding/base64" - "fmt" - "hash" - "net/http" - "strings" -) - -type DigestAlgorithm string - -const ( - DigestSha256 DigestAlgorithm = "SHA-256" - DigestSha512 = "SHA-512" -) - -var digestToDef = map[DigestAlgorithm]crypto.Hash{ - DigestSha256: crypto.SHA256, - DigestSha512: crypto.SHA512, -} - -// IsSupportedDigestAlgorithm returns true if hte string is supported by this -// library, is not a hash known to be weak, and is supported by the hardware. -func IsSupportedDigestAlgorithm(algo string) bool { - uc := DigestAlgorithm(strings.ToUpper(algo)) - c, ok := digestToDef[uc] - return ok && c.Available() -} - -func getHash(alg DigestAlgorithm) (h hash.Hash, toUse DigestAlgorithm, err error) { - upper := DigestAlgorithm(strings.ToUpper(string(alg))) - c, ok := digestToDef[upper] - if !ok { - err = fmt.Errorf("unknown or unsupported Digest algorithm: %s", alg) - } else if !c.Available() { - err = fmt.Errorf("unavailable Digest algorithm: %s", alg) - } else { - h = c.New() - toUse = upper - } - return -} - -const ( - digestHeader = "Digest" - digestDelim = "=" -) - -func addDigest(r *http.Request, algo DigestAlgorithm, b []byte) (err error) { - _, ok := r.Header[digestHeader] - if ok { - err = fmt.Errorf("cannot add Digest: Digest is already set") - return - } - var h hash.Hash - var a DigestAlgorithm - h, a, err = getHash(algo) - if err != nil { - return - } - h.Write(b) - sum := h.Sum(nil) - r.Header.Add(digestHeader, - fmt.Sprintf("%s%s%s", - a, - digestDelim, - base64.StdEncoding.EncodeToString(sum[:]))) - return -} - -func addDigestResponse(r http.ResponseWriter, algo DigestAlgorithm, b []byte) (err error) { - _, ok := r.Header()[digestHeader] - if ok { - err = fmt.Errorf("cannot add Digest: Digest is already set") - return - } - var h hash.Hash - var a DigestAlgorithm - h, a, err = getHash(algo) - if err != nil { - return - } - h.Write(b) - sum := h.Sum(nil) - r.Header().Add(digestHeader, - fmt.Sprintf("%s%s%s", - a, - digestDelim, - base64.StdEncoding.EncodeToString(sum[:]))) - return -} - -func verifyDigest(r *http.Request, body *bytes.Buffer) (err error) { - d := r.Header.Get(digestHeader) - if len(d) == 0 { - err = fmt.Errorf("cannot verify Digest: request has no Digest header") - return - } - elem := strings.SplitN(d, digestDelim, 2) - if len(elem) != 2 { - err = fmt.Errorf("cannot verify Digest: malformed Digest: %s", d) - return - } - var h hash.Hash - h, _, err = getHash(DigestAlgorithm(elem[0])) - if err != nil { - return - } - h.Write(body.Bytes()) - sum := h.Sum(nil) - encSum := base64.StdEncoding.EncodeToString(sum[:]) - if encSum != elem[1] { - err = fmt.Errorf("cannot verify Digest: header Digest does not match the digest of the request body") - return - } - return -} diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/httpsig.go b/vendor/codeberg.org/superseriousbusiness/httpsig/httpsig.go deleted file mode 100644 index 8864da055..000000000 --- a/vendor/codeberg.org/superseriousbusiness/httpsig/httpsig.go +++ /dev/null @@ -1,413 +0,0 @@ -// Implements HTTP request and response signing and verification. Supports the -// major MAC and asymmetric key signature algorithms. It has several safety -// restrictions: One, none of the widely known non-cryptographically safe -// algorithms are permitted; Two, the RSA SHA256 algorithms must be available in -// the binary (and it should, barring export restrictions); Finally, the library -// assumes either the 'Authorizationn' or 'Signature' headers are to be set (but -// not both). -package httpsig - -import ( - "crypto" - "fmt" - "net/http" - "strings" - "time" - - "golang.org/x/crypto/ssh" -) - -// Algorithm specifies a cryptography secure algorithm for signing HTTP requests -// and responses. -type Algorithm string - -const ( - // MAC-based algoirthms. - HMAC_SHA224 Algorithm = hmacPrefix + "-" + sha224String - HMAC_SHA256 Algorithm = hmacPrefix + "-" + sha256String - HMAC_SHA384 Algorithm = hmacPrefix + "-" + sha384String - HMAC_SHA512 Algorithm = hmacPrefix + "-" + sha512String - HMAC_RIPEMD160 Algorithm = hmacPrefix + "-" + ripemd160String - HMAC_SHA3_224 Algorithm = hmacPrefix + "-" + sha3_224String - HMAC_SHA3_256 Algorithm = hmacPrefix + "-" + sha3_256String - HMAC_SHA3_384 Algorithm = hmacPrefix + "-" + sha3_384String - HMAC_SHA3_512 Algorithm = hmacPrefix + "-" + sha3_512String - HMAC_SHA512_224 Algorithm = hmacPrefix + "-" + sha512_224String - HMAC_SHA512_256 Algorithm = hmacPrefix + "-" + sha512_256String - HMAC_BLAKE2S_256 Algorithm = hmacPrefix + "-" + blake2s_256String - HMAC_BLAKE2B_256 Algorithm = hmacPrefix + "-" + blake2b_256String - HMAC_BLAKE2B_384 Algorithm = hmacPrefix + "-" + blake2b_384String - HMAC_BLAKE2B_512 Algorithm = hmacPrefix + "-" + blake2b_512String - BLAKE2S_256 Algorithm = blake2s_256String - BLAKE2B_256 Algorithm = blake2b_256String - BLAKE2B_384 Algorithm = blake2b_384String - BLAKE2B_512 Algorithm = blake2b_512String - // RSA-based algorithms. - RSA_SHA1 Algorithm = rsaPrefix + "-" + sha1String - RSA_SHA224 Algorithm = rsaPrefix + "-" + sha224String - // RSA_SHA256 is the default algorithm. - RSA_SHA256 Algorithm = rsaPrefix + "-" + sha256String - RSA_SHA384 Algorithm = rsaPrefix + "-" + sha384String - RSA_SHA512 Algorithm = rsaPrefix + "-" + sha512String - RSA_RIPEMD160 Algorithm = rsaPrefix + "-" + ripemd160String - // ECDSA algorithms - ECDSA_SHA224 Algorithm = ecdsaPrefix + "-" + sha224String - ECDSA_SHA256 Algorithm = ecdsaPrefix + "-" + sha256String - ECDSA_SHA384 Algorithm = ecdsaPrefix + "-" + sha384String - ECDSA_SHA512 Algorithm = ecdsaPrefix + "-" + sha512String - ECDSA_RIPEMD160 Algorithm = ecdsaPrefix + "-" + ripemd160String - // ED25519 algorithms - // can only be SHA512 - ED25519 Algorithm = ed25519Prefix - - // Just because you can glue things together, doesn't mean they will - // work. The following options are not supported. - rsa_SHA3_224 Algorithm = rsaPrefix + "-" + sha3_224String - rsa_SHA3_256 Algorithm = rsaPrefix + "-" + sha3_256String - rsa_SHA3_384 Algorithm = rsaPrefix + "-" + sha3_384String - rsa_SHA3_512 Algorithm = rsaPrefix + "-" + sha3_512String - rsa_SHA512_224 Algorithm = rsaPrefix + "-" + sha512_224String - rsa_SHA512_256 Algorithm = rsaPrefix + "-" + sha512_256String - rsa_BLAKE2S_256 Algorithm = rsaPrefix + "-" + blake2s_256String - rsa_BLAKE2B_256 Algorithm = rsaPrefix + "-" + blake2b_256String - rsa_BLAKE2B_384 Algorithm = rsaPrefix + "-" + blake2b_384String - rsa_BLAKE2B_512 Algorithm = rsaPrefix + "-" + blake2b_512String -) - -// HTTP Signatures can be applied to different HTTP headers, depending on the -// expected application behavior. -type SignatureScheme string - -const ( - // Signature will place the HTTP Signature into the 'Signature' HTTP - // header. - Signature SignatureScheme = "Signature" - // Authorization will place the HTTP Signature into the 'Authorization' - // HTTP header. - Authorization SignatureScheme = "Authorization" -) - -const ( - // The HTTP Signatures specification uses the "Signature" auth-scheme - // for the Authorization header. This is coincidentally named, but not - // semantically the same, as the "Signature" HTTP header value. - signatureAuthScheme = "Signature" -) - -// There are subtle differences to the values in the header. The Authorization -// header has an 'auth-scheme' value that must be prefixed to the rest of the -// key and values. -func (s SignatureScheme) authScheme() string { - switch s { - case Authorization: - return signatureAuthScheme - default: - return "" - } -} - -type SignatureOption struct { - // ExcludeQueryStringFromPathPseudoHeader omits the query parameters from the - // `:path` pseudo-header in the HTTP signature. - // - // The query string is optional in the `:path` pseudo-header. - // https://www.rfc-editor.org/rfc/rfc9113#section-8.3.1-2.4.1 - ExcludeQueryStringFromPathPseudoHeader bool -} - -// Signers will sign HTTP requests or responses based on the algorithms and -// headers selected at creation time. -// -// Signers are not safe to use between multiple goroutines. -// -// Note that signatures do set the deprecated 'algorithm' parameter for -// backwards compatibility. -type Signer interface { - // SignRequest signs the request using a private key. The public key id - // is used by the HTTP server to identify which key to use to verify the - // signature. - // - // If the Signer was created using a MAC based algorithm, then the key - // is expected to be of type []byte. If the Signer was created using an - // RSA based algorithm, then the private key is expected to be of type - // *rsa.PrivateKey. - // - // A Digest (RFC 3230) will be added to the request. The body provided - // must match the body used in the request, and is allowed to be nil. - // The Digest ensures the request body is not tampered with in flight, - // and if the signer is created to also sign the "Digest" header, the - // HTTP Signature will then ensure both the Digest and body are not both - // modified to maliciously represent different content. - SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error - // SignResponse signs the response using a private key. The public key - // id is used by the HTTP client to identify which key to use to verify - // the signature. - // - // If the Signer was created using a MAC based algorithm, then the key - // is expected to be of type []byte. If the Signer was created using an - // RSA based algorithm, then the private key is expected to be of type - // *rsa.PrivateKey. - // - // A Digest (RFC 3230) will be added to the response. The body provided - // must match the body written in the response, and is allowed to be - // nil. The Digest ensures the response body is not tampered with in - // flight, and if the signer is created to also sign the "Digest" - // header, the HTTP Signature will then ensure both the Digest and body - // are not both modified to maliciously represent different content. - SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error -} - -type SignerWithOptions interface { - Signer - - // SignRequestWithOptions signs the request using a private key. The public key id - // is used by the HTTP server to identify which key to use to verify the - // signature. - // - // If the Signer was created using a MAC based algorithm, then the key - // is expected to be of type []byte. If the Signer was created using an - // RSA based algorithm, then the private key is expected to be of type - // *rsa.PrivateKey. - // - // A Digest (RFC 3230) will be added to the request. The body provided - // must match the body used in the request, and is allowed to be nil. - // The Digest ensures the request body is not tampered with in flight, - // and if the signer is created to also sign the "Digest" header, the - // HTTP Signature will then ensure both the Digest and body are not both - // modified to maliciously represent different content. - SignRequestWithOptions(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte, opts SignatureOption) error - // SignResponseWithOptions signs the response using a private key. The public key - // id is used by the HTTP client to identify which key to use to verify - // the signature. - // - // If the Signer was created using a MAC based algorithm, then the key - // is expected to be of type []byte. If the Signer was created using an - // RSA based algorithm, then the private key is expected to be of type - // *rsa.PrivateKey. - // - // A Digest (RFC 3230) will be added to the response. The body provided - // must match the body written in the response, and is allowed to be - // nil. The Digest ensures the response body is not tampered with in - // flight, and if the signer is created to also sign the "Digest" - // header, the HTTP Signature will then ensure both the Digest and body - // are not both modified to maliciously represent different content. - SignResponseWithOptions(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte, opts SignatureOption) error -} - -// NewSigner creates a new Signer with the provided algorithm preferences to -// make HTTP signatures. Only the first available algorithm will be used, which -// is returned by this function along with the Signer. If none of the preferred -// algorithms were available, then the default algorithm is used. The headers -// specified will be included into the HTTP signatures. -// -// The Digest will also be calculated on a request's body using the provided -// digest algorithm, if "Digest" is one of the headers listed. -// -// The provided scheme determines which header is populated with the HTTP -// Signature. -// -// An error is returned if an unknown or a known cryptographically insecure -// Algorithm is provided. -func NewSigner(prefs []Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SignerWithOptions, Algorithm, error) { - for _, pref := range prefs { - s, err := newSigner(pref, dAlgo, headers, scheme, expiresIn) - if err != nil { - continue - } - return s, pref, err - } - s, err := newSigner(defaultAlgorithm, dAlgo, headers, scheme, expiresIn) - return s, defaultAlgorithm, err -} - -// Signers will sign HTTP requests or responses based on the algorithms and -// headers selected at creation time. -// -// Signers are not safe to use between multiple goroutines. -// -// Note that signatures do set the deprecated 'algorithm' parameter for -// backwards compatibility. -type SSHSigner interface { - // SignRequest signs the request using ssh.Signer. - // The public key id is used by the HTTP server to identify which key to use - // to verify the signature. - // - // A Digest (RFC 3230) will be added to the request. The body provided - // must match the body used in the request, and is allowed to be nil. - // The Digest ensures the request body is not tampered with in flight, - // and if the signer is created to also sign the "Digest" header, the - // HTTP Signature will then ensure both the Digest and body are not both - // modified to maliciously represent different content. - SignRequest(pubKeyId string, r *http.Request, body []byte) error - // SignResponse signs the response using ssh.Signer. The public key - // id is used by the HTTP client to identify which key to use to verify - // the signature. - // - // A Digest (RFC 3230) will be added to the response. The body provided - // must match the body written in the response, and is allowed to be - // nil. The Digest ensures the response body is not tampered with in - // flight, and if the signer is created to also sign the "Digest" - // header, the HTTP Signature will then ensure both the Digest and body - // are not both modified to maliciously represent different content. - SignResponse(pubKeyId string, r http.ResponseWriter, body []byte) error -} - -// NewwSSHSigner creates a new Signer using the specified ssh.Signer -// At the moment only ed25519 ssh keys are supported. -// The headers specified will be included into the HTTP signatures. -// -// The Digest will also be calculated on a request's body using the provided -// digest algorithm, if "Digest" is one of the headers listed. -// -// The provided scheme determines which header is populated with the HTTP -// Signature. -func NewSSHSigner(s ssh.Signer, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SSHSigner, Algorithm, error) { - sshAlgo := getSSHAlgorithm(s.PublicKey().Type()) - if sshAlgo == "" { - return nil, "", fmt.Errorf("key type: %s not supported yet.", s.PublicKey().Type()) - } - - signer, err := newSSHSigner(s, sshAlgo, dAlgo, headers, scheme, expiresIn) - if err != nil { - return nil, "", err - } - - return signer, sshAlgo, nil -} - -func getSSHAlgorithm(pkType string) Algorithm { - switch { - case strings.HasPrefix(pkType, sshPrefix+"-"+ed25519Prefix): - return ED25519 - case strings.HasPrefix(pkType, sshPrefix+"-"+rsaPrefix): - return RSA_SHA1 - } - - return "" -} - -// Verifier verifies HTTP Signatures. -// -// It will determine which of the supported headers has the parameters -// that define the signature. -// -// Verifiers are not safe to use between multiple goroutines. -// -// Note that verification ignores the deprecated 'algorithm' parameter. -type Verifier interface { - // KeyId gets the public key id that the signature is signed with. - // - // Note that the application is expected to determine the algorithm - // used based on metadata or out-of-band information for this key id. - KeyId() string - // Verify accepts the public key specified by KeyId and returns an - // error if verification fails or if the signature is malformed. The - // algorithm must be the one used to create the signature in order to - // pass verification. The algorithm is determined based on metadata or - // out-of-band information for the key id. - // - // If the signature was created using a MAC based algorithm, then the - // key is expected to be of type []byte. If the signature was created - // using an RSA based algorithm, then the public key is expected to be - // of type *rsa.PublicKey. - Verify(pKey crypto.PublicKey, algo Algorithm) error -} - -type VerifierWithOptions interface { - Verifier - - VerifyWithOptions(pKey crypto.PublicKey, algo Algorithm, opts SignatureOption) error -} - -const ( - // host is treated specially because golang may not include it in the - // request header map on the server side of a request. - hostHeader = "Host" -) - -// NewVerifier verifies the given request. It returns an error if the HTTP -// Signature parameters are not present in any headers, are present in more than -// one header, are malformed, or are missing required parameters. It ignores -// unknown HTTP Signature parameters. -func NewVerifier(r *http.Request) (VerifierWithOptions, error) { - h := r.Header - if _, hasHostHeader := h[hostHeader]; len(r.Host) > 0 && !hasHostHeader { - h[hostHeader] = []string{r.Host} - } - return newVerifier(h, func(h http.Header, toInclude []string, created int64, expires int64, opts SignatureOption) (string, error) { - return signatureString(h, toInclude, addRequestTarget(r, opts), created, expires) - }) -} - -// NewResponseVerifier verifies the given response. It returns errors under the -// same conditions as NewVerifier. -func NewResponseVerifier(r *http.Response) (Verifier, error) { - return newVerifier(r.Header, func(h http.Header, toInclude []string, created int64, expires int64, _ SignatureOption) (string, error) { - return signatureString(h, toInclude, requestTargetNotPermitted, created, expires) - }) -} - -func newSSHSigner(sshSigner ssh.Signer, algo Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SSHSigner, error) { - var expires, created int64 = 0, 0 - - if expiresIn != 0 { - created = time.Now().Unix() - expires = created + expiresIn - } - - s, err := signerFromSSHSigner(sshSigner, string(algo)) - if err != nil { - return nil, fmt.Errorf("no crypto implementation available for ssh algo %q: %s", algo, err) - } - - a := &asymmSSHSigner{ - asymmSigner: &asymmSigner{ - s: s, - dAlgo: dAlgo, - headers: headers, - targetHeader: scheme, - prefix: scheme.authScheme(), - created: created, - expires: expires, - }, - } - - return a, nil -} - -func newSigner(algo Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SignerWithOptions, error) { - - var expires, created int64 = 0, 0 - if expiresIn != 0 { - created = time.Now().Unix() - expires = created + expiresIn - } - - s, err := signerFromString(string(algo)) - if err == nil { - a := &asymmSigner{ - s: s, - dAlgo: dAlgo, - headers: headers, - targetHeader: scheme, - prefix: scheme.authScheme(), - created: created, - expires: expires, - } - return a, nil - } - m, err := macerFromString(string(algo)) - if err != nil { - return nil, fmt.Errorf("no crypto implementation available for %q: %s", algo, err) - } - c := &macSigner{ - m: m, - dAlgo: dAlgo, - headers: headers, - targetHeader: scheme, - prefix: scheme.authScheme(), - created: created, - expires: expires, - } - return c, nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/signing.go b/vendor/codeberg.org/superseriousbusiness/httpsig/signing.go deleted file mode 100644 index a2fa38c5b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/httpsig/signing.go +++ /dev/null @@ -1,350 +0,0 @@ -package httpsig - -import ( - "bytes" - "crypto" - "crypto/rand" - "encoding/base64" - "fmt" - "net/http" - "net/textproto" - "strconv" - "strings" -) - -const ( - // Signature Parameters - keyIdParameter = "keyId" - algorithmParameter = "algorithm" - headersParameter = "headers" - signatureParameter = "signature" - prefixSeparater = " " - parameterKVSeparater = "=" - parameterValueDelimiter = "\"" - parameterSeparater = "," - headerParameterValueDelim = " " - // RequestTarget specifies to include the http request method and - // entire URI in the signature. Pass it as a header to NewSigner. - RequestTarget = "(request-target)" - createdKey = "created" - expiresKey = "expires" - dateHeader = "date" - - // Signature String Construction - headerFieldDelimiter = ": " - headersDelimiter = "\n" - headerValueDelimiter = ", " - requestTargetSeparator = " " -) - -var defaultHeaders = []string{dateHeader} - -var _ SignerWithOptions = &macSigner{} - -type macSigner struct { - m macer - makeDigest bool - dAlgo DigestAlgorithm - headers []string - targetHeader SignatureScheme - prefix string - created int64 - expires int64 -} - -func (m *macSigner) SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error { - return m.SignRequestWithOptions(pKey, pubKeyId, r, body, SignatureOption{}) -} - -func (m *macSigner) SignRequestWithOptions(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte, opts SignatureOption) error { - if body != nil { - err := addDigest(r, m.dAlgo, body) - if err != nil { - return err - } - } - s, err := m.signatureString(r, opts) - if err != nil { - return err - } - enc, err := m.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header, string(m.targetHeader), m.prefix, pubKeyId, m.m.String(), enc, m.headers, m.created, m.expires) - return nil -} - -func (m *macSigner) SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error { - return m.SignResponseWithOptions(pKey, pubKeyId, r, body, SignatureOption{}) -} - -func (m *macSigner) SignResponseWithOptions(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte, _ SignatureOption) error { - if body != nil { - err := addDigestResponse(r, m.dAlgo, body) - if err != nil { - return err - } - } - s, err := m.signatureStringResponse(r) - if err != nil { - return err - } - enc, err := m.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header(), string(m.targetHeader), m.prefix, pubKeyId, m.m.String(), enc, m.headers, m.created, m.expires) - return nil -} - -func (m *macSigner) signSignature(pKey crypto.PrivateKey, s string) (string, error) { - pKeyBytes, ok := pKey.([]byte) - if !ok { - return "", fmt.Errorf("private key for MAC signing must be of type []byte") - } - sig, err := m.m.Sign([]byte(s), pKeyBytes) - if err != nil { - return "", err - } - enc := base64.StdEncoding.EncodeToString(sig) - return enc, nil -} - -func (m *macSigner) signatureString(r *http.Request, opts SignatureOption) (string, error) { - return signatureString(r.Header, m.headers, addRequestTarget(r, opts), m.created, m.expires) -} - -func (m *macSigner) signatureStringResponse(r http.ResponseWriter) (string, error) { - return signatureString(r.Header(), m.headers, requestTargetNotPermitted, m.created, m.expires) -} - -var _ SignerWithOptions = &asymmSigner{} - -type asymmSigner struct { - s signer - makeDigest bool - dAlgo DigestAlgorithm - headers []string - targetHeader SignatureScheme - prefix string - created int64 - expires int64 -} - -func (a *asymmSigner) SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error { - return a.SignRequestWithOptions(pKey, pubKeyId, r, body, SignatureOption{}) -} - -func (a *asymmSigner) SignRequestWithOptions(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte, opts SignatureOption) error { - if body != nil { - err := addDigest(r, a.dAlgo, body) - if err != nil { - return err - } - } - s, err := a.signatureString(r, opts) - if err != nil { - return err - } - enc, err := a.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header, string(a.targetHeader), a.prefix, pubKeyId, a.s.String(), enc, a.headers, a.created, a.expires) - return nil -} - -func (a *asymmSigner) SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error { - return a.SignResponseWithOptions(pKey, pubKeyId, r, body, SignatureOption{}) -} - -func (a *asymmSigner) SignResponseWithOptions(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte, _ SignatureOption) error { - if body != nil { - err := addDigestResponse(r, a.dAlgo, body) - if err != nil { - return err - } - } - s, err := a.signatureStringResponse(r) - if err != nil { - return err - } - enc, err := a.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header(), string(a.targetHeader), a.prefix, pubKeyId, a.s.String(), enc, a.headers, a.created, a.expires) - return nil -} - -func (a *asymmSigner) signSignature(pKey crypto.PrivateKey, s string) (string, error) { - sig, err := a.s.Sign(rand.Reader, pKey, []byte(s)) - if err != nil { - return "", err - } - enc := base64.StdEncoding.EncodeToString(sig) - return enc, nil -} - -func (a *asymmSigner) signatureString(r *http.Request, opts SignatureOption) (string, error) { - return signatureString(r.Header, a.headers, addRequestTarget(r, opts), a.created, a.expires) -} - -func (a *asymmSigner) signatureStringResponse(r http.ResponseWriter) (string, error) { - return signatureString(r.Header(), a.headers, requestTargetNotPermitted, a.created, a.expires) -} - -var _ SSHSigner = &asymmSSHSigner{} - -type asymmSSHSigner struct { - *asymmSigner -} - -func (a *asymmSSHSigner) SignRequest(pubKeyId string, r *http.Request, body []byte) error { - return a.asymmSigner.SignRequest(nil, pubKeyId, r, body) -} - -func (a *asymmSSHSigner) SignResponse(pubKeyId string, r http.ResponseWriter, body []byte) error { - return a.asymmSigner.SignResponse(nil, pubKeyId, r, body) -} - -func setSignatureHeader(h http.Header, targetHeader, prefix, pubKeyId, algo, enc string, headers []string, created int64, expires int64) { - if len(headers) == 0 { - headers = defaultHeaders - } - var b bytes.Buffer - // KeyId - b.WriteString(prefix) - if len(prefix) > 0 { - b.WriteString(prefixSeparater) - } - b.WriteString(keyIdParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - b.WriteString(pubKeyId) - b.WriteString(parameterValueDelimiter) - b.WriteString(parameterSeparater) - // Algorithm - b.WriteString(algorithmParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - b.WriteString("hs2019") //real algorithm is hidden, see newest version of spec draft - b.WriteString(parameterValueDelimiter) - b.WriteString(parameterSeparater) - - hasCreated := false - hasExpires := false - for _, h := range headers { - val := strings.ToLower(h) - if val == "("+createdKey+")" { - hasCreated = true - } else if val == "("+expiresKey+")" { - hasExpires = true - } - } - - // Created - if hasCreated == true { - b.WriteString(createdKey) - b.WriteString(parameterKVSeparater) - b.WriteString(strconv.FormatInt(created, 10)) - b.WriteString(parameterSeparater) - } - - // Expires - if hasExpires == true { - b.WriteString(expiresKey) - b.WriteString(parameterKVSeparater) - b.WriteString(strconv.FormatInt(expires, 10)) - b.WriteString(parameterSeparater) - } - - // Headers - b.WriteString(headersParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - for i, h := range headers { - b.WriteString(strings.ToLower(h)) - if i != len(headers)-1 { - b.WriteString(headerParameterValueDelim) - } - } - b.WriteString(parameterValueDelimiter) - b.WriteString(parameterSeparater) - // Signature - b.WriteString(signatureParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - b.WriteString(enc) - b.WriteString(parameterValueDelimiter) - h.Add(targetHeader, b.String()) -} - -func requestTargetNotPermitted(b *bytes.Buffer) error { - return fmt.Errorf("cannot sign with %q on anything other than an http request", RequestTarget) -} - -func addRequestTarget(r *http.Request, opts SignatureOption) func(b *bytes.Buffer) error { - return func(b *bytes.Buffer) error { - b.WriteString(RequestTarget) - b.WriteString(headerFieldDelimiter) - b.WriteString(strings.ToLower(r.Method)) - b.WriteString(requestTargetSeparator) - b.WriteString(r.URL.Path) - - if !opts.ExcludeQueryStringFromPathPseudoHeader && r.URL.RawQuery != "" { - b.WriteString("?") - b.WriteString(r.URL.RawQuery) - } - - return nil - } -} - -func signatureString(values http.Header, include []string, requestTargetFn func(b *bytes.Buffer) error, created int64, expires int64) (string, error) { - if len(include) == 0 { - include = defaultHeaders - } - var b bytes.Buffer - for n, i := range include { - i := strings.ToLower(i) - if i == RequestTarget { - err := requestTargetFn(&b) - if err != nil { - return "", err - } - } else if i == "("+expiresKey+")" { - if expires == 0 { - return "", fmt.Errorf("missing expires value") - } - b.WriteString(i) - b.WriteString(headerFieldDelimiter) - b.WriteString(strconv.FormatInt(expires, 10)) - } else if i == "("+createdKey+")" { - if created == 0 { - return "", fmt.Errorf("missing created value") - } - b.WriteString(i) - b.WriteString(headerFieldDelimiter) - b.WriteString(strconv.FormatInt(created, 10)) - } else { - hv, ok := values[textproto.CanonicalMIMEHeaderKey(i)] - if !ok { - return "", fmt.Errorf("missing header %q", i) - } - b.WriteString(i) - b.WriteString(headerFieldDelimiter) - for i, v := range hv { - b.WriteString(strings.TrimSpace(v)) - if i < len(hv)-1 { - b.WriteString(headerValueDelimiter) - } - } - } - if n < len(include)-1 { - b.WriteString(headersDelimiter) - } - } - return b.String(), nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/httpsig/verifying.go b/vendor/codeberg.org/superseriousbusiness/httpsig/verifying.go deleted file mode 100644 index 52a142ac1..000000000 --- a/vendor/codeberg.org/superseriousbusiness/httpsig/verifying.go +++ /dev/null @@ -1,188 +0,0 @@ -package httpsig - -import ( - "crypto" - "encoding/base64" - "errors" - "fmt" - "net/http" - "strconv" - "strings" - "time" -) - -var _ VerifierWithOptions = &verifier{} - -type verifier struct { - header http.Header - kId string - signature string - created int64 - expires int64 - headers []string - sigStringFn func(http.Header, []string, int64, int64, SignatureOption) (string, error) -} - -func newVerifier(h http.Header, sigStringFn func(http.Header, []string, int64, int64, SignatureOption) (string, error)) (*verifier, error) { - scheme, s, err := getSignatureScheme(h) - if err != nil { - return nil, err - } - kId, sig, headers, created, expires, err := getSignatureComponents(scheme, s) - if created != 0 { - //check if created is not in the future, we assume a maximum clock offset of 10 seconds - now := time.Now().Unix() - if created-now > 10 { - return nil, errors.New("created is in the future") - } - } - if expires != 0 { - //check if expires is in the past, we assume a maximum clock offset of 10 seconds - now := time.Now().Unix() - if now-expires > 10 { - return nil, errors.New("signature expired") - } - } - if err != nil { - return nil, err - } - return &verifier{ - header: h, - kId: kId, - signature: sig, - created: created, - expires: expires, - headers: headers, - sigStringFn: sigStringFn, - }, nil -} - -func (v *verifier) KeyId() string { - return v.kId -} - -func (v *verifier) Verify(pKey crypto.PublicKey, algo Algorithm) error { - return v.VerifyWithOptions(pKey, algo, SignatureOption{}) -} - -func (v *verifier) VerifyWithOptions(pKey crypto.PublicKey, algo Algorithm, opts SignatureOption) error { - s, err := signerFromString(string(algo)) - if err == nil { - return v.asymmVerify(s, pKey, opts) - } - m, err := macerFromString(string(algo)) - if err == nil { - return v.macVerify(m, pKey, opts) - } - return fmt.Errorf("no crypto implementation available for %q: %s", algo, err) -} - -func (v *verifier) macVerify(m macer, pKey crypto.PublicKey, opts SignatureOption) error { - key, ok := pKey.([]byte) - if !ok { - return fmt.Errorf("public key for MAC verifying must be of type []byte") - } - signature, err := v.sigStringFn(v.header, v.headers, v.created, v.expires, opts) - if err != nil { - return err - } - actualMAC, err := base64.StdEncoding.DecodeString(v.signature) - if err != nil { - return err - } - ok, err = m.Equal([]byte(signature), actualMAC, key) - if err != nil { - return err - } else if !ok { - return fmt.Errorf("invalid http signature") - } - return nil -} - -func (v *verifier) asymmVerify(s signer, pKey crypto.PublicKey, opts SignatureOption) error { - toHash, err := v.sigStringFn(v.header, v.headers, v.created, v.expires, opts) - if err != nil { - return err - } - signature, err := base64.StdEncoding.DecodeString(v.signature) - if err != nil { - return err - } - err = s.Verify(pKey, []byte(toHash), signature) - if err != nil { - return err - } - return nil -} - -func getSignatureScheme(h http.Header) (scheme SignatureScheme, val string, err error) { - s := h.Get(string(Signature)) - sigHasAll := strings.Contains(s, keyIdParameter) || - strings.Contains(s, headersParameter) || - strings.Contains(s, signatureParameter) - a := h.Get(string(Authorization)) - authHasAll := strings.Contains(a, keyIdParameter) || - strings.Contains(a, headersParameter) || - strings.Contains(a, signatureParameter) - if sigHasAll && authHasAll { - err = fmt.Errorf("both %q and %q have signature parameters", Signature, Authorization) - return - } else if !sigHasAll && !authHasAll { - err = fmt.Errorf("neither %q nor %q have signature parameters", Signature, Authorization) - return - } else if sigHasAll { - val = s - scheme = Signature - return - } else { // authHasAll - val = a - scheme = Authorization - return - } -} - -func getSignatureComponents(scheme SignatureScheme, s string) (kId, sig string, headers []string, created int64, expires int64, err error) { - if as := scheme.authScheme(); len(as) > 0 { - s = strings.TrimPrefix(s, as+prefixSeparater) - } - params := strings.Split(s, parameterSeparater) - for _, p := range params { - kv := strings.SplitN(p, parameterKVSeparater, 2) - if len(kv) != 2 { - err = fmt.Errorf("malformed http signature parameter: %v", kv) - return - } - k := kv[0] - v := strings.Trim(kv[1], parameterValueDelimiter) - switch k { - case keyIdParameter: - kId = v - case createdKey: - created, err = strconv.ParseInt(v, 10, 64) - if err != nil { - return - } - case expiresKey: - expires, err = strconv.ParseInt(v, 10, 64) - if err != nil { - return - } - case algorithmParameter: - // Deprecated, ignore - case headersParameter: - headers = strings.Split(v, headerParameterValueDelim) - case signatureParameter: - sig = v - default: - // Ignore unrecognized parameters - } - } - if len(kId) == 0 { - err = fmt.Errorf("missing %q parameter in http signature", keyIdParameter) - } else if len(sig) == 0 { - err = fmt.Errorf("missing %q parameter in http signature", signatureParameter) - } else if len(headers) == 0 { // Optional - headers = defaultHeaders - } - return -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/.gitignore b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/.gitignore deleted file mode 100644 index 2a8538bb9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/.gitignore +++ /dev/null @@ -1,33 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test -*.prof - -coverage.txt - -# OSX -*.DS_Store -*.db -*.swp -/example/client/client -/example/server/server diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/LICENSE b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/LICENSE deleted file mode 100644 index a3f5cc079..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2016 Lyric - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/README.md b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/README.md deleted file mode 100644 index 25297aca0..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Golang OAuth 2.0 Server - -Forked from [go-oauth2](https://github.com/go-oauth2/oauth2). diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/const.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/const.go deleted file mode 100644 index 193e839fd..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/const.go +++ /dev/null @@ -1,76 +0,0 @@ -package oauth2 - -import ( - "crypto/sha256" - "encoding/base64" - "strings" -) - -// ResponseType the type of authorization request -type ResponseType string - -// define the type of authorization request -const ( - Code ResponseType = "code" - Token ResponseType = "token" -) - -func (rt ResponseType) String() string { - return string(rt) -} - -// GrantType authorization model -type GrantType string - -// define authorization model -const ( - AuthorizationCode GrantType = "authorization_code" - PasswordCredentials GrantType = "password" - ClientCredentials GrantType = "client_credentials" - Refreshing GrantType = "refresh_token" - Implicit GrantType = "__implicit" -) - -func (gt GrantType) String() string { - if gt == AuthorizationCode || - gt == PasswordCredentials || - gt == ClientCredentials || - gt == Refreshing { - return string(gt) - } - return "" -} - -// CodeChallengeMethod PCKE method -type CodeChallengeMethod string - -const ( - // CodeChallengePlain PCKE Method - CodeChallengePlain CodeChallengeMethod = "plain" - // CodeChallengeS256 PCKE Method - CodeChallengeS256 CodeChallengeMethod = "S256" -) - -func (ccm CodeChallengeMethod) String() string { - if ccm == CodeChallengePlain || - ccm == CodeChallengeS256 { - return string(ccm) - } - return "" -} - -// Validate code challenge -func (ccm CodeChallengeMethod) Validate(cc, ver string) bool { - switch ccm { - case CodeChallengePlain: - return cc == ver - case CodeChallengeS256: - s256 := sha256.Sum256([]byte(ver)) - // trim padding - a := strings.TrimRight(base64.URLEncoding.EncodeToString(s256[:]), "=") - b := strings.TrimRight(cc, "=") - return a == b - default: - return false - } -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/doc.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/doc.go deleted file mode 100644 index 162b2fc06..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/doc.go +++ /dev/null @@ -1,24 +0,0 @@ -// OAuth 2.0 server library for the Go programming language -// -// package main -// import ( -// "net/http" -// "codeberg.org/superseriousbusiness/oauth2/v4/manage" -// "codeberg.org/superseriousbusiness/oauth2/v4/server" -// "codeberg.org/superseriousbusiness/oauth2/v4/store" -// ) -// func main() { -// manager := manage.NewDefaultManager() -// manager.MustTokenStorage(store.NewMemoryTokenStore()) -// manager.MapClientStorage(store.NewTestClientStore()) -// srv := server.NewDefaultServer(manager) -// http.HandleFunc("/authorize", func(w http.ResponseWriter, r *http.Request) { -// srv.HandleAuthorizeRequest(w, r) -// }) -// http.HandleFunc("/token", func(w http.ResponseWriter, r *http.Request) { -// srv.HandleTokenRequest(w, r) -// }) -// http.ListenAndServe(":9096", nil) -// } - -package oauth2 diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/error.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/error.go deleted file mode 100644 index 71ae0464f..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/error.go +++ /dev/null @@ -1,19 +0,0 @@ -package errors - -import "errors" - -// New returns an error that formats as the given text. -var New = errors.New - -// known errors -var ( - ErrInvalidRedirectURI = errors.New("invalid redirect uri") - ErrInvalidAuthorizeCode = errors.New("invalid authorize code") - ErrInvalidAccessToken = errors.New("invalid access token") - ErrInvalidRefreshToken = errors.New("invalid refresh token") - ErrExpiredAccessToken = errors.New("expired access token") - ErrExpiredRefreshToken = errors.New("expired refresh token") - ErrMissingCodeVerifier = errors.New("missing code verifier") - ErrMissingCodeChallenge = errors.New("missing code challenge") - ErrInvalidCodeChallenge = errors.New("invalid code challenge") -) diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/response.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/response.go deleted file mode 100644 index c8d5902eb..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/errors/response.go +++ /dev/null @@ -1,84 +0,0 @@ -package errors - -import ( - "errors" - "net/http" -) - -// Response error response -type Response struct { - Error error - ErrorCode int - Description string - URI string - StatusCode int - Header http.Header -} - -// NewResponse create the response pointer -func NewResponse(err error, statusCode int) *Response { - return &Response{ - Error: err, - StatusCode: statusCode, - } -} - -// SetHeader sets the header entries associated with key to -// the single element value. -func (r *Response) SetHeader(key, value string) { - if r.Header == nil { - r.Header = make(http.Header) - } - r.Header.Set(key, value) -} - -// https://tools.ietf.org/html/rfc6749#section-5.2 -var ( - ErrInvalidRequest = errors.New("invalid_request") - ErrUnauthorizedClient = errors.New("unauthorized_client") - ErrAccessDenied = errors.New("access_denied") - ErrUnsupportedResponseType = errors.New("unsupported_response_type") - ErrInvalidScope = errors.New("invalid_scope") - ErrServerError = errors.New("server_error") - ErrTemporarilyUnavailable = errors.New("temporarily_unavailable") - ErrInvalidClient = errors.New("invalid_client") - ErrInvalidGrant = errors.New("invalid_grant") - ErrUnsupportedGrantType = errors.New("unsupported_grant_type") - ErrCodeChallengeRquired = errors.New("invalid_request") - ErrUnsupportedCodeChallengeMethod = errors.New("invalid_request") - ErrInvalidCodeChallengeLen = errors.New("invalid_request") -) - -// Descriptions error description -var Descriptions = map[error]string{ - ErrInvalidRequest: "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed", - ErrUnauthorizedClient: "The client is not authorized to request an authorization code using this method", - ErrAccessDenied: "The resource owner or authorization server denied the request", - ErrUnsupportedResponseType: "The authorization server does not support obtaining an authorization code using this method", - ErrInvalidScope: "The requested scope is invalid, unknown, or malformed", - ErrServerError: "The authorization server encountered an unexpected condition that prevented it from fulfilling the request", - ErrTemporarilyUnavailable: "The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server", - ErrInvalidClient: "Client authentication failed", - ErrInvalidGrant: "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client", - ErrUnsupportedGrantType: "The authorization grant type is not supported by the authorization server", - ErrCodeChallengeRquired: "PKCE is required. code_challenge is missing", - ErrUnsupportedCodeChallengeMethod: "Selected code_challenge_method not supported", - ErrInvalidCodeChallengeLen: "Code challenge length must be between 43 and 128 charachters long", -} - -// StatusCodes response error HTTP status code -var StatusCodes = map[error]int{ - ErrInvalidRequest: 400, - ErrUnauthorizedClient: 401, - ErrAccessDenied: 403, - ErrUnsupportedResponseType: 401, - ErrInvalidScope: 400, - ErrServerError: 500, - ErrTemporarilyUnavailable: 503, - ErrInvalidClient: 401, - ErrInvalidGrant: 401, - ErrUnsupportedGrantType: 401, - ErrCodeChallengeRquired: 400, - ErrUnsupportedCodeChallengeMethod: 400, - ErrInvalidCodeChallengeLen: 400, -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generate.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generate.go deleted file mode 100644 index fd5c8cb16..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generate.go +++ /dev/null @@ -1,28 +0,0 @@ -package oauth2 - -import ( - "context" - "net/http" - "time" -) - -type ( - // GenerateBasic provide the basis of the generated token data - GenerateBasic struct { - Client ClientInfo - UserID string - CreateAt time.Time - TokenInfo TokenInfo - Request *http.Request - } - - // AuthorizeGenerate generate the authorization code interface - AuthorizeGenerate interface { - Token(ctx context.Context, data *GenerateBasic) (code string, err error) - } - - // AccessGenerate generate the access and refresh tokens interface - AccessGenerate interface { - Token(ctx context.Context, data *GenerateBasic, isGenRefresh bool) (access, refresh string, err error) - } -) diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/access.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/access.go deleted file mode 100644 index 83a2e72f3..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/access.go +++ /dev/null @@ -1,38 +0,0 @@ -package generates - -import ( - "bytes" - "context" - "encoding/base64" - "strconv" - "strings" - - "codeberg.org/superseriousbusiness/oauth2/v4" - "github.com/google/uuid" -) - -// NewAccessGenerate create to generate the access token instance -func NewAccessGenerate() *AccessGenerate { - return &AccessGenerate{} -} - -// AccessGenerate generate the access token -type AccessGenerate struct { -} - -// Token based on the UUID generated token -func (ag *AccessGenerate) Token(ctx context.Context, data *oauth2.GenerateBasic, isGenRefresh bool) (string, string, error) { - buf := bytes.NewBufferString(data.Client.GetID()) - buf.WriteString(data.UserID) - buf.WriteString(strconv.FormatInt(data.CreateAt.UnixNano(), 10)) - - access := base64.URLEncoding.EncodeToString([]byte(uuid.NewMD5(uuid.Must(uuid.NewRandom()), buf.Bytes()).String())) - access = strings.ToUpper(strings.TrimRight(access, "=")) - refresh := "" - if isGenRefresh { - refresh = base64.URLEncoding.EncodeToString([]byte(uuid.NewSHA1(uuid.Must(uuid.NewRandom()), buf.Bytes()).String())) - refresh = strings.ToUpper(strings.TrimRight(refresh, "=")) - } - - return access, refresh, nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/authorize.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/authorize.go deleted file mode 100644 index b53b0cf7c..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/authorize.go +++ /dev/null @@ -1,30 +0,0 @@ -package generates - -import ( - "bytes" - "context" - "encoding/base64" - "strings" - - "codeberg.org/superseriousbusiness/oauth2/v4" - "github.com/google/uuid" -) - -// NewAuthorizeGenerate create to generate the authorize code instance -func NewAuthorizeGenerate() *AuthorizeGenerate { - return &AuthorizeGenerate{} -} - -// AuthorizeGenerate generate the authorize code -type AuthorizeGenerate struct{} - -// Token based on the UUID generated token -func (ag *AuthorizeGenerate) Token(ctx context.Context, data *oauth2.GenerateBasic) (string, error) { - buf := bytes.NewBufferString(data.Client.GetID()) - buf.WriteString(data.UserID) - token := uuid.NewMD5(uuid.Must(uuid.NewRandom()), buf.Bytes()) - code := base64.URLEncoding.EncodeToString([]byte(token.String())) - code = strings.ToUpper(strings.TrimRight(code, "=")) - - return code, nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/jwt_access.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/jwt_access.go deleted file mode 100644 index 9a621bd4b..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/generates/jwt_access.go +++ /dev/null @@ -1,104 +0,0 @@ -package generates - -import ( - "context" - "encoding/base64" - "strings" - "time" - - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" - "github.com/golang-jwt/jwt" - "github.com/google/uuid" -) - -// JWTAccessClaims jwt claims -type JWTAccessClaims struct { - jwt.StandardClaims -} - -// Valid claims verification -func (a *JWTAccessClaims) Valid() error { - if time.Unix(a.ExpiresAt, 0).Before(time.Now()) { - return errors.ErrInvalidAccessToken - } - return nil -} - -// NewJWTAccessGenerate create to generate the jwt access token instance -func NewJWTAccessGenerate(kid string, key []byte, method jwt.SigningMethod) *JWTAccessGenerate { - return &JWTAccessGenerate{ - SignedKeyID: kid, - SignedKey: key, - SignedMethod: method, - } -} - -// JWTAccessGenerate generate the jwt access token -type JWTAccessGenerate struct { - SignedKeyID string - SignedKey []byte - SignedMethod jwt.SigningMethod -} - -// Token based on the UUID generated token -func (a *JWTAccessGenerate) Token(ctx context.Context, data *oauth2.GenerateBasic, isGenRefresh bool) (string, string, error) { - claims := &JWTAccessClaims{ - StandardClaims: jwt.StandardClaims{ - Audience: data.Client.GetID(), - Subject: data.UserID, - ExpiresAt: data.TokenInfo.GetAccessCreateAt().Add(data.TokenInfo.GetAccessExpiresIn()).Unix(), - }, - } - - token := jwt.NewWithClaims(a.SignedMethod, claims) - if a.SignedKeyID != "" { - token.Header["kid"] = a.SignedKeyID - } - var key interface{} - if a.isEs() { - v, err := jwt.ParseECPrivateKeyFromPEM(a.SignedKey) - if err != nil { - return "", "", err - } - key = v - } else if a.isRsOrPS() { - v, err := jwt.ParseRSAPrivateKeyFromPEM(a.SignedKey) - if err != nil { - return "", "", err - } - key = v - } else if a.isHs() { - key = a.SignedKey - } else { - return "", "", errors.New("unsupported sign method") - } - - access, err := token.SignedString(key) - if err != nil { - return "", "", err - } - refresh := "" - - if isGenRefresh { - t := uuid.NewSHA1(uuid.Must(uuid.NewRandom()), []byte(access)).String() - refresh = base64.URLEncoding.EncodeToString([]byte(t)) - refresh = strings.ToUpper(strings.TrimRight(refresh, "=")) - } - - return access, refresh, nil -} - -func (a *JWTAccessGenerate) isEs() bool { - return strings.HasPrefix(a.SignedMethod.Alg(), "ES") -} - -func (a *JWTAccessGenerate) isRsOrPS() bool { - isRs := strings.HasPrefix(a.SignedMethod.Alg(), "RS") - isPs := strings.HasPrefix(a.SignedMethod.Alg(), "PS") - return isRs || isPs -} - -func (a *JWTAccessGenerate) isHs() bool { - return strings.HasPrefix(a.SignedMethod.Alg(), "HS") -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/go.test.sh b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/go.test.sh deleted file mode 100644 index 7141c0d3e..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/go.test.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -set -e -echo "" > coverage.txt - -for d in $(go list ./... | grep -v vendor); do - go test -race -coverprofile=profile.out -covermode=atomic "$d" - if [ -f profile.out ]; then - cat profile.out >> coverage.txt - rm profile.out - fi -done \ No newline at end of file diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage.go deleted file mode 100644 index 5c0bdf871..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage.go +++ /dev/null @@ -1,50 +0,0 @@ -package oauth2 - -import ( - "context" - "net/http" - "time" -) - -// TokenGenerateRequest provide to generate the token request parameters -type TokenGenerateRequest struct { - ClientID string - ClientSecret string - UserID string - RedirectURI string - Scope string - Code string - CodeChallenge string - CodeChallengeMethod CodeChallengeMethod - Refresh string - CodeVerifier string - AccessTokenExp time.Duration - Request *http.Request -} - -// Manager authorization management interface -type Manager interface { - // get the client information - GetClient(ctx context.Context, clientID string) (cli ClientInfo, err error) - - // generate the authorization token(code) - GenerateAuthToken(ctx context.Context, rt ResponseType, tgr *TokenGenerateRequest) (authToken TokenInfo, err error) - - // generate the access token - GenerateAccessToken(ctx context.Context, rt GrantType, tgr *TokenGenerateRequest) (accessToken TokenInfo, err error) - - // refreshing an access token - RefreshAccessToken(ctx context.Context, tgr *TokenGenerateRequest) (accessToken TokenInfo, err error) - - // use the access token to delete the token information - RemoveAccessToken(ctx context.Context, access string) (err error) - - // use the refresh token to delete the token information - RemoveRefreshToken(ctx context.Context, refresh string) (err error) - - // according to the access token for corresponding token information - LoadAccessToken(ctx context.Context, access string) (ti TokenInfo, err error) - - // according to the refresh token for corresponding token information - LoadRefreshToken(ctx context.Context, refresh string) (ti TokenInfo, err error) -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/config.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/config.go deleted file mode 100644 index 664c0a386..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/config.go +++ /dev/null @@ -1,39 +0,0 @@ -package manage - -import "time" - -// Config authorization configuration parameters -type Config struct { - // access token expiration time, 0 means it doesn't expire - AccessTokenExp time.Duration - // refresh token expiration time, 0 means it doesn't expire - RefreshTokenExp time.Duration - // whether to generate the refreshing token - IsGenerateRefresh bool -} - -// RefreshingConfig refreshing token config -type RefreshingConfig struct { - // access token expiration time, 0 means it doesn't expire - AccessTokenExp time.Duration - // refresh token expiration time, 0 means it doesn't expire - RefreshTokenExp time.Duration - // whether to generate the refreshing token - IsGenerateRefresh bool - // whether to reset the refreshing create time - IsResetRefreshTime bool - // whether to remove access token - IsRemoveAccess bool - // whether to remove refreshing token - IsRemoveRefreshing bool -} - -// default configs -var ( - DefaultCodeExp = time.Minute * 10 - DefaultAuthorizeCodeTokenCfg = &Config{AccessTokenExp: time.Hour * 2, RefreshTokenExp: time.Hour * 24 * 3, IsGenerateRefresh: true} - DefaultImplicitTokenCfg = &Config{AccessTokenExp: time.Hour * 1} - DefaultPasswordTokenCfg = &Config{AccessTokenExp: time.Hour * 2, RefreshTokenExp: time.Hour * 24 * 7, IsGenerateRefresh: true} - DefaultClientTokenCfg = &Config{AccessTokenExp: time.Hour * 2} - DefaultRefreshTokenCfg = &RefreshingConfig{IsGenerateRefresh: true, IsRemoveAccess: true, IsRemoveRefreshing: true} -) diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/manager.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/manager.go deleted file mode 100644 index 8e73b6793..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/manager.go +++ /dev/null @@ -1,504 +0,0 @@ -package manage - -import ( - "context" - "time" - - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" - "codeberg.org/superseriousbusiness/oauth2/v4/generates" - "codeberg.org/superseriousbusiness/oauth2/v4/models" -) - -// NewDefaultManager create to default authorization management instance -func NewDefaultManager() *Manager { - m := NewManager() - // default implementation - m.MapAuthorizeGenerate(generates.NewAuthorizeGenerate()) - m.MapAccessGenerate(generates.NewAccessGenerate()) - - return m -} - -// NewManager create to authorization management instance -func NewManager() *Manager { - return &Manager{ - gtcfg: make(map[oauth2.GrantType]*Config), - validateURI: DefaultValidateURI, - } -} - -// Manager provide authorization management -type Manager struct { - codeExp time.Duration - gtcfg map[oauth2.GrantType]*Config - rcfg *RefreshingConfig - validateURI ValidateURIHandler - authorizeGenerate oauth2.AuthorizeGenerate - accessGenerate oauth2.AccessGenerate - tokenStore oauth2.TokenStore - clientStore oauth2.ClientStore -} - -// get grant type config -func (m *Manager) grantConfig(gt oauth2.GrantType) *Config { - if c, ok := m.gtcfg[gt]; ok && c != nil { - return c - } - switch gt { - case oauth2.AuthorizationCode: - return DefaultAuthorizeCodeTokenCfg - case oauth2.Implicit: - return DefaultImplicitTokenCfg - case oauth2.PasswordCredentials: - return DefaultPasswordTokenCfg - case oauth2.ClientCredentials: - return DefaultClientTokenCfg - } - return &Config{} -} - -// SetAuthorizeCodeExp set the authorization code expiration time -func (m *Manager) SetAuthorizeCodeExp(exp time.Duration) { - m.codeExp = exp -} - -// SetAuthorizeCodeTokenCfg set the authorization code grant token config -func (m *Manager) SetAuthorizeCodeTokenCfg(cfg *Config) { - m.gtcfg[oauth2.AuthorizationCode] = cfg -} - -// SetImplicitTokenCfg set the implicit grant token config -func (m *Manager) SetImplicitTokenCfg(cfg *Config) { - m.gtcfg[oauth2.Implicit] = cfg -} - -// SetPasswordTokenCfg set the password grant token config -func (m *Manager) SetPasswordTokenCfg(cfg *Config) { - m.gtcfg[oauth2.PasswordCredentials] = cfg -} - -// SetClientTokenCfg set the client grant token config -func (m *Manager) SetClientTokenCfg(cfg *Config) { - m.gtcfg[oauth2.ClientCredentials] = cfg -} - -// SetRefreshTokenCfg set the refreshing token config -func (m *Manager) SetRefreshTokenCfg(cfg *RefreshingConfig) { - m.rcfg = cfg -} - -// SetValidateURIHandler set the validates that RedirectURI is contained in baseURI -func (m *Manager) SetValidateURIHandler(handler ValidateURIHandler) { - m.validateURI = handler -} - -// MapAuthorizeGenerate mapping the authorize code generate interface -func (m *Manager) MapAuthorizeGenerate(gen oauth2.AuthorizeGenerate) { - m.authorizeGenerate = gen -} - -// MapAccessGenerate mapping the access token generate interface -func (m *Manager) MapAccessGenerate(gen oauth2.AccessGenerate) { - m.accessGenerate = gen -} - -// MapClientStorage mapping the client store interface -func (m *Manager) MapClientStorage(stor oauth2.ClientStore) { - m.clientStore = stor -} - -// MustClientStorage mandatory mapping the client store interface -func (m *Manager) MustClientStorage(stor oauth2.ClientStore, err error) { - if err != nil { - panic(err.Error()) - } - m.clientStore = stor -} - -// MapTokenStorage mapping the token store interface -func (m *Manager) MapTokenStorage(stor oauth2.TokenStore) { - m.tokenStore = stor -} - -// MustTokenStorage mandatory mapping the token store interface -func (m *Manager) MustTokenStorage(stor oauth2.TokenStore, err error) { - if err != nil { - panic(err) - } - m.tokenStore = stor -} - -// GetClient get the client information -func (m *Manager) GetClient(ctx context.Context, clientID string) (cli oauth2.ClientInfo, err error) { - cli, err = m.clientStore.GetByID(ctx, clientID) - if err != nil { - return - } else if cli == nil { - err = errors.ErrInvalidClient - } - return -} - -// GenerateAuthToken generate the authorization token(code) -func (m *Manager) GenerateAuthToken(ctx context.Context, rt oauth2.ResponseType, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, error) { - cli, err := m.GetClient(ctx, tgr.ClientID) - if err != nil { - return nil, err - } else if tgr.RedirectURI != "" { - if err := m.validateURI(cli.GetDomain(), tgr.RedirectURI); err != nil { - return nil, err - } - } - - ti := models.NewToken() - ti.SetClientID(tgr.ClientID) - ti.SetUserID(tgr.UserID) - ti.SetRedirectURI(tgr.RedirectURI) - ti.SetScope(tgr.Scope) - - createAt := time.Now() - td := &oauth2.GenerateBasic{ - Client: cli, - UserID: tgr.UserID, - CreateAt: createAt, - TokenInfo: ti, - Request: tgr.Request, - } - switch rt { - case oauth2.Code: - codeExp := m.codeExp - if codeExp == 0 { - codeExp = DefaultCodeExp - } - ti.SetCodeCreateAt(createAt) - ti.SetCodeExpiresIn(codeExp) - if exp := tgr.AccessTokenExp; exp > 0 { - ti.SetAccessExpiresIn(exp) - } - if tgr.CodeChallenge != "" { - ti.SetCodeChallenge(tgr.CodeChallenge) - ti.SetCodeChallengeMethod(tgr.CodeChallengeMethod) - } - - tv, err := m.authorizeGenerate.Token(ctx, td) - if err != nil { - return nil, err - } - ti.SetCode(tv) - case oauth2.Token: - // set access token expires - icfg := m.grantConfig(oauth2.Implicit) - aexp := icfg.AccessTokenExp - if exp := tgr.AccessTokenExp; exp > 0 { - aexp = exp - } - ti.SetAccessCreateAt(createAt) - ti.SetAccessExpiresIn(aexp) - - if icfg.IsGenerateRefresh { - ti.SetRefreshCreateAt(createAt) - ti.SetRefreshExpiresIn(icfg.RefreshTokenExp) - } - - tv, rv, err := m.accessGenerate.Token(ctx, td, icfg.IsGenerateRefresh) - if err != nil { - return nil, err - } - ti.SetAccess(tv) - - if rv != "" { - ti.SetRefresh(rv) - } - } - - err = m.tokenStore.Create(ctx, ti) - if err != nil { - return nil, err - } - return ti, nil -} - -// get authorization code data -func (m *Manager) getAuthorizationCode(ctx context.Context, code string) (oauth2.TokenInfo, error) { - ti, err := m.tokenStore.GetByCode(ctx, code) - if err != nil { - return nil, err - } else if ti == nil || ti.GetCode() != code || ti.GetCodeCreateAt().Add(ti.GetCodeExpiresIn()).Before(time.Now()) { - err = errors.ErrInvalidAuthorizeCode - return nil, errors.ErrInvalidAuthorizeCode - } - return ti, nil -} - -// delete authorization code data -func (m *Manager) delAuthorizationCode(ctx context.Context, code string) error { - return m.tokenStore.RemoveByCode(ctx, code) -} - -// get and delete authorization code data -func (m *Manager) getAndDelAuthorizationCode(ctx context.Context, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, error) { - code := tgr.Code - ti, err := m.getAuthorizationCode(ctx, code) - if err != nil { - return nil, err - } else if ti.GetClientID() != tgr.ClientID { - return nil, errors.ErrInvalidAuthorizeCode - } else if codeURI := ti.GetRedirectURI(); codeURI != "" && codeURI != tgr.RedirectURI { - return nil, errors.ErrInvalidAuthorizeCode - } - - err = m.delAuthorizationCode(ctx, code) - if err != nil { - return nil, err - } - return ti, nil -} - -func (m *Manager) validateCodeChallenge(ti oauth2.TokenInfo, ver string) error { - cc := ti.GetCodeChallenge() - // early return - if cc == "" && ver == "" { - return nil - } - if cc == "" { - return errors.ErrMissingCodeVerifier - } - if ver == "" { - return errors.ErrMissingCodeVerifier - } - ccm := ti.GetCodeChallengeMethod() - if ccm.String() == "" { - ccm = oauth2.CodeChallengePlain - } - if !ccm.Validate(cc, ver) { - return errors.ErrInvalidCodeChallenge - } - return nil -} - -// GenerateAccessToken generate the access token -func (m *Manager) GenerateAccessToken(ctx context.Context, gt oauth2.GrantType, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, error) { - cli, err := m.GetClient(ctx, tgr.ClientID) - if err != nil { - return nil, err - } - if cliPass, ok := cli.(oauth2.ClientPasswordVerifier); ok { - if !cliPass.VerifyPassword(tgr.ClientSecret) { - return nil, errors.ErrInvalidClient - } - } else if len(cli.GetSecret()) > 0 && tgr.ClientSecret != cli.GetSecret() { - return nil, errors.ErrInvalidClient - } - if tgr.RedirectURI != "" { - if err := m.validateURI(cli.GetDomain(), tgr.RedirectURI); err != nil { - return nil, err - } - } - - if gt == oauth2.AuthorizationCode { - ti, err := m.getAndDelAuthorizationCode(ctx, tgr) - if err != nil { - return nil, err - } - if err := m.validateCodeChallenge(ti, tgr.CodeVerifier); err != nil { - return nil, err - } - tgr.UserID = ti.GetUserID() - tgr.Scope = ti.GetScope() - if exp := ti.GetAccessExpiresIn(); exp > 0 { - tgr.AccessTokenExp = exp - } - } - - ti := models.NewToken() - ti.SetClientID(tgr.ClientID) - ti.SetUserID(tgr.UserID) - ti.SetRedirectURI(tgr.RedirectURI) - ti.SetScope(tgr.Scope) - - createAt := time.Now() - ti.SetAccessCreateAt(createAt) - - // set access token expires - gcfg := m.grantConfig(gt) - aexp := gcfg.AccessTokenExp - if exp := tgr.AccessTokenExp; exp > 0 { - aexp = exp - } - ti.SetAccessExpiresIn(aexp) - if gcfg.IsGenerateRefresh { - ti.SetRefreshCreateAt(createAt) - ti.SetRefreshExpiresIn(gcfg.RefreshTokenExp) - } - - td := &oauth2.GenerateBasic{ - Client: cli, - UserID: tgr.UserID, - CreateAt: createAt, - TokenInfo: ti, - Request: tgr.Request, - } - - av, rv, err := m.accessGenerate.Token(ctx, td, gcfg.IsGenerateRefresh) - if err != nil { - return nil, err - } - ti.SetAccess(av) - - if rv != "" { - ti.SetRefresh(rv) - } - - err = m.tokenStore.Create(ctx, ti) - if err != nil { - return nil, err - } - - return ti, nil -} - -// RefreshAccessToken refreshing an access token -func (m *Manager) RefreshAccessToken(ctx context.Context, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, error) { - cli, err := m.GetClient(ctx, tgr.ClientID) - if err != nil { - return nil, err - } else if cliPass, ok := cli.(oauth2.ClientPasswordVerifier); ok { - if !cliPass.VerifyPassword(tgr.ClientSecret) { - return nil, errors.ErrInvalidClient - } - } else if tgr.ClientSecret != cli.GetSecret() { - return nil, errors.ErrInvalidClient - } - - ti, err := m.LoadRefreshToken(ctx, tgr.Refresh) - if err != nil { - return nil, err - } else if ti.GetClientID() != tgr.ClientID { - return nil, errors.ErrInvalidRefreshToken - } - - oldAccess, oldRefresh := ti.GetAccess(), ti.GetRefresh() - - td := &oauth2.GenerateBasic{ - Client: cli, - UserID: ti.GetUserID(), - CreateAt: time.Now(), - TokenInfo: ti, - Request: tgr.Request, - } - - rcfg := DefaultRefreshTokenCfg - if v := m.rcfg; v != nil { - rcfg = v - } - - ti.SetAccessCreateAt(td.CreateAt) - if v := rcfg.AccessTokenExp; v > 0 { - ti.SetAccessExpiresIn(v) - } - - if v := rcfg.RefreshTokenExp; v > 0 { - ti.SetRefreshExpiresIn(v) - } - - if rcfg.IsResetRefreshTime { - ti.SetRefreshCreateAt(td.CreateAt) - } - - if scope := tgr.Scope; scope != "" { - ti.SetScope(scope) - } - - tv, rv, err := m.accessGenerate.Token(ctx, td, rcfg.IsGenerateRefresh) - if err != nil { - return nil, err - } - - ti.SetAccess(tv) - if rv != "" { - ti.SetRefresh(rv) - } - - if err := m.tokenStore.Create(ctx, ti); err != nil { - return nil, err - } - - if rcfg.IsRemoveAccess { - // remove the old access token - if err := m.tokenStore.RemoveByAccess(ctx, oldAccess); err != nil { - return nil, err - } - } - - if rcfg.IsRemoveRefreshing && rv != "" { - // remove the old refresh token - if err := m.tokenStore.RemoveByRefresh(ctx, oldRefresh); err != nil { - return nil, err - } - } - - if rv == "" { - ti.SetRefresh("") - ti.SetRefreshCreateAt(time.Now()) - ti.SetRefreshExpiresIn(0) - } - - return ti, nil -} - -// RemoveAccessToken use the access token to delete the token information -func (m *Manager) RemoveAccessToken(ctx context.Context, access string) error { - if access == "" { - return errors.ErrInvalidAccessToken - } - return m.tokenStore.RemoveByAccess(ctx, access) -} - -// RemoveRefreshToken use the refresh token to delete the token information -func (m *Manager) RemoveRefreshToken(ctx context.Context, refresh string) error { - if refresh == "" { - return errors.ErrInvalidAccessToken - } - return m.tokenStore.RemoveByRefresh(ctx, refresh) -} - -// LoadAccessToken according to the access token for corresponding token information -func (m *Manager) LoadAccessToken(ctx context.Context, access string) (oauth2.TokenInfo, error) { - if access == "" { - return nil, errors.ErrInvalidAccessToken - } - - ct := time.Now() - ti, err := m.tokenStore.GetByAccess(ctx, access) - if err != nil { - return nil, err - } else if ti == nil || ti.GetAccess() != access { - return nil, errors.ErrInvalidAccessToken - } else if ti.GetRefresh() != "" && ti.GetRefreshExpiresIn() != 0 && - ti.GetRefreshCreateAt().Add(ti.GetRefreshExpiresIn()).Before(ct) { - return nil, errors.ErrExpiredRefreshToken - } else if ti.GetAccessExpiresIn() != 0 && - ti.GetAccessCreateAt().Add(ti.GetAccessExpiresIn()).Before(ct) { - return nil, errors.ErrExpiredAccessToken - } - return ti, nil -} - -// LoadRefreshToken according to the refresh token for corresponding token information -func (m *Manager) LoadRefreshToken(ctx context.Context, refresh string) (oauth2.TokenInfo, error) { - if refresh == "" { - return nil, errors.ErrInvalidRefreshToken - } - - ti, err := m.tokenStore.GetByRefresh(ctx, refresh) - if err != nil { - return nil, err - } else if ti == nil || ti.GetRefresh() != refresh { - return nil, errors.ErrInvalidRefreshToken - } else if ti.GetRefreshExpiresIn() != 0 && // refresh token set to not expire - ti.GetRefreshCreateAt().Add(ti.GetRefreshExpiresIn()).Before(time.Now()) { - return nil, errors.ErrExpiredRefreshToken - } - return ti, nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/util.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/util.go deleted file mode 100644 index fd1146231..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/manage/util.go +++ /dev/null @@ -1,30 +0,0 @@ -package manage - -import ( - "net/url" - "strings" - - "codeberg.org/superseriousbusiness/oauth2/v4/errors" -) - -type ( - // ValidateURIHandler validates that redirectURI is contained in baseURI - ValidateURIHandler func(baseURI, redirectURI string) error -) - -// DefaultValidateURI validates that redirectURI is contained in baseURI -func DefaultValidateURI(baseURI string, redirectURI string) error { - base, err := url.Parse(baseURI) - if err != nil { - return err - } - - redirect, err := url.Parse(redirectURI) - if err != nil { - return err - } - if !strings.HasSuffix(redirect.Host, base.Host) { - return errors.ErrInvalidRedirectURI - } - return nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/model.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/model.go deleted file mode 100644 index 121a42d67..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/model.go +++ /dev/null @@ -1,59 +0,0 @@ -package oauth2 - -import ( - "time" -) - -type ( - // ClientInfo the client information model interface - ClientInfo interface { - GetID() string - GetSecret() string - GetDomain() string - GetUserID() string - } - - // ClientPasswordVerifier the password handler interface - ClientPasswordVerifier interface { - VerifyPassword(string) bool - } - - // TokenInfo the token information model interface - TokenInfo interface { - New() TokenInfo - - GetClientID() string - SetClientID(string) - GetUserID() string - SetUserID(string) - GetRedirectURI() string - SetRedirectURI(string) - GetScope() string - SetScope(string) - - GetCode() string - SetCode(string) - GetCodeCreateAt() time.Time - SetCodeCreateAt(time.Time) - GetCodeExpiresIn() time.Duration - SetCodeExpiresIn(time.Duration) - GetCodeChallenge() string - SetCodeChallenge(string) - GetCodeChallengeMethod() CodeChallengeMethod - SetCodeChallengeMethod(CodeChallengeMethod) - - GetAccess() string - SetAccess(string) - GetAccessCreateAt() time.Time - SetAccessCreateAt(time.Time) - GetAccessExpiresIn() time.Duration - SetAccessExpiresIn(time.Duration) - - GetRefresh() string - SetRefresh(string) - GetRefreshCreateAt() time.Time - SetRefreshCreateAt(time.Time) - GetRefreshExpiresIn() time.Duration - SetRefreshExpiresIn(time.Duration) - } -) diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/client.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/client.go deleted file mode 100644 index 2006b6712..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/client.go +++ /dev/null @@ -1,46 +0,0 @@ -package models - -// Client client model -type Client interface { - GetID() string - GetSecret() string - GetDomain() string - GetUserID() string -} - -func New(id string, secret string, domain string, userID string) Client { - return &simpleClient{ - id: id, - secret: secret, - domain: domain, - userID: userID, - } -} - -// simpleClient is a very simple client model that satisfies the Client interface -type simpleClient struct { - id string - secret string - domain string - userID string -} - -// GetID client id -func (c *simpleClient) GetID() string { - return c.id -} - -// GetSecret client secret -func (c *simpleClient) GetSecret() string { - return c.secret -} - -// GetDomain client domain -func (c *simpleClient) GetDomain() string { - return c.domain -} - -// GetUserID user id -func (c *simpleClient) GetUserID() string { - return c.userID -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/token.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/token.go deleted file mode 100644 index d4cacc463..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/models/token.go +++ /dev/null @@ -1,186 +0,0 @@ -package models - -import ( - "time" - - "codeberg.org/superseriousbusiness/oauth2/v4" -) - -// NewToken create to token model instance -func NewToken() *Token { - return &Token{} -} - -// Token token model -type Token struct { - ClientID string `bson:"ClientID"` - UserID string `bson:"UserID"` - RedirectURI string `bson:"RedirectURI"` - Scope string `bson:"Scope"` - Code string `bson:"Code"` - CodeChallenge string `bson:"CodeChallenge"` - CodeChallengeMethod string `bson:"CodeChallengeMethod"` - CodeCreateAt time.Time `bson:"CodeCreateAt"` - CodeExpiresIn time.Duration `bson:"CodeExpiresIn"` - Access string `bson:"Access"` - AccessCreateAt time.Time `bson:"AccessCreateAt"` - AccessExpiresIn time.Duration `bson:"AccessExpiresIn"` - Refresh string `bson:"Refresh"` - RefreshCreateAt time.Time `bson:"RefreshCreateAt"` - RefreshExpiresIn time.Duration `bson:"RefreshExpiresIn"` -} - -// New create to token model instance -func (t *Token) New() oauth2.TokenInfo { - return NewToken() -} - -// GetClientID the client id -func (t *Token) GetClientID() string { - return t.ClientID -} - -// SetClientID the client id -func (t *Token) SetClientID(clientID string) { - t.ClientID = clientID -} - -// GetUserID the user id -func (t *Token) GetUserID() string { - return t.UserID -} - -// SetUserID the user id -func (t *Token) SetUserID(userID string) { - t.UserID = userID -} - -// GetRedirectURI redirect URI -func (t *Token) GetRedirectURI() string { - return t.RedirectURI -} - -// SetRedirectURI redirect URI -func (t *Token) SetRedirectURI(redirectURI string) { - t.RedirectURI = redirectURI -} - -// GetScope get scope of authorization -func (t *Token) GetScope() string { - return t.Scope -} - -// SetScope get scope of authorization -func (t *Token) SetScope(scope string) { - t.Scope = scope -} - -// GetCode authorization code -func (t *Token) GetCode() string { - return t.Code -} - -// SetCode authorization code -func (t *Token) SetCode(code string) { - t.Code = code -} - -// GetCodeCreateAt create Time -func (t *Token) GetCodeCreateAt() time.Time { - return t.CodeCreateAt -} - -// SetCodeCreateAt create Time -func (t *Token) SetCodeCreateAt(createAt time.Time) { - t.CodeCreateAt = createAt -} - -// GetCodeExpiresIn the lifetime in seconds of the authorization code -func (t *Token) GetCodeExpiresIn() time.Duration { - return t.CodeExpiresIn -} - -// SetCodeExpiresIn the lifetime in seconds of the authorization code -func (t *Token) SetCodeExpiresIn(exp time.Duration) { - t.CodeExpiresIn = exp -} - -// GetCodeChallenge challenge code -func (t *Token) GetCodeChallenge() string { - return t.CodeChallenge -} - -// SetCodeChallenge challenge code -func (t *Token) SetCodeChallenge(code string) { - t.CodeChallenge = code -} - -// GetCodeChallengeMethod challenge method -func (t *Token) GetCodeChallengeMethod() oauth2.CodeChallengeMethod { - return oauth2.CodeChallengeMethod(t.CodeChallengeMethod) -} - -// SetCodeChallengeMethod challenge method -func (t *Token) SetCodeChallengeMethod(method oauth2.CodeChallengeMethod) { - t.CodeChallengeMethod = string(method) -} - -// GetAccess access Token -func (t *Token) GetAccess() string { - return t.Access -} - -// SetAccess access Token -func (t *Token) SetAccess(access string) { - t.Access = access -} - -// GetAccessCreateAt create Time -func (t *Token) GetAccessCreateAt() time.Time { - return t.AccessCreateAt -} - -// SetAccessCreateAt create Time -func (t *Token) SetAccessCreateAt(createAt time.Time) { - t.AccessCreateAt = createAt -} - -// GetAccessExpiresIn the lifetime in seconds of the access token -func (t *Token) GetAccessExpiresIn() time.Duration { - return t.AccessExpiresIn -} - -// SetAccessExpiresIn the lifetime in seconds of the access token -func (t *Token) SetAccessExpiresIn(exp time.Duration) { - t.AccessExpiresIn = exp -} - -// GetRefresh refresh Token -func (t *Token) GetRefresh() string { - return t.Refresh -} - -// SetRefresh refresh Token -func (t *Token) SetRefresh(refresh string) { - t.Refresh = refresh -} - -// GetRefreshCreateAt create Time -func (t *Token) GetRefreshCreateAt() time.Time { - return t.RefreshCreateAt -} - -// SetRefreshCreateAt create Time -func (t *Token) SetRefreshCreateAt(createAt time.Time) { - t.RefreshCreateAt = createAt -} - -// GetRefreshExpiresIn the lifetime in seconds of the refresh token -func (t *Token) GetRefreshExpiresIn() time.Duration { - return t.RefreshExpiresIn -} - -// SetRefreshExpiresIn the lifetime in seconds of the refresh token -func (t *Token) SetRefreshExpiresIn(exp time.Duration) { - t.RefreshExpiresIn = exp -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/config.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/config.go deleted file mode 100644 index 8d52bd231..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/config.go +++ /dev/null @@ -1,50 +0,0 @@ -package server - -import ( - "net/http" - "time" - - "codeberg.org/superseriousbusiness/oauth2/v4" -) - -// Config configuration parameters -type Config struct { - TokenType string // token type - AllowGetAccessRequest bool // to allow GET requests for the token - AllowedResponseTypes []oauth2.ResponseType // allow the authorization type - AllowedGrantTypes []oauth2.GrantType // allow the grant type - AllowedCodeChallengeMethods []oauth2.CodeChallengeMethod - ForcePKCE bool -} - -// NewConfig create to configuration instance -func NewConfig() *Config { - return &Config{ - TokenType: "Bearer", - AllowedResponseTypes: []oauth2.ResponseType{oauth2.Code, oauth2.Token}, - AllowedGrantTypes: []oauth2.GrantType{ - oauth2.AuthorizationCode, - oauth2.PasswordCredentials, - oauth2.ClientCredentials, - oauth2.Refreshing, - }, - AllowedCodeChallengeMethods: []oauth2.CodeChallengeMethod{ - oauth2.CodeChallengePlain, - oauth2.CodeChallengeS256, - }, - } -} - -// AuthorizeRequest authorization request -type AuthorizeRequest struct { - ResponseType oauth2.ResponseType - ClientID string - Scope string - RedirectURI string - State string - UserID string - CodeChallenge string - CodeChallengeMethod oauth2.CodeChallengeMethod - AccessTokenExp time.Duration - Request *http.Request -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/handler.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/handler.go deleted file mode 100644 index 9fdb10c30..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/handler.go +++ /dev/null @@ -1,66 +0,0 @@ -package server - -import ( - "net/http" - "time" - - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" -) - -type ( - // ClientInfoHandler get client info from request - ClientInfoHandler func(r *http.Request) (clientID, clientSecret string, err error) - - // ClientAuthorizedHandler check the client allows to use this authorization grant type - ClientAuthorizedHandler func(clientID string, grant oauth2.GrantType) (allowed bool, err error) - - // ClientScopeHandler check the client allows to use scope - ClientScopeHandler func(tgr *oauth2.TokenGenerateRequest) (allowed bool, err error) - - // UserAuthorizationHandler get user id from request authorization - UserAuthorizationHandler func(w http.ResponseWriter, r *http.Request) (userID string, err error) - - // PasswordAuthorizationHandler get user id from username and password - PasswordAuthorizationHandler func(username, password string) (userID string, err error) - - // RefreshingScopeHandler check the scope of the refreshing token - RefreshingScopeHandler func(tgr *oauth2.TokenGenerateRequest, oldScope string) (allowed bool, err error) - - // RefreshingValidationHandler check if refresh_token is still valid. eg no revocation or other - RefreshingValidationHandler func(ti oauth2.TokenInfo) (allowed bool, err error) - - // ResponseErrorHandler response error handing - ResponseErrorHandler func(re *errors.Response) - - // InternalErrorHandler internal error handing - InternalErrorHandler func(err error) (re *errors.Response) - - // AuthorizeScopeHandler set the authorized scope - AuthorizeScopeHandler func(w http.ResponseWriter, r *http.Request) (scope string, err error) - - // AccessTokenExpHandler set expiration date for the access token - AccessTokenExpHandler func(w http.ResponseWriter, r *http.Request) (exp time.Duration, err error) - - // ExtensionFieldsHandler in response to the access token with the extension of the field - ExtensionFieldsHandler func(ti oauth2.TokenInfo) (fieldsValue map[string]interface{}) -) - -// ClientFormHandler get client data from form -func ClientFormHandler(r *http.Request) (string, string, error) { - clientID := r.Form.Get("client_id") - if clientID == "" { - return "", "", errors.ErrInvalidClient - } - clientSecret := r.Form.Get("client_secret") - return clientID, clientSecret, nil -} - -// ClientBasicHandler get client data from basic authorization -func ClientBasicHandler(r *http.Request) (string, string, error) { - username, password, ok := r.BasicAuth() - if !ok { - return "", "", errors.ErrInvalidClient - } - return username, password, nil -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server.go deleted file mode 100644 index 109fe9199..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server.go +++ /dev/null @@ -1,589 +0,0 @@ -package server - -import ( - "context" - "encoding/json" - "fmt" - "net/http" - "net/url" - "strings" - "time" - - "codeberg.org/superseriousbusiness/oauth2/v4" - "codeberg.org/superseriousbusiness/oauth2/v4/errors" -) - -// NewDefaultServer create a default authorization server -func NewDefaultServer(manager oauth2.Manager) *Server { - return NewServer(NewConfig(), manager) -} - -// NewServer create authorization server -func NewServer(cfg *Config, manager oauth2.Manager) *Server { - srv := &Server{ - Config: cfg, - Manager: manager, - } - - // default handler - srv.ClientInfoHandler = ClientBasicHandler - - srv.UserAuthorizationHandler = func(w http.ResponseWriter, r *http.Request) (string, error) { - return "", errors.ErrAccessDenied - } - - srv.PasswordAuthorizationHandler = func(username, password string) (string, error) { - return "", errors.ErrAccessDenied - } - return srv -} - -// Server Provide authorization server -type Server struct { - Config *Config - Manager oauth2.Manager - ClientInfoHandler ClientInfoHandler - ClientAuthorizedHandler ClientAuthorizedHandler - ClientScopeHandler ClientScopeHandler - UserAuthorizationHandler UserAuthorizationHandler - PasswordAuthorizationHandler PasswordAuthorizationHandler - RefreshingValidationHandler RefreshingValidationHandler - RefreshingScopeHandler RefreshingScopeHandler - ResponseErrorHandler ResponseErrorHandler - InternalErrorHandler InternalErrorHandler - ExtensionFieldsHandler ExtensionFieldsHandler - AccessTokenExpHandler AccessTokenExpHandler - AuthorizeScopeHandler AuthorizeScopeHandler -} - -func (s *Server) redirectError(w http.ResponseWriter, req *AuthorizeRequest, err error) error { - if req == nil { - return err - } - data, _, _ := s.GetErrorData(err) - return s.redirect(w, req, data) -} - -func (s *Server) redirect(w http.ResponseWriter, req *AuthorizeRequest, data map[string]interface{}) error { - uri, err := s.GetRedirectURI(req, data) - if err != nil { - return err - } - - w.Header().Set("Location", uri) - w.WriteHeader(302) - return nil -} - -func (s *Server) tokenError(w http.ResponseWriter, err error) error { - data, statusCode, header := s.GetErrorData(err) - return s.token(w, data, header, statusCode) -} - -func (s *Server) token(w http.ResponseWriter, data map[string]interface{}, header http.Header, statusCode ...int) error { - w.Header().Set("Content-Type", "application/json;charset=UTF-8") - w.Header().Set("Cache-Control", "no-store") - w.Header().Set("Pragma", "no-cache") - - for key := range header { - w.Header().Set(key, header.Get(key)) - } - - status := http.StatusOK - if len(statusCode) > 0 && statusCode[0] > 0 { - status = statusCode[0] - } - - w.WriteHeader(status) - return json.NewEncoder(w).Encode(data) -} - -// GetRedirectURI get redirect uri -func (s *Server) GetRedirectURI(req *AuthorizeRequest, data map[string]interface{}) (string, error) { - u, err := url.Parse(req.RedirectURI) - if err != nil { - return "", err - } - - q := u.Query() - if req.State != "" { - q.Set("state", req.State) - } - - for k, v := range data { - q.Set(k, fmt.Sprint(v)) - } - - switch req.ResponseType { - case oauth2.Code: - u.RawQuery = q.Encode() - case oauth2.Token: - u.RawQuery = "" - fragment, err := url.QueryUnescape(q.Encode()) - if err != nil { - return "", err - } - u.Fragment = fragment - } - - return u.String(), nil -} - -// CheckResponseType check allows response type -func (s *Server) CheckResponseType(rt oauth2.ResponseType) bool { - for _, art := range s.Config.AllowedResponseTypes { - if art == rt { - return true - } - } - return false -} - -// CheckCodeChallengeMethod checks for allowed code challenge method -func (s *Server) CheckCodeChallengeMethod(ccm oauth2.CodeChallengeMethod) bool { - for _, c := range s.Config.AllowedCodeChallengeMethods { - if c == ccm { - return true - } - } - return false -} - -// ValidationAuthorizeRequest the authorization request validation -func (s *Server) ValidationAuthorizeRequest(r *http.Request) (*AuthorizeRequest, error) { - redirectURI := r.FormValue("redirect_uri") - clientID := r.FormValue("client_id") - if !(r.Method == "GET" || r.Method == "POST") || - clientID == "" { - return nil, errors.ErrInvalidRequest - } - - resType := oauth2.ResponseType(r.FormValue("response_type")) - if resType.String() == "" { - return nil, errors.ErrUnsupportedResponseType - } else if allowed := s.CheckResponseType(resType); !allowed { - return nil, errors.ErrUnauthorizedClient - } - - cc := r.FormValue("code_challenge") - if cc == "" && s.Config.ForcePKCE { - return nil, errors.ErrCodeChallengeRquired - } - if cc != "" && (len(cc) < 43 || len(cc) > 128) { - return nil, errors.ErrInvalidCodeChallengeLen - } - - ccm := oauth2.CodeChallengeMethod(r.FormValue("code_challenge_method")) - // set default - if ccm == "" { - ccm = oauth2.CodeChallengePlain - } - if ccm.String() != "" && !s.CheckCodeChallengeMethod(ccm) { - return nil, errors.ErrUnsupportedCodeChallengeMethod - } - - req := &AuthorizeRequest{ - RedirectURI: redirectURI, - ResponseType: resType, - ClientID: clientID, - State: r.FormValue("state"), - Scope: r.FormValue("scope"), - Request: r, - CodeChallenge: cc, - CodeChallengeMethod: ccm, - } - return req, nil -} - -// GetAuthorizeToken get authorization token(code) -func (s *Server) GetAuthorizeToken(ctx context.Context, req *AuthorizeRequest) (oauth2.TokenInfo, error) { - // check the client allows the grant type - if fn := s.ClientAuthorizedHandler; fn != nil { - gt := oauth2.AuthorizationCode - if req.ResponseType == oauth2.Token { - gt = oauth2.Implicit - } - - allowed, err := fn(req.ClientID, gt) - if err != nil { - return nil, err - } else if !allowed { - return nil, errors.ErrUnauthorizedClient - } - } - - tgr := &oauth2.TokenGenerateRequest{ - ClientID: req.ClientID, - UserID: req.UserID, - RedirectURI: req.RedirectURI, - Scope: req.Scope, - AccessTokenExp: req.AccessTokenExp, - Request: req.Request, - } - - // check the client allows the authorized scope - if fn := s.ClientScopeHandler; fn != nil { - allowed, err := fn(tgr) - if err != nil { - return nil, err - } else if !allowed { - return nil, errors.ErrInvalidScope - } - } - - tgr.CodeChallenge = req.CodeChallenge - tgr.CodeChallengeMethod = req.CodeChallengeMethod - - return s.Manager.GenerateAuthToken(ctx, req.ResponseType, tgr) -} - -// GetAuthorizeData get authorization response data -func (s *Server) GetAuthorizeData(rt oauth2.ResponseType, ti oauth2.TokenInfo) map[string]interface{} { - if rt == oauth2.Code { - return map[string]interface{}{ - "code": ti.GetCode(), - } - } - return s.GetTokenData(ti) -} - -// HandleAuthorizeRequest the authorization request handling -func (s *Server) HandleAuthorizeRequest(w http.ResponseWriter, r *http.Request) error { - ctx := r.Context() - - req, err := s.ValidationAuthorizeRequest(r) - if err != nil { - return s.redirectError(w, req, err) - } - - // user authorization - userID, err := s.UserAuthorizationHandler(w, r) - if err != nil { - return s.redirectError(w, req, err) - } else if userID == "" { - return nil - } - req.UserID = userID - - // specify the scope of authorization - if fn := s.AuthorizeScopeHandler; fn != nil { - scope, err := fn(w, r) - if err != nil { - return err - } else if scope != "" { - req.Scope = scope - } - } - - // specify the expiration time of access token - if fn := s.AccessTokenExpHandler; fn != nil { - exp, err := fn(w, r) - if err != nil { - return err - } - req.AccessTokenExp = exp - } - - ti, err := s.GetAuthorizeToken(ctx, req) - if err != nil { - return s.redirectError(w, req, err) - } - - // If the redirect URI is empty, the default domain provided by the client is used. - if req.RedirectURI == "" { - client, err := s.Manager.GetClient(ctx, req.ClientID) - if err != nil { - return err - } - req.RedirectURI = client.GetDomain() - } - - return s.redirect(w, req, s.GetAuthorizeData(req.ResponseType, ti)) -} - -// ValidationTokenRequest the token request validation -func (s *Server) ValidationTokenRequest(r *http.Request) (oauth2.GrantType, *oauth2.TokenGenerateRequest, error) { - if v := r.Method; !(v == "POST" || - (s.Config.AllowGetAccessRequest && v == "GET")) { - return "", nil, errors.ErrInvalidRequest - } - - gt := oauth2.GrantType(r.FormValue("grant_type")) - if gt.String() == "" { - return "", nil, errors.ErrUnsupportedGrantType - } - - if !s.CheckGrantType(gt) { - return "", nil, errors.ErrUnsupportedGrantType - } - - clientID, clientSecret, err := s.ClientInfoHandler(r) - if err != nil { - return "", nil, err - } - - tgr := &oauth2.TokenGenerateRequest{ - ClientID: clientID, - ClientSecret: clientSecret, - Request: r, - } - - switch gt { - case oauth2.AuthorizationCode: - tgr.RedirectURI = r.FormValue("redirect_uri") - tgr.Code = r.FormValue("code") - if tgr.RedirectURI == "" || - tgr.Code == "" { - return "", nil, errors.ErrInvalidRequest - } - tgr.CodeVerifier = r.FormValue("code_verifier") - if s.Config.ForcePKCE && tgr.CodeVerifier == "" { - return "", nil, errors.ErrInvalidRequest - } - case oauth2.PasswordCredentials: - tgr.Scope = r.FormValue("scope") - username, password := r.FormValue("username"), r.FormValue("password") - if username == "" || password == "" { - return "", nil, errors.ErrInvalidRequest - } - - userID, err := s.PasswordAuthorizationHandler(username, password) - if err != nil { - return "", nil, err - } else if userID == "" { - return "", nil, errors.ErrInvalidGrant - } - tgr.UserID = userID - case oauth2.ClientCredentials: - tgr.Scope = r.FormValue("scope") - tgr.RedirectURI = r.FormValue("redirect_uri") - case oauth2.Refreshing: - tgr.Refresh = r.FormValue("refresh_token") - tgr.Scope = r.FormValue("scope") - if tgr.Refresh == "" { - return "", nil, errors.ErrInvalidRequest - } - } - return gt, tgr, nil -} - -// CheckGrantType check allows grant type -func (s *Server) CheckGrantType(gt oauth2.GrantType) bool { - for _, agt := range s.Config.AllowedGrantTypes { - if agt == gt { - return true - } - } - return false -} - -// GetAccessToken access token -func (s *Server) GetAccessToken(ctx context.Context, gt oauth2.GrantType, tgr *oauth2.TokenGenerateRequest) (oauth2.TokenInfo, - error) { - if allowed := s.CheckGrantType(gt); !allowed { - return nil, errors.ErrUnauthorizedClient - } - - if fn := s.ClientAuthorizedHandler; fn != nil { - allowed, err := fn(tgr.ClientID, gt) - if err != nil { - return nil, err - } else if !allowed { - return nil, errors.ErrUnauthorizedClient - } - } - - switch gt { - case oauth2.AuthorizationCode: - ti, err := s.Manager.GenerateAccessToken(ctx, gt, tgr) - if err != nil { - switch err { - case errors.ErrInvalidAuthorizeCode, errors.ErrInvalidCodeChallenge, errors.ErrMissingCodeChallenge: - return nil, errors.ErrInvalidGrant - case errors.ErrInvalidClient: - return nil, errors.ErrInvalidClient - default: - return nil, err - } - } - return ti, nil - case oauth2.PasswordCredentials, oauth2.ClientCredentials: - if fn := s.ClientScopeHandler; fn != nil { - allowed, err := fn(tgr) - if err != nil { - return nil, err - } else if !allowed { - return nil, errors.ErrInvalidScope - } - } - return s.Manager.GenerateAccessToken(ctx, gt, tgr) - case oauth2.Refreshing: - // check scope - if scopeFn := s.RefreshingScopeHandler; tgr.Scope != "" && scopeFn != nil { - rti, err := s.Manager.LoadRefreshToken(ctx, tgr.Refresh) - if err != nil { - if err == errors.ErrInvalidRefreshToken || err == errors.ErrExpiredRefreshToken { - return nil, errors.ErrInvalidGrant - } - return nil, err - } - - allowed, err := scopeFn(tgr, rti.GetScope()) - if err != nil { - return nil, err - } else if !allowed { - return nil, errors.ErrInvalidScope - } - } - - if validationFn := s.RefreshingValidationHandler; validationFn != nil { - rti, err := s.Manager.LoadRefreshToken(ctx, tgr.Refresh) - if err != nil { - if err == errors.ErrInvalidRefreshToken || err == errors.ErrExpiredRefreshToken { - return nil, errors.ErrInvalidGrant - } - return nil, err - } - allowed, err := validationFn(rti) - if err != nil { - return nil, err - } else if !allowed { - return nil, errors.ErrInvalidScope - } - } - - ti, err := s.Manager.RefreshAccessToken(ctx, tgr) - if err != nil { - if err == errors.ErrInvalidRefreshToken || err == errors.ErrExpiredRefreshToken { - return nil, errors.ErrInvalidGrant - } - return nil, err - } - return ti, nil - } - - return nil, errors.ErrUnsupportedGrantType -} - -// GetTokenData token data -func (s *Server) GetTokenData(ti oauth2.TokenInfo) map[string]interface{} { - data := map[string]interface{}{ - "access_token": ti.GetAccess(), - "token_type": s.Config.TokenType, - "expires_in": int64(ti.GetAccessExpiresIn() / time.Second), - } - - if scope := ti.GetScope(); scope != "" { - data["scope"] = scope - } - - if refresh := ti.GetRefresh(); refresh != "" { - data["refresh_token"] = refresh - } - - if fn := s.ExtensionFieldsHandler; fn != nil { - ext := fn(ti) - for k, v := range ext { - if _, ok := data[k]; ok { - continue - } - data[k] = v - } - } - return data -} - -// HandleTokenRequest token request handling -func (s *Server) HandleTokenRequest(w http.ResponseWriter, r *http.Request) error { - ctx := r.Context() - - gt, tgr, err := s.ValidationTokenRequest(r) - if err != nil { - return s.tokenError(w, err) - } - - ti, err := s.GetAccessToken(ctx, gt, tgr) - if err != nil { - return s.tokenError(w, err) - } - - return s.token(w, s.GetTokenData(ti), nil) -} - -// GetErrorData get error response data -func (s *Server) GetErrorData(err error) (map[string]interface{}, int, http.Header) { - var re errors.Response - if v, ok := errors.Descriptions[err]; ok { - re.Error = err - re.Description = v - re.StatusCode = errors.StatusCodes[err] - } else { - if fn := s.InternalErrorHandler; fn != nil { - if v := fn(err); v != nil { - re = *v - } - } - - if re.Error == nil { - re.Error = errors.ErrServerError - re.Description = errors.Descriptions[errors.ErrServerError] - re.StatusCode = errors.StatusCodes[errors.ErrServerError] - } - } - - if fn := s.ResponseErrorHandler; fn != nil { - fn(&re) - } - - data := make(map[string]interface{}) - if err := re.Error; err != nil { - data["error"] = err.Error() - } - - if v := re.ErrorCode; v != 0 { - data["error_code"] = v - } - - if v := re.Description; v != "" { - data["error_description"] = v - } - - if v := re.URI; v != "" { - data["error_uri"] = v - } - - statusCode := http.StatusInternalServerError - if v := re.StatusCode; v > 0 { - statusCode = v - } - - return data, statusCode, re.Header -} - -// BearerAuth parse bearer token -func (s *Server) BearerAuth(r *http.Request) (string, bool) { - auth := r.Header.Get("Authorization") - prefix := "Bearer " - token := "" - - if auth != "" && strings.HasPrefix(auth, prefix) { - token = auth[len(prefix):] - } else { - token = r.FormValue("access_token") - } - - return token, token != "" -} - -// ValidationBearerToken validation the bearer tokens -// https://tools.ietf.org/html/rfc6750 -func (s *Server) ValidationBearerToken(r *http.Request) (oauth2.TokenInfo, error) { - ctx := r.Context() - - accessToken, ok := s.BearerAuth(r) - if !ok { - return nil, errors.ErrInvalidAccessToken - } - - return s.Manager.LoadAccessToken(ctx, accessToken) -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server_config.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server_config.go deleted file mode 100644 index e190630e9..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/server/server_config.go +++ /dev/null @@ -1,85 +0,0 @@ -package server - -import ( - "codeberg.org/superseriousbusiness/oauth2/v4" -) - -// SetTokenType token type -func (s *Server) SetTokenType(tokenType string) { - s.Config.TokenType = tokenType -} - -// SetAllowGetAccessRequest to allow GET requests for the token -func (s *Server) SetAllowGetAccessRequest(allow bool) { - s.Config.AllowGetAccessRequest = allow -} - -// SetAllowedResponseType allow the authorization types -func (s *Server) SetAllowedResponseType(types ...oauth2.ResponseType) { - s.Config.AllowedResponseTypes = types -} - -// SetAllowedGrantType allow the grant types -func (s *Server) SetAllowedGrantType(types ...oauth2.GrantType) { - s.Config.AllowedGrantTypes = types -} - -// SetClientInfoHandler get client info from request -func (s *Server) SetClientInfoHandler(handler ClientInfoHandler) { - s.ClientInfoHandler = handler -} - -// SetClientAuthorizedHandler check the client allows to use this authorization grant type -func (s *Server) SetClientAuthorizedHandler(handler ClientAuthorizedHandler) { - s.ClientAuthorizedHandler = handler -} - -// SetClientScopeHandler check the client allows to use scope -func (s *Server) SetClientScopeHandler(handler ClientScopeHandler) { - s.ClientScopeHandler = handler -} - -// SetUserAuthorizationHandler get user id from request authorization -func (s *Server) SetUserAuthorizationHandler(handler UserAuthorizationHandler) { - s.UserAuthorizationHandler = handler -} - -// SetPasswordAuthorizationHandler get user id from username and password -func (s *Server) SetPasswordAuthorizationHandler(handler PasswordAuthorizationHandler) { - s.PasswordAuthorizationHandler = handler -} - -// SetRefreshingScopeHandler check the scope of the refreshing token -func (s *Server) SetRefreshingScopeHandler(handler RefreshingScopeHandler) { - s.RefreshingScopeHandler = handler -} - -// SetRefreshingValidationHandler check if refresh_token is still valid. eg no revocation or other -func (s *Server) SetRefreshingValidationHandler(handler RefreshingValidationHandler) { - s.RefreshingValidationHandler = handler -} - -// SetResponseErrorHandler response error handling -func (s *Server) SetResponseErrorHandler(handler ResponseErrorHandler) { - s.ResponseErrorHandler = handler -} - -// SetInternalErrorHandler internal error handling -func (s *Server) SetInternalErrorHandler(handler InternalErrorHandler) { - s.InternalErrorHandler = handler -} - -// SetExtensionFieldsHandler in response to the access token with the extension of the field -func (s *Server) SetExtensionFieldsHandler(handler ExtensionFieldsHandler) { - s.ExtensionFieldsHandler = handler -} - -// SetAccessTokenExpHandler set expiration date for the access token -func (s *Server) SetAccessTokenExpHandler(handler AccessTokenExpHandler) { - s.AccessTokenExpHandler = handler -} - -// SetAuthorizeScopeHandler set scope for the access token -func (s *Server) SetAuthorizeScopeHandler(handler AuthorizeScopeHandler) { - s.AuthorizeScopeHandler = handler -} diff --git a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/store.go b/vendor/codeberg.org/superseriousbusiness/oauth2/v4/store.go deleted file mode 100644 index 65fda9ed6..000000000 --- a/vendor/codeberg.org/superseriousbusiness/oauth2/v4/store.go +++ /dev/null @@ -1,36 +0,0 @@ -package oauth2 - -import "context" - -type ( - // ClientStore the client information storage interface - ClientStore interface { - GetByID(ctx context.Context, id string) (ClientInfo, error) - Set(ctx context.Context, id string, cli ClientInfo) error - Delete(ctx context.Context, id string) error - } - - // TokenStore the token information storage interface - TokenStore interface { - // create and store the new token information - Create(ctx context.Context, info TokenInfo) error - - // delete the authorization code - RemoveByCode(ctx context.Context, code string) error - - // use the access token to delete the token information - RemoveByAccess(ctx context.Context, access string) error - - // use the refresh token to delete the token information - RemoveByRefresh(ctx context.Context, refresh string) error - - // use the authorization code for token information data - GetByCode(ctx context.Context, code string) (TokenInfo, error) - - // use the access token for token information data - GetByAccess(ctx context.Context, access string) (TokenInfo, error) - - // use the refresh token for token information data - GetByRefresh(ctx context.Context, refresh string) (TokenInfo, error) - } -) diff --git a/vendor/github.com/go-fed/httpsig/LICENSE b/vendor/github.com/go-fed/httpsig/LICENSE deleted file mode 100644 index a9e8aefad..000000000 --- a/vendor/github.com/go-fed/httpsig/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2018, go-fed -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/go-fed/httpsig/README.md b/vendor/github.com/go-fed/httpsig/README.md deleted file mode 100644 index 3b8385400..000000000 --- a/vendor/github.com/go-fed/httpsig/README.md +++ /dev/null @@ -1,94 +0,0 @@ -# httpsig - -`go get github.com/go-fed/httpsig` - -Implementation of [HTTP Signatures](https://tools.ietf.org/html/draft-cavage-http-signatures). - -Supports many different combinations of MAC, HMAC signing of hash, or RSA -signing of hash schemes. Its goals are: - -* Have a very simple interface for signing and validating -* Support a variety of signing algorithms and combinations -* Support setting either headers (`Authorization` or `Signature`) -* Remaining flexible with headers included in the signing string -* Support both HTTP requests and responses -* Explicitly not support known-cryptographically weak algorithms -* Support automatic signing and validating Digest headers - -## How to use - -`import "github.com/go-fed/httpsig"` - -### Signing - -Signing a request or response requires creating a new `Signer` and using it: - -``` -func sign(privateKey crypto.PrivateKey, pubKeyId string, r *http.Request) error { - prefs := []httpsig.Algorithm{httpsig.RSA_SHA512, httpsig.RSA_SHA256} - digestAlgorithm := DigestSha256 - // The "Date" and "Digest" headers must already be set on r, as well as r.URL. - headersToSign := []string{httpsig.RequestTarget, "date", "digest"} - signer, chosenAlgo, err := httpsig.NewSigner(prefs, digestAlgorithm, headersToSign, httpsig.Signature) - if err != nil { - return err - } - // To sign the digest, we need to give the signer a copy of the body... - // ...but it is optional, no digest will be signed if given "nil" - body := ... - // If r were a http.ResponseWriter, call SignResponse instead. - return signer.SignRequest(privateKey, pubKeyId, r, body) -} -``` - -`Signer`s are not safe for concurrent use by goroutines, so be sure to guard -access: - -``` -type server struct { - signer httpsig.Signer - mu *sync.Mutex -} - -func (s *server) handlerFunc(w http.ResponseWriter, r *http.Request) { - privateKey := ... - pubKeyId := ... - // Set headers and such on w - s.mu.Lock() - defer s.mu.Unlock() - // To sign the digest, we need to give the signer a copy of the response body... - // ...but it is optional, no digest will be signed if given "nil" - body := ... - err := s.signer.SignResponse(privateKey, pubKeyId, w, body) - if err != nil { - ... - } - ... -} -``` - -The `pubKeyId` will be used at verification time. - -### Verifying - -Verifying requires an application to use the `pubKeyId` to both retrieve the key -needed for verification as well as determine the algorithm to use. Use a -`Verifier`: - -``` -func verify(r *http.Request) error { - verifier, err := httpsig.NewVerifier(r) - if err != nil { - return err - } - pubKeyId := verifier.KeyId() - var algo httpsig.Algorithm = ... - var pubKey crypto.PublicKey = ... - // The verifier will verify the Digest in addition to the HTTP signature - return verifier.Verify(pubKey, algo) -} -``` - -`Verifier`s are not safe for concurrent use by goroutines, but since they are -constructed on a per-request or per-response basis it should not be a common -restriction. diff --git a/vendor/github.com/go-fed/httpsig/algorithms.go b/vendor/github.com/go-fed/httpsig/algorithms.go deleted file mode 100644 index 9595941be..000000000 --- a/vendor/github.com/go-fed/httpsig/algorithms.go +++ /dev/null @@ -1,532 +0,0 @@ -package httpsig - -import ( - "crypto" - "crypto/ecdsa" - "crypto/hmac" - "crypto/rsa" - "crypto/sha1" - "crypto/sha256" - "crypto/sha512" - "crypto/subtle" // Use should trigger great care - "encoding/asn1" - "errors" - "fmt" - "hash" - "io" - "math/big" - "strings" - - "golang.org/x/crypto/blake2b" - "golang.org/x/crypto/blake2s" - "golang.org/x/crypto/ed25519" - "golang.org/x/crypto/ripemd160" - "golang.org/x/crypto/sha3" - "golang.org/x/crypto/ssh" -) - -const ( - hmacPrefix = "hmac" - rsaPrefix = "rsa" - sshPrefix = "ssh" - ecdsaPrefix = "ecdsa" - ed25519Prefix = "ed25519" - md4String = "md4" - md5String = "md5" - sha1String = "sha1" - sha224String = "sha224" - sha256String = "sha256" - sha384String = "sha384" - sha512String = "sha512" - md5sha1String = "md5sha1" - ripemd160String = "ripemd160" - sha3_224String = "sha3-224" - sha3_256String = "sha3-256" - sha3_384String = "sha3-384" - sha3_512String = "sha3-512" - sha512_224String = "sha512-224" - sha512_256String = "sha512-256" - blake2s_256String = "blake2s-256" - blake2b_256String = "blake2b-256" - blake2b_384String = "blake2b-384" - blake2b_512String = "blake2b-512" -) - -var blake2Algorithms = map[crypto.Hash]bool{ - crypto.BLAKE2s_256: true, - crypto.BLAKE2b_256: true, - crypto.BLAKE2b_384: true, - crypto.BLAKE2b_512: true, -} - -var hashToDef = map[crypto.Hash]struct { - name string - new func(key []byte) (hash.Hash, error) // Only MACers will accept a key -}{ - // Which standard names these? - // The spec lists the following as a canonical reference, which is dead: - // http://www.iana.org/assignments/signature-algorithms - // - // Note that the forbidden hashes have an invalid 'new' function. - crypto.MD4: {md4String, func(key []byte) (hash.Hash, error) { return nil, nil }}, - crypto.MD5: {md5String, func(key []byte) (hash.Hash, error) { return nil, nil }}, - // Temporarily enable SHA1 because of issue https://github.com/golang/go/issues/37278 - crypto.SHA1: {sha1String, func(key []byte) (hash.Hash, error) { return sha1.New(), nil }}, - crypto.SHA224: {sha224String, func(key []byte) (hash.Hash, error) { return sha256.New224(), nil }}, - crypto.SHA256: {sha256String, func(key []byte) (hash.Hash, error) { return sha256.New(), nil }}, - crypto.SHA384: {sha384String, func(key []byte) (hash.Hash, error) { return sha512.New384(), nil }}, - crypto.SHA512: {sha512String, func(key []byte) (hash.Hash, error) { return sha512.New(), nil }}, - crypto.MD5SHA1: {md5sha1String, func(key []byte) (hash.Hash, error) { return nil, nil }}, - crypto.RIPEMD160: {ripemd160String, func(key []byte) (hash.Hash, error) { return ripemd160.New(), nil }}, - crypto.SHA3_224: {sha3_224String, func(key []byte) (hash.Hash, error) { return sha3.New224(), nil }}, - crypto.SHA3_256: {sha3_256String, func(key []byte) (hash.Hash, error) { return sha3.New256(), nil }}, - crypto.SHA3_384: {sha3_384String, func(key []byte) (hash.Hash, error) { return sha3.New384(), nil }}, - crypto.SHA3_512: {sha3_512String, func(key []byte) (hash.Hash, error) { return sha3.New512(), nil }}, - crypto.SHA512_224: {sha512_224String, func(key []byte) (hash.Hash, error) { return sha512.New512_224(), nil }}, - crypto.SHA512_256: {sha512_256String, func(key []byte) (hash.Hash, error) { return sha512.New512_256(), nil }}, - crypto.BLAKE2s_256: {blake2s_256String, func(key []byte) (hash.Hash, error) { return blake2s.New256(key) }}, - crypto.BLAKE2b_256: {blake2b_256String, func(key []byte) (hash.Hash, error) { return blake2b.New256(key) }}, - crypto.BLAKE2b_384: {blake2b_384String, func(key []byte) (hash.Hash, error) { return blake2b.New384(key) }}, - crypto.BLAKE2b_512: {blake2b_512String, func(key []byte) (hash.Hash, error) { return blake2b.New512(key) }}, -} - -var stringToHash map[string]crypto.Hash - -const ( - defaultAlgorithm = RSA_SHA256 - defaultAlgorithmHashing = sha256String -) - -func init() { - stringToHash = make(map[string]crypto.Hash, len(hashToDef)) - for k, v := range hashToDef { - stringToHash[v.name] = k - } - // This should guarantee that at runtime the defaultAlgorithm will not - // result in errors when fetching a macer or signer (see algorithms.go) - if ok, err := isAvailable(string(defaultAlgorithmHashing)); err != nil { - panic(err) - } else if !ok { - panic(fmt.Sprintf("the default httpsig algorithm is unavailable: %q", defaultAlgorithm)) - } -} - -func isForbiddenHash(h crypto.Hash) bool { - switch h { - // Not actually cryptographically secure - case crypto.MD4: - fallthrough - case crypto.MD5: - fallthrough - case crypto.MD5SHA1: // shorthand for crypto/tls, not actually implemented - return true - } - // Still cryptographically secure - return false -} - -// signer is an internally public type. -type signer interface { - Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) - Verify(pub crypto.PublicKey, toHash, signature []byte) error - String() string -} - -// macer is an internally public type. -type macer interface { - Sign(sig, key []byte) ([]byte, error) - Equal(sig, actualMAC, key []byte) (bool, error) - String() string -} - -var _ macer = &hmacAlgorithm{} - -type hmacAlgorithm struct { - fn func(key []byte) (hash.Hash, error) - kind crypto.Hash -} - -func (h *hmacAlgorithm) Sign(sig, key []byte) ([]byte, error) { - hs, err := h.fn(key) - if err = setSig(hs, sig); err != nil { - return nil, err - } - return hs.Sum(nil), nil -} - -func (h *hmacAlgorithm) Equal(sig, actualMAC, key []byte) (bool, error) { - hs, err := h.fn(key) - if err != nil { - return false, err - } - defer hs.Reset() - err = setSig(hs, sig) - if err != nil { - return false, err - } - expected := hs.Sum(nil) - return hmac.Equal(actualMAC, expected), nil -} - -func (h *hmacAlgorithm) String() string { - return fmt.Sprintf("%s-%s", hmacPrefix, hashToDef[h.kind].name) -} - -var _ signer = &rsaAlgorithm{} - -type rsaAlgorithm struct { - hash.Hash - kind crypto.Hash - sshSigner ssh.Signer -} - -func (r *rsaAlgorithm) setSig(b []byte) error { - n, err := r.Write(b) - if err != nil { - r.Reset() - return err - } else if n != len(b) { - r.Reset() - return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) - } - return nil -} - -func (r *rsaAlgorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { - if r.sshSigner != nil { - sshsig, err := r.sshSigner.Sign(rand, sig) - if err != nil { - return nil, err - } - - return sshsig.Blob, nil - } - defer r.Reset() - - if err := r.setSig(sig); err != nil { - return nil, err - } - rsaK, ok := p.(*rsa.PrivateKey) - if !ok { - return nil, errors.New("crypto.PrivateKey is not *rsa.PrivateKey") - } - return rsa.SignPKCS1v15(rand, rsaK, r.kind, r.Sum(nil)) -} - -func (r *rsaAlgorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { - defer r.Reset() - rsaK, ok := pub.(*rsa.PublicKey) - if !ok { - return errors.New("crypto.PublicKey is not *rsa.PublicKey") - } - if err := r.setSig(toHash); err != nil { - return err - } - return rsa.VerifyPKCS1v15(rsaK, r.kind, r.Sum(nil), signature) -} - -func (r *rsaAlgorithm) String() string { - return fmt.Sprintf("%s-%s", rsaPrefix, hashToDef[r.kind].name) -} - -var _ signer = &ed25519Algorithm{} - -type ed25519Algorithm struct { - sshSigner ssh.Signer -} - -func (r *ed25519Algorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { - if r.sshSigner != nil { - sshsig, err := r.sshSigner.Sign(rand, sig) - if err != nil { - return nil, err - } - - return sshsig.Blob, nil - } - ed25519K, ok := p.(ed25519.PrivateKey) - if !ok { - return nil, errors.New("crypto.PrivateKey is not ed25519.PrivateKey") - } - return ed25519.Sign(ed25519K, sig), nil -} - -func (r *ed25519Algorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { - ed25519K, ok := pub.(ed25519.PublicKey) - if !ok { - return errors.New("crypto.PublicKey is not ed25519.PublicKey") - } - - if ed25519.Verify(ed25519K, toHash, signature) { - return nil - } - - return errors.New("ed25519 verify failed") -} - -func (r *ed25519Algorithm) String() string { - return fmt.Sprintf("%s", ed25519Prefix) -} - -var _ signer = &ecdsaAlgorithm{} - -type ecdsaAlgorithm struct { - hash.Hash - kind crypto.Hash -} - -func (r *ecdsaAlgorithm) setSig(b []byte) error { - n, err := r.Write(b) - if err != nil { - r.Reset() - return err - } else if n != len(b) { - r.Reset() - return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) - } - return nil -} - -type ECDSASignature struct { - R, S *big.Int -} - -func (r *ecdsaAlgorithm) Sign(rand io.Reader, p crypto.PrivateKey, sig []byte) ([]byte, error) { - defer r.Reset() - if err := r.setSig(sig); err != nil { - return nil, err - } - ecdsaK, ok := p.(*ecdsa.PrivateKey) - if !ok { - return nil, errors.New("crypto.PrivateKey is not *ecdsa.PrivateKey") - } - R, S, err := ecdsa.Sign(rand, ecdsaK, r.Sum(nil)) - if err != nil { - return nil, err - } - - signature := ECDSASignature{R: R, S: S} - bytes, err := asn1.Marshal(signature) - - return bytes, err -} - -func (r *ecdsaAlgorithm) Verify(pub crypto.PublicKey, toHash, signature []byte) error { - defer r.Reset() - ecdsaK, ok := pub.(*ecdsa.PublicKey) - if !ok { - return errors.New("crypto.PublicKey is not *ecdsa.PublicKey") - } - if err := r.setSig(toHash); err != nil { - return err - } - - sig := new(ECDSASignature) - _, err := asn1.Unmarshal(signature, sig) - if err != nil { - return err - } - - if ecdsa.Verify(ecdsaK, r.Sum(nil), sig.R, sig.S) { - return nil - } else { - return errors.New("Invalid signature") - } -} - -func (r *ecdsaAlgorithm) String() string { - return fmt.Sprintf("%s-%s", ecdsaPrefix, hashToDef[r.kind].name) -} - -var _ macer = &blakeMacAlgorithm{} - -type blakeMacAlgorithm struct { - fn func(key []byte) (hash.Hash, error) - kind crypto.Hash -} - -func (r *blakeMacAlgorithm) Sign(sig, key []byte) ([]byte, error) { - hs, err := r.fn(key) - if err != nil { - return nil, err - } - if err = setSig(hs, sig); err != nil { - return nil, err - } - return hs.Sum(nil), nil -} - -func (r *blakeMacAlgorithm) Equal(sig, actualMAC, key []byte) (bool, error) { - hs, err := r.fn(key) - if err != nil { - return false, err - } - defer hs.Reset() - err = setSig(hs, sig) - if err != nil { - return false, err - } - expected := hs.Sum(nil) - return subtle.ConstantTimeCompare(actualMAC, expected) == 1, nil -} - -func (r *blakeMacAlgorithm) String() string { - return fmt.Sprintf("%s", hashToDef[r.kind].name) -} - -func setSig(a hash.Hash, b []byte) error { - n, err := a.Write(b) - if err != nil { - a.Reset() - return err - } else if n != len(b) { - a.Reset() - return fmt.Errorf("could only write %d of %d bytes of signature to hash", n, len(b)) - } - return nil -} - -// IsSupportedHttpSigAlgorithm returns true if the string is supported by this -// library, is not a hash known to be weak, and is supported by the hardware. -func IsSupportedHttpSigAlgorithm(algo string) bool { - a, err := isAvailable(algo) - return a && err == nil -} - -// isAvailable is an internally public function -func isAvailable(algo string) (bool, error) { - c, ok := stringToHash[algo] - if !ok { - return false, fmt.Errorf("no match for %q", algo) - } - if isForbiddenHash(c) { - return false, fmt.Errorf("forbidden hash type in %q", algo) - } - return c.Available(), nil -} - -func newAlgorithmConstructor(algo string) (fn func(k []byte) (hash.Hash, error), c crypto.Hash, e error) { - ok := false - c, ok = stringToHash[algo] - if !ok { - e = fmt.Errorf("no match for %q", algo) - return - } - if isForbiddenHash(c) { - e = fmt.Errorf("forbidden hash type in %q", algo) - return - } - algoDef, ok := hashToDef[c] - if !ok { - e = fmt.Errorf("have crypto.Hash %v but no definition", c) - return - } - fn = func(key []byte) (hash.Hash, error) { - h, err := algoDef.new(key) - if err != nil { - return nil, err - } - return h, nil - } - return -} - -func newAlgorithm(algo string, key []byte) (hash.Hash, crypto.Hash, error) { - fn, c, err := newAlgorithmConstructor(algo) - if err != nil { - return nil, c, err - } - h, err := fn(key) - return h, c, err -} - -func signerFromSSHSigner(sshSigner ssh.Signer, s string) (signer, error) { - switch { - case strings.HasPrefix(s, rsaPrefix): - return &rsaAlgorithm{ - sshSigner: sshSigner, - }, nil - case strings.HasPrefix(s, ed25519Prefix): - return &ed25519Algorithm{ - sshSigner: sshSigner, - }, nil - default: - return nil, fmt.Errorf("no signer matching %q", s) - } -} - -// signerFromString is an internally public method constructor -func signerFromString(s string) (signer, error) { - s = strings.ToLower(s) - isEcdsa := false - isEd25519 := false - var algo string = "" - if strings.HasPrefix(s, ecdsaPrefix) { - algo = strings.TrimPrefix(s, ecdsaPrefix+"-") - isEcdsa = true - } else if strings.HasPrefix(s, rsaPrefix) { - algo = strings.TrimPrefix(s, rsaPrefix+"-") - } else if strings.HasPrefix(s, ed25519Prefix) { - isEd25519 = true - algo = "sha512" - } else { - return nil, fmt.Errorf("no signer matching %q", s) - } - hash, cHash, err := newAlgorithm(algo, nil) - if err != nil { - return nil, err - } - if isEd25519 { - return &ed25519Algorithm{}, nil - } - if isEcdsa { - return &ecdsaAlgorithm{ - Hash: hash, - kind: cHash, - }, nil - } - return &rsaAlgorithm{ - Hash: hash, - kind: cHash, - }, nil -} - -// macerFromString is an internally public method constructor -func macerFromString(s string) (macer, error) { - s = strings.ToLower(s) - if strings.HasPrefix(s, hmacPrefix) { - algo := strings.TrimPrefix(s, hmacPrefix+"-") - hashFn, cHash, err := newAlgorithmConstructor(algo) - if err != nil { - return nil, err - } - // Ensure below does not panic - _, err = hashFn(nil) - if err != nil { - return nil, err - } - return &hmacAlgorithm{ - fn: func(key []byte) (hash.Hash, error) { - return hmac.New(func() hash.Hash { - h, e := hashFn(nil) - if e != nil { - panic(e) - } - return h - }, key), nil - }, - kind: cHash, - }, nil - } else if bl, ok := stringToHash[s]; ok && blake2Algorithms[bl] { - hashFn, cHash, err := newAlgorithmConstructor(s) - if err != nil { - return nil, err - } - return &blakeMacAlgorithm{ - fn: hashFn, - kind: cHash, - }, nil - } else { - return nil, fmt.Errorf("no MACer matching %q", s) - } -} diff --git a/vendor/github.com/go-fed/httpsig/digest.go b/vendor/github.com/go-fed/httpsig/digest.go deleted file mode 100644 index bf9e3a914..000000000 --- a/vendor/github.com/go-fed/httpsig/digest.go +++ /dev/null @@ -1,120 +0,0 @@ -package httpsig - -import ( - "bytes" - "crypto" - "encoding/base64" - "fmt" - "hash" - "net/http" - "strings" -) - -type DigestAlgorithm string - -const ( - DigestSha256 DigestAlgorithm = "SHA-256" - DigestSha512 = "SHA-512" -) - -var digestToDef = map[DigestAlgorithm]crypto.Hash{ - DigestSha256: crypto.SHA256, - DigestSha512: crypto.SHA512, -} - -// IsSupportedDigestAlgorithm returns true if hte string is supported by this -// library, is not a hash known to be weak, and is supported by the hardware. -func IsSupportedDigestAlgorithm(algo string) bool { - uc := DigestAlgorithm(strings.ToUpper(algo)) - c, ok := digestToDef[uc] - return ok && c.Available() -} - -func getHash(alg DigestAlgorithm) (h hash.Hash, toUse DigestAlgorithm, err error) { - upper := DigestAlgorithm(strings.ToUpper(string(alg))) - c, ok := digestToDef[upper] - if !ok { - err = fmt.Errorf("unknown or unsupported Digest algorithm: %s", alg) - } else if !c.Available() { - err = fmt.Errorf("unavailable Digest algorithm: %s", alg) - } else { - h = c.New() - toUse = upper - } - return -} - -const ( - digestHeader = "Digest" - digestDelim = "=" -) - -func addDigest(r *http.Request, algo DigestAlgorithm, b []byte) (err error) { - _, ok := r.Header[digestHeader] - if ok { - err = fmt.Errorf("cannot add Digest: Digest is already set") - return - } - var h hash.Hash - var a DigestAlgorithm - h, a, err = getHash(algo) - if err != nil { - return - } - h.Write(b) - sum := h.Sum(nil) - r.Header.Add(digestHeader, - fmt.Sprintf("%s%s%s", - a, - digestDelim, - base64.StdEncoding.EncodeToString(sum[:]))) - return -} - -func addDigestResponse(r http.ResponseWriter, algo DigestAlgorithm, b []byte) (err error) { - _, ok := r.Header()[digestHeader] - if ok { - err = fmt.Errorf("cannot add Digest: Digest is already set") - return - } - var h hash.Hash - var a DigestAlgorithm - h, a, err = getHash(algo) - if err != nil { - return - } - h.Write(b) - sum := h.Sum(nil) - r.Header().Add(digestHeader, - fmt.Sprintf("%s%s%s", - a, - digestDelim, - base64.StdEncoding.EncodeToString(sum[:]))) - return -} - -func verifyDigest(r *http.Request, body *bytes.Buffer) (err error) { - d := r.Header.Get(digestHeader) - if len(d) == 0 { - err = fmt.Errorf("cannot verify Digest: request has no Digest header") - return - } - elem := strings.SplitN(d, digestDelim, 2) - if len(elem) != 2 { - err = fmt.Errorf("cannot verify Digest: malformed Digest: %s", d) - return - } - var h hash.Hash - h, _, err = getHash(DigestAlgorithm(elem[0])) - if err != nil { - return - } - h.Write(body.Bytes()) - sum := h.Sum(nil) - encSum := base64.StdEncoding.EncodeToString(sum[:]) - if encSum != elem[1] { - err = fmt.Errorf("cannot verify Digest: header Digest does not match the digest of the request body") - return - } - return -} diff --git a/vendor/github.com/go-fed/httpsig/httpsig.go b/vendor/github.com/go-fed/httpsig/httpsig.go deleted file mode 100644 index 1a6b95463..000000000 --- a/vendor/github.com/go-fed/httpsig/httpsig.go +++ /dev/null @@ -1,361 +0,0 @@ -// Implements HTTP request and response signing and verification. Supports the -// major MAC and asymmetric key signature algorithms. It has several safety -// restrictions: One, none of the widely known non-cryptographically safe -// algorithms are permitted; Two, the RSA SHA256 algorithms must be available in -// the binary (and it should, barring export restrictions); Finally, the library -// assumes either the 'Authorizationn' or 'Signature' headers are to be set (but -// not both). -package httpsig - -import ( - "crypto" - "fmt" - "net/http" - "strings" - "time" - - "golang.org/x/crypto/ssh" -) - -// Algorithm specifies a cryptography secure algorithm for signing HTTP requests -// and responses. -type Algorithm string - -const ( - // MAC-based algoirthms. - HMAC_SHA224 Algorithm = hmacPrefix + "-" + sha224String - HMAC_SHA256 Algorithm = hmacPrefix + "-" + sha256String - HMAC_SHA384 Algorithm = hmacPrefix + "-" + sha384String - HMAC_SHA512 Algorithm = hmacPrefix + "-" + sha512String - HMAC_RIPEMD160 Algorithm = hmacPrefix + "-" + ripemd160String - HMAC_SHA3_224 Algorithm = hmacPrefix + "-" + sha3_224String - HMAC_SHA3_256 Algorithm = hmacPrefix + "-" + sha3_256String - HMAC_SHA3_384 Algorithm = hmacPrefix + "-" + sha3_384String - HMAC_SHA3_512 Algorithm = hmacPrefix + "-" + sha3_512String - HMAC_SHA512_224 Algorithm = hmacPrefix + "-" + sha512_224String - HMAC_SHA512_256 Algorithm = hmacPrefix + "-" + sha512_256String - HMAC_BLAKE2S_256 Algorithm = hmacPrefix + "-" + blake2s_256String - HMAC_BLAKE2B_256 Algorithm = hmacPrefix + "-" + blake2b_256String - HMAC_BLAKE2B_384 Algorithm = hmacPrefix + "-" + blake2b_384String - HMAC_BLAKE2B_512 Algorithm = hmacPrefix + "-" + blake2b_512String - BLAKE2S_256 Algorithm = blake2s_256String - BLAKE2B_256 Algorithm = blake2b_256String - BLAKE2B_384 Algorithm = blake2b_384String - BLAKE2B_512 Algorithm = blake2b_512String - // RSA-based algorithms. - RSA_SHA1 Algorithm = rsaPrefix + "-" + sha1String - RSA_SHA224 Algorithm = rsaPrefix + "-" + sha224String - // RSA_SHA256 is the default algorithm. - RSA_SHA256 Algorithm = rsaPrefix + "-" + sha256String - RSA_SHA384 Algorithm = rsaPrefix + "-" + sha384String - RSA_SHA512 Algorithm = rsaPrefix + "-" + sha512String - RSA_RIPEMD160 Algorithm = rsaPrefix + "-" + ripemd160String - // ECDSA algorithms - ECDSA_SHA224 Algorithm = ecdsaPrefix + "-" + sha224String - ECDSA_SHA256 Algorithm = ecdsaPrefix + "-" + sha256String - ECDSA_SHA384 Algorithm = ecdsaPrefix + "-" + sha384String - ECDSA_SHA512 Algorithm = ecdsaPrefix + "-" + sha512String - ECDSA_RIPEMD160 Algorithm = ecdsaPrefix + "-" + ripemd160String - // ED25519 algorithms - // can only be SHA512 - ED25519 Algorithm = ed25519Prefix - - // Just because you can glue things together, doesn't mean they will - // work. The following options are not supported. - rsa_SHA3_224 Algorithm = rsaPrefix + "-" + sha3_224String - rsa_SHA3_256 Algorithm = rsaPrefix + "-" + sha3_256String - rsa_SHA3_384 Algorithm = rsaPrefix + "-" + sha3_384String - rsa_SHA3_512 Algorithm = rsaPrefix + "-" + sha3_512String - rsa_SHA512_224 Algorithm = rsaPrefix + "-" + sha512_224String - rsa_SHA512_256 Algorithm = rsaPrefix + "-" + sha512_256String - rsa_BLAKE2S_256 Algorithm = rsaPrefix + "-" + blake2s_256String - rsa_BLAKE2B_256 Algorithm = rsaPrefix + "-" + blake2b_256String - rsa_BLAKE2B_384 Algorithm = rsaPrefix + "-" + blake2b_384String - rsa_BLAKE2B_512 Algorithm = rsaPrefix + "-" + blake2b_512String -) - -// HTTP Signatures can be applied to different HTTP headers, depending on the -// expected application behavior. -type SignatureScheme string - -const ( - // Signature will place the HTTP Signature into the 'Signature' HTTP - // header. - Signature SignatureScheme = "Signature" - // Authorization will place the HTTP Signature into the 'Authorization' - // HTTP header. - Authorization SignatureScheme = "Authorization" -) - -const ( - // The HTTP Signatures specification uses the "Signature" auth-scheme - // for the Authorization header. This is coincidentally named, but not - // semantically the same, as the "Signature" HTTP header value. - signatureAuthScheme = "Signature" -) - -// There are subtle differences to the values in the header. The Authorization -// header has an 'auth-scheme' value that must be prefixed to the rest of the -// key and values. -func (s SignatureScheme) authScheme() string { - switch s { - case Authorization: - return signatureAuthScheme - default: - return "" - } -} - -// Signers will sign HTTP requests or responses based on the algorithms and -// headers selected at creation time. -// -// Signers are not safe to use between multiple goroutines. -// -// Note that signatures do set the deprecated 'algorithm' parameter for -// backwards compatibility. -type Signer interface { - // SignRequest signs the request using a private key. The public key id - // is used by the HTTP server to identify which key to use to verify the - // signature. - // - // If the Signer was created using a MAC based algorithm, then the key - // is expected to be of type []byte. If the Signer was created using an - // RSA based algorithm, then the private key is expected to be of type - // *rsa.PrivateKey. - // - // A Digest (RFC 3230) will be added to the request. The body provided - // must match the body used in the request, and is allowed to be nil. - // The Digest ensures the request body is not tampered with in flight, - // and if the signer is created to also sign the "Digest" header, the - // HTTP Signature will then ensure both the Digest and body are not both - // modified to maliciously represent different content. - SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error - // SignResponse signs the response using a private key. The public key - // id is used by the HTTP client to identify which key to use to verify - // the signature. - // - // If the Signer was created using a MAC based algorithm, then the key - // is expected to be of type []byte. If the Signer was created using an - // RSA based algorithm, then the private key is expected to be of type - // *rsa.PrivateKey. - // - // A Digest (RFC 3230) will be added to the response. The body provided - // must match the body written in the response, and is allowed to be - // nil. The Digest ensures the response body is not tampered with in - // flight, and if the signer is created to also sign the "Digest" - // header, the HTTP Signature will then ensure both the Digest and body - // are not both modified to maliciously represent different content. - SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error -} - -// NewSigner creates a new Signer with the provided algorithm preferences to -// make HTTP signatures. Only the first available algorithm will be used, which -// is returned by this function along with the Signer. If none of the preferred -// algorithms were available, then the default algorithm is used. The headers -// specified will be included into the HTTP signatures. -// -// The Digest will also be calculated on a request's body using the provided -// digest algorithm, if "Digest" is one of the headers listed. -// -// The provided scheme determines which header is populated with the HTTP -// Signature. -// -// An error is returned if an unknown or a known cryptographically insecure -// Algorithm is provided. -func NewSigner(prefs []Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (Signer, Algorithm, error) { - for _, pref := range prefs { - s, err := newSigner(pref, dAlgo, headers, scheme, expiresIn) - if err != nil { - continue - } - return s, pref, err - } - s, err := newSigner(defaultAlgorithm, dAlgo, headers, scheme, expiresIn) - return s, defaultAlgorithm, err -} - -// Signers will sign HTTP requests or responses based on the algorithms and -// headers selected at creation time. -// -// Signers are not safe to use between multiple goroutines. -// -// Note that signatures do set the deprecated 'algorithm' parameter for -// backwards compatibility. -type SSHSigner interface { - // SignRequest signs the request using ssh.Signer. - // The public key id is used by the HTTP server to identify which key to use - // to verify the signature. - // - // A Digest (RFC 3230) will be added to the request. The body provided - // must match the body used in the request, and is allowed to be nil. - // The Digest ensures the request body is not tampered with in flight, - // and if the signer is created to also sign the "Digest" header, the - // HTTP Signature will then ensure both the Digest and body are not both - // modified to maliciously represent different content. - SignRequest(pubKeyId string, r *http.Request, body []byte) error - // SignResponse signs the response using ssh.Signer. The public key - // id is used by the HTTP client to identify which key to use to verify - // the signature. - // - // A Digest (RFC 3230) will be added to the response. The body provided - // must match the body written in the response, and is allowed to be - // nil. The Digest ensures the response body is not tampered with in - // flight, and if the signer is created to also sign the "Digest" - // header, the HTTP Signature will then ensure both the Digest and body - // are not both modified to maliciously represent different content. - SignResponse(pubKeyId string, r http.ResponseWriter, body []byte) error -} - -// NewwSSHSigner creates a new Signer using the specified ssh.Signer -// At the moment only ed25519 ssh keys are supported. -// The headers specified will be included into the HTTP signatures. -// -// The Digest will also be calculated on a request's body using the provided -// digest algorithm, if "Digest" is one of the headers listed. -// -// The provided scheme determines which header is populated with the HTTP -// Signature. -func NewSSHSigner(s ssh.Signer, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SSHSigner, Algorithm, error) { - sshAlgo := getSSHAlgorithm(s.PublicKey().Type()) - if sshAlgo == "" { - return nil, "", fmt.Errorf("key type: %s not supported yet.", s.PublicKey().Type()) - } - - signer, err := newSSHSigner(s, sshAlgo, dAlgo, headers, scheme, expiresIn) - if err != nil { - return nil, "", err - } - - return signer, sshAlgo, nil -} - -func getSSHAlgorithm(pkType string) Algorithm { - switch { - case strings.HasPrefix(pkType, sshPrefix+"-"+ed25519Prefix): - return ED25519 - case strings.HasPrefix(pkType, sshPrefix+"-"+rsaPrefix): - return RSA_SHA1 - } - - return "" -} - -// Verifier verifies HTTP Signatures. -// -// It will determine which of the supported headers has the parameters -// that define the signature. -// -// Verifiers are not safe to use between multiple goroutines. -// -// Note that verification ignores the deprecated 'algorithm' parameter. -type Verifier interface { - // KeyId gets the public key id that the signature is signed with. - // - // Note that the application is expected to determine the algorithm - // used based on metadata or out-of-band information for this key id. - KeyId() string - // Verify accepts the public key specified by KeyId and returns an - // error if verification fails or if the signature is malformed. The - // algorithm must be the one used to create the signature in order to - // pass verification. The algorithm is determined based on metadata or - // out-of-band information for the key id. - // - // If the signature was created using a MAC based algorithm, then the - // key is expected to be of type []byte. If the signature was created - // using an RSA based algorithm, then the public key is expected to be - // of type *rsa.PublicKey. - Verify(pKey crypto.PublicKey, algo Algorithm) error -} - -const ( - // host is treated specially because golang may not include it in the - // request header map on the server side of a request. - hostHeader = "Host" -) - -// NewVerifier verifies the given request. It returns an error if the HTTP -// Signature parameters are not present in any headers, are present in more than -// one header, are malformed, or are missing required parameters. It ignores -// unknown HTTP Signature parameters. -func NewVerifier(r *http.Request) (Verifier, error) { - h := r.Header - if _, hasHostHeader := h[hostHeader]; len(r.Host) > 0 && !hasHostHeader { - h[hostHeader] = []string{r.Host} - } - return newVerifier(h, func(h http.Header, toInclude []string, created int64, expires int64) (string, error) { - return signatureString(h, toInclude, addRequestTarget(r), created, expires) - }) -} - -// NewResponseVerifier verifies the given response. It returns errors under the -// same conditions as NewVerifier. -func NewResponseVerifier(r *http.Response) (Verifier, error) { - return newVerifier(r.Header, func(h http.Header, toInclude []string, created int64, expires int64) (string, error) { - return signatureString(h, toInclude, requestTargetNotPermitted, created, expires) - }) -} - -func newSSHSigner(sshSigner ssh.Signer, algo Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (SSHSigner, error) { - var expires, created int64 = 0, 0 - - if expiresIn != 0 { - created = time.Now().Unix() - expires = created + expiresIn - } - - s, err := signerFromSSHSigner(sshSigner, string(algo)) - if err != nil { - return nil, fmt.Errorf("no crypto implementation available for ssh algo %q", algo) - } - - a := &asymmSSHSigner{ - asymmSigner: &asymmSigner{ - s: s, - dAlgo: dAlgo, - headers: headers, - targetHeader: scheme, - prefix: scheme.authScheme(), - created: created, - expires: expires, - }, - } - - return a, nil -} - -func newSigner(algo Algorithm, dAlgo DigestAlgorithm, headers []string, scheme SignatureScheme, expiresIn int64) (Signer, error) { - - var expires, created int64 = 0, 0 - if expiresIn != 0 { - created = time.Now().Unix() - expires = created + expiresIn - } - - s, err := signerFromString(string(algo)) - if err == nil { - a := &asymmSigner{ - s: s, - dAlgo: dAlgo, - headers: headers, - targetHeader: scheme, - prefix: scheme.authScheme(), - created: created, - expires: expires, - } - return a, nil - } - m, err := macerFromString(string(algo)) - if err != nil { - return nil, fmt.Errorf("no crypto implementation available for %q", algo) - } - c := &macSigner{ - m: m, - dAlgo: dAlgo, - headers: headers, - targetHeader: scheme, - prefix: scheme.authScheme(), - created: created, - expires: expires, - } - return c, nil -} diff --git a/vendor/github.com/go-fed/httpsig/signing.go b/vendor/github.com/go-fed/httpsig/signing.go deleted file mode 100644 index e18db41cb..000000000 --- a/vendor/github.com/go-fed/httpsig/signing.go +++ /dev/null @@ -1,334 +0,0 @@ -package httpsig - -import ( - "bytes" - "crypto" - "crypto/rand" - "encoding/base64" - "fmt" - "net/http" - "net/textproto" - "strconv" - "strings" -) - -const ( - // Signature Parameters - keyIdParameter = "keyId" - algorithmParameter = "algorithm" - headersParameter = "headers" - signatureParameter = "signature" - prefixSeparater = " " - parameterKVSeparater = "=" - parameterValueDelimiter = "\"" - parameterSeparater = "," - headerParameterValueDelim = " " - // RequestTarget specifies to include the http request method and - // entire URI in the signature. Pass it as a header to NewSigner. - RequestTarget = "(request-target)" - createdKey = "created" - expiresKey = "expires" - dateHeader = "date" - - // Signature String Construction - headerFieldDelimiter = ": " - headersDelimiter = "\n" - headerValueDelimiter = ", " - requestTargetSeparator = " " -) - -var defaultHeaders = []string{dateHeader} - -var _ Signer = &macSigner{} - -type macSigner struct { - m macer - makeDigest bool - dAlgo DigestAlgorithm - headers []string - targetHeader SignatureScheme - prefix string - created int64 - expires int64 -} - -func (m *macSigner) SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error { - if body != nil { - err := addDigest(r, m.dAlgo, body) - if err != nil { - return err - } - } - s, err := m.signatureString(r) - if err != nil { - return err - } - enc, err := m.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header, string(m.targetHeader), m.prefix, pubKeyId, m.m.String(), enc, m.headers, m.created, m.expires) - return nil -} - -func (m *macSigner) SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error { - if body != nil { - err := addDigestResponse(r, m.dAlgo, body) - if err != nil { - return err - } - } - s, err := m.signatureStringResponse(r) - if err != nil { - return err - } - enc, err := m.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header(), string(m.targetHeader), m.prefix, pubKeyId, m.m.String(), enc, m.headers, m.created, m.expires) - return nil -} - -func (m *macSigner) signSignature(pKey crypto.PrivateKey, s string) (string, error) { - pKeyBytes, ok := pKey.([]byte) - if !ok { - return "", fmt.Errorf("private key for MAC signing must be of type []byte") - } - sig, err := m.m.Sign([]byte(s), pKeyBytes) - if err != nil { - return "", err - } - enc := base64.StdEncoding.EncodeToString(sig) - return enc, nil -} - -func (m *macSigner) signatureString(r *http.Request) (string, error) { - return signatureString(r.Header, m.headers, addRequestTarget(r), m.created, m.expires) -} - -func (m *macSigner) signatureStringResponse(r http.ResponseWriter) (string, error) { - return signatureString(r.Header(), m.headers, requestTargetNotPermitted, m.created, m.expires) -} - -var _ Signer = &asymmSigner{} - -type asymmSigner struct { - s signer - makeDigest bool - dAlgo DigestAlgorithm - headers []string - targetHeader SignatureScheme - prefix string - created int64 - expires int64 -} - -func (a *asymmSigner) SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error { - if body != nil { - err := addDigest(r, a.dAlgo, body) - if err != nil { - return err - } - } - s, err := a.signatureString(r) - if err != nil { - return err - } - enc, err := a.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header, string(a.targetHeader), a.prefix, pubKeyId, a.s.String(), enc, a.headers, a.created, a.expires) - return nil -} - -func (a *asymmSigner) SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error { - if body != nil { - err := addDigestResponse(r, a.dAlgo, body) - if err != nil { - return err - } - } - s, err := a.signatureStringResponse(r) - if err != nil { - return err - } - enc, err := a.signSignature(pKey, s) - if err != nil { - return err - } - setSignatureHeader(r.Header(), string(a.targetHeader), a.prefix, pubKeyId, a.s.String(), enc, a.headers, a.created, a.expires) - return nil -} - -func (a *asymmSigner) signSignature(pKey crypto.PrivateKey, s string) (string, error) { - sig, err := a.s.Sign(rand.Reader, pKey, []byte(s)) - if err != nil { - return "", err - } - enc := base64.StdEncoding.EncodeToString(sig) - return enc, nil -} - -func (a *asymmSigner) signatureString(r *http.Request) (string, error) { - return signatureString(r.Header, a.headers, addRequestTarget(r), a.created, a.expires) -} - -func (a *asymmSigner) signatureStringResponse(r http.ResponseWriter) (string, error) { - return signatureString(r.Header(), a.headers, requestTargetNotPermitted, a.created, a.expires) -} - -var _ SSHSigner = &asymmSSHSigner{} - -type asymmSSHSigner struct { - *asymmSigner -} - -func (a *asymmSSHSigner) SignRequest(pubKeyId string, r *http.Request, body []byte) error { - return a.asymmSigner.SignRequest(nil, pubKeyId, r, body) -} - -func (a *asymmSSHSigner) SignResponse(pubKeyId string, r http.ResponseWriter, body []byte) error { - return a.asymmSigner.SignResponse(nil, pubKeyId, r, body) -} - -func setSignatureHeader(h http.Header, targetHeader, prefix, pubKeyId, algo, enc string, headers []string, created int64, expires int64) { - if len(headers) == 0 { - headers = defaultHeaders - } - var b bytes.Buffer - // KeyId - b.WriteString(prefix) - if len(prefix) > 0 { - b.WriteString(prefixSeparater) - } - b.WriteString(keyIdParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - b.WriteString(pubKeyId) - b.WriteString(parameterValueDelimiter) - b.WriteString(parameterSeparater) - // Algorithm - b.WriteString(algorithmParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - b.WriteString("hs2019") //real algorithm is hidden, see newest version of spec draft - b.WriteString(parameterValueDelimiter) - b.WriteString(parameterSeparater) - - hasCreated := false - hasExpires := false - for _, h := range headers { - val := strings.ToLower(h) - if val == "("+createdKey+")" { - hasCreated = true - } else if val == "("+expiresKey+")" { - hasExpires = true - } - } - - // Created - if hasCreated == true { - b.WriteString(createdKey) - b.WriteString(parameterKVSeparater) - b.WriteString(strconv.FormatInt(created, 10)) - b.WriteString(parameterSeparater) - } - - // Expires - if hasExpires == true { - b.WriteString(expiresKey) - b.WriteString(parameterKVSeparater) - b.WriteString(strconv.FormatInt(expires, 10)) - b.WriteString(parameterSeparater) - } - - // Headers - b.WriteString(headersParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - for i, h := range headers { - b.WriteString(strings.ToLower(h)) - if i != len(headers)-1 { - b.WriteString(headerParameterValueDelim) - } - } - b.WriteString(parameterValueDelimiter) - b.WriteString(parameterSeparater) - // Signature - b.WriteString(signatureParameter) - b.WriteString(parameterKVSeparater) - b.WriteString(parameterValueDelimiter) - b.WriteString(enc) - b.WriteString(parameterValueDelimiter) - h.Add(targetHeader, b.String()) -} - -func requestTargetNotPermitted(b *bytes.Buffer) error { - return fmt.Errorf("cannot sign with %q on anything other than an http request", RequestTarget) -} - -func addRequestTarget(r *http.Request) func(b *bytes.Buffer) error { - return func(b *bytes.Buffer) error { - b.WriteString(RequestTarget) - b.WriteString(headerFieldDelimiter) - b.WriteString(strings.ToLower(r.Method)) - b.WriteString(requestTargetSeparator) - b.WriteString(r.URL.Path) - - if r.URL.RawQuery != "" { - b.WriteString("?") - b.WriteString(r.URL.RawQuery) - } - - return nil - } -} - -func signatureString(values http.Header, include []string, requestTargetFn func(b *bytes.Buffer) error, created int64, expires int64) (string, error) { - if len(include) == 0 { - include = defaultHeaders - } - var b bytes.Buffer - for n, i := range include { - i := strings.ToLower(i) - if i == RequestTarget { - err := requestTargetFn(&b) - if err != nil { - return "", err - } - } else if i == "("+expiresKey+")" { - if expires == 0 { - return "", fmt.Errorf("missing expires value") - } - b.WriteString(i) - b.WriteString(headerFieldDelimiter) - b.WriteString(strconv.FormatInt(expires, 10)) - } else if i == "("+createdKey+")" { - if created == 0 { - return "", fmt.Errorf("missing created value") - } - b.WriteString(i) - b.WriteString(headerFieldDelimiter) - b.WriteString(strconv.FormatInt(created, 10)) - } else { - hv, ok := values[textproto.CanonicalMIMEHeaderKey(i)] - if !ok { - return "", fmt.Errorf("missing header %q", i) - } - b.WriteString(i) - b.WriteString(headerFieldDelimiter) - for i, v := range hv { - b.WriteString(strings.TrimSpace(v)) - if i < len(hv)-1 { - b.WriteString(headerValueDelimiter) - } - } - } - if n < len(include)-1 { - b.WriteString(headersDelimiter) - } - } - return b.String(), nil -} diff --git a/vendor/github.com/go-fed/httpsig/verifying.go b/vendor/github.com/go-fed/httpsig/verifying.go deleted file mode 100644 index 6d8df02ce..000000000 --- a/vendor/github.com/go-fed/httpsig/verifying.go +++ /dev/null @@ -1,184 +0,0 @@ -package httpsig - -import ( - "crypto" - "encoding/base64" - "errors" - "fmt" - "net/http" - "strconv" - "strings" - "time" -) - -var _ Verifier = &verifier{} - -type verifier struct { - header http.Header - kId string - signature string - created int64 - expires int64 - headers []string - sigStringFn func(http.Header, []string, int64, int64) (string, error) -} - -func newVerifier(h http.Header, sigStringFn func(http.Header, []string, int64, int64) (string, error)) (*verifier, error) { - scheme, s, err := getSignatureScheme(h) - if err != nil { - return nil, err - } - kId, sig, headers, created, expires, err := getSignatureComponents(scheme, s) - if created != 0 { - //check if created is not in the future, we assume a maximum clock offset of 10 seconds - now := time.Now().Unix() - if created-now > 10 { - return nil, errors.New("created is in the future") - } - } - if expires != 0 { - //check if expires is in the past, we assume a maximum clock offset of 10 seconds - now := time.Now().Unix() - if now-expires > 10 { - return nil, errors.New("signature expired") - } - } - if err != nil { - return nil, err - } - return &verifier{ - header: h, - kId: kId, - signature: sig, - created: created, - expires: expires, - headers: headers, - sigStringFn: sigStringFn, - }, nil -} - -func (v *verifier) KeyId() string { - return v.kId -} - -func (v *verifier) Verify(pKey crypto.PublicKey, algo Algorithm) error { - s, err := signerFromString(string(algo)) - if err == nil { - return v.asymmVerify(s, pKey) - } - m, err := macerFromString(string(algo)) - if err == nil { - return v.macVerify(m, pKey) - } - return fmt.Errorf("no crypto implementation available for %q", algo) -} - -func (v *verifier) macVerify(m macer, pKey crypto.PublicKey) error { - key, ok := pKey.([]byte) - if !ok { - return fmt.Errorf("public key for MAC verifying must be of type []byte") - } - signature, err := v.sigStringFn(v.header, v.headers, v.created, v.expires) - if err != nil { - return err - } - actualMAC, err := base64.StdEncoding.DecodeString(v.signature) - if err != nil { - return err - } - ok, err = m.Equal([]byte(signature), actualMAC, key) - if err != nil { - return err - } else if !ok { - return fmt.Errorf("invalid http signature") - } - return nil -} - -func (v *verifier) asymmVerify(s signer, pKey crypto.PublicKey) error { - toHash, err := v.sigStringFn(v.header, v.headers, v.created, v.expires) - if err != nil { - return err - } - signature, err := base64.StdEncoding.DecodeString(v.signature) - if err != nil { - return err - } - err = s.Verify(pKey, []byte(toHash), signature) - if err != nil { - return err - } - return nil -} - -func getSignatureScheme(h http.Header) (scheme SignatureScheme, val string, err error) { - s := h.Get(string(Signature)) - sigHasAll := strings.Contains(s, keyIdParameter) || - strings.Contains(s, headersParameter) || - strings.Contains(s, signatureParameter) - a := h.Get(string(Authorization)) - authHasAll := strings.Contains(a, keyIdParameter) || - strings.Contains(a, headersParameter) || - strings.Contains(a, signatureParameter) - if sigHasAll && authHasAll { - err = fmt.Errorf("both %q and %q have signature parameters", Signature, Authorization) - return - } else if !sigHasAll && !authHasAll { - err = fmt.Errorf("neither %q nor %q have signature parameters", Signature, Authorization) - return - } else if sigHasAll { - val = s - scheme = Signature - return - } else { // authHasAll - val = a - scheme = Authorization - return - } -} - -func getSignatureComponents(scheme SignatureScheme, s string) (kId, sig string, headers []string, created int64, expires int64, err error) { - if as := scheme.authScheme(); len(as) > 0 { - s = strings.TrimPrefix(s, as+prefixSeparater) - } - params := strings.Split(s, parameterSeparater) - for _, p := range params { - kv := strings.SplitN(p, parameterKVSeparater, 2) - if len(kv) != 2 { - err = fmt.Errorf("malformed http signature parameter: %v", kv) - return - } - k := kv[0] - v := strings.Trim(kv[1], parameterValueDelimiter) - switch k { - case keyIdParameter: - kId = v - case createdKey: - created, err = strconv.ParseInt(v, 10, 64) - if err != nil { - return - } - case expiresKey: - expires, err = strconv.ParseInt(v, 10, 64) - if err != nil { - return - } - case algorithmParameter: - // Deprecated, ignore - case headersParameter: - headers = strings.Split(v, headerParameterValueDelim) - case signatureParameter: - sig = v - default: - // Ignore unrecognized parameters - } - } - if len(kId) == 0 { - err = fmt.Errorf("missing %q parameter in http signature", keyIdParameter) - } else if len(sig) == 0 { - err = fmt.Errorf("missing %q parameter in http signature", signatureParameter) - } else if len(headers) == 0 { // Optional - headers = defaultHeaders - } - return -} diff --git a/vendor/modules.txt b/vendor/modules.txt index ae358fc29..ba0a1c7e6 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,3 +1,220 @@ +# code.superseriousbusiness.org/activity v1.15.0 +## explicit; go 1.23 +code.superseriousbusiness.org/activity/pub +code.superseriousbusiness.org/activity/streams +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_accuracy +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_alsoknownas +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_altitude +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_content +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_current +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_deleted +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_duration +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endpoints +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_endtime +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_first +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_followers +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_following +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_height +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_href +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_hreflang +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_icon +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_image +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inbox +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_last +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_latitude +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_liked +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_likes +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_longitude +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_mediatype +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_movedto +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_name +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_next +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_outbox +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_partof +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preferredusername +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_prev +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_published +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_radius +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_rel +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_replies +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sensitive +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_sharedinbox +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_shares +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_startindex +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_starttime +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_streams +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_summary +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_totalitems +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_units +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_updated +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_url +code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_width +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_accept +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_add +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_announce +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_arrive +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_article +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_audio +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_block +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collection +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_collectionpage +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_create +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_delete +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_dislike +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_document +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_endpoints +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_event +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_flag +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_follow +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_ignore +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_image +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_intransitiveactivity +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_invite +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_join +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_leave +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_like +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_listen +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_move +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_note +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_offer +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollection +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_orderedcollectionpage +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_page +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_place +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_profile +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_question +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_read +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_reject +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_relationship +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_remove +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativeaccept +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tentativereject +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_tombstone +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_travel +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_undo +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_update +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_video +code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_view +code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_album +code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_artist +code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_library +code.superseriousbusiness.org/activity/streams/impl/funkwhale/type_track +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_always +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvalrequired +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_approvedby +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_automaticapproval +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canannounce +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget +code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_manualapproval +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceapproval +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announceauthorization +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_announcerequest +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canannounce +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canlike +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canquote +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_canreply +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_interactionpolicy +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeapproval +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likeauthorization +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_likerequest +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization +code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest +code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id +code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type +code.superseriousbusiness.org/activity/streams/impl/schema/property_value +code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue +code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash +code.superseriousbusiness.org/activity/streams/impl/toot/property_discoverable +code.superseriousbusiness.org/activity/streams/impl/toot/property_featured +code.superseriousbusiness.org/activity/streams/impl/toot/property_focalpoint +code.superseriousbusiness.org/activity/streams/impl/toot/property_indexable +code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturealgorithm +code.superseriousbusiness.org/activity/streams/impl/toot/property_signaturevalue +code.superseriousbusiness.org/activity/streams/impl/toot/property_voterscount +code.superseriousbusiness.org/activity/streams/impl/toot/type_emoji +code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag +code.superseriousbusiness.org/activity/streams/impl/toot/type_identityproof +code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_owner +code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickey +code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/property_publickeypem +code.superseriousbusiness.org/activity/streams/impl/w3idsecurityv1/type_publickey +code.superseriousbusiness.org/activity/streams/values/anyURI +code.superseriousbusiness.org/activity/streams/values/bcp47 +code.superseriousbusiness.org/activity/streams/values/boolean +code.superseriousbusiness.org/activity/streams/values/dateTime +code.superseriousbusiness.org/activity/streams/values/duration +code.superseriousbusiness.org/activity/streams/values/float +code.superseriousbusiness.org/activity/streams/values/langString +code.superseriousbusiness.org/activity/streams/values/nonNegativeInteger +code.superseriousbusiness.org/activity/streams/values/rfc2045 +code.superseriousbusiness.org/activity/streams/values/rfc5988 +code.superseriousbusiness.org/activity/streams/values/string +code.superseriousbusiness.org/activity/streams/vocab +# code.superseriousbusiness.org/exif-terminator v0.11.0 +## explicit; go 1.23 +code.superseriousbusiness.org/exif-terminator +# code.superseriousbusiness.org/go-jpeg-image-structure/v2 v2.3.0 +## explicit; go 1.17 +code.superseriousbusiness.org/go-jpeg-image-structure/v2 +# code.superseriousbusiness.org/go-png-image-structure/v2 v2.3.0 +## explicit; go 1.12 +code.superseriousbusiness.org/go-png-image-structure/v2 +# code.superseriousbusiness.org/httpsig v1.4.0 +## explicit; go 1.21 +code.superseriousbusiness.org/httpsig +# code.superseriousbusiness.org/oauth2/v4 v4.8.0 +## explicit; go 1.23.0 +code.superseriousbusiness.org/oauth2/v4 +code.superseriousbusiness.org/oauth2/v4/errors +code.superseriousbusiness.org/oauth2/v4/generates +code.superseriousbusiness.org/oauth2/v4/manage +code.superseriousbusiness.org/oauth2/v4/models +code.superseriousbusiness.org/oauth2/v4/server # codeberg.org/gruf/go-bytes v1.0.2 ## explicit; go 1.14 codeberg.org/gruf/go-bytes @@ -66,223 +283,6 @@ codeberg.org/gruf/go-storage/s3 # codeberg.org/gruf/go-structr v0.9.6 ## explicit; go 1.22 codeberg.org/gruf/go-structr -# codeberg.org/superseriousbusiness/activity v1.14.0 -## explicit; go 1.21 -codeberg.org/superseriousbusiness/activity/pub -codeberg.org/superseriousbusiness/activity/streams -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_content -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_current -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_deleted -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_duration -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endpoints -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_endtime -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_first -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_followers -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_following -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_height -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_href -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_hreflang -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_icon -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_image -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inbox -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_last -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_latitude -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_liked -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_likes -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_name -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_next -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_outbox -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_partof -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preferredusername -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_prev -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_published -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_radius -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_rel -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_replies -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sensitive -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_sharedinbox -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_shares -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_startindex -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_starttime -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_streams -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_summary -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_totalitems -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_units -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_updated -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_url -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_width -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_accept -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_activity -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_add -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_announce -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_application -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_arrive -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_article -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_audio -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_block -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collection -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_collectionpage -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_create -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_delete -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_dislike -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_document -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_endpoints -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_event -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_flag -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_follow -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_group -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_ignore -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_image -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_intransitiveactivity -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_invite -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_join -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_leave -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_like -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_listen -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_move -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_note -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_offer -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollection -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_orderedcollectionpage -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_organization -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_page -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_person -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_place -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_profile -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_question -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_read -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_reject -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_relationship -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_remove -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_service -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativeaccept -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tentativereject -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_tombstone -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_travel -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_undo -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video -codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view -codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album -codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist -codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library -codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_automaticapproval -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canannounce -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canlike -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canquote -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_canreply -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactingobject -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactionpolicy -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_interactiontarget -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_manualapproval -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceapproval -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announceauthorization -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_announcerequest -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canannounce -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canlike -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canquote -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_canreply -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_interactionpolicy -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeapproval -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likeauthorization -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_likerequest -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyapproval -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyauthorization -codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/type_replyrequest -codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_id -codeberg.org/superseriousbusiness/activity/streams/impl/jsonld/property_type -codeberg.org/superseriousbusiness/activity/streams/impl/schema/property_value -codeberg.org/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_blurhash -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_discoverable -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_featured -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_focalpoint -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_indexable -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturealgorithm -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_signaturevalue -codeberg.org/superseriousbusiness/activity/streams/impl/toot/property_voterscount -codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_emoji -codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag -codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_identityproof -codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_owner -codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickey -codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/property_publickeypem -codeberg.org/superseriousbusiness/activity/streams/impl/w3idsecurityv1/type_publickey -codeberg.org/superseriousbusiness/activity/streams/values/anyURI -codeberg.org/superseriousbusiness/activity/streams/values/bcp47 -codeberg.org/superseriousbusiness/activity/streams/values/boolean -codeberg.org/superseriousbusiness/activity/streams/values/dateTime -codeberg.org/superseriousbusiness/activity/streams/values/duration -codeberg.org/superseriousbusiness/activity/streams/values/float -codeberg.org/superseriousbusiness/activity/streams/values/langString -codeberg.org/superseriousbusiness/activity/streams/values/nonNegativeInteger -codeberg.org/superseriousbusiness/activity/streams/values/rfc2045 -codeberg.org/superseriousbusiness/activity/streams/values/rfc5988 -codeberg.org/superseriousbusiness/activity/streams/values/string -codeberg.org/superseriousbusiness/activity/streams/vocab -# codeberg.org/superseriousbusiness/exif-terminator v0.10.0 -## explicit; go 1.21 -codeberg.org/superseriousbusiness/exif-terminator -# codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 v2.1.0-SSB -## explicit; go 1.17 -codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 -# codeberg.org/superseriousbusiness/go-png-image-structure/v2 v2.1.0-SSB -## explicit; go 1.12 -codeberg.org/superseriousbusiness/go-png-image-structure/v2 -# codeberg.org/superseriousbusiness/httpsig v1.3.0-SSB -## explicit; go 1.21 -codeberg.org/superseriousbusiness/httpsig -# codeberg.org/superseriousbusiness/oauth2/v4 v4.7.0-SSB -## explicit; go 1.23.0 -codeberg.org/superseriousbusiness/oauth2/v4 -codeberg.org/superseriousbusiness/oauth2/v4/errors -codeberg.org/superseriousbusiness/oauth2/v4/generates -codeberg.org/superseriousbusiness/oauth2/v4/manage -codeberg.org/superseriousbusiness/oauth2/v4/models -codeberg.org/superseriousbusiness/oauth2/v4/server # github.com/DmitriyVTitov/size v1.5.0 ## explicit; go 1.14 github.com/DmitriyVTitov/size @@ -437,9 +437,6 @@ github.com/gin-gonic/gin/render # github.com/go-errors/errors v1.1.1 ## explicit; go 1.14 github.com/go-errors/errors -# github.com/go-fed/httpsig v1.1.0 -## explicit; go 1.13 -github.com/go-fed/httpsig # github.com/go-ini/ini v1.67.0 ## explicit github.com/go-ini/ini -- cgit v1.2.3